/* ============================================================
   PRIME AUDITION — Composants & sections
   ============================================================ */

/* ---- Accessibilité ---- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bois-fonce); color: #fff; padding: .75rem 1.2rem; border-radius: 0 0 12px 0; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }

/* ---- Placeholders d'images (à remplacer par vos photos) ---- */
.imgph {
  position: relative; margin: 0; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(150deg, var(--creme-fonce), #ead9bf);
  border: 1.5px dashed rgba(122,74,30,.28);
  display: grid; place-items: center; color: var(--bois);
  min-height: 220px; overflow: hidden; text-align: center;
}
.imgph svg { width: 40px; height: 40px; opacity: .5; }
.imgph[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: min(86%, 320px); font-size: .76rem; line-height: 1.35; color: var(--texte-doux);
  background: rgba(255,255,255,.72); padding: .4rem .6rem; border-radius: 10px;
}
.imgph--hero { aspect-ratio: 4 / 5; min-height: 340px; border-radius: var(--radius-lg); }
.imgph--prod { min-height: 130px; margin-bottom: 1.1rem; border-radius: var(--radius-md); }
.imgph--wide { aspect-ratio: 16 / 9; width: 100%; }
.imgph--portrait { aspect-ratio: 3 / 4; }

/* Images réelles */
.media-img { display: block; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); object-fit: cover; }
.media-img.is-hero { aspect-ratio: 4 / 5; }
.media-img.is-wide { aspect-ratio: 16 / 9; }
.media-img.is-portrait { aspect-ratio: 3 / 4; }
.prod-img { display: block; width: auto; max-width: 100%; height: 150px; object-fit: contain; margin: 0 auto 1.1rem; }
.appareil-img { width: 128px; height: 116px; object-fit: contain; flex: none; }

/* Vignettes illustrées par une photo (cercle) */
.vignette .circle { overflow: hidden; }
.vignette .circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette--photo .circle { width: 118px; height: 118px; }
.vignette--photo .circle svg { width: 52px; height: 52px; }

/* Vidéo (façade clic-pour-lire) */
.video-facade { position: relative; display: block; width: 100%; max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); background: var(--creme-fonce); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: rgba(44,38,32,.15); transition: background .3s; }
.video-facade:hover img { transform: scale(1.04); }
.video-facade:hover::after { background: rgba(44,38,32,.25); }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; width: 78px; height: 78px; border-radius: 50%; background: var(--cta-gradient); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-cta); transition: transform .25s var(--ease); }
.video-facade:hover .video-play { transform: translate(-50%,-50%) scale(1.09); }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-embed { width: 100%; max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-item { margin: 0; }
.video-item figcaption { text-align: center; font-family: var(--font-titre); font-weight: 500; font-size: 1.15rem; color: var(--bois-fonce); margin-top: .9rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(80% 120% at 85% -10%, rgba(217,154,78,.18), transparent 55%),
    radial-gradient(60% 80% at 0% 100%, rgba(94,140,78,.10), transparent 60%),
    var(--creme);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-text h1 { margin-bottom: 1.1rem; }
.hero-text .lead { max-width: 46ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero-badges { display: flex; flex-direction: column; gap: .65rem; }
.hero-badges li { display: flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--texte); }
.hero-badges svg { width: 20px; height: 20px; color: var(--vert-nature); flex: none; }
.hero-media { position: relative; }
.hero-card {
  position: absolute; left: -8%; bottom: 8%; max-width: 250px;
  background: var(--blanc); border-radius: var(--radius-md); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.hero-card-stars, .avis-stars, .hero-card-stars { color: #E0A34A; letter-spacing: 2px; }
.hero-card p { font-size: .95rem; font-style: italic; margin: .35rem 0; color: var(--texte); }
.hero-card span { font-size: .78rem; color: var(--texte-doux); font-weight: 600; }

/* ============================================================
   CHIFFRES
   ============================================================ */
.stats-grid { margin-bottom: 2.5rem; }
.stat { text-align: center; padding: 1rem; }
.stat-num { display: block; font-family: var(--font-titre); font-weight: 600; color: var(--bois-vif);
  font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; margin-bottom: .6rem; }
.stat p { color: var(--texte-doux); max-width: 24ch; margin-inline: auto; }
.stats-note { max-width: 60ch; margin-inline: auto; font-size: 1.15rem; }

/* ============================================================
   PARCOURS
   ============================================================ */
.parcours { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; margin-bottom: 2.5rem; position: relative; }
.parcours-step { background: var(--blanc); border-radius: var(--radius-md); padding: 2.4rem 1.3rem 1.5rem; box-shadow: var(--shadow-soft); position: relative; }
.parcours-num { position: absolute; top: -22px; left: 1.3rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--cta-gradient); color: #fff; font-family: var(--font-titre); font-weight: 600; font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: var(--shadow-cta); }
.parcours-step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.parcours-step p { font-size: .95rem; color: var(--texte-doux); }

/* ============================================================
   MODÈLES
   ============================================================ */
.model { text-align: center; }
.model h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.model p { font-size: .95rem; color: var(--texte-doux); }

/* ============================================================
   100% SANTÉ (schéma animé)
   ============================================================ */
.sante-schema { max-width: 760px; margin: 0 auto; }
.sante-bar { display: flex; height: 76px; border-radius: var(--radius-pill); overflow: hidden; box-shadow: inset 0 2px 8px rgba(0,0,0,.2);
  transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ease); }
.sante-schema.in .sante-bar { transform: scaleX(1); }
.sante-seg { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding: 0 .5rem; text-align: center; }
.seg-secu { flex: 240 1 0; background: linear-gradient(135deg, #8FB57E, #5E8C4E); }
.seg-mut  { flex: 710 1 0; background: var(--cta-gradient); }
.seg-label { font-size: .8rem; opacity: .95; font-weight: 500; }
.seg-val { font-family: var(--font-titre); font-weight: 600; font-size: 1.3rem; }
.sante-equals { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.8rem; flex-wrap: wrap; }
.sante-total { color: #F2E6D2; font-size: 1.05rem; }
.sante-total strong { color: #fff; font-family: var(--font-titre); font-size: 1.4rem; display: block; }
.sante-arrow { width: 34px; height: 34px; color: var(--bois-clair); }
.sante-reste { background: rgba(251,244,233,.1); border: 1.5px solid rgba(251,244,233,.25); border-radius: var(--radius-md); padding: .8rem 1.6rem; text-align: center; }
.sante-reste span { display: block; font-size: .85rem; color: #F2E6D2; }
.sante-zero { font-family: var(--font-titre); font-size: 2.6rem; color: #fff; line-height: 1; }
.sante-schema.in .sante-zero { animation: pop .6s var(--ease) .9s both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

/* ============================================================
   MARQUES (bande défilante)
   ============================================================ */
.marques-intro { font-size: 1.2rem; max-width: 50ch; margin: .4rem auto 0; color: var(--texte); }
.marquee { margin-top: 2rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 3.6rem; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marque-logo { height: 34px; width: auto; flex: none; display: block; }
.marque-logo.is-badge { height: 30px; }  /* ReSound : badge plein, équilibré */
.marque-logo.is-mark { height: 42px; }   /* Signia : symbole carré */
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   AVIS
   ============================================================ */
.avis { display: flex; flex-direction: column; gap: .8rem; }
.avis-stars { color: #E0A34A; letter-spacing: 2px; font-size: 1.1rem; }
.avis blockquote { font-size: 1.02rem; line-height: 1.6; color: var(--texte); }
.avis figcaption { font-weight: 600; color: var(--bois-fonce); margin-top: auto; }
.avis-note { margin-top: 1.5rem; color: var(--texte-doux); font-size: .9rem; }

/* ============================================================
   FAQ (accordéon)
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--blanc); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); overflow: hidden; border: 1px solid rgba(122,74,30,.05); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; padding: 1.25rem 1.4rem; text-align: left;
  font-family: var(--font-titre); font-size: 1.1rem; font-weight: 500; color: var(--bois-fonce); }
.faq-q:hover { color: var(--bois-vif); }
.faq-icon { position: relative; flex: none; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--bois-vif); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-icon::before { top: 10px; left: 0; width: 22px; height: 2.5px; }
.faq-icon::after { top: 0; left: 10px; width: 2.5px; height: 22px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > p { overflow: hidden; padding: 0 1.4rem; color: var(--texte-doux); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding-bottom: 1.3rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.6rem 0; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--bois-vif); flex: none; margin-top: 3px; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); min-height: 420px; display: flex; }
.contact-map .map-cta { flex: 1; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
/* Façade carte (clic pour charger Google Maps — rapide & RGPD) */
.map-facade { width: 100%; min-height: 420px; height: 100%; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  background:
    repeating-linear-gradient(45deg, rgba(122,74,30,.04) 0 14px, transparent 14px 28px),
    radial-gradient(70% 90% at 50% 30%, rgba(217,154,78,.18), transparent 60%),
    var(--creme-fonce);
  color: var(--bois-fonce); transition: background .3s var(--ease); }
.map-facade:hover { background:
    repeating-linear-gradient(45deg, rgba(122,74,30,.06) 0 14px, transparent 14px 28px),
    radial-gradient(70% 90% at 50% 30%, rgba(217,154,78,.26), transparent 60%),
    var(--creme-fonce); }
.map-pin { width: 64px; height: 64px; border-radius: 50%; background: var(--blanc); display: grid; place-items: center; box-shadow: var(--shadow-card); margin-bottom: .4rem; }
.map-pin svg { width: 30px; height: 30px; color: var(--bois-vif); }
.map-facade-cta { font-family: var(--font-titre); font-weight: 600; font-size: 1.25rem; }
.map-facade-sub { font-size: .9rem; color: var(--texte-doux); }

/* Bloc "nous trouver" : itinéraire + plan (plus clair qu'une mini-carte) */
.map-cta { display: flex; flex-direction: column; justify-content: center; gap: .7rem; padding: 1.5rem 1.6rem 1.8rem;
  background: repeating-linear-gradient(45deg, rgba(122,74,30,.045) 0 14px, transparent 14px 28px), var(--creme-fonce); }
.map-cta-main { display: flex; align-items: center; gap: .9rem; background: var(--blanc); color: var(--bois-fonce);
  padding: .95rem 1.2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-card); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.map-cta-main:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -18px rgba(122,74,30,.4); color: var(--bois-fonce); }
.map-cta-main svg { width: 30px; height: 30px; flex: none; color: var(--bois-vif); }
.map-cta-main strong { display: block; font-family: var(--font-titre); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.map-cta-main small { display: block; color: var(--texte-doux); font-size: .85rem; margin-top: 2px; }
.map-cta-alt { text-align: center; color: var(--bois-fonce); font-weight: 600; font-size: .92rem; }
.map-cta-alt:hover { color: var(--bois-vif); }

/* Lignes de transport (badges officiels : métro / bus / RER) */
.acces-lignes { display: flex; flex-direction: column; gap: .45rem; }
.acces-mode { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.acces-mode .acces-txt { color: var(--texte); }
.ligne { display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-family: var(--font-corps); font-weight: 700; color: #fff; line-height: 1; }
.ligne-m { width: 30px; height: 30px; border-radius: 50%; background: var(--c); font-size: 1rem; }
.ligne-m sup { font-size: .52em; font-weight: 700; }
.ligne-rer { min-width: 30px; height: 30px; padding: 0 .32rem; border-radius: 8px; background: var(--c); font-size: 1rem; }
.ligne-b { min-width: 30px; height: 27px; padding: 0 .42rem; border-radius: 7px; background: var(--texte); font-size: .92rem; }

/* Section "Nos adresses" (2 centres) */
.adresses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.adresse-card { background: var(--blanc); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid rgba(122,74,30,.05); overflow: hidden; display: flex; flex-direction: column; }
.adresse-body { padding: 1.8rem 1.8rem 2rem; }
.adresse-tag { display: inline-block; font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .32rem .8rem; border-radius: var(--radius-pill); margin-bottom: .9rem; }
.adresse-tag.is-main { background: var(--cta-gradient); color: #fff; }
.adresse-tag.is-second { background: var(--creme-fonce); color: var(--bois-fonce); }
.adresse-card h3 { font-size: 1.4rem; margin-bottom: 1.1rem; }
.adresse-card .contact-list { margin: 0 0 1.4rem; }
.adresse-card .map-facade { min-height: 200px; }
.adresse-card .btn { width: 100%; }
@media (max-width: 780px) { .adresses-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BARRE D'ACTION MOBILE
   ============================================================ */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  gap: .7rem; padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(251,244,233,.92); backdrop-filter: blur(10px); border-top: 1px solid rgba(122,74,30,.12); }
.mobile-cta .btn { flex: 1; padding: .85rem 1rem; font-size: 1rem; }
.mobile-cta .btn-ghost { flex: 0 0 auto; }

/* ============================================================
   PAGES INTÉRIEURES — bandeau
   ============================================================ */
.page-hero { background:
    radial-gradient(70% 120% at 90% -20%, rgba(217,154,78,.16), transparent 55%), var(--creme-fonce);
  padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: left; }
.page-hero .lead { max-width: 60ch; margin-inline: 0; }
.breadcrumb { font-size: .85rem; color: var(--texte-doux); margin-bottom: 1rem; }
.breadcrumb a { color: var(--bois); }

/* Pied de page : adresses propres (lignes empilées) */
.footer-adr li { margin-bottom: 1rem; }
.footer-adr strong { display: block; color: var(--creme); margin-bottom: .12rem; }
.footer-adr span { display: block; font-size: .88rem; opacity: .78; line-height: 1.45; }
.footer-adr > li > a { font-size: .92rem; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .4rem; }
.prose ul.ticks { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0; }
.prose ul.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.prose ul.ticks li::before { content: "✓"; color: var(--vert-nature); font-weight: 700; flex: none; }

/* CTA en bandeau réutilisable */
.cta-band { background: var(--cta-gradient); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3rem); text-align: center; box-shadow: var(--shadow-card); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 50ch; margin: 0 auto 1.5rem; }
.cta-band .btn-cta { background: #fff; color: var(--bois-fonce); }
.cta-band .btn-cta:hover { background: var(--creme); color: var(--bois-fonce); }

/* ============================================================
   SCHÉMA INTERACTIF DE L'OREILLE
   ============================================================ */
.ear-diagram { display: grid; grid-template-columns: 1.45fr 1fr; gap: 2rem; align-items: center;
  background: var(--blanc); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-card); }
.ear-stage { width: 100%; }
.ear-stage svg { width: 100%; height: auto; }
.ear-part { cursor: pointer; }
.ear-part .hl { fill: transparent; stroke: transparent; stroke-width: 2.5; transition: fill .25s var(--ease), stroke .25s var(--ease); }
.ear-part:hover .hl, .ear-part:focus .hl, .ear-part.active .hl { fill: rgba(217,154,78,.30); stroke: var(--bois-vif); }
.ear-part:focus { outline: none; }
.ear-part:focus-visible .hl { stroke: var(--bois-fonce); stroke-width: 3; }
.ear-badges circle { fill: var(--bois-fonce); }
.ear-badges text { fill: #fff; font-size: 18px; text-anchor: middle; }
.ear-part.active ~ .ear-badges circle { fill: var(--bois-vif); }
.ear-panel { min-height: 180px; }
.ear-info { display: none; animation: earfade .4s var(--ease); }
.ear-info.show { display: block; }
.ear-step { display: inline-block; font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bois-vif); margin-bottom: .5rem; }
.ear-info h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.ear-info p { color: var(--texte-doux); font-size: 1.05rem; }
@keyframes earfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .ear-diagram { grid-template-columns: 1fr; }
  .ear-panel { min-height: 150px; background: var(--creme); border-radius: var(--radius-md); padding: 1.2rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-cta { display: none; } /* CTA déjà présent en bas sur mobile */
  .parcours { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; } /* place pour la barre mobile */
}
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; margin-inline: auto; width: 100%; }
  .hero-card { left: auto; right: 4%; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .parcours { grid-template-columns: 1fr; }
  .sante-equals { gap: 1rem; }
  .hero-card { position: static; max-width: none; margin-top: 1rem; }
}
