/* =============================================================================
   Photo Planète Charmilles — feuille de style unique.
   Palette du logo seulement : noir (fond), blanc (encre), rouge (une bande pleine et l'action).
   Une famille : Archivo variable (wdth 62–125, wght 100–900), auto-hébergée.
   Pas de filets, pas d'ombres au repos, pas de dégradés : des champs plats qui se touchent net.
   ============================================================================= */

/* ---------- Police ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
  color-scheme: dark;
  --noir: #000000;
  --noir-surface: #161616;
  --blanc: #ffffff;
  --encre-sombre: #f2f2f2;       /* texte courant sur le noir */
  --gris-sombre: #a8a8a8;        /* texte secondaire sur le noir (8,6:1) */
  --clair: #ffffff;
  --clair-surface: #efefef;
  --encre-claire: #0a0a0a;
  --gris-clair: #5a5a5a;         /* texte secondaire sur le blanc (7,2:1) */
  --rouge: #e60000;              /* rouge d'interface : 4,8:1 avec du blanc */
  --rouge-logo: #fe0000;         /* rouge du logo, réservé à sa reproduction */
  --vert: #22c55e;
  --ambre: #f59e0b;

  --bg: var(--noir); --surface: var(--noir-surface); --ink: var(--encre-sombre); --muted: var(--gris-sombre);

  --police: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --etendue: 100;                /* axe wdth du monument : un nombre, pas un pourcentage (125 pour la version étendue) */

  --step-small: 0.875rem;                                      /* 14 */
  --step-body:  1.0625rem;                                     /* 17 */
  --step-lead:  clamp(1.1875rem, 1.03rem + 0.75vw, 1.5rem);    /* 19–24 */
  --step-head:  clamp(1.75rem, 1.2rem + 1.9vw, 3rem);          /* 28–48 */

  --marge: clamp(1rem, 2.2vw, 2rem);
  --gouttiere: clamp(0.75rem, 1.4vw, 1.5rem);
  --section: clamp(5rem, 9vw, 8.5rem);                         /* deux fois ce pas entre deux sections : 160–270 */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--police); font-size: var(--step-body); line-height: 1.5;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'wdth' 100;
}
h1, h2, h3, h4, p, ul, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, svg, picture { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { max-width: 62ch; text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; hyphens: none; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
::selection { background: var(--rouge); color: var(--blanc); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.champ--clair :focus-visible { outline-color: var(--encre-claire); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saut { position: absolute; left: var(--marge); top: -100px; z-index: 100; padding: 0.6em 1em; background: var(--blanc); color: var(--noir); font-weight: 700; }
.saut:focus { top: var(--marge); }

/* Champs de couleur : chaque section est un champ plat, les voisins alternent clair et sombre. */
.champ { padding-block: var(--section); padding-inline: var(--marge); }
.champ--sombre { --bg: var(--noir); --surface: var(--noir-surface); --ink: var(--encre-sombre); --muted: var(--gris-sombre); background: var(--bg); color: var(--ink); }
.champ--clair { --bg: var(--clair); --surface: var(--clair-surface); --ink: var(--encre-claire); --muted: var(--gris-clair); background: var(--bg); color: var(--ink); color-scheme: light; }

/* ---------- Boutons et liens ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.4em; border-radius: 0;
  font-weight: 700; font-size: var(--step-body); line-height: 1; text-decoration: none; letter-spacing: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.bouton:active { transform: scale(0.97); }
.bouton--accent { background: var(--rouge); color: var(--blanc); }
.bouton--sombre { background: var(--noir); color: var(--blanc); }
.bouton--carte { background: var(--encre-claire); color: var(--clair); }
.bouton--menu { background: var(--blanc); color: var(--noir); justify-content: flex-start; width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .bouton--accent:hover { background: var(--blanc); color: var(--rouge); }
  .bouton--sombre:hover, .bouton--carte:hover { background: var(--rouge); color: var(--blanc); }
  .bouton--menu:hover { background: var(--rouge); color: var(--blanc); }
  .menu__fermer:hover { background: var(--rouge); color: var(--blanc); }
  a.lien:hover { text-decoration-color: var(--rouge); }
}
.lien { font-weight: 600; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.champ--sombre .lien, .hero .lien { text-decoration-color: currentColor; }

/* ---------- Hero : PHOTO en monument, les services qui dérivent derrière ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; padding: var(--marge);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: var(--gouttiere);
  background: var(--noir); color: var(--blanc);
  view-timeline-name: --hero;
}
.hero__planete { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1200ms ease; }
.hero__planete.est-prete { opacity: 1; }
.hero__coin { position: relative; z-index: 2; }
.hero__coin--hg { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 36ch; }
.hero__coin--hd { grid-column: 2; grid-row: 1; }
.hero__coin--bg { grid-column: 1; grid-row: 3; align-self: end; }
.hero__coin--bd { grid-column: 2; grid-row: 3; align-self: end; display: flex; gap: 1.25rem; font-size: var(--step-small); font-weight: 600; }
.hero__coin--bd a { text-decoration: none; }
.hero__logo { display: block; width: clamp(96px, 8.5vw, 124px); }
.hero__logo img { width: 100%; height: auto; }
.hero__phrase { font-size: 1.125rem; line-height: 1.4; max-width: 36ch; color: var(--encre-sombre); } /* 18px : la phrase qui dit ce qu'est la boutique reste lisible sur le premier écran (inspecteur : name-only-title) */
.hero__titre {
  grid-column: 1 / -1; grid-row: 2; align-self: center; z-index: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 0.1em;
  margin: 0; font-weight: 800; font-variation-settings: 'wdth' var(--etendue); letter-spacing: -0.01em; line-height: 0.86;
  text-transform: uppercase; white-space: nowrap; width: 100%;
  margin-top: 10vh;
}
.hero__ligne { display: block; overflow-x: visible; overflow-y: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; text-align: center; width: 100%; }
.hero__monument { display: inline-block; font-size: 24vw; }
.hero__sous-titre { display: inline-block; font-size: 7.6vw; letter-spacing: 0.02em; font-weight: 800; }
[data-ajuste] { white-space: nowrap; }
/* Le descripteur caché du h1 (SEO, lecteurs d'écran) : en 1px pour ne pas élargir la boîte de texte du titre. */
.hero__titre .sr-only { font-size: 1px; line-height: 1; letter-spacing: 0; text-transform: none; }

/* Burger : un bouton fixe ; main.js lui donne .burger--sur-clair quand un champ clair passe dessous (traits noirs). */
.burger {
  position: fixed; top: var(--marge); right: var(--marge); z-index: 60;
  width: 48px; height: 48px; display: grid; place-items: center; gap: 0;
  color: #fff; transition: color var(--t-ui) ease;
}
.burger--sur-clair { color: #000; }
.burger__trait { display: block; width: 26px; height: 3px; background: currentColor; margin: 3px 0; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease; }
.burger[aria-expanded="true"] .burger__trait:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__trait:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__trait:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
body.menu-est-ouvert .burger { opacity: 0; pointer-events: none; }

/* ---------- Menu : panneau latéral (ou plein écran sur téléphone) ---------- */
.menu { position: fixed; inset: 0; z-index: 50; }
.menu[hidden] { display: none; }
.menu__fond { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.menu__panneau {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px);
  background: var(--noir); color: var(--blanc); padding: var(--marge); padding-top: calc(var(--marge) + 64px);
  display: flex; flex-direction: column; gap: 2.25rem; overflow-y: auto;
  transform-origin: top right;
}
.menu__entete { position: absolute; top: var(--marge); left: var(--marge); right: var(--marge); display: flex; justify-content: space-between; align-items: flex-start; }
.menu__logo { width: 120px; }
.menu__fermer { width: 48px; height: 48px; font-size: 2rem; line-height: 1; display: grid; place-items: center; border: 1px solid var(--rouge); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (min-width: 441px) { .menu__panneau { border-left: 1px solid var(--rouge); } }
.menu__sections a { display: block; padding: 0.2em 0; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-variation-settings: 'wdth' 110; }
.menu__cta { display: grid; gap: 0.5rem; }
.menu__langues ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.menu__langues a { font-size: var(--step-body); text-decoration: none; padding: 0.4em 0; display: inline-block; }
.menu__langues a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rouge); text-decoration-thickness: 0.15em; }
.menu__pied { margin-top: auto; padding-top: 1rem; display: grid; gap: 0.75rem; font-size: var(--step-small); color: var(--gris-sombre); }
.menu__pied .ouverture__etat { min-height: 0; color: var(--encre-sombre); }
.menu__suisse { display: inline-flex; align-items: center; gap: 0.5em; }
.menu__suisse a { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .menu__panneau { transition: transform 400ms var(--ease-drawer), opacity var(--t-ui) ease; }
  .menu__fond { transition: opacity var(--t-ui) ease; }
  .menu.est-fermee .menu__panneau { transform: translateX(8%); opacity: 0; }
  .menu.est-fermee .menu__fond { opacity: 0; }
}

/* ---------- Indicateur d'ouverture ---------- */
.ouverture { position: relative; font-size: var(--step-small); }
.ouverture__bouton, .ouverture__etat { display: inline-flex; align-items: center; gap: 0.7em; min-height: 44px; font-weight: 600; text-align: left; }
.ouverture__point { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--gris-sombre); flex: none; }
/* Scintillement : une onde qui part du point et s'éteint (transform + opacity seulement), coupée sous mouvement réduit. */
@media (prefers-reduced-motion: no-preference) {
  .ouverture__point[data-etat]::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: point-onde 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
  @keyframes point-onde { 0% { transform: scale(1); opacity: 0.75; } 70%, 100% { transform: scale(2.2); opacity: 0; } }
}
.ouverture__point[data-etat="ouvert"] { background: var(--vert); }
.ouverture__point[data-etat="bientot"] { background: var(--ambre); }
.ouverture__point[data-etat="ferme"] { background: var(--rouge); }
.ouverture:has(.ouverture__point[data-etat="ouvert"]) .ouverture__texte { color: var(--vert); }
.champ--clair .ouverture:has(.ouverture__point[data-etat="ouvert"]) .ouverture__texte { color: #15803d; }
.ouverture__panneau { display: none; position: absolute; left: 0; bottom: calc(100% + 0.5rem); width: min(88vw, 340px); padding: 1.1rem 1.25rem; background: var(--blanc); color: var(--encre-claire); z-index: 3; transform-origin: bottom left; }
.ouverture--panneau.est-ouverte .ouverture__panneau { display: block; }
@media (hover: hover) and (pointer: fine) {
  .ouverture--panneau:hover .ouverture__panneau, .ouverture--panneau:focus-within .ouverture__panneau { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .ouverture__panneau { animation: panneau-ouvre var(--t-ui) var(--ease-out); }
  @keyframes panneau-ouvre { from { opacity: 0; transform: scale(0.97) translateY(4px); } }
}
.ouverture__titre { font-size: var(--step-body); font-weight: 700; margin-bottom: 0.5rem; }
.ouverture__titre small { font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.ouverture--panneau .ouverture__titre small { color: var(--gris-clair); }
.ouverture__compte { font-weight: 700; margin-bottom: 0.6rem; min-height: 1.4em; }
.ouverture__compte:empty { display: none; }
.horaires { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.horaires th, .horaires td { padding: 0.28em 0; text-align: left; font-weight: 400; }
.horaires td { text-align: right; white-space: nowrap; }
.horaires tr[aria-current="date"] th, .horaires tr[aria-current="date"] td { font-weight: 700; }
.horaires tr[aria-current="date"] th::after { content: ' · ' attr(data-aujourdhui); font-weight: 400; color: var(--muted); }
.ouverture--panneau .horaires tr[aria-current="date"] th::after { color: var(--gris-clair); }
.ouverture--tableau { font-size: var(--step-body); }
.ouverture--tableau .ouverture__etat { font-size: var(--step-lead); font-weight: 700; margin-bottom: 0.25rem; }
.ouverture--tableau .ouverture__titre { margin-top: 1rem; }

/* ---------- Services : une colonne centrée, six groupes en lettres d'affiche, des rangées à deux bouts ---------- */
.services__colonne { width: min(100%, 680px); margin-inline: auto; }
.services__titre { font-size: var(--step-head); max-width: 18ch; margin-bottom: 1.25rem; }
.services__intro { font-size: var(--step-lead); line-height: 1.35; color: var(--ink); max-width: 46ch; margin-bottom: 3.5rem; }
.groupe + .groupe { margin-top: 5.5rem; }
.groupe__titre { font-size: var(--step-head); font-variation-settings: 'wdth' 110; margin-bottom: 0.75rem; }
.groupe__intro { font-size: var(--step-body); line-height: 1.45; max-width: 52ch; margin-bottom: 1rem; }
.groupe__partenaire { font-size: var(--step-body); color: var(--muted); margin-bottom: 0.75rem; }
.groupe__partenaire a { color: var(--ink); font-weight: 600; text-decoration-color: var(--rouge); }
.service { display: grid; grid-template-columns: 16px 1fr auto; align-items: baseline; column-gap: 0.6rem; min-height: 44px; padding: 0.35em 0; }
.service__point { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); align-self: baseline; justify-self: center; } /* posé sur la ligne de base du nom : reste à la hauteur des capitales même quand le détail passe sur deux lignes */
.service__nom { font-weight: 600; }
.service__detail { font-size: var(--step-small); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; max-width: 26ch; line-height: 1.35; text-wrap: balance; }

/* ---------- Studio : colonne étroite, puis un ruban de cadres, un cadre levé ---------- */
.studio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); row-gap: 2.5rem; }
.studio__colonne { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 1rem; }
.studio__titre { font-size: var(--step-head); }
.lien--studio { font-size: var(--step-body); }
.studio__notes { margin-top: auto; display: grid; gap: 1rem; font-size: var(--step-body); color: var(--muted); }
.studio__ruban {
  grid-column: 4 / -1; display: flex; align-items: flex-end; gap: 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 0.5rem;
  --hauteur-cadre: 30vh;
}
.studio__defile { display: contents; }
.studio__ruban::-webkit-scrollbar { height: 6px; }
.studio__ruban::-webkit-scrollbar-thumb { background: var(--surface); }
.cadre { flex: none; scroll-snap-align: start; display: grid; gap: 0.5rem; }
.cadre__media, .cadre__media img { height: var(--hauteur-cadre); width: auto; object-fit: cover; display: block; }
.cadre picture.cadre__media { height: auto; }
.cadre video.cadre__media { aspect-ratio: 16 / 9; background: var(--surface); }
.cadre--leve { --hauteur-cadre: 62vh; }
.cadre__legende { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-small); }
.cadre__fait { color: var(--muted); text-align: right; }

/* ---------- Pourquoi ici : faits en marge, paragraphe large, deux listes ---------- */
.pourquoi { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; column-gap: var(--gouttiere); row-gap: 2rem; }
.pourquoi__cote { grid-column: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.pourquoi__titre { font-size: var(--step-head); }
.pourquoi__faits { display: grid; gap: 1.25rem; font-size: var(--step-small); }
.pourquoi__faits dt { color: var(--muted); }
.pourquoi__faits dd { margin: 0; font-weight: 700; font-size: var(--step-body); }
.pourquoi__faits .experience { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); margin-top: 0.15rem; }
.pourquoi__paragraphe { grid-column: 2; font-size: var(--step-lead); line-height: 1.35; max-width: 56ch; align-self: start; }
.pourquoi__mot { grid-column: 1; font-size: var(--step-small); font-weight: 400; color: var(--muted); margin-top: 3rem; }
.pourquoi__listes { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 2rem 4rem; margin-top: 3rem; }
.pourquoi__listes h4 { font-size: var(--step-body); margin-bottom: 0.6rem; }
.pourquoi__listes li { padding: 0.3em 0; font-size: var(--step-body); }

/* ---------- FAQ : un titre large, des questions en retrait ---------- */
.faq__titre { font-size: clamp(1.875rem, 1.1rem + 3vw, 3.5rem); line-height: 0.98; max-width: 20ch; margin-bottom: 5rem; }
.faq__liste { margin-left: 33.33%; display: grid; gap: 1.5rem; }
.faq__item { padding: 0; }
.faq__item[open] { background: var(--surface); margin-inline: -1.5rem; padding: 0 1.5rem 1.5rem; }
.faq__question { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; cursor: pointer; padding: 0.75rem 0; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; min-height: 44px; }
.faq__question::-webkit-details-marker { display: none; }
.faq__chevron { flex: none; transition: transform var(--t-ui) var(--ease-out); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__reponse p { max-width: 48ch; }

/* ---------- Accès : la phrase, les horaires et la carte, puis l'adresse en lettres d'affiche ---------- */
.acces { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
.acces__horaires, .acces__carte, .acces__titre { min-width: 0; }
.acces__phrase { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.acces__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.acces__carte { display: grid; gap: 1.5rem; }
.carte { position: relative; aspect-ratio: 16 / 10; background: var(--surface); display: grid; place-content: center; gap: 1rem; padding: 1.5rem; text-align: center; }
.carte__note { font-size: var(--step-small); color: var(--muted); max-width: 36ch; margin-inline: auto; }
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.acces__pratique { display: grid; gap: 0.4rem; font-size: var(--step-body); }
.acces__titre { font-size: 7.5vw; font-weight: 300; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; overflow: clip; text-align: left; }
.acces__adresse { text-decoration: none; transition: color var(--t-hover) ease; display: inline-block; }
@media (hover: hover) and (pointer: fine) { .acces__adresse:hover { color: var(--rouge); } }
.acces__coins { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-small); }

/* ---------- Appel : toute la bande est un lien ---------- */
.appel { background: var(--rouge); color: var(--blanc); }
.appel__lien {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-content: space-between;
  min-height: 60svh; padding: var(--marge); text-decoration: none; overflow: clip;
  transition: background-color 0ms, color 0ms;
}
.appel__phrase { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.appel__fleche { justify-self: end; }
.appel__mot { grid-column: 1 / -1; align-self: end; display: block; font-size: 27vw; font-weight: 900; font-variation-settings: 'wdth' 118; letter-spacing: -0.03em; line-height: 0.78; text-transform: uppercase; margin-bottom: -0.06em; }
@media (hover: hover) and (pointer: fine) { .appel__lien:hover, .appel__lien:focus-visible { background: var(--blanc); color: var(--rouge); } }
.appel__lien:active .appel__mot { transform: scale(0.99); }

/* ---------- Pied : le nom d'abord, les façons de joindre dessous ---------- */
.pied { background: var(--noir); color: var(--encre-sombre); padding: var(--section) var(--marge) calc(var(--marge) + 72px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 4.5rem; }
.pied__nom { font-size: 7vw; font-weight: 800; font-variation-settings: 'wdth' 118; letter-spacing: -0.02em; line-height: 0.9; white-space: nowrap; overflow: clip; color: var(--blanc); }
.pied__grille { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 2rem var(--gouttiere); }
.pied__joindre { grid-column: 1; display: grid; gap: 0.5rem; align-content: start; }
.pied__joindre h2 { font-size: var(--step-small); font-weight: 400; color: var(--gris-sombre); margin-bottom: 0.5rem; }
.pied__joindre a { font-size: min(var(--step-head), 2.25rem); font-weight: 700; color: var(--rouge); text-decoration: none; letter-spacing: -0.02em; line-height: 1.2; width: fit-content; }
@media (hover: hover) and (pointer: fine) { .pied__joindre a:hover { color: var(--blanc); } }
.pied__colonnes { grid-column: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; font-size: var(--step-small); }
.pied__colonnes h3 { font-size: var(--step-small); font-weight: 400; color: var(--gris-sombre); margin-bottom: 0.75rem; }
.pied__colonnes li { padding: 0.25em 0; }
.pied__colonnes a { text-decoration: none; }
.pied__colonnes a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rouge); text-decoration-thickness: 0.12em; }
@media (hover: hover) and (pointer: fine) { .pied__colonnes a:hover { text-decoration: underline; } }
.pied__partenaire { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.5rem; font-size: var(--step-small); color: var(--gris-sombre); margin-top: -2rem; }
.pied__etiquette { color: var(--blanc); font-weight: 600; }
.pied__partenaire a { color: var(--blanc); text-decoration-color: var(--rouge); }
.pied__bas { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--step-small); color: var(--gris-sombre); }
.pied__suisse { display: inline-flex; align-items: center; gap: 0.5em; flex-wrap: wrap; }
.pied__suisse a { color: inherit; }
.drapeau { flex: none; }

/* ---------- Mentions légales et confidentialité : une boîte de dialogue, ou une section sans script ---------- */
.juridique { border: 0; padding: 0; background: var(--blanc); color: var(--encre-claire); width: min(92vw, 680px); max-height: 88svh; margin: auto; color-scheme: light; }
.juridique::backdrop { background: rgba(0, 0, 0, 0.7); }
.juridique__corps { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1rem; font-size: var(--step-body); }
.juridique h2 { font-size: var(--step-lead); margin-top: 1rem; }
.juridique h2:first-child { margin-top: 0; }
.juridique form { margin-top: 1rem; }
.juridique:target:not([open]) { display: block; position: static; width: auto; max-height: none; }
@media (prefers-reduced-motion: no-preference) {
  .juridique[open] { animation: dialogue-ouvre 250ms var(--ease-out); }
  @keyframes dialogue-ouvre { from { opacity: 0; transform: scale(0.96); } }
}

/* ---------- Barre d'action mobile ---------- */
.barre-mobile { display: none; }

/* ---------- Hub IA (/llms.html) : une colonne de lecture sur champ clair, tables en lignes alternées ---------- */
.hub { max-width: 76ch; margin-inline: auto; display: grid; gap: 1.25rem; padding-block: calc(var(--section) * 0.6); }
.hub__retour { font-size: var(--step-small); }
.hub__titre { font-size: var(--step-head); }
.hub__titre span { font-weight: 400; color: var(--muted); }
.hub__date, .hub__pied { font-size: var(--step-small); color: var(--muted); }
.hub__resume { font-size: var(--step-body); }
.hub__sommaire { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--step-small); font-weight: 600; }
.hub section { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.hub h2 { font-size: var(--step-lead); }
.hub h3 { font-size: var(--step-body); margin-top: 0.5rem; }
.hub ul { display: grid; gap: 0.35rem; padding-left: 1.1em; list-style: disc; }
.hub__table { border-collapse: collapse; width: 100%; font-size: var(--step-small); }
.hub__table th, .hub__table td { text-align: left; vertical-align: top; padding: 0.55em 0.75em 0.55em 0; }
.hub__table th { font-weight: 600; width: 34%; }
.hub__table tbody tr:nth-child(odd) { background: var(--surface); }
.hub__table small { color: var(--muted); }
.hub .horaires { font-size: var(--step-body); max-width: 32rem; }
.hub__pied { margin-top: 2rem; display: grid; gap: 0.5rem; }
.hub__pied p { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }

/* ---------- Pages d'erreur ---------- */
.page--erreur { min-height: 100svh; display: grid; place-items: center; padding: var(--marge); }
.erreur { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 60ch; width: 100%; }
.erreur__code { font-size: 28vw; font-weight: 900; font-variation-settings: 'wdth' 125; line-height: 0.8; letter-spacing: -0.04em; color: var(--rouge); }
.erreur__titre { font-size: var(--step-head); }
.erreur p + p { margin-top: 0.5rem; }
.erreur__langues { font-size: var(--step-small); color: var(--gris-sombre); }
.erreur__langues a { text-decoration: none; }

/* ---------- Mouvement : chargement, apparitions, signature ---------- */
.hero__ligne > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__ligne > span { transform: translateY(105%); animation: ligne-monte 900ms var(--ease-expo) forwards; animation-delay: 120ms; }
  .js .hero__ligne:nth-child(2) > span { animation-delay: 230ms; }
  .js .hero [data-charge] { opacity: 0; transform: translateY(12px); animation: charge-monte 500ms var(--ease-out) forwards; animation-delay: 420ms; }
  .js .hero .bouton[data-charge] { animation-delay: 520ms; }
  .js .hero .hero__coin--bg[data-charge] { animation-delay: 640ms; }
  .js .hero .hero__coin--bd[data-charge] { animation-delay: 700ms; }
  @keyframes ligne-monte { to { transform: none; } }
  @keyframes charge-monte { to { opacity: 1; transform: none; } }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--retard, 0ms); }
  .js [data-reveal].est-la { opacity: 1; transform: none; }
  .js .groupe .service { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .groupe.est-la .service { opacity: 1; transform: none; }
  .js .groupe.est-la .service:nth-child(2) { transition-delay: 70ms; }
  .js .groupe.est-la .service:nth-child(3) { transition-delay: 140ms; }
  .js .groupe.est-la .service:nth-child(4) { transition-delay: 210ms; }
  .js .groupe.est-la .service:nth-child(5) { transition-delay: 280ms; }
  .js .studio__ruban .cadre { transform: translateY(16px); transition: transform 900ms var(--ease-out); }
  .js .studio__ruban.est-la .cadre { transform: none; }
  .js .studio__ruban.est-la .cadre:nth-child(2) { transition-delay: 90ms; }
  .js .studio__ruban.est-la .cadre:nth-child(3) { transition-delay: 180ms; }
  .js .studio__ruban.est-la .cadre:nth-child(4) { transition-delay: 270ms; }
  .js .studio__ruban.est-la .cadre:nth-child(5) { transition-delay: 360ms; }
  .js .studio__ruban.est-la .cadre:nth-child(6) { transition-delay: 450ms; }
  .js .cadre--leve picture { overflow: clip; }
  .js .cadre--leve picture img { transform: scale(1.06); transition: transform 1300ms var(--ease-soft, var(--ease-out)); }
  .js .studio__ruban.est-la .cadre--leve picture img { transform: none; }

  /* Signature : le monument recule de quelques pour cent quand le premier écran s'en va. */
  @supports (animation-timeline: view()) {
    .hero__titre { animation: monument-recule linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    @keyframes monument-recule { to { transform: scale(0.94); opacity: 0.6; } }
  }
}

/* ---------- Écrans moyens et étroits ---------- */
@media (max-width: 1100px) {
  .faq__liste { margin-left: 20%; }
  .pied__grille { grid-template-columns: 1fr; }
  .pied__colonnes { grid-column: 1; }
}
@media (max-width: 900px) {
  :root { --section: clamp(4.5rem, 12vw, 7rem); }
  body { padding-bottom: 64px; }
  .hero { grid-template-rows: auto auto auto auto 1fr auto; min-height: 100svh; row-gap: 1rem; }
  .hero__coin--hg { display: contents; }
  .hero__logo { grid-row: 1; grid-column: 1; }
  .hero__coin--hd { grid-row: 1; grid-column: 2; }
  .hero__titre { grid-row: 2; grid-column: 1 / -1; align-self: start; margin-top: clamp(0.5rem, 5svh, 2.5rem); }
  .pied__joindre a { font-size: 1.5rem; overflow-wrap: anywhere; }
  .hero__phrase { grid-row: 3; grid-column: 1 / -1; max-width: none; }
  .hero .bouton--accent { grid-row: 4; grid-column: 1 / -1; }
  .hero__coin--bg { grid-row: 6; grid-column: 1 / -1; }
  .hero__coin--bd { display: none; }
  .bouton { width: 100%; }
  .ouverture__panneau { bottom: auto; top: calc(100% + 0.5rem); transform-origin: top left; }
  .studio { display: block; }
  .studio__colonne { margin-bottom: 2rem; }
  .studio__notes { margin-top: 1rem; }
  .studio__ruban { display: block; overflow: visible; padding-bottom: 0; }
  .cadre--leve { --hauteur-cadre: auto; width: 100%; margin-bottom: 1.25rem; }
  .cadre--leve .cadre__media img { height: auto; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .studio__defile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem 6px; }
  .studio__defile .cadre--video { grid-column: 1 / -1; }
  .studio__defile .cadre .cadre__media, .studio__defile .cadre .cadre__media img { width: 100%; height: auto; }
  .studio__defile .cadre:not(.cadre--video) .cadre__media img { aspect-ratio: 4 / 3; object-fit: cover; }
  .studio__defile .cadre__legende { flex-direction: column; gap: 0.1rem; }
  .studio__defile .cadre__fait { text-align: left; }
  .pourquoi { grid-template-columns: minmax(0, 1fr); }
  .pourquoi__cote, .pourquoi__paragraphe, .pourquoi__mot, .pourquoi__listes { grid-column: 1; }
  .pourquoi__paragraphe { order: -1; font-size: 1.1875rem; }
  .pourquoi__faits { grid-template-columns: 1fr 1fr; }
  .pourquoi__listes { grid-template-columns: 1fr; margin-top: 1rem; }
  .pourquoi__mot { margin-top: 1rem; }
  .faq__titre { margin-bottom: 2.5rem; }
  .faq__liste { margin-left: 0; gap: 1rem; }
  .faq__question { font-size: 1.1875rem; }
  .faq__item[open] { margin-inline: calc(-1 * var(--marge)); padding-inline: var(--marge); }
  .acces { min-height: 0; }
  .acces__grille { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .acces__titre { font-size: 11.5vw; white-space: normal; }
  .acces__coins { flex-direction: column; }
  .appel__lien { min-height: 46svh; }
  .appel__mot { font-size: 30vw; }
  .pied { padding-bottom: calc(var(--marge) + 72px); gap: 3rem; }
  .pied__colonnes { grid-template-columns: 1fr 1fr; }
  .pied__bas { flex-direction: column; align-items: flex-start; }
  /* Deux boutons rouges séparés par un trait blanc (le fond de la barre vu à travers l'interstice). */
  .barre-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--blanc); color: var(--blanc); }
  .barre-mobile__bouton { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 0.55em; min-height: 64px; font-size: var(--step-small); font-weight: 700; text-decoration: none; background: var(--rouge); color: var(--blanc); }
  .barre-mobile__bouton svg { width: 20px; height: 20px; flex: none; }
  .barre-mobile__bouton:active { transform: scale(0.97); }
  body.menu-est-ouvert .barre-mobile { display: none; }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 16px 1fr; }
  .service__detail { grid-column: 2; text-align: left; max-width: none; }
  .cadre__legende { font-size: 0.875rem; }
}
/* Fenêtres larges mais basses (portables 1366×768, 1920×1080 à 125/150 %) : le monument ne doit pas chasser les coins.
   Seuil à 820 px de haut pour couvrir les 768 px réels des portables Windows. */
@media (min-width: 901px) and (max-height: 820px) {
  .hero__monument { font-size: 19vw; }
  .hero__sous-titre { font-size: 6vw; }
  .hero__titre { margin-top: 4vh; }
}
@media (min-width: 901px) and (max-height: 620px) {
  .hero__monument { font-size: 16vw; }
  .hero__sous-titre { font-size: 5vw; }
  .hero__titre { margin-top: 2vh; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Ajouts : barre mobile animée, paragraphe par lignes ---------- */
@media (max-width: 900px) {
  .js .barre-mobile { transform: translateY(100%); transition: transform 400ms var(--ease-drawer); }
  .js .hero-passe .barre-mobile, .js .page--erreur .barre-mobile { transform: none; }
}
[data-lignes] .ligne { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
[data-lignes] .ligne > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .est-decoupe .ligne > span { transform: translateY(110%); }
  .js .est-decoupe.est-la .ligne > span { transform: none; transition: transform 900ms var(--ease-expo) calc(var(--i) * 90ms); }
}

/* Ratios des cadres, générés par build.mjs depuis src/site.mjs */
.cadre--boutique .cadre__media img { aspect-ratio: 5712 / 3570; }
.cadre--enseigne .cadre__media img { aspect-ratio: 1550 / 860; }
.cadre--copyService .cadre__media img { aspect-ratio: 1250 / 900; }
.cadre--vitrine .cadre__media img { aspect-ratio: 1150 / 1780; }
.cadre--cartes .cadre__media img { aspect-ratio: 1100 / 1300; }
