/* ==========================================================================
   Démo express · la mise en page commune (outils/demo-express/base.css)
   Copiée telle quelle dans chaque démo (css/base.css). L'habillage
   (css/habillage.css) ne fait que poser les tokens et ajouter sa touche :
   on corrige ici, jamais dans la copie.

   Tokens attendus de l'habillage, en plus de ceux du socle (--filigrane-*,
   --assistant-*, --nav-*) :
     --fond --surface --texte --texte-doux --accent --accent-texte
     --ouverture-fond --ouverture-texte --pied-fond --pied-texte
     --titre --corps
   ========================================================================== */

:root {
  --marge: clamp(1.25rem, 4vw, 3.5rem);
  --nav-hauteur: 60px;
  --t-corps: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --rayon: 1.1rem;
}
/* Le filet suit le texte de la section où il est posé (une section sombre
   redéfinit --texte : le filet calculé sur :root ne la suivrait pas). */
:root, .section { --carte-filet: color-mix(in srgb, var(--texte) 12%, transparent); }

html { background: var(--fond); }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 var(--t-corps)/1.6 var(--corps); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.surtitre { font: 600 .78rem/1.2 var(--corps); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1.1rem; color: var(--accent-fort, var(--accent)); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.6rem;
  border-radius: var(--bouton-rayon, 999px); background: var(--accent); color: var(--accent-texte);
  text-decoration: none; font-weight: 700;
}
.bouton svg { width: 1.1rem; height: 1.1rem; flex: none; }
.lien-fleche { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; text-decoration: none; font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------------- 1. Le premier écran ---------------- */
.ouverture { --longueur: 190svh; background: var(--ouverture-fond); color: var(--ouverture-texte); }
.ouverture .scene__collant { display: grid; align-items: center; }
.ouverture__decor { position: absolute; inset: 0; pointer-events: none; }
.ouverture .toile { z-index: 2; pointer-events: none; }
.ouverture__texte {
  position: relative; z-index: 3;
  padding: var(--nav-hauteur) var(--marge) 0; max-width: 46rem;
  /* Le texte part vite et net : jamais un titre fantôme sur la signature. */
  opacity: clamp(0, calc((.24 - var(--p, 0)) * 8), 1);
  transform: translateY(calc(var(--p, 0) * -8vh));
}
.ouverture h1 { font-size: clamp(2.6rem, 1.5rem + 5.2vw, 6rem); margin-bottom: 1.3rem; }
.ouverture__intro { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: color-mix(in srgb, var(--ouverture-texte) 84%, transparent); max-width: 32rem; }
.ouverture__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.ouverture__indice {
  position: absolute; z-index: 3; left: 50%; bottom: 1.6rem; translate: -50% 0; margin: 0;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: clamp(0, calc((.06 - var(--p, 0)) * 14), .85);
}

/* ---------------- Sections ---------------- */
.section { padding: clamp(4.5rem, 11vw, 8.5rem) var(--marge); }
.section__tete { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section h2 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.2rem); }

/* ---------------- 2. La maison ---------------- */
.maison { background: var(--fond); }
.piliers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); counter-reset: pilier; }
.pilier { counter-increment: pilier; padding-top: 1.4rem; border-top: 1px solid var(--carte-filet); }
.pilier::before { content: counter(pilier, decimal-leading-zero); display: block; font: 600 .8rem/1 var(--corps); letter-spacing: .18em; color: var(--accent-fort, var(--accent)); margin-bottom: 1rem; }
.pilier h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .7rem; }
.pilier p { color: var(--texte-doux); margin: 0; }

/* ---------------- 3. L'offre ---------------- */
.offre { background: var(--surface); }
.carte-resto__tete { max-width: 44rem; margin-bottom: 2.2rem; }
.carte-resto__tete h2 { margin-bottom: 1rem; }
.carte-resto__intro { color: var(--texte-doux); font-size: 1.08rem; }
.carte-resto__onglets [role="tab"] { color: var(--texte); }
.carte-resto__liste strong { font-family: var(--titre); font-weight: 400; font-size: 1.3rem; }
.exemple { display: flex; gap: .6rem; align-items: baseline; }
.exemple::before { content: "Exemple"; flex: none; font: 700 .68rem/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 999px; border: 1px solid currentColor; }

/* ---------------- 4. Les atouts ---------------- */
.atouts { background: var(--fond); }
.atouts__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.4rem); }
.atout { background: var(--surface); border: 1px solid var(--carte-filet); border-radius: var(--rayon); padding: 1.5rem; }
.atout strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 1.35rem; margin-bottom: .5rem; }
.atout span { color: var(--texte-doux); }

/* ---------------- 5. Venir ---------------- */
/* content-visibility : la carte Google (iframe « lazy ») n'est plus demandée au
   premier écran quand la page est courte (600 Ko de plus, constaté le 27/10). */
.infos { content-visibility: auto; contain-intrinsic-size: auto 42rem; background: var(--surface); display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.infos h2 { margin-bottom: 2rem; }
.horaires { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.horaires th, .horaires td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--carte-filet); font-weight: 400; }
.horaires th { font-weight: 600; width: 40%; }
.horaires .incertain { color: var(--texte-doux); font-style: italic; }
.coordonnees { display: grid; gap: .8rem; }
.coordonnees a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-underline-offset: 4px; }
.carte-google { border: 0; width: 100%; min-height: 22rem; border-radius: var(--rayon); }

.pied { background: var(--pied-fond); color: color-mix(in srgb, var(--pied-texte) 78%, transparent); padding: 3rem var(--marge) 6.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.pied__nom { font-family: var(--titre); font-size: 1.5rem; color: var(--pied-texte); }

/* ---------------- Téléphone ---------------- */
@media (max-width: 760px) {
  .ouverture .scene__collant { align-items: end; }
  .ouverture__texte { padding-bottom: 5rem; }
  .ouverture__actions .lien-fleche, .ouverture__indice { display: none; }
  .ouverture__actions .bouton { width: 100%; }
  .piliers, .atouts__liste, .infos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) and (max-height: 700px) {
  .ouverture h1 { font-size: 2.2rem; }
  .ouverture__intro { font-size: .98rem; }
}
