/* =========================================================
   Advyso — compléments pour la version multipage
   (photos, carrousel, cartes, bandeaux, FAQ, formulaire…)
   Se charge après style.css et réutilise ses jetons de couleur.
   ========================================================= */

/* ---------- Photos (avec fond de secours aux couleurs de la marque) ---------- */
.ph { position: relative; margin: 0; overflow: hidden; background: linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 62%, #4A1A28 100%); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph.is-missing img { opacity: 0; }
.ph.is-missing::before { content: ""; position: absolute; inset: 0 0 0 55%; background: repeating-linear-gradient(90deg, rgba(237, 183, 60, .55) 0 3px, transparent 3px 11px, rgba(237, 183, 60, .35) 11px 20px, transparent 20px 34px); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Héros avec carrousel ---------- */
.hero--photo .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 4vw, 56px); }
.carousel { position: relative; min-width: 0; }
.carousel__frame { position: relative; aspect-ratio: 4 / 4.4; max-height: 560px; width: 100%; border-radius: 20px; overflow: hidden; clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%); background: var(--wine-deep); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide .ph { height: 100%; }
.slide img { transform: scale(1.07); transition: transform 7s linear; }
.slide.is-active img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(58, 20, 32, .55), rgba(58, 20, 32, 0) 45%); pointer-events: none; }
.carousel__bars { position: absolute; z-index: 3; left: -6px; top: 12%; bottom: 22%; display: flex; gap: 5px; pointer-events: none; }
.carousel__bars i, .pagehero__bars i { display: block; background: var(--gold); animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.carousel__bars i:nth-child(1) { width: 4px; animation-delay: .3s; }
.carousel__bars i:nth-child(2) { width: 10px; animation-delay: .36s; }
.carousel__bars i:nth-child(3) { width: 3px; animation-delay: .42s; }
.carousel__bars i:nth-child(4) { width: 14px; animation-delay: .48s; }
.carousel__bars i:nth-child(5) { width: 3px; animation-delay: .54s; }
.carousel__bars i:nth-child(6) { width: 7px; animation-delay: .6s; }
.carousel__ctrl { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(42, 14, 24, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.carousel__btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; cursor: pointer; }
.carousel__btn:hover { background: rgba(255, 255, 255, .16); }
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__toggle .i-play { display: none; }
.carousel.is-paused .carousel__toggle .i-play { display: inline; }
.carousel.is-paused .carousel__toggle .i-pause { display: none; }
.carousel__dots { display: flex; gap: 2px; }
.dot { width: 28px; height: 38px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.dot::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background-color .25s ease; }
.dot[aria-current="true"]::before { background: var(--gold); }
@media (max-width: 820px) {
  .hero--photo .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .carousel__frame { aspect-ratio: 4 / 3; clip-path: none; }
  .carousel__bars { display: none; }
}

/* ---------- Bandeau de chiffres ---------- */
.stats-strip { border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: clamp(20px, 3vw, 32px) clamp(28px, 4vw, 44px); }
.stat { display: grid; gap: 4px; padding: 8px clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); line-height: 1; color: var(--ink); }
.stat span { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Bloc photo + texte ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; min-width: 0; }
.ph--tall { aspect-ratio: 5 / 4; border-radius: 20px; box-shadow: var(--shadow); }
.split__badge { position: absolute; right: -14px; bottom: -18px; padding: 14px 18px; border-radius: 12px; background: var(--gold); color: var(--on-gold); font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow); }
.split__num { position: absolute; left: -10px; top: -30px; font-family: var(--f-display); font-weight: 600; font-size: clamp(4rem, 8vw, 6.5rem); line-height: 1; color: var(--sand); opacity: .9; pointer-events: none; }
.split--rev .split__num { left: auto; right: -10px; }
.split__text { display: grid; gap: 18px; min-width: 0; align-content: center; }
.split__text h2 { font-size: var(--step-3); }
.prose { display: grid; gap: 12px; color: var(--muted); font-size: var(--step-1); }
.checks--big li { font-size: var(--step-1); }
.checks--stack { grid-template-columns: minmax(0, 1fr); margin-top: 18px; color: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split__media { order: 0; }
  .split__badge { right: 12px; }
  .split__num { top: -24px; }
}

/* ---------- Cartes d'expertise ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 24px; }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--fg); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { color: var(--fg); transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sand); }
.ph--card { aspect-ratio: 16 / 10; }
.ph--card img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .ph--card img { transform: scale(1.05); }
.card__body { position: relative; display: grid; gap: 8px; align-content: start; padding: 0 24px 26px; }
.card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: var(--wine); color: var(--gold); border: 4px solid var(--surface); position: relative; z-index: 1; }
.card__icon svg { width: 26px; height: 26px; }
.card__kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-top: 6px; }
.card h3 { font-size: var(--step-2); }
.card p:not(.card__kicker) { color: var(--muted); }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: var(--ink); }
.card__more svg { width: 18px; height: 18px; transition: transform .25s ease; }
.card:hover .card__more svg { transform: translateX(4px); }
.center-cta { text-align: center; margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Frise résumée (accueil) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 20px; }
.timeline li { position: relative; display: grid; gap: 8px; align-content: start; padding-top: 26px; border-top: 2px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.tl__num { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.timeline h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.15rem; }
.timeline p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .timeline { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bandeau d'appel à l'action avec photo ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--on-band); padding-block: clamp(56px, 8vw, 100px); }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg .ph { height: 100%; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(110, 38, 57, .96) 0%, rgba(139, 52, 75, .9) 48%, rgba(139, 52, 75, .55) 100%); }
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.cta-band h2 { font-size: var(--step-3); color: var(--on-band); margin-bottom: 12px; }
.cta-band p { color: var(--on-band-soft); font-size: var(--step-1); max-width: 58ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn svg, .btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 24px clamp(32px, 6vw, 80px); align-items: start; }
.faq__grid .section__head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.12rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--ink); }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: transform .25s ease; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--gold); border-color: var(--gold); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 48px 22px 0; }
.faq__a p { color: var(--muted); font-size: var(--step-1); max-width: 64ch; }
.faq__item[open] .faq__a { animation: fadeUp .35s cubic-bezier(.2, .7, .2, 1) both; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } .faq__a { padding-right: 0; } }

/* ---------- En-tête des pages intérieures ---------- */
.pagehero { padding-top: clamp(16px, 3vw, 32px); }
.pagehero__band { position: relative; overflow: hidden; background: var(--band); color: var(--on-band); margin-inline: clamp(0px, 2vw, 24px); border-radius: clamp(0px, 2vw, 26px); }
.pagehero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(64px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.pagehero__text { display: grid; gap: 16px; min-width: 0; }
.pagehero h1 { font-size: var(--step-4); color: var(--on-band); }
.pagehero .hero__lede { margin-top: 2px; }
.pagehero .hero__ctas { margin-top: 6px; }
.pagehero__media { position: relative; min-width: 0; }
.ph--frame { aspect-ratio: 4 / 3; border-radius: 18px; clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%); }
.pagehero__bars { position: absolute; left: -4px; top: 14%; bottom: 18%; display: flex; gap: 5px; pointer-events: none; }
.pagehero__bars i:nth-child(1) { width: 4px; animation-delay: .3s; }
.pagehero__bars i:nth-child(2) { width: 9px; animation-delay: .36s; }
.pagehero__bars i:nth-child(3) { width: 3px; animation-delay: .42s; }
.pagehero__bars i:nth-child(4) { width: 12px; animation-delay: .48s; }
.pagehero__bars i:nth-child(5) { width: 5px; animation-delay: .54s; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--on-band-soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--on-band-soft); }
.crumbs a:hover { color: var(--gold); }
@media (max-width: 860px) {
  .pagehero__grid { grid-template-columns: minmax(0, 1fr); }
  .ph--frame { aspect-ratio: 16 / 9; clip-path: none; }
  .pagehero__bars { display: none; }
}

/* ---------- Barre de navigation par domaine ---------- */
.chips-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 24px; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.chip svg { width: 18px; height: 18px; color: var(--ink); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.page-exp { scroll-padding-top: calc(var(--header-h) + 90px); }
html:has(.page-exp) { scroll-padding-top: calc(var(--header-h) + 90px); }

/* ---------- Domaines (page Expertises) ---------- */
.h-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; margin-right: 14px; border-radius: 14px; background: var(--wine); color: var(--gold); vertical-align: -8px; }
.h-icon svg { width: 26px; height: 26px; }
.mini { font-family: var(--f-body); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-top: 6px; }
.domain .checks { margin-top: 0; }
.issues { padding: 18px 22px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--bg-soft); }
.section--soft .issues { background: var(--surface); }
.issues .mini { margin: 0 0 8px; }
.issues ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--muted); }

/* ---------- Formats d'intervention ---------- */
.fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.fcard { display: grid; gap: 12px; align-content: start; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 16px; transition: transform .25s ease, box-shadow .25s ease; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fcard__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bg-soft); color: var(--ink); }
.section--soft .fcard__icon { background: var(--bg-soft); }
.fcard__icon svg { width: 26px; height: 26px; }
.fcard h3 { font-size: var(--step-2); }
.fcard p { color: var(--muted); }

/* ---------- Après le diagnostic ---------- */
.after { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 20px; background: var(--bg-soft); border-left: 6px solid var(--gold); }
.after h2 { font-size: var(--step-3); margin-bottom: 10px; }
.after__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .after { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page contact ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-page__mail { display: grid; gap: 18px; min-width: 0; }
.composer { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.composer h2 { font-size: var(--step-2); }
.composer__note { color: var(--muted); }
.field { display: grid; gap: 6px; min-width: 0; }
.field span { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); outline: 3px solid color-mix(in srgb, var(--gold) 60%, transparent); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.composer__err { color: #B3261E; font-weight: 600; min-height: 1.2em; margin: -6px 0 0; }
.composer .btn { justify-self: start; }
@media (max-width: 860px) { .contact-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- En-têtes de section centrés ---------- */
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__head--center .eyebrow { justify-content: center; }

/* ---------- Lien actif dans le menu (pages) ---------- */
.nav__list a[aria-current="page"] { color: var(--ink); }
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Pied de page en colonnes ---------- */
.site-footer__inner--cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; padding-block: clamp(40px, 6vw, 64px) 28px; }
.site-footer__col { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { text-decoration: underline; }
.site-footer__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.site-footer__mail svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
@media (max-width: 900px) { .site-footer__inner--cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .site-footer__inner--cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bouton de retour en haut d'une section (accessibilité du focus) ---------- */
.domain { scroll-margin-top: calc(var(--header-h) + 80px); }

/* ---------- Ajustements ---------- */
.split__num { z-index: 2; top: -0.72em; left: 18px; color: var(--sand); text-shadow: 0 2px 0 var(--bg); }
.section--soft .split__num { text-shadow: 0 2px 0 var(--bg-soft); }
.split--rev .split__num { right: 18px; }
.pagehero__bars { top: auto; bottom: 10%; height: 42%; }
@media (min-width: 1100px) { .chips { justify-content: center; gap: 8px; } .chip { padding: 8px 13px; font-size: .9rem; gap: 7px; } }
