/* Casa Basilico · maquette CTR Studio */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  /* blanc pur en majorité ; couleurs tirées de la planche de matières (sable, sauge, bleu poudré, canard, laiton) */
  --blanc: #FFFFFF;
  --papier: #FFFFFF;
  --gris: #F5F5F3;
  --gris-2: #E8E8E4;
  --sable: #D9C3A5;
  --sauge: #A7B396;
  --laiton: #B8956A;
  --canard: #2F5D62;
  --encre: #1F2420;
  --encre-2: #5E625C;
  --encre-3: #8F938C;
  --basilic: #4F5B47;
  --basilic-fonce: #3A4535;
  --tomate: #2F5D62;
  --accent: #D9C3A5;
  --relief: 0 1px 2px rgba(20,24,20,.05), 0 24px 48px -30px rgba(20,24,20,.28);
  --grain: none;
  --haut: 72px;
  --titre: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --texte: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --rayon: 28px;
  --courbe: cubic-bezier(.22, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanc) var(--grain); color: var(--encre); font-family: var(--texte); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--titre); margin: 0; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--basilic); outline-offset: 3px; border-radius: 8px; }
.saut { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 99px; }
.saut:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.bouton { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 99px; border: 0; background: var(--basilic); color: rgba(255,255,255,.94); font-family: var(--titre); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 .28rem .7rem rgba(255,255,255,.24), inset 0 -.1rem .3rem rgba(0,0,0,.45), inset 0 -.38rem .8rem rgba(255,255,255,.2), 0 1.3rem 1.6rem -1rem rgba(31,36,32,.5), 0 .55rem .6rem -.45rem rgba(31,36,32,.55);
  transition: transform .25s var(--courbe), box-shadow .25s; }
.bouton::before, .bouton::after { content: ""; position: absolute; z-index: -1; pointer-events: none; transition: transform .35s var(--courbe), opacity .35s; }
.bouton::before { left: -15%; right: -15%; bottom: 28%; top: -100%; border-radius: 50%; background: rgba(255,255,255,.1); }
.bouton::after { left: 7%; right: 7%; top: 11%; bottom: 44%; border-radius: 22px 22px 0 0; box-shadow: inset 0 9px 7px -9px rgba(255,255,255,.75); background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0) 55%); }
.bouton:hover { transform: translateY(-1px); box-shadow: inset 0 .28rem .5rem rgba(255,255,255,.32), inset 0 -.1rem .3rem rgba(0,0,0,.45), inset 0 -.38rem .8rem rgba(255,255,255,.3), 0 1.5rem 1.8rem -1rem rgba(31,36,32,.5), 0 .55rem .6rem -.45rem rgba(31,36,32,.55); }
.bouton:hover::before { transform: translateY(-5%); }
.bouton:hover::after { opacity: .45; transform: translateY(6%); }
.bouton:active { transform: translateY(2px); box-shadow: inset 0 .28rem .5rem rgba(255,255,255,.3), inset 0 -.1rem .3rem rgba(0,0,0,.55), inset 0 -.38rem .8rem rgba(255,255,255,.15), 0 .6rem .8rem -.6rem rgba(31,36,32,.5); }
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton-ligne { color: var(--encre); background: linear-gradient(115deg, #FBFAF7 0%, #EDF2EF 26%, #F6EEF0 48%, #ECF0F4 70%, #FBFAF7 100%) 0 0 / 220% 100%;
  box-shadow: inset 0 .28rem .6rem rgba(255,255,255,.95), inset 0 -.1rem .3rem rgba(31,36,32,.16), inset 0 -.38rem .8rem rgba(255,255,255,.7), 0 0 0 1px rgba(31,36,32,.07), 0 1.3rem 1.6rem -1.1rem rgba(31,36,32,.35); transition: transform .25s var(--courbe), background-position 1.2s var(--courbe), box-shadow .25s; }
.bouton-ligne::before { background: rgba(255,255,255,.35); }
.bouton-ligne:hover { background-position: 100% 0; box-shadow: inset 0 .28rem .5rem rgba(255,255,255,1), inset 0 -.1rem .3rem rgba(31,36,32,.16), inset 0 -.38rem .8rem rgba(255,255,255,.8), 0 0 0 1px rgba(31,36,32,.08), 0 1.5rem 1.8rem -1.1rem rgba(31,36,32,.35); }
.bouton-blanc { background: var(--papier); color: var(--basilic-fonce); }
.bouton-blanc:hover { background: #fff; }

/* ---------- Bandeau du haut ---------- */
#bandeau { position: fixed; inset: 0 0 auto 0; height: var(--haut); z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--gris-2); }
.bandeau-in { height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titre); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.logo svg { width: 34px; height: 34px; }
.logo small { display: block; font-family: var(--texte); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); margin-top: 2px; }
.logo span { line-height: 1; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 99px; transition: background .25s; }
.nav a:hover { background: var(--gris); }
.appel { height: 44px; padding: 0 20px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 99px; border: 0; background: var(--gris); cursor: pointer; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--encre); border-radius: 2px; position: relative; transition: transform .3s, background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--encre); border-radius: 2px; transition: transform .3s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.ouvert .burger span { background: transparent; }
.ouvert .burger span::before { transform: translateY(6px) rotate(45deg); }
.ouvert .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.panneau { display: none; }

/* ---------- Héros : les assiettes ---------- */
.heros-piste { position: relative; }
.heros { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--blanc) var(--grain); container-type: inline-size; padding-top: var(--haut); }
.heros:focus-visible { outline-offset: -6px; }
.toile { position: absolute; left: 50%; top: calc(50% + var(--haut) / 2); width: 1200px; height: 620px; transform: translate(-50%, -50%) scale(var(--e, 1)); }
.aquarelle { position: absolute; left: -20px; top: -120px; width: 1100px; height: 480px; background-color: var(--accent); transform-origin: 400px -650px; transition: background-color 1.2s ease-in-out; pointer-events: none;
  -webkit-mask: url("../images/matieres/aquarelle-bande.webp") 0 0 / 100% 100% no-repeat; mask: url("../images/matieres/aquarelle-bande.webp") 0 0 / 100% 100% no-repeat; }
.pager { position: absolute; left: 40px; top: 200px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.point { appearance: none; border: 0; background: none; padding: 0; width: 16px; height: 12px; display: grid; place-items: center; cursor: pointer; transition: height .45s var(--courbe); }
.point i { display: block; width: 3px; height: 3px; border-radius: 3px; background: var(--encre); opacity: .4; transition: height .45s var(--courbe), opacity .3s; }
.point[aria-current] { height: 30px; }
.point[aria-current] i { height: 26px; opacity: .9; }
.assiettes { position: absolute; left: 110px; top: 50px; width: 400px; height: 400px; touch-action: pan-y; }
.orbite { position: absolute; inset: 0; transform-origin: 67.5% -205%; opacity: 0; will-change: transform; pointer-events: none; }
.orbite img { width: 400px; height: 400px; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 22px 26px rgba(0,0,0,.18)) drop-shadow(0 4px 6px rgba(0,0,0,.1)); }
.tete { position: absolute; left: 560px; top: 92px; width: 420px; height: 210px; }
.accroche { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--basilic); display: flex; align-items: center; gap: 8px; }
.accroche::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transition: background 1s; }
.titres { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; }
.hd { position: absolute; inset: 0; opacity: 0; }
.oeil { font-size: 13px; font-weight: 600; color: var(--encre-2); margin: 0 0 6px 2px; }
.hd h2 { font: inherit; margin: 0; }
.t1, .t2 { display: block; white-space: nowrap; line-height: .98; text-transform: uppercase; font-family: var(--titre); }
.t1 { font-weight: 200; letter-spacing: -.01em; margin-top: 4px; }
.t2 { font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.actions { position: absolute; left: 562px; top: 330px; display: flex; gap: 12px; }
.fiche { position: absolute; left: 990px; top: 96px; width: 200px; padding: 20px 20px 22px; border-radius: 24px; background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--relief), 0 0 0 1px rgba(20,24,20,.04); }
.onglets { display: flex; gap: 14px; font-size: 13px; margin-bottom: 18px; }
.onglet { appearance: none; border: 0; background: none; padding: 2px 0; cursor: pointer; color: var(--encre-3); font-weight: 500; border-bottom: 1.5px solid transparent; }
.onglet[aria-selected="true"] { color: var(--encre); font-weight: 600; border-color: var(--encre); }
.corps-pile { display: grid; }
.corps { grid-area: 1 / 1; opacity: 0; }
.prix { position: relative; isolation: isolate; display: flex; align-items: baseline; gap: 6px; margin: 4px 0 16px 4px; height: auto; }
.prix::before { content: ""; position: absolute; z-index: -1; left: -16px; top: -14px; width: 104px; height: 74px; background: var(--c); -webkit-mask: url("../images/matieres/aquarelle-tache.webp") center / 100% 100% no-repeat; mask: url("../images/matieres/aquarelle-tache.webp") center / 100% 100% no-repeat; }
.devise { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--encre-2); }
.montant { font-family: var(--titre); font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.nom-plat { font-family: var(--titre); font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.detail { font-size: 11px; color: var(--encre-3); margin: 3px 0 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.desc { font-size: 13px; line-height: 1.45; color: var(--encre-2); min-height: 76px; }
.ingr { display: none; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; min-height: 76px; align-content: flex-start; }
.ingr li { font-size: 11.5px; padding: 4px 9px; border-radius: 99px; background: var(--gris); }
.fiche[data-onglet="ingredients"] .desc { display: none; }
.fiche[data-onglet="ingredients"] .ingr { display: flex; }
.allerg { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); font-size: 11.5px; color: var(--encre-3); }
.allerg b { color: var(--encre-2); font-weight: 600; }
.vignettes { position: absolute; left: 92px; top: 474px; display: flex; align-items: center; gap: 4px; }
.fleche { appearance: none; border: 0; background: none; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; border-radius: 99px; }
.fleche:hover { background: var(--gris); }
.fleche svg { width: 11px; height: 14px; fill: currentColor; }
.vignette { appearance: none; border: 0; background: none; cursor: pointer; width: 104px; height: 118px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; transition: background .45s, box-shadow .45s; }
.vignette img { width: 58px; height: 58px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.16)); transition: transform .45s var(--courbe); }
.vignette span { font-size: 11px; font-weight: 500; line-height: 1.25; text-align: center; color: var(--encre-2); max-width: 92px; }
.vignette[aria-current] { background: var(--papier); box-shadow: var(--relief); }
.vignette[aria-current] img { transform: scale(1.08) rotate(-8deg); }
.vignette[aria-current] span { color: var(--encre); }
.indice { position: absolute; left: 990px; top: 560px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--encre-3); }
.indice i { width: 22px; height: 34px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--encre-3); position: relative; flex: none; }
.indice i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--encre-3); animation: molette 1.8s var(--courbe) infinite; }
@keyframes molette { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

@container (max-width: 760px) {
  .toile { position: relative; left: auto; top: auto; width: 100%; height: 100%; transform: none; display: flex; flex-direction: column; align-items: center; padding: 10px 18px 16px; }
  .aquarelle { left: -12%; top: -4px; width: 172%; height: auto; aspect-ratio: 1100 / 480; transform-origin: 36.4% -135%; }
  .pager { left: 10px; top: 120px; }
  .assiettes { position: relative; left: auto; top: auto; width: min(66vw, 31svh); height: min(66vw, 31svh); flex: none; margin-top: 2svh; }
  .orbite img { width: 100%; height: 100%; }
  .tete { position: relative; left: auto; top: auto; width: 100%; height: 118px; margin-top: 1.6svh; text-align: center; }
  .accroche { justify-content: center; font-size: 10.5px; }
  .tete, .actions, .fiche { flex: none; }
  .titres { top: 24px; }
  .oeil { display: none; }
  .actions { position: relative; left: auto; top: auto; margin-top: 1.2svh; gap: 8px; }
  .actions .bouton { height: 44px; padding: 0 16px; font-size: 14px; }
  .fiche { position: relative; left: auto; top: auto; width: 100%; max-width: 440px; margin-top: 1.6svh; padding: 14px 16px; }
  .onglets { display: none; }
  .corps { display: grid; grid-template-columns: 70px 1fr; column-gap: 12px; align-content: start; }
  .prix { grid-row: 1 / span 3; flex-direction: column; align-items: flex-start; gap: 2px; margin: 8px 0 0 6px; }
  .prix::before { left: -14px; top: -12px; width: 84px; height: 62px; }
  .montant { font-size: 28px; }
  .nom-plat, .detail, .desc { grid-column: 2; }
  .nom-plat { font-size: 16px; }
  .desc { min-height: 0; font-size: 12.5px; }
  .ingr { display: none !important; }
  .detail { margin: 2px 0 6px; }
  .allerg { grid-column: 1 / -1; margin-top: 10px; padding-top: 8px; }
  .vignettes, .indice { display: none; }
}

/* ---------- Bande défilante ---------- */
.bande { background: var(--blanc); color: var(--sauge); overflow: hidden; padding: 30px 0; position: relative; z-index: 2; border-top: 1px solid var(--gris-2); }
.bande-rail { display: flex; width: max-content; animation: defile 38s linear infinite; }
.bande-rail span { font-family: var(--titre); font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); text-transform: uppercase; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.bande-rail span:nth-child(even) { font-weight: 200; }
.bande-rail svg { width: 26px; height: 26px; flex: none; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 24px; position: relative; }
.section { background: var(--blanc) var(--grain); }
.section-grise { background-color: var(--gris); }
.cadre { max-width: 1200px; margin: 0 auto; }
.surtitre { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--basilic); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.surtitre::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.grand-titre { font-size: clamp(44px, 7vw, 96px); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; }
.grand-titre em { font-style: normal; font-weight: 200; }
.chapo { font-size: clamp(17px, 1.6vw, 20px); color: var(--encre-2); max-width: 560px; margin-top: 18px; }
.entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }

/* La carte */
.familles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.famille { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border-radius: 99px; background: var(--papier); box-shadow: 0 0 0 1px var(--gris-2) inset; font-family: var(--titre); font-weight: 600; font-size: 16px; transition: background .35s, transform .35s var(--courbe); }
.famille i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); transition: transform .35s var(--courbe); }
.famille:hover { transform: translateY(-2px); }
.famille[aria-selected="true"] { background: var(--c) url("../images/matieres/lin-ivoire.webp") 0 0 / 300px; background-blend-mode: multiply; }
.famille[aria-selected="true"] i { background: var(--encre); transform: scale(.6); }
.ardoise { border-radius: var(--rayon); background: linear-gradient(color-mix(in oklab, var(--c) 16%, transparent), color-mix(in oklab, var(--c) 16%, transparent)), url("../images/matieres/lin-ivoire.webp") 0 0 / 520px, #F7F4EE; box-shadow: var(--relief); padding: clamp(28px, 4vw, 56px); transition: background .6s; position: relative; overflow: hidden; }
.ardoise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 64px; position: relative; }
.ardoise li { opacity: 0; transform: translateY(14px); }
.ardoise li.on { opacity: 1; transform: none; transition: opacity .5s, transform .6s var(--courbe); transition-delay: var(--d, 0s); }
.ligne-plat { display: flex; align-items: baseline; gap: 12px; }
.ligne-plat h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.ligne-plat .pointilles { flex: 1; border-bottom: 2px dotted rgba(0,0,0,.22); transform: translateY(-5px); min-width: 20px; }
.ligne-plat b { font-family: var(--titre); font-weight: 600; font-size: 19px; white-space: nowrap; }
.ardoise li p { color: var(--encre-2); font-size: 15px; margin-top: 4px; }
.sous-carte { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; color: var(--encre-3); }
.sous-carte a { color: var(--encre); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* La maison */
.maison-grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.maison-grille h2 { font-size: clamp(36px, 4.6vw, 62px); font-weight: 700; }
.maison-grille h2 em { font-style: normal; font-weight: 200; }
.piliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pilier { border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--relief); padding: 0 0 32px; position: relative; overflow: hidden; }
.pilier .matiere { height: 170px; background-size: cover; background-position: center; margin-bottom: 26px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 170' preserveAspectRatio='none'%3E%3Cpath d='M0 0H400V138C330 168 270 128 200 146C130 164 70 128 0 152Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 170' preserveAspectRatio='none'%3E%3Cpath d='M0 0H400V138C330 168 270 128 200 146C130 164 70 128 0 152Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; transition: transform 1.2s var(--courbe); }
.pilier:hover .matiere { transform: scale(1.04); }
.pilier { text-align: center; }
.pilier .matiere { height: 130px; margin-bottom: 0; }
.pilier h3, .pilier p { padding: 0 28px; }
.portrait { width: 132px; height: 132px; margin: -84px auto 18px; border-radius: 50%; position: relative; overflow: hidden; background: #F7F4EE url("../images/matieres/lin-ivoire.webp") 0 0 / 260px; box-shadow: 0 0 0 6px #fff, 0 18px 30px -16px rgba(20,24,20,.4); display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.initiale { font-family: var(--titre); font-weight: 200; font-size: 64px; color: var(--basilic); line-height: 1; }
.pilier .role { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--laiton); margin: 4px 0 12px; }
.equipe-titre { font-size: 22px; font-weight: 600; margin: 0 0 24px; color: var(--encre-2); }
#maison .note-exemple { margin-top: 22px; }
.piliers.equipe { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.photo-equipe { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 18px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M0 0H400V472C330 498 270 462 200 478C130 494 70 462 0 484Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M0 0H400V472C330 498 270 462 200 478C130 494 70 462 0 484Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.photo-equipe img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--courbe); }
.pilier:hover .photo-equipe img { transform: scale(1.04); }
.equipe .pilier h3, .equipe .pilier p { padding: 0 22px; }
@media (max-width: 1100px) { .piliers.equipe { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .piliers.equipe { grid-template-columns: 1fr; } }
.pilier > svg { width: 56px; height: 56px; position: relative; margin-bottom: 40px; }
.pilier h3 { font-size: 23px; font-weight: 700; position: relative; }
.pilier p { color: var(--encre-2); font-size: 15.5px; margin-top: 10px; position: relative; }

/* Apparitions */
.monte { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform 1s var(--courbe); transition-delay: var(--d, 0s); }
.monte.vu { opacity: 1; transform: none; }

/* Nous trouver */
.infos-grille { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }
.plan { border-radius: var(--rayon); background: #F3F3F0; box-shadow: var(--relief); overflow: hidden; position: relative; aspect-ratio: 640 / 480; align-self: center; }
.plan svg { width: 100%; height: 100%; display: block; }
.plan .rue { stroke: #FFFFFF; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.plan .ilot { fill: #E7E7E2; opacity: 0; transform: scale(.92); transform-box: fill-box; transform-origin: center; }
.plan .parc { fill: #DDE3D6; }
.plan .rails { stroke: #CFCFC8; }
.plan .trajet { fill: none; stroke: var(--basilic); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.plan .trajet-pointille { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0; }
.plan text { font-family: var(--texte); font-size: 13px; font-weight: 600; fill: #8F938C; }
.plan .marqueur { opacity: 0; transform: translateY(-70px); transform-box: fill-box; transform-origin: 50% 100%; }
.plan .onde { fill: var(--tomate); opacity: 0; transform-box: fill-box; transform-origin: center; }
.plan .bulle { opacity: 0; transform: translateY(10px) scale(.9); transform-box: fill-box; transform-origin: 50% 100%; }
.plan .marcheur { opacity: 0; }
.plan.vu .rue { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--courbe); transition-delay: var(--d, 0s); }
.plan.vu .ilot { opacity: 1; transform: none; transition: opacity .6s, transform .8s var(--courbe); transition-delay: var(--d, 0s); }
.plan.vu .trajet { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.45,0,.25,1) .9s; }
.plan.vu .trajet-pointille { opacity: .9; transition: opacity .4s 2.7s; }
.plan.vu .marcheur { opacity: 1; transition: opacity .2s .9s; }
.plan.vu .marqueur { animation: chute .9s cubic-bezier(.3,1.6,.5,1) 2.5s forwards; }
.plan.vu .onde { animation: onde 2.2s ease-out 3.2s infinite; }
.plan.vu .bulle { opacity: 1; transform: none; transition: opacity .4s 3.1s, transform .6s cubic-bezier(.3,1.5,.5,1) 3.1s; }
@keyframes chute { 0% { opacity: 0; transform: translateY(-70px); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes onde { 0% { opacity: .45; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.6); } }
.revoir { position: absolute; right: 16px; bottom: 16px; height: 38px; padding: 0 14px; font-size: 13px; font-weight: 600; border: 0; border-radius: 99px; background: var(--papier); cursor: pointer; box-shadow: var(--relief); }
.cartes-infos { display: grid; gap: 24px; }
.carte-info { border-radius: var(--rayon); background: var(--gris); padding: 30px; }
.carte-info h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.horaires { margin: 0; display: grid; gap: 12px; }
.horaires div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 15.5px; }
.horaires div:last-child { border: 0; padding: 0; }
.horaires dt { font-weight: 600; }
.horaires dd { margin: 0; color: var(--encre-2); text-align: right; }
.horaires .ferme dd { color: var(--laiton); font-weight: 600; }
.carte-info p { color: var(--encre-2); font-size: 15.5px; }
.coord { margin-top: 18px; display: grid; gap: 6px; font-size: 15.5px; }
.coord a { font-weight: 600; text-decoration: none; }
.boutons-infos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.note-exemple { font-size: 12.5px; color: var(--encre-3); margin-top: 16px; }

/* Bandeau de fin */
.fin { background: var(--canard) url("../images/matieres/velours-canard.webp") center / 700px; color: #F4F1EA; padding: clamp(90px, 12vw, 150px) 24px; text-align: center; position: relative; overflow: hidden; }
.fin h2 { font-size: clamp(48px, 8vw, 110px); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; }
.fin h2 em { font-style: normal; font-weight: 200; }
.fin p { margin-top: 18px; font-size: 19px; opacity: .8; }
.fin .gros-numero { display: inline-block; margin-top: 34px; font-family: var(--titre); font-weight: 700; font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.02em; color: #F4F1EA; text-decoration: none; border-bottom: 3px solid rgba(255,255,255,.3); transition: border-color .3s; }
.fin .gros-numero:hover { border-color: #fff; }
.fin .assiette-deco { position: absolute; width: clamp(150px, 13vw, 200px); height: auto; aspect-ratio: 1; opacity: .97; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.fin .deco-g { left: 3%; top: 17%; transform: rotate(-18deg); }
.fin .deco-d { right: 3%; bottom: 15%; transform: rotate(20deg); }
@media (max-width: 1100px) { .fin .assiette-deco { display: none; } }
.fin h2, .fin p, .fin .gros-numero { position: relative; z-index: 1; }

/* Pied de page */
#pied { background: var(--blanc) var(--grain); padding: 48px 24px 90px; }
.pied-in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; font-size: 14.5px; color: var(--encre-2); }
.pied-in .liens { display: flex; gap: 22px; flex-wrap: wrap; }
.pied-in .liens a { text-decoration: none; font-weight: 600; color: var(--encre); }
.pied-in .liens a:hover { text-decoration: underline; }
.credit { width: 100%; font-size: 12.5px; color: var(--encre-3); padding-top: 22px; border-top: 1px solid var(--gris-2); }

.etiquette-maquette { position: fixed; left: 16px; bottom: 16px; z-index: 60; margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 7px 12px; border-radius: 99px; background: var(--encre); color: #fff; opacity: .88; pointer-events: none; }

/* Pages de texte */
.page-texte { padding: calc(var(--haut) + 64px) 24px 100px; }
.page-texte .cadre { max-width: 860px; }
.page-texte h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; margin-bottom: 18px; }
.page-texte .chapo { margin-bottom: 48px; }
.bloc { padding: 26px 0; border-top: 1px solid var(--gris-2); }
.bloc h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.bloc p { color: var(--encre-2); margin-top: 6px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th, .tableau td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--gris-2); vertical-align: top; }
.tableau th { font-family: var(--titre); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3); }
.tableau td:first-child { font-weight: 600; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puces span { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--gris); }
.liste-14 { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.liste-14 li { font-size: 14px; padding: 6px 12px; border-radius: 99px; background: color-mix(in oklab, var(--tomate) 14%, white); }
.retour { display: inline-flex; margin-top: 40px; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 900px) {
  :root { --haut: 62px; }
  .bandeau-in { padding: 0 16px; gap: 12px; }
  .nav { display: none; }
  .appel { margin-left: auto; width: 44px; padding: 0; justify-content: center; }
  .appel .appel-texte { display: none; }
  .burger { display: grid; }
  .logo { font-size: 20px; }
  .logo svg { width: 30px; height: 30px; }
  .panneau { display: flex; flex-direction: column; gap: 4px; position: fixed; left: 0; right: 0; top: var(--haut); background: #fff; padding: 16px 16px 28px; border-bottom: 1px solid var(--gris-2); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .4s var(--courbe), visibility .3s; }
  .ouvert .panneau { opacity: 1; transform: none; visibility: visible; }
  .panneau a { text-decoration: none; font-family: var(--titre); font-weight: 700; font-size: 30px; padding: 8px 4px; letter-spacing: -.02em; }
  .panneau .bouton { margin-top: 14px; font-size: 16px; align-self: flex-start; padding: 0 24px; }
  .ardoise ul { grid-template-columns: 1fr; gap: 24px; }
  .maison-grille { grid-template-columns: 1fr; gap: 20px; }
  .piliers { grid-template-columns: 1fr; }
  .infos-grille { grid-template-columns: 1fr; }
  .entete { margin-bottom: 32px; }
  .etiquette-maquette { left: auto; right: 12px; bottom: 12px; font-size: 10.5px; }
}
@media (max-width: 520px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .famille { height: 42px; font-size: 15px; padding: 0 16px 0 13px; }
  .carte-info { padding: 24px 20px; }
  .horaires div { flex-direction: column; gap: 2px; }
  .horaires dd { text-align: left; }
  .tableau th:nth-child(2), .tableau td { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bande-rail { animation: none; }
  .monte { opacity: 1; transform: none; transition: none; }
  .plan .rue, .plan .trajet { stroke-dashoffset: 0 !important; transition: none !important; }
  .plan .ilot, .plan .marqueur, .plan .bulle, .plan .trajet-pointille { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .indice i::after { animation: none; }
}

/* ---------- Matières nobles et courbes douces ---------- */
.socle { position: absolute; inset: -6%; border-radius: 50%; background: #F4F2EC url("../images/matieres/marbre.webp") center / cover; box-shadow: 0 1px 1px rgba(255,255,255,.9) inset, 0 -2px 6px rgba(20,24,20,.06) inset, 0 30px 60px -30px rgba(20,24,20,.35); pointer-events: none; }
/* bords ondulés : une courbe douce en haut et en bas des sections de couleur ou de matière */
.vague-haut, .vague-bas { position: relative; }
.vague-haut::before, .vague-bas::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(34px, 5vw, 76px); pointer-events: none; z-index: 0; }
.vague-haut::before { top: -1px; background: var(--avant, #fff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V28C1210 64 980 14 720 40C420 70 210 6 0 46Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V28C1210 64 980 14 720 40C420 70 210 6 0 46Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.vague-bas::after { bottom: -1px; background: var(--apres, #fff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V34C230 70 460 10 720 38C1010 66 1230 12 1440 50V80Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V34C230 70 460 10 720 38C1010 66 1230 12 1440 50V80Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
@container (max-width: 760px) { .socle { inset: -5%; } }
