/* Nouvell'Optique — base commune : jetons, typographie, grille large, composants.
   La paire (WebGL) a sa propre feuille : /assets/css/paire.css (scène). */

@font-face { font-family: "Darker Grotesque"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/darker-grotesque-latin.woff2) format("woff2"); }
@font-face { font-family: "Maven Pro"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/maven-pro-latin.woff2) format("woff2"); }

/* L'avancement du détourage (0 = palet rond, 1 = verre du logo) */
@property --t { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  --blanc: #FFFFFF;
  --mur: #F2F3F3;
  --encre: #141414;
  --texte: #4A4C52;
  --orange: #EB5A32;
  --orange-texte: #B8401E;
  --filet: #E3E3E1;
  --feutre: #E6E8E8;
  --sur-encre: #C9CACD;

  --f-titre: "Darker Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-texte: "Maven Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --marge: 24px;
  --gouttiere: 24px;
  --tete: 76px;
  --mesure: 36em;
  --rayon: 999px;
  /* la forme des boutons : celle d un verre, haut plus plat, bas plus rond */
  --forme: 10px 10px 22px 22px;
  --forme-petite: 8px 8px 16px 16px;
  --sortie: cubic-bezier(.2, .7, .2, 1);

  /* Les deux verres du logo, à leur forme exacte (tracé du logo) */
  --verre-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='62 20 378 220' preserveAspectRatio='none'%3E%3Cpath d='M62 100c0-60 58-80 183-80s195 20 195 65c0 35-15 75-30 95-30 45-100 60-180 60-100 0-168-50-168-140Z'/%3E%3C/svg%3E");
  --verre-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='560 20 378 220' preserveAspectRatio='none'%3E%3Cpath d='M938 100c0-60-58-80-183-80S560 40 560 85c0 35 15 75 30 95 30 45 100 60 180 60 100 0 168-50 168-140Z'/%3E%3C/svg%3E");
}
@media (max-width: 760px) { :root { --marge: 16px; --gouttiere: 16px; --tete: 64px; } html { scroll-padding-bottom: 90px; } }

/* ---------- Socle ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--tete) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--blanc); color: var(--texte);
  font: 400 18px/1.6 var(--f-texte); font-kerning: normal;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; max-width: var(--mesure); }
strong { font-weight: 600; color: var(--encre); }
h1, h2, h3, h4 { margin: 0; color: var(--encre); font-family: var(--f-titre); font-weight: 800; line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(54px, 8.4vw, 150px); }
h2 { font-size: clamp(44px, 5.6vw, 96px); }
h3 { font-size: clamp(30px, 2.6vw, 42px); line-height: 1; }
.titre-suite { display: block; color: var(--texte); font-weight: 700; }
::selection { background: var(--orange); color: var(--encre); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
.sur-encre :focus-visible, .pied :focus-visible { outline-color: var(--orange); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.evitement { position: fixed; left: var(--marge); top: -100px; z-index: 100; background: var(--encre); color: var(--blanc); padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.evitement:focus { top: 12px; }

/* ---------- Grille large ---------- */
.large { padding-inline: var(--marge); }
.grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); }
.partie { position: relative; padding-block: clamp(72px, 8.5vw, 136px); }
.partie--mur { background: var(--mur); }
.texte-courant { font-size: 18px; }
.texte-courant p { max-width: var(--mesure); }
.chapo { font-size: clamp(19px, 1.35vw, 22px); line-height: 1.55; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--forme); border: 2px solid var(--encre);
  background: var(--encre); color: var(--blanc); font: 600 17px/1 var(--f-texte);
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bouton:hover { background: #2a2a2a; border-color: #2a2a2a; text-decoration: none; }
.bouton svg { width: 20px; height: 20px; flex: none; }
.bouton--appel { background: var(--orange); border-color: var(--orange); color: var(--encre); }
.bouton--appel:hover { background: #F06D49; border-color: #F06D49; }
.bouton--clair { background: transparent; color: var(--encre); }
.bouton--clair:hover { background: var(--encre); color: var(--blanc); }
.sur-encre .bouton--clair { color: var(--blanc); border-color: var(--blanc); }
.sur-encre .bouton--clair:hover { background: var(--blanc); color: var(--encre); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton-icone {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--forme-petite);
  border: 1.5px solid var(--filet); background: var(--blanc); color: var(--encre);
}
.bouton-icone:hover { border-color: var(--encre); }
.bouton-icone svg { width: 20px; height: 20px; }

/* ---------- En-tête et logo vivant ---------- */
.tete {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--tete);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--marge);
  background: rgb(255 255 255 / .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.tete.est-defilee { border-bottom-color: var(--filet); }
body { padding-top: var(--tete); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); flex: none; }
.logo:hover { text-decoration: none; }
.logo__paire { width: 92px; height: auto; overflow: visible; }
.logo__mot { font: 800 27px/1 var(--f-titre); letter-spacing: -.01em; }
.logo__picto { transition: opacity .35s; }
/* Le verre gauche du logo : sur l accueil, l état présent (data-etape, réglé par site.js) ;
   ailleurs, le lieu de la page (data-lieu du html), fixe. */
.logo__picto { opacity: 0; }
html:is(:not([data-etape]), [data-etape="lieu"], [data-etape="livraison"]):is(:not([data-lieu]), [data-lieu="domicile"]) .logo__picto[data-picto="maison"],
html:is(:not([data-etape]), [data-etape="lieu"], [data-etape="livraison"])[data-lieu="residence"] .logo__picto[data-picto="residence"],
html:is(:not([data-etape]), [data-etape="lieu"], [data-etape="livraison"])[data-lieu="entreprise"] .logo__picto[data-picto="entreprise"],
html[data-etape="route"] .logo__picto[data-picto="route"],
html[data-etape="valise"] .logo__picto[data-picto="valise"],
html[data-etape="atelier"] .logo__picto[data-picto="atelier"] { opacity: 1; }
/* la voiture du verre droit part sur la route */
.logo__voiture { transition: opacity .35s; }
html[data-etape="route"] .logo__voiture { opacity: 0; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 6px;
  font: 500 16px/1 var(--f-texte); color: var(--encre); text-decoration: none;
}
.nav a:hover { background: var(--mur); }
.nav a, .tete__numero, .logo__mot { white-space: nowrap; }
.nav ul { flex-wrap: nowrap; }
/* portables (1241 à 1500 px) : on resserre sans jamais couper un libellé */
@media (max-width: 1500px) {
  .tete { gap: 16px; }
  .nav ul { gap: 0; }
  .nav a { padding: 10px 9px; font-size: 15px; }
  .logo__paire { width: 80px; }
  .logo__mot { font-size: 24px; }
  .tete__numero { padding: 0 16px; font-size: 16px; }
}
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.tete__contact { display: flex; align-items: center; gap: 8px; }
.tete__numero { min-height: 46px; padding: 0 20px; font-size: 17px; }
.tete__numero span { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.tete__menu, .tete__appel-court { display: none; }
@media (max-width: 1240px) {
  .nav { display: none; }
  .tete__contact { margin-left: auto; }
  .tete__menu { display: inline-flex; }
}
@media (max-width: 760px) {
  .tete { gap: 12px; }
  .logo__paire { width: 70px; }
  .logo__mot { font-size: 23px; }
  .tete__numero, .tete__copier { display: none; }
  .tete__menu { min-height: 44px; padding: 0 18px; }
}

/* ---------- Menu (téléphone et tablette) ---------- */
.menu-tel {
  margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(420px, 100vw); max-width: 100vw;
  border: 0; padding: 0; background: var(--blanc); color: var(--encre);
}
.menu-tel::backdrop { background: rgb(20 20 20 / .45); }
.menu-tel__haut { display: flex; justify-content: space-between; align-items: center; height: var(--tete); padding-inline: var(--marge); border-bottom: 1px solid var(--filet); }
.menu-tel__titre { font: 800 26px/1 var(--f-titre); }
.menu-tel ul { list-style: none; margin: 0; padding: 12px var(--marge); }
.menu-tel li a { display: block; padding: 12px 0; font: 800 38px/1 var(--f-titre); text-decoration: none; border-bottom: 1px solid var(--filet); }
.menu-tel li a[aria-current="page"] { color: var(--orange-texte); }
.menu-tel .boutons { padding: 20px var(--marge); }
.menu-tel .bouton { flex: 1; }

/* ---------- Barre Appeler / SMS au téléphone ---------- */
.barre-tel { display: none; }
@media (max-width: 760px) {
  .barre-tel {
    position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px var(--marge) calc(8px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--filet);
  }
  .barre-tel .bouton { min-height: 50px; padding: 0 12px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ---------- Fil d'Ariane (pages intérieures) ---------- */
.fil { padding: 18px var(--marge) 0; font-size: 15px; position: relative; z-index: 2; }
.fil ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.fil li + li::before { content: "/"; margin-right: 6px; color: var(--texte); }
.fil a { color: var(--texte); }
.fil [aria-current="page"] { color: var(--encre); font-weight: 600; }

/* ---------- Les photos, et le verre (rare) ----------
   Par défaut, <figure class="verre"> est une photo rectangulaire, franche, sans animation :
     <figure class="verre"><div class="verre__matiere"><img …></div></figure>
   Une ou deux fois par page, le moment : la forme exacte du verre du logo, biseau visible à l'arrêt,
   taillée au défilement (la matière, carrée, entre comme un palet qui porte déjà la photo ;
   un front de taille fait le tour et laisse la forme du verre) :
     <figure class="verre verre--moment [verre--droit]">
       <div class="verre__matiere"><img …></div>
       <svg class="verre__biseau" viewBox="62 20 378 220" preserveAspectRatio="none" aria-hidden="true"><path pathLength="1" d="(verre gauche)"/><path class="verre__filet" d="(même tracé)"/></svg>
     </figure>
   (verre droit : viewBox="560 20 378 220" et le tracé du verre droit ; recopier ceux de l'accueil.) */
.verre { position: relative; margin: 0; }
.verre__matiere { position: relative; overflow: hidden; border-radius: 6px; background: var(--mur); }
.verre__matiere img { display: block; width: 100%; height: auto; }
.verre--nb img { filter: grayscale(1); }
.verre__biseau { display: none; }

.verre--moment { aspect-ratio: 378 / 220; --t: 1; }
.verre--moment .verre__matiere {
  position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 1; translate: 0 -50%; overflow: visible; border-radius: 0;
  -webkit-mask-image: var(--verre-g), conic-gradient(from 270deg, transparent calc(var(--t) * 1turn), #000 0), radial-gradient(circle closest-side, #000 99.6%, transparent 100%);
  mask-image: var(--verre-g), conic-gradient(from 270deg, transparent calc(var(--t) * 1turn), #000 0), radial-gradient(circle closest-side, #000 99.6%, transparent 100%);
  -webkit-mask-size: 100% 58.2%, 100% 100%, 100% 100%; mask-size: 100% 58.2%, 100% 100%, 100% 100%;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-over, source-in; mask-composite: add, intersect;
}
.verre--moment.verre--droit .verre__matiere {
  -webkit-mask-image: var(--verre-d), conic-gradient(from 90deg, transparent calc(var(--t) * 1turn), #000 0), radial-gradient(circle closest-side, #000 99.6%, transparent 100%);
  mask-image: var(--verre-d), conic-gradient(from 90deg, transparent calc(var(--t) * 1turn), #000 0), radial-gradient(circle closest-side, #000 99.6%, transparent 100%);
}
/* le palet porte toujours la photo : elle couvre tout le carré */
.verre--moment .verre__matiere img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verre--moment .verre__biseau { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.verre__biseau path { fill: none; vector-effect: non-scaling-stroke; }
/* le biseau, visible à l'arrêt */
.verre__biseau .verre__filet { stroke: rgb(255 255 255 / .8); stroke-width: 2; opacity: calc((var(--t) - .9) * 10); }
/* le front de taille, pendant le geste */
.verre__biseau path:not(.verre__filet) {
  stroke: #fff; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: .07 .93; stroke-dashoffset: calc(var(--t) * -1 + .07);
  opacity: min(1, calc(var(--t) * 14), calc((1 - var(--t)) * 14));
  filter: drop-shadow(0 0 3px rgb(255 255 255 / .9));
}
.verre figcaption { padding-top: 12px; font-size: 15px; line-height: 1.4; }
.verre--moment figcaption { position: absolute; left: 0; right: 0; top: 100%; }
/* sans JavaScript ou en mouvement réduit : déjà taillé (--t: 1) ; site.js règle --t au défilement */
html.js .verre--moment:not(.est-charge) .verre__matiere { visibility: hidden; }

/* ---------- Fenêtre <dialog> ---------- */
.fenetre {
  width: min(1040px, calc(100vw - 2 * var(--marge))); max-height: calc(100dvh - 2 * var(--marge));
  padding: 0; border: 0; border-radius: 28px; background: var(--blanc); color: var(--texte);
  box-shadow: 0 30px 80px rgb(20 20 20 / .25); overflow: auto;
}
.fenetre::backdrop { background: rgb(20 20 20 / .5); backdrop-filter: blur(4px); }
.fenetre[open] { animation: fenetre-entre .35s var(--sortie); }
@keyframes fenetre-entre { from { opacity: 0; scale: .97; } }
@media (prefers-reduced-motion: reduce) { .fenetre[open] { animation: none; } }
.fenetre__corps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 56px); }
.fenetre__fermer { position: absolute; top: 16px; right: 16px; z-index: 3; }
.fenetre h2 { font-size: clamp(38px, 4vw, 60px); margin-bottom: 20px; padding-right: 48px; }
.fenetre__appel { font: 800 30px/1 var(--f-titre); color: var(--encre); margin: 24px 0 12px; }
@media (max-width: 760px) {
  .fenetre { border-radius: 20px; }
  .fenetre__corps { grid-template-columns: 1fr; gap: 24px; }
  .fenetre__visuel { display: none; }
}

/* ---------- Copier le numéro, code à scanner ---------- */

/* ---------- La rangée de faits ----------
   <ul class="faits"><li><strong>Opticienne diplômée</strong></li><li><strong>5/5</strong> sur 82 avis Google</li>…</ul>
   Lisible d un coup d œil : une ou deux lignes au bureau, deux colonnes au téléphone, sans pictogramme. */
.faits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; font-size: 15px; line-height: 1.3; color: var(--texte); }
.faits li { padding: 2px 18px 2px 0; margin-right: 18px; border-right: 1px solid var(--filet); }
.faits li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.faits strong { display: block; font: 800 22px/1.05 var(--f-titre); color: var(--encre); }
@media (max-width: 760px) {
  .faits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .faits li { border: 0; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--orange); }
  .faits li:last-child { padding-left: 12px; }
}

/* ---------- Composants partagés : avis un à un, plateau, contact direct ---------- */

/* Avis un à un (site.js) :
   <div data-avis>
     <p class="avis__mesure"><span class="avis__note">5/5</span> <span class="avis__nombre">82 avis Google</span></p>
     <a class="bouton bouton--clair" href="https://search.google.com/local/writereview?placeid=ChIJ6W71OV515kcRG2573IJ-ZLc" rel="noopener" target="_blank">Écrire un avis<span class="visuellement-cache"> (nouvel onglet)</span></a>
     <a class="bouton bouton--clair" href="https://www.google.com/maps/place/?q=place_id:ChIJ6W71OV515kcRG2573IJ-ZLc" rel="noopener" target="_blank">Voir les 82 avis sur Google<span class="visuellement-cache"> (nouvel onglet)</span></a>
     <div class="avis__liste" aria-live="polite">
       <figure class="avis__un"><blockquote><p>…</p></blockquote><figcaption>Nom, avis Google, 5/5, <time datetime="…">…</time></figcaption></figure> …
     </div>
     <div class="avis__commandes" hidden>
       <button class="bouton-icone" type="button" data-avis-precedent>…</button>
       <p class="avis__compte"><span data-avis-rang>1</span> sur 10</p>
       <button class="bouton-icone" type="button" data-avis-suivant>…</button>
     </div>
   </div>
   La mesure et le bouton peuvent aussi être posés hors de [data-avis] (l'accueil les met à gauche). */
.avis__mesure { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 40px 0 28px; }
.avis__note { font: 800 clamp(120px, 12vw, 210px)/.8 var(--f-titre); color: var(--encre); letter-spacing: -.02em; }
.avis__nombre { font: 800 clamp(34px, 3.2vw, 56px)/1 var(--f-titre); color: var(--encre); }
.avis__liste { min-height: 14em; }
.avis__un { margin: 0 0 56px; }
.avis__un blockquote { margin: 0; }
.avis__un blockquote p { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.45; color: var(--encre); max-width: 30em; }
.avis__un figcaption { font-size: 16px; }
html.js [data-avis] .avis__un { display: none; margin: 0; }
html.js [data-avis] .avis__un.est-montre { display: block; }
.avis__commandes { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.avis__compte { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; }

/* Plateau des coups de cœur :
   <ul class="plateau" role="list">
     <li class="plateau__case"><img src="/visuels/photos/monture-lacoste-plastique.webp" alt="…" width="290" height="162" loading="lazy"><p><span>Lunettes de vue</span> <strong>Lacoste</strong></p></li> …
   </ul>
   <div class="plateau-action"><button class="bouton" type="button" data-ouvre="modeles" aria-haspopup="dialog">Voir tous les modèles</button></div>
   La fenêtre #modeles est dans la coque : rien à ajouter dans la page. */
.plateau {
  list-style: none; margin: 0; padding: 10px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
  background: #D5D8D8; border-radius: 26px;
}
.plateau__case {
  background: var(--feutre); border-radius: 18px; padding: 20px 16px 18px;
  box-shadow: inset 0 2px 6px rgb(20 20 20 / .12);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.plateau__case img { width: 100%; mix-blend-mode: multiply; }
.plateau__case p { margin: 0; font-size: 15px; line-height: 1.35; color: var(--texte); }
.plateau__case p span { display: block; }
.plateau__case strong { font: 800 26px/1 var(--f-titre); color: var(--encre); }
.plateau-action { margin-top: 28px; }
@media (max-width: 1000px) { .plateau { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .plateau { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px; gap: 6px; border-radius: 20px; }
  .plateau__case { padding: 14px 10px; border-radius: 14px; }
  .plateau__case strong { font-size: 22px; }
}

/* Contact direct, avec le code à scanner (au bureau seulement) :
   <div class="contact-direct">
     <p class="contact-direct__numero"><a href="tel:+33660418211">06 60 41 82 11</a></p>
     <div class="boutons">
       <a class="bouton bouton--appel" href="tel:+33660418211">Appeler</a>
       <a class="bouton" href="sms:+33660418211?&amp;body=Bonjour%2C%20je%20souhaite%20un%20rendez-vous.">Écrire un SMS</a>
       <button class="bouton bouton--clair" type="button" data-copier="06 60 41 82 11" aria-describedby="copie-ID">Copier le numéro</button>
     </div>
     <p class="copie-etat" id="copie-ID" role="status" aria-live="polite"></p>
     <p class="contact-direct__horaires">Je suis disponible du lundi au samedi de 9h00 à 20h00. Sur rendez-vous.</p>
     <div class="code-scan">
       <svg class="code-scan__code" viewBox="-2 -2 37 37" shape-rendering="crispEdges" role="img" aria-labelledby="code-ID">(le tracé de l'accueil, à recopier)</svg>
       <p id="code-ID">Scannez ce code avec votre téléphone : il ouvre un SMS prêt à envoyer au 06 60 41 82 11.</p>
     </div>
   </div> */
.contact-direct__numero { margin: 0 0 20px; font: 800 clamp(56px, 6vw, 104px)/.9 var(--f-titre); letter-spacing: -.01em; }
.contact-direct__numero a { text-decoration: none; color: var(--encre); font-variant-numeric: tabular-nums; }
.contact-direct__numero a:hover { color: var(--orange-texte); }
.contact-direct__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.contact-direct__horaires { margin: 0; max-width: 17em; font-size: 15px; line-height: 1.4; color: var(--encre); font-weight: 500; }
.contact-direct__apercu { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; }
.contact-direct__bulle { margin: 0; padding: 14px 18px; max-width: 24em; background: var(--mur); color: var(--encre); font-size: 16px; line-height: 1.45; border-radius: 20px 20px 20px 6px; }
.contact-direct__apercu figcaption { font-size: 16px; font-weight: 600; color: var(--encre); }
.copie-etat { font-size: 15px; color: var(--encre); min-height: 1.4em; }
.code-scan { display: none; align-items: center; gap: 20px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--filet); }
.code-scan__code { width: 128px; height: 128px; flex: none; }
.code-scan p { margin: 0; font-size: 16px; max-width: 22em; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) { .code-scan { display: flex; } }
@media (max-width: 760px) {
  .contact-direct__numero { font-size: 56px; }
  .contact-direct .boutons .bouton { flex: 1 1 auto; }
}

/* Une image par lieu, seule celle du lieu choisi (data-lieu du html) est montrée */
[data-lieu-image] { display: none; }
html:not([data-lieu]) [data-lieu-image="domicile"],
html[data-lieu="domicile"] [data-lieu-image="domicile"],
html[data-lieu="residence"] [data-lieu-image="residence"],
html[data-lieu="entreprise"] [data-lieu-image="entreprise"] { display: block; }

/* « Lire la suite » : le texte reste dans le HTML */
.suite summary { display: inline-block; cursor: pointer; font-weight: 600; color: var(--encre); text-decoration: underline; text-underline-offset: .2em; list-style: none; }
.suite summary::-webkit-details-marker { display: none; }
.suite summary::after { content: " +"; }
.suite[open] summary::after { content: " –"; }
.suite[open] summary { margin-bottom: 12px; }

/* ---------- Pied de page ---------- */
.pied { position: relative; z-index: 2; background: var(--encre); color: var(--sur-encre); padding: clamp(72px, 9vw, 140px) var(--marge) 32px; overflow: hidden; }
.pied a { color: var(--blanc); }
.pied h2 { color: var(--blanc); font-size: clamp(32px, 3.2vw, 52px); max-width: 16ch; }
/* La paire au repos, le lieu choisi dans son verre gauche */
.pied__haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.pied__paire { position: relative; width: min(420px, 100%); aspect-ratio: 1000 / 258; flex: none; }
.pied__paire svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pied__verre { position: absolute; left: 6.2%; top: 7.75%; width: 37.8%; height: 85.3%; background: #2a2a2a;
  -webkit-mask: var(--verre-g) center / 100% 100% no-repeat; mask: var(--verre-g) center / 100% 100% no-repeat; }
.pied__verre img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; }
.pied__grille { margin-top: clamp(56px, 7vw, 110px); row-gap: 40px; }
.pied__bloc { grid-column: span 3; }
.pied__bloc--large { grid-column: span 3; }
.pied__titre { font: 600 15px/1.4 var(--f-texte); color: var(--sur-encre); margin: 0 0 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: 0 0 8px; }
.pied ul a { text-decoration: none; font-size: 17px; }
.pied ul a:hover { text-decoration: underline; }
.pied address { font-style: normal; font-size: 17px; line-height: 1.6; }
.pied__numero { font: 800 clamp(34px, 3vw, 48px)/1 var(--f-titre); color: var(--blanc); text-decoration: none; display: inline-block; margin-bottom: 10px; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #34353a; font-size: 15px; }
.pied__bas p { margin: 0; }
@media (max-width: 1000px) { .pied__bloc, .pied__bloc--large { grid-column: span 6; } }
@media (max-width: 560px) { .pied__bloc { grid-column: span 6; } .pied__bloc--large { grid-column: span 12; order: -1; } }
/* téléphone : un seul écran de liens (lignes serrées, réseaux sur une ligne) */
@media (max-width: 560px) { .pied li { margin: 0 0 2px; } .pied__grille { row-gap: 24px; margin-top: 32px; } .pied__bloc:last-child ul { display: flex; flex-wrap: wrap; gap: 4px 18px; } .pied__bloc:last-child { grid-column: span 12; } }

/* ---------- La toile de la paire (dimensions réservées par l'accueil) ---------- */
.paire-ancre { position: relative; }
.paire-ancre .paire-repli { width: 100%; height: 100%; object-fit: contain; }

/* =====================================================================
   v7 — le système de compositions (outils/compositions.md, corrections du juré en tête).
   Tout ce qui suit est ajouté : les anciennes classes restent pour les pages pas encore refaites.
   Une page refaite s'inscrit avec l'attribut data-v7 sur <body> (outils/pages.json, champ « corps »).
   Les compositions C1 à C10 et les gestes sont dans /assets/css/compositions.css ;
   le bloc d'appel C11, l'en-tête, le pied et la transition entre pages sont ici.
   Mode d'emploi : outils/compositions-mode-emploi.md
   ===================================================================== */

/* ---------- Les jetons : quatre matières, l'échelle à 1920 ---------- */
@property --k { syntax: "<number>"; inherits: true; initial-value: 1; }
:root {
  --chene: url(/visuels/communs/chene-plan.webp);
  --chene-moyen: #D9C2A0;          /* valeur moyenne relevée sur chene-plan, pour les filets et l'attente */
  --chene-filet: #B89A72;
  --acetate-clair: color-mix(in srgb, #EB5A32 12%, #fff);   /* voile derrière une photo détourée, jamais un fond de page */
  --sur-orange: #141414;

  --t-mesure: clamp(112px, 24vw, 520px);   /* un mot ou un chiffre du texte, à l'échelle (460 px à 1920) */
  --t-h1: clamp(46px, 6.4vw, 140px);       /* 123 px */
  --t-h2: clamp(34px, 4.4vw, 100px);       /* 84 px */
  --t-ligne: clamp(26px, 3.2vw, 68px);     /* 61 px, lignes C9 */
  --t-chapo: clamp(20px, calc(.9vw + 13px), 32px);  /* 30 px */
  --t-corps: clamp(18px, calc(.4vw + 13px), 21px);  /* 21 px */
  --t-legende: 16px;                       /* étiquettes seulement */

  --ombre-feuille: 0 1px 0 rgb(20 20 20 / .06), 0 2px 2px rgb(20 20 20 / .10);
}
@media (max-width: 760px) { :root { --chene: url(/visuels/communs/chene-plan-1200.webp); } }
/* Une page v7 : la marge et la gouttière de la grille de 24 colonnes, l'en-tête à l'échelle */
body[data-v7] {
  --marge: clamp(16px, 2.5vw, 64px);
  --gouttiere: clamp(12px, 1.1vw, 28px);
  font-size: var(--t-corps);
}
@media (min-width: 1600px) {
  body[data-v7] { --tete: 84px; }
  body[data-v7] .logo__paire { width: 104px; }
  body[data-v7] .logo__mot { font-size: 29px; }
}
/* l'en-tête n'est transparent que sur l'ouverture C1 et sur le lieu C11 tant qu'il remplit l'écran (compositions.js) ; opaque partout ailleurs */
body[data-v7] .tete { background: rgb(255 255 255 / .96); transition: border-color .3s, background-color .3s; }
body[data-v7] .tete.tete--transparente { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }

/* ---------- La grille de 24 colonnes ---------- */
.g24 {
  display: grid; grid-template-columns: repeat(24, minmax(0, 1fr));
  column-gap: var(--gouttiere); padding-inline: var(--marge);
}
@media (max-width: 760px) { .g24 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .g24 > * { grid-column: 1 / -1; } }

/* ---------- Les matières (une seule pleine page par écran) ---------- */
.m-blanc { background-color: var(--blanc); }
.m-chene { background: var(--chene-moyen) var(--chene) center top / max(100%, 1920px) auto repeat-y; }
.m-acetate { background: var(--orange); color: var(--sur-orange); }
.m-encre { background: var(--encre); color: var(--sur-encre); }
.m-encre :is(h1, h2, h3) { color: var(--blanc); }
.m-acetate :is(h1, h2, h3, p, strong) { color: var(--sur-orange); }

/* La feuille posée sur l'établi : blanche, ombre de 1 à 2 px, jamais de flou */
.feuille { background: var(--blanc); color: var(--texte); box-shadow: var(--ombre-feuille); }
.feuille p { max-width: 62ch; }

/* L'échelle, en classes (un mot du texte mis à l'échelle ; jamais un coût) */
.t-mesure { font: 800 var(--t-mesure)/.78 var(--f-titre); letter-spacing: -.035em; color: var(--encre); }
.t-h2 { font: 800 var(--t-h2)/.92 var(--f-titre); letter-spacing: -.015em; color: var(--encre); }
.t-ligne { font: 800 var(--t-ligne)/1 var(--f-titre); letter-spacing: -.01em; color: var(--encre); }
.t-chapo { font-size: var(--t-chapo); line-height: 1.45; color: var(--encre); }
.t-corps { font-size: var(--t-corps); line-height: 1.6; }
.t-legende { font-size: var(--t-legende); line-height: 1.35; }
:where(body[data-v7]) h1 { font-size: var(--t-h1); line-height: .9; letter-spacing: -.02em; }
:where(body[data-v7]) h2 { font-size: var(--t-h2); line-height: .92; }
:where(body[data-v7]) .chapo { font-size: var(--t-chapo); line-height: 1.45; color: var(--encre); }
:where(body[data-v7]) p { max-width: 62ch; }
:where(body[data-v7]) .fil { font-size: var(--t-legende); }
:where(body[data-v7]) .bouton { min-height: 56px; font-size: 18px; padding: 0 28px; }

/* ---------- C11 · Le lieu (le bloc d'appel commun) ----------
   Balisage complet dans outils/compositions-mode-emploi.md. Le lieu vient de data-lieu du <html> ;
   le cadre garde le format 16:9 du rendu, pour que les verres (zones de lien) tombent sur la paire
   du rendu (visuels/paire-photo/rendus.json, verres_fraction). */
.c11 { position: relative; min-height: 100svh; overflow: hidden; background: #ECEAE6; isolation: isolate; }
html[data-lieu="domicile"] .c11, html:not([data-lieu]) .c11 { --g-x: .3519; --g-y: .6622; --g-l: .0506; --g-h: .06; --d-x: .4163; --d-y: .6689; --d-l: .055; --d-h: .06; --zone-y: .44; }
html[data-lieu="residence"] .c11 { --g-x: .2687; --g-y: .5544; --g-l: .0475; --g-h: .0456; --d-x: .33; --d-y: .5467; --d-l: .0488; --d-h: .0456; --zone-y: .12; }
html[data-lieu="entreprise"] .c11 { --g-x: .4125; --g-y: .4322; --g-l: .0462; --g-h: .0656; --d-x: .4719; --d-y: .4411; --d-l: .0556; --d-h: .0678; --zone-y: .62; }
.c11__scene { position: absolute; inset: 0; overflow: hidden; }
.c11__cadre { position: absolute; left: 50%; top: 50%; width: max(100%, calc(100svh * 16 / 9)); aspect-ratio: 16 / 9; translate: -50% -50%; }
.c11__rendu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c11__rendu[data-lieu-image] { display: none; }
html:not([data-lieu]) .c11__rendu[data-lieu-image="domicile"],
html[data-lieu="domicile"] .c11__rendu[data-lieu-image="domicile"],
html[data-lieu="residence"] .c11__rendu[data-lieu-image="residence"],
html[data-lieu="entreprise"] .c11__rendu[data-lieu-image="entreprise"] { display: block; }
/* les deux verres de la paire du rendu : le gauche appelle, le droit écrit */
.c11__verre {
  position: absolute; z-index: 2; border-radius: 40% 40% 48% 48%;
  left: calc(var(--g-x) * 100% - .5%); top: calc(var(--g-y) * 100% - .8%); width: calc(var(--g-l) * 100% + 1%); height: calc(var(--g-h) * 100% + 1.6%);
  color: var(--encre); text-decoration: none;
}
.c11__verre--d { left: calc(var(--d-x) * 100% - .5%); top: calc(var(--d-y) * 100% - .8%); width: calc(var(--d-l) * 100% + 1%); height: calc(var(--d-h) * 100% + 1.6%); }
.c11__verre:hover, .c11__verre:focus-visible { box-shadow: 0 0 0 3px var(--encre); outline: none; }
/* chaque verre porte son étiquette, reliée par un trait droit (comme les boutons de l'accueil) */
.c11__verre span {
  position: absolute; left: 50%; top: calc(100% + var(--trait, 72px)); translate: -50% 0; white-space: nowrap;
  padding: 12px 20px; border-radius: var(--forme-petite); background: var(--encre); color: var(--blanc);
  font: 600 18px/1 var(--f-texte);
}
.c11__verre--g span { background: var(--orange); color: var(--encre); translate: -80% 0; }
.c11__verre--d span { translate: -20% 0; }
.c11__verre span::before { content: ""; position: absolute; bottom: 100%; width: 2px; height: var(--trait, 72px); background: var(--encre); }
.c11__verre--g span::before { left: 80%; }
.c11__verre--d span::before { left: 20%; }
.c11__numero {
  position: absolute; z-index: 1; left: var(--marge); top: calc(var(--zone-y) * 100%); margin: 0; max-width: none !important;
  font: 800 clamp(64px, 9.6vw, 230px)/.8 var(--f-titre); letter-spacing: -.03em; white-space: nowrap;
}
.c11__numero a { color: var(--encre); text-decoration: none; font-variant-numeric: tabular-nums; }
.c11__numero a:focus-visible { outline-offset: 6px; }
.c11__fiche {
  position: absolute; z-index: 3; right: var(--marge); top: calc(var(--tete) + 3svh); bottom: 5svh;
  width: clamp(380px, 29vw, 600px); padding: clamp(28px, 2.6vw, 56px);
  display: flex; flex-direction: column; gap: 20px; overflow: auto;
}
.c11__fiche h2 { font-size: clamp(40px, 3.6vw, 76px); line-height: .92; }
.c11__fiche h2 .titre-suite { margin-top: .25em; font-size: .5em; line-height: 1.05; }
.c11__fiche .boutons .bouton { flex: 1 1 auto; }
.c11__fiche .contact-direct__horaires { font-size: var(--t-corps); max-width: none; }
.c11__fiche .code-scan { margin-top: 8px; }
.c11__fiche .code-scan p { font-size: var(--t-legende); }
.c11__fiche .copie-etat { margin: -10px 0 0; }
@media (max-width: 1000px) {
  .c11 { min-height: 0; background: var(--blanc); }
  .c11__scene { position: relative; height: 50svh; }
  .c11__cadre { translate: -41% -50%; }
  .c11__numero { position: relative; left: auto; top: auto; padding: 24px var(--marge) 0; font-size: 15vw; }
  .c11__fiche { position: relative; inset: auto; width: auto; margin: 16px var(--marge) 32px; box-shadow: none; padding: 0; overflow: visible; }
  .c11 { --trait: 30px; }
  .c11__verre span { padding: 9px 14px; font-size: 16px; }
  .c11__fiche .boutons .bouton { flex: 1 1 100%; }
}

/* ---------- Le pied de page : la paire B1 de face, les lieux dans ses ouvertures ----------
   Sur toutes les pages, y compris celles qui ont C11 (arbitrage 6 après le pilote). */
.pied__b1 { position: relative; width: min(64vw, 1400px); aspect-ratio: 2400 / 900; margin-right: calc(-1 * var(--marge) - 6vw); flex: none; }
.pied__b1 > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pied__ouverture { position: absolute; overflow: hidden; background: #2a2a2a; border-radius: 42% 42% 50% 50% / 38% 38% 62% 62%; }
.pied__ouverture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pied__ouverture--g { left: 16.4%; top: 21.6%; width: 29.2%; height: 46%; }
.pied__ouverture--d { left: 54.4%; top: 21.6%; width: 29.2%; height: 46%; }
.pied__ouverture--d img { object-position: 50% 60%; }
.pied__b1 .pied__ombre { opacity: .5; }
.pied:has(.pied__b1) .pied__haut { flex-wrap: nowrap; }
.pied:has(.pied__b1) h2 { font-size: var(--t-h2); max-width: 11ch; }
/* le geste du pied : les verres se remplissent du lieu et de la voiture quand la paire arrive à l'écran */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .pied__ouverture img { animation: pied-remplir linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .pied__ouverture--d img { animation-range: entry 25% cover 55%; }
  }
}
@keyframes pied-remplir { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 1000px) {
  .pied:has(.pied__b1) .pied__haut { flex-wrap: wrap; }
  .pied__b1 { width: 112vw; margin-right: calc(-1 * var(--marge) - 12vw); }
}
:where(body[data-v7]) :is(.pied ul a, .pied address, .pied p) { font-size: var(--t-corps); }
:where(body[data-v7]) .pied__titre { font-size: var(--t-legende); }

/* ---------- La transition entre pages (sans JS ; Firefox navigue normalement) ---------- */
@view-transition { navigation: auto; }
.logo { view-transition-name: paire; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
