/* ==========================================================================
   Janie Gagnon Coiffure : feuille de style du site

   Direction (design-taste-frontend) : « la scène partagée ». À gauche, la feuille du salon et le
   texte qui défile ; à droite, ses vraies colorations, fixes à l'écran, qui se relaient en fondu.
   Les sections suivantes reprennent la scène : des cadres bord à bord, séparés par l'écart de 12 px,
   sans papier vide entre eux ; la liste des services est sur l'aplat sombre.
   Surfaces : style C de ui-skills (cadres doubles arrondis, ombres douces, boutons pilule avec la
   flèche dans un cercle ; ni petites étiquettes au-dessus des titres, ni barre de verre flottante).
   Couleurs de la marque : noir du logo, rose poudré de ses icônes, papier rosé.

   Système de formes (une règle, partout) :
     - boutons, onglets, pastilles : pilule (999px)
     - coques des cadres doubles     : 32px (--r-xl), cœur : 24px (--r-lg)
     - petites photos, cellules      : 18px (--r-md)
     - champs de formulaire          : 12px (--r-sm)

   Échelle des z-index :
     1    contenu qui glisse par-dessus une photo collante
     38   bouton d'action collant (téléphone et tablette)
     39   menu mobile plein écran
     40   barre de navigation
     100  lien d'évitement
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
  color-scheme: light dark;

  --paper: #F7EEEE;          /* fond de page, papier rosé */
  --paper-2: #F0E2E3;        /* un ton plus bas */
  --sheet: #FCF8F8;          /* cœur des cadres doubles, feuille du héros */
  --pink: #EBD2D4;           /* le rose des icônes du salon : grands aplats */
  --ink: #171314;            /* le noir du logo */
  --ink-2: #4F4547;          /* texte secondaire (8,6:1 sur le papier) */
  --ink-3: #66595B;          /* aides et légendes (5,9:1 sur le papier) */
  --deep: #171314;           /* aplat sombre du contact */
  --deep-2: #2A2325;         /* cellules sur l'aplat sombre */
  --on-deep: #F7EEEE;
  --on-deep-2: #D6C6C8;
  --shell: rgba(23, 19, 20, .045);
  --ring: rgba(23, 19, 20, .08);
  --line: rgba(23, 19, 20, .12);
  --field-border: rgba(23, 19, 20, .55);
  --tint: rgba(23, 19, 20, .06);
  --mark: #EBD2D4;
  --bowl: #171314;

  --btn-bg: #171314;
  --btn-bg-hover: #2F2729;
  --btn-fg: #FCF8F8;
  --focus: #171314;
  --focus-on-deep: #EBD2D4;

  --error: #A3352A;
  --error-bg: #FBEAE6;
  --shadow-rgb: 23, 19, 20;
  --shadow-soft: 0 34px 70px -40px rgba(var(--shadow-rgb), .42), 0 14px 28px -22px rgba(var(--shadow-rgb), .22);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast: 180ms;
  --t-base: 300ms;
  --t-slow: 700ms;
  --t-fondu: 1600ms;

  --font: "Literata", Georgia, "Times New Roman", serif;

  /* Cinq tailles, pas une de plus */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.125rem, 1.2rem + 2.3vw, 3.5rem);
  --step-display: clamp(2.75rem, 1rem + 4.2vw, 5.5rem);

  /* Les sections sont des cadres bord à bord séparés par l'écart : pas de papier vide entre elles */
  --gap: 12px;
  --pad: clamp(1.5rem, 3.4vw, 3.5rem);   /* marge intérieure des feuilles */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141112;
    --paper-2: #1B1718;
    --sheet: #1F1A1B;
    --pink: #2D2224;
    --ink: #F5EBEC;
    --ink-2: #D2C3C5;
    --ink-3: #B3A3A5;
    --deep: #221B1D;
    --deep-2: #31282A;
    --on-deep: #F5EBEC;
    --on-deep-2: #D2C3C5;
    --shell: rgba(245, 235, 236, .05);
    --ring: rgba(245, 235, 236, .09);
    --line: rgba(245, 235, 236, .14);
    --field-border: rgba(245, 235, 236, .5);
    --tint: rgba(245, 235, 236, .08);
    --mark: #5A3F44;
    --bowl: #0C0A0A;

    --btn-bg: #EBD2D4;
    --btn-bg-hover: #F4E2E3;
    --btn-fg: #171314;
    --focus: #EBD2D4;

    --error: #F09A8C;
    --error-bg: rgba(240, 154, 140, .14);
    --shadow-rgb: 0, 0, 0;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink-3) var(--paper-2);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-optical-sizing: auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--pink); color: #171314; }
input, textarea, select { caret-color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible { outline-color: var(--focus-on-deep); }
.contact .carte :focus-visible { outline-color: var(--focus); }


.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;
}

.skip-link {
  position: absolute; top: -100%; left: var(--gutter); z-index: 100;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: .75rem; }

/* ---------- Cadre double (style C) : une coque légère, puis un cœur au rayon plus petit ---------- */
.bezel {
  padding: 8px; border-radius: var(--r-xl);
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--ring), var(--shadow-soft); /* taste-skill-ignore : cadre double, style C de ui-skills */
}
.bezel__core {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sheet);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55); /* taste-skill-ignore : reflet du cœur du cadre double, style C */
}
@media (prefers-color-scheme: dark) { .bezel__core { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .06); } } /* taste-skill-ignore : reflet du cœur du cadre double, style C */
.bezel--sombre { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); } /* taste-skill-ignore : filet de la coque sur fond sombre, style C */

/* ---------- Boutons : pilule à plat, la flèche dans son cercle ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .85rem;
  min-height: 56px; padding: .5rem .5rem .5rem 1.5rem;
  border-radius: 999px; border: 0;
  font-family: var(--font); font-weight: 500; font-size: var(--step-body); line-height: 1; text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn__label { line-height: 1.2; text-align: start; }
.btn__icon {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 1.1rem;
  transition: transform var(--t-base) var(--ease-soft);
}
@media (hover: hover) { .btn:hover .btn__icon { transform: translate(2px, -2px) scale(1.06); } }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
@media (hover: hover) { .btn--primary:hover { background: var(--btn-bg-hover); } }
.btn--primary .btn__icon { background: rgba(255, 255, 255, .14); }
@media (prefers-color-scheme: dark) { .btn--primary .btn__icon { background: rgba(23, 19, 20, .1); } }
.btn--ghost { background: var(--tint); color: var(--ink); }
@media (hover: hover) { .btn--ghost:hover { background: rgba(23, 19, 20, .1); } }
.btn--ghost .btn__icon { background: var(--sheet); }
.btn--sm { min-height: 46px; padding: .3rem .3rem .3rem 1.15rem; font-size: var(--step-small); gap: .7rem; }
.btn--sm .btn__icon { width: 36px; height: 36px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: .72; cursor: progress; }

/* ---------- Barre de navigation : barre simple, jamais une pilule de verre ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  background: var(--paper);
  box-shadow: 0 18px 30px -28px rgba(var(--shadow-rgb), .5); /* taste-skill-ignore : barre collante : elle flotte */
  transform: translateY(-110%);
  transition: transform var(--t-base) var(--ease-soft);
}
.nav.is-visible { transform: none; }
.nav__inner {
  height: 100%; padding-inline: clamp(1rem, 3vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; color: var(--ink); }
.brand__logo { width: 104px; height: 48px; }
.nav__links { display: flex; gap: .1rem; }
.nav__links a {
  text-decoration: none; padding: .6rem .9rem; border-radius: 999px;
  color: var(--ink-2); font-size: var(--step-small); line-height: 1.4;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav__links a.is-active { color: var(--ink); background: var(--tint); }
@media (hover: hover) { .nav__links a:hover { color: var(--ink); background: var(--tint); } }
.nav__toggle {
  display: none; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--tint); cursor: pointer;
}
.nav__burger { position: relative; display: block; width: 18px; height: 12px; }
.nav__burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform var(--t-base) var(--ease-soft);
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 10px; }
.nav__toggle[aria-expanded="true"] .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
/* Seuil du menu, mesuré : logo, cinq liens et le bouton demandent 980 px. Même valeur plus 1 dans js/main.js. */
@media (max-width: 1080px) {
  .nav { transform: none; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
}

.menu {
  position: fixed; inset: 0; z-index: 39;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  opacity: 0; transition: opacity .35s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu__inner { display: grid; gap: .25rem; }
.menu__inner > a:not(.btn) {
  font-size: var(--step-head); font-weight: 500; letter-spacing: -0.02em;
  text-decoration: none; padding: .55rem 0;
}
.menu__inner > a {
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(60ms + var(--i, 0) * 50ms);
}
.menu.is-open .menu__inner > a { opacity: 1; transform: none; }
.menu__inner .btn { margin-top: 1.75rem; justify-self: start; }
body.menu-open { overflow: hidden; }

/* ---------- Scène : la feuille et le texte à gauche, les colorations fixes à droite ---------- */
.scene {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: var(--gap); padding: var(--gap) var(--gap) 0;
  align-items: start;
}
.scene__lecture { position: relative; z-index: 1; display: grid; gap: var(--gap); }
/* Hauteur de l'écran, sans dépasser 56rem : sur une tablette en hauteur, pas de grand vide dans la feuille */
.feuille-bezel { min-height: min(calc(100svh - 2 * var(--gap)), 56rem); display: flex; }
/* La feuille du héros : le logo et les raccourcis en haut, le titre aligné à gauche, les vignettes en bas */
.feuille {
  flex: 1; container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(2rem, 5vh, 3.5rem);
  padding: clamp(1.25rem, 2.2vw, 1.75rem) var(--pad) var(--pad);
}
.feuille__haut { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; }
.feuille__logo { width: clamp(132px, 11vw, 168px); height: auto; aspect-ratio: 243.27 / 112.99; color: var(--ink); flex: none; }
.feuille__liens { display: flex; flex-wrap: wrap; gap: .15rem; font-size: var(--step-small); }
.feuille__liens a {
  padding: .6rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
@media (hover: hover) { .feuille__liens a:hover { color: var(--ink); background: var(--tint); } }
.feuille__corps { display: grid; justify-items: start; }
.feuille h1 { font-size: var(--step-display); font-weight: 400; line-height: 1; letter-spacing: -0.03em; max-width: 12ch; }
/* Le titre suit la largeur de la feuille : « Maître coloriste » tient toujours sur une ligne */
@supports (width: 1cqi) { .feuille h1 { font-size: min(var(--step-display), 11.5cqi); } }
.feuille__phrase { margin: 1.5rem 0 2rem; max-width: 36ch; font-size: var(--step-lead); line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }

/* Les vignettes : ses quatre colorations ; celle qu'on choisit passe dans la scène */
.vignettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vignette {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-2); color: var(--ink);
  transition: transform var(--t-fast) var(--ease-soft), box-shadow var(--t-base) var(--ease);
}
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.vignette span {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px);
  padding: .3rem .65rem; border-radius: 999px;
  background: var(--sheet); font-size: var(--step-small); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vignette:active { transform: scale(.97); }
.vignette[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--ink); } /* taste-skill-ignore : anneau de la vignette choisie */
@media (hover: hover) { .vignette:hover img { transform: scale(1.06); } }

/* L'approche : une seconde feuille sous le héros, à côté de la même photo */
.approche { padding: var(--pad); display: grid; gap: 1.25rem; }
.approche p { max-width: 56ch; color: var(--ink-2); text-wrap: pretty; }
.approche .approche__premier {
  max-width: 18ch; margin-bottom: .5rem;
  font-size: var(--step-head); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
}
.approche a { color: var(--ink); white-space: nowrap; }

.scene__scene { position: sticky; top: var(--gap); height: calc(100svh - 2 * var(--gap)); }
.scene__bezel { height: 100%; }
.scene__cadre { height: 100%; margin: 0; }
.scene__photos { position: absolute; inset: 0; }
.scene__photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity var(--t-fondu) var(--ease-soft);
}
.scene__photos img.is-on { opacity: 1; }
.js-off .scene__photos img:first-child { opacity: 1; }
/* La barre du bas, couleur papier, posée sur le bord de la photo (scène et salon) */
.scene__barre, .salon__barre {
  position: absolute; left: 0; right: 0; bottom: 0;
  min-height: 56px; padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--sheet); color: var(--ink);
  font-size: var(--step-small);
}

/* Sous le seuil du menu, la barre du haut porte déjà le logo et les liens : la ligne du haut de la feuille ferait doublon */
@media (max-width: 1080px) {
  .scene { padding-top: calc(var(--nav-h) + 4px); }
  .scene__scene { top: calc(var(--nav-h) + 4px); height: calc(100svh - var(--nav-h) - 4px - var(--gap)); }
  .feuille-bezel { min-height: min(calc(100svh - var(--nav-h) - 4px - var(--gap)), 56rem); }
  .feuille__haut { display: none; }
}
@media (max-width: 900px) {
  .scene { grid-template-columns: minmax(0, 1fr); }
  .scene__scene { order: -1; height: 56svh; z-index: 0; }
  .scene__lecture { background: var(--paper); border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .feuille-bezel { min-height: auto; }
  .feuille { gap: 1.75rem; padding: 1.75rem 1.25rem 1.25rem; }
  .feuille__corps { justify-items: stretch; }
  .feuille h1 { font-size: clamp(2.25rem, 9.5vw, 3.25rem); }
  .feuille__phrase { margin: 1rem 0 1.5rem; font-size: var(--step-body); }
  .feuille__action .btn { width: 100%; justify-content: space-between; }
  .approche { padding: 2rem 1.25rem; }
}
@media (max-width: 600px) {
  .vignette span { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* ---------- Rangées : les sections sont des cadres bord à bord, séparés par l'écart, comme la scène ---------- */
main > section:not(.scene) { margin-top: var(--gap); }
.rangee { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-inline: var(--gap); }

/* ---------- Services : la photo à gauche, la liste sur l'aplat sombre ---------- */
.services__photo { grid-column: 1 / 6; }
.services__photo .bezel { height: 100%; }
.services__cadre { height: 100%; min-height: 30rem; }
.services__cadre img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.services__cadre img.is-on { opacity: 1; }
.services__feuille { grid-column: 6 / 13; display: flex; }
/* Feuille sur l'aplat sombre : texte clair, et le bouton principal passe au rose, comme en mode sombre */
.bezel__core.sur-sombre { background: var(--deep); color: var(--on-deep); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .06); } /* taste-skill-ignore : reflet du cœur du cadre double, style C */
.sur-sombre :focus-visible { outline-color: var(--focus-on-deep); }
.sur-sombre .btn--primary { background: #EBD2D4; color: #171314; }
.sur-sombre .btn--primary .btn__icon { background: rgba(23, 19, 20, .1); }
@media (hover: hover) { .sur-sombre .btn--primary:hover { background: #F4E2E3; } }
.services__liste { flex: 1; padding: var(--pad); display: flex; flex-direction: column; }
.services__liste h2 { font-size: var(--step-head); margin-bottom: 1.75rem; }
.svc { border-radius: var(--r-md); transition: background-color var(--t-fast) var(--ease); }
.svc__ligne {
  width: 100%; min-height: 58px; padding: .55rem 1rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  background: none; border: 0; border-radius: var(--r-md); cursor: pointer; text-align: start;
  color: var(--on-deep-2);
  transition: color var(--t-fast) var(--ease);
}
.svc__nom { font-size: var(--step-lead); line-height: 1.25; transition: transform var(--t-base) var(--ease-soft); }
.svc__detail { font-size: var(--step-small); text-align: end; flex: none; max-width: 45%; }
.svc.is-on { background: var(--deep-2); }
.svc.is-on .svc__ligne { color: var(--on-deep); }
.svc.is-on .svc__nom { font-weight: 600; }
@media (hover: hover) {
  .svc__ligne:hover { color: var(--on-deep); }
  .svc__ligne:hover .svc__nom { transform: translateX(6px); }
}
.svc__desc { display: none; max-width: 46ch; padding: 0 1rem 1rem; color: var(--on-deep); text-wrap: pretty; }
.svc.is-on .svc__desc { display: block; animation: rise-in var(--t-base) var(--ease); }
.services__action { margin-top: auto; padding-top: 2rem; }

@media (max-width: 900px) {
  .services__photo, .services__feuille { grid-column: 1 / -1; }
  .services__photo { position: sticky; top: calc(var(--nav-h) + 4px); z-index: 0; }
  .services__cadre { min-height: 0; height: 40svh; }
  /* La liste glisse par-dessus la photo : sa coque devient opaque */
  .services__feuille { position: relative; z-index: 1; background: linear-gradient(var(--shell), var(--shell)) var(--paper); }
  .svc__ligne { min-height: 56px; padding-inline: .75rem; }
  .svc__desc { padding-inline: .75rem; }
  .services__action .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Votre formule : l'aplat rose, la plaque carrée et le bol de couleur ---------- */
.formule {
  margin: var(--gap) var(--gap) 0;
  border-radius: var(--r-xl);
  background: var(--pink);
  padding: var(--pad);
}
.formule__grille {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}
.formule__bol { aspect-ratio: 1; display: grid; place-items: center; }
.bol { width: 84%; height: auto; overflow: visible; }
.bol__bord { fill: var(--bowl); }
.bol__melange { transition: fill .7s var(--ease); }
.bol__parts circle {
  fill: none; stroke-width: 20; stroke-linecap: butt;
  transition: stroke-dasharray .7s var(--ease), stroke-dashoffset .7s var(--ease), stroke .7s var(--ease);
}
.bol__total { font-family: var(--font); font-size: 64px; font-weight: 600; letter-spacing: -0.03em; fill: #171314; }
.bol__pose { font-family: var(--font); font-size: 22px; fill: #171314; }
.bol--fonce .bol__total, .bol--fonce .bol__pose { fill: #FCF8F8; }

.formule__texte { display: flex; flex-direction: column; gap: 2rem; }
.formule__milieu { display: flex; flex-direction: column; align-items: flex-start; }
.onglets { display: inline-flex; gap: 4px; margin-top: 2rem; padding: 5px; border-radius: 999px; background: rgba(23, 19, 20, .07); }
@media (prefers-color-scheme: dark) { .onglets { background: rgba(245, 235, 236, .08); } }
.onglets button {
  min-height: 44px; padding: .5rem 1.15rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); cursor: pointer;
  font-size: var(--step-small); font-weight: 500;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-soft);
}
.onglets button:active { transform: scale(.96); }
.onglets button[aria-selected="true"] { background: var(--sheet); color: var(--ink); font-weight: 600; }
@media (hover: hover) { .onglets button:not([aria-selected="true"]):hover { color: var(--ink); } }
.formule h2 { font-size: var(--step-head); max-width: 14ch; }
.formule__desc { margin-top: 1.25rem; max-width: 46ch; color: var(--ink); text-wrap: pretty; }
.formule__panneau { margin-top: 1.25rem; align-self: stretch; max-width: 30rem; }
.melange { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.melange caption { caption-side: bottom; text-align: start; padding-top: .85rem; font-size: var(--step-small); color: var(--ink-2); font-style: italic; }
.melange th, .melange td { padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: start; }
.melange td { text-align: end; }
.melange tfoot th, .melange tfoot td { border-bottom: 0; font-weight: 600; }
.pastille {
  display: inline-block; width: 14px; height: 14px; margin-right: .7rem; vertical-align: -1px;
  border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(23, 19, 20, .18); /* taste-skill-ignore : contour de la pastille de couleur claire */
}
.formule__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 900px) {
  .formule__grille { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .formule__plaque { width: 100%; max-width: 26rem; justify-self: center; }
  .formule__texte { gap: 1.75rem; }
  .formule__actions .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Un mot de Janie : la lettre à côté d'une photo du salon ---------- */
.lettre__feuille { grid-column: 1 / 8; display: flex; }
.lettre__colonne { flex: 1; padding: var(--pad); display: grid; gap: 1.25rem; align-content: start; }
.lettre h2 { font-size: var(--step-head); margin-bottom: .5rem; }
.lettre p { max-width: 60ch; text-wrap: pretty; }
.lettre .lettre__premier { font-size: var(--step-lead); line-height: 1.35; }
.lettre mark { background: var(--mark); color: inherit; padding: .05em .15em; margin: 0 -.15em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lettre__signature { margin-top: .75rem; display: flex; align-items: center; gap: 1rem; }
.lettre__portrait { width: 56px; height: 56px; flex: none; color: var(--ink); }
.lettre__signature p { font-style: italic; font-size: var(--step-lead); line-height: 1.2; }
.lettre__signature span { display: block; margin-top: .35rem; font-style: normal; font-size: var(--step-small); color: var(--ink-2); }
.lettre__photo { grid-column: 8 / 13; }
.lettre__photo .bezel { height: 100%; }
.lettre__cadre { height: 100%; min-height: 26rem; }
.lettre__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .lettre__feuille { grid-column: 1 / -1; }
  .lettre__photo { display: none; }
}

/* ---------- Le salon, sur toute la largeur ---------- */
.salon { padding-inline: var(--gap); }
.salon__cadre { margin: 0; }
.salon__cadre img { width: 100%; height: auto; aspect-ratio: 2079 / 867; object-fit: cover; }
@media (max-width: 700px) {
  .salon__cadre img { aspect-ratio: 4 / 3; object-position: 30% 50%; }
  .salon__ville { display: none; }
}

/* ---------- Questions : une feuille, les réponses en texte suivi sur deux colonnes ---------- */
.questions { padding-inline: var(--gap); }
.questions__grille {
  padding: var(--pad);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.questions__tete { display: grid; gap: 1rem; }
.questions h2 { font-size: var(--step-head); }
.questions__tete p { max-width: 28ch; color: var(--ink-2); text-wrap: pretty; }
.questions__tete a { color: var(--ink); }
.questions__texte { columns: 2; column-gap: clamp(2rem, 3.5vw, 3.5rem); }
.questions__texte p { break-inside: avoid; margin-bottom: 1.25rem; color: var(--ink-2); text-wrap: pretty; }
.questions__texte strong { color: var(--ink); font-weight: 600; }
.questions__texte a { color: var(--ink); }
@media (max-width: 900px) {
  .questions__grille { grid-template-columns: minmax(0, 1fr); }
  .questions__texte { columns: 1; }
}

/* ---------- Contact : aplat sombre, bande de photos, trois cellules ---------- */
.contact {
  margin: var(--gap) var(--gap) 0;
  border-radius: var(--r-xl);
  background: var(--deep); color: var(--on-deep);
  padding: var(--gap) 0 var(--pad);
  overflow: hidden;
}
.bande { overflow: hidden; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.bande__piste { display: flex; gap: 8px; width: max-content; animation: defile 70s linear infinite; }
.bande img { height: 150px; width: auto; border-radius: var(--r-md); }
@media (hover: hover) { .bande:hover .bande__piste { animation-play-state: paused; } }
@keyframes defile { to { transform: translateX(-50%); } }

.contact__grille { padding-inline: var(--pad); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact__gauche { grid-column: 1 / 7; }
.contact h2 { font-size: var(--step-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; }
.cellules { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cellule {
  min-height: 96px; padding: 1rem 1.15rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem;
  border-radius: var(--r-md);
  background: var(--deep-2); color: var(--on-deep);
  text-decoration: none; line-height: 1.25;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-soft);
}
.cellule i { font-size: 1.25rem; flex: none; transition: transform var(--t-base) var(--ease-soft); }
.cellule:active { transform: scale(.97); }
@media (hover: hover) { .cellule:hover { background: #3A3134; } .cellule:hover i { transform: translate(2px, -2px); } }
.cellule--texte span:first-child { display: grid; gap: .2rem; font-size: var(--step-small); color: var(--on-deep-2); }
.cellule--texte strong { font-size: var(--step-body); font-weight: 600; color: var(--on-deep); }
.cellule--principale { background: var(--pink); color: #171314; font-weight: 600; }
@media (hover: hover) { .cellule--principale:hover { background: #F4E2E3; } }
@media (prefers-color-scheme: dark) { .cellule--principale { background: #EBD2D4; } }
.contact__petit { margin-top: 1rem; font-size: var(--step-small); color: var(--on-deep-2); max-width: 46ch; }
.contact__form { grid-column: 8 / 13; }
.carte { padding: clamp(1.5rem, 3vw, 2.25rem); color: var(--ink); }
.carte > h3 { font-size: var(--step-lead); margin-bottom: 1.5rem; }

@media (max-width: 1000px) {
  .contact__gauche, .contact__form { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .bande { overflow-x: auto; scrollbar-width: none; }
  .bande::-webkit-scrollbar { display: none; }
  .bande__piste { animation: none; }
  .bande img { height: 110px; }
  .contact h2 { font-size: clamp(2.1rem, 9vw, 2.75rem); }
  .cellules { grid-template-columns: minmax(0, 1fr); }
  .cellule { min-height: 60px; align-items: center; }
  .contact__grille { padding-inline: 1rem; }
  .carte { padding: 1.5rem 1rem; }
}

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: var(--step-small); }
.field .error { display: none; font-size: var(--step-small); font-weight: 500; color: var(--error); }
.field.is-invalid .error { display: block; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem;
  border-radius: var(--r-sm); border: 1px solid var(--field-border);
  background: var(--paper); color: var(--ink);
  transition: border-color var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore : champ piège caché, pas un filet */
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form__alert {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .9rem 1rem; border-radius: var(--r-sm);
  background: var(--error-bg); color: var(--error); font-size: var(--step-small); font-weight: 500;
  overflow-wrap: anywhere; animation: rise-in var(--t-base) var(--ease);
}
.form__alert i { font-size: 1.2rem; flex: none; }
.form__consent { font-size: var(--step-small); color: var(--ink-2); text-align: center; }
.form__success { display: grid; gap: .75rem; padding: 1rem 0; animation: rise-in .45s var(--ease); }
.form__success-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--pink); color: #171314; }
.form__success h3 { font-size: var(--step-lead); }
.form__success p { color: var(--ink-2); }

/* ---------- Pied de page : la photo et le menu, en une rangée compacte ---------- */
.footer { padding: var(--gap); }
.footer__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); }
.footer__photo .bezel { height: 100%; }
.footer__cadre { height: 100%; min-height: 22rem; }
.footer__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 70%; }
.footer__menu { display: flex; flex-direction: column; padding: var(--pad); }
.footer__logo { display: inline-flex; color: var(--ink); align-self: flex-start; }
.footer__logo svg { width: 150px; height: auto; aspect-ratio: 243.27 / 112.99; }
.footer__liens { margin-top: clamp(1.5rem, 4vh, 2.5rem); display: flex; flex-wrap: wrap; gap: .2rem 1.75rem; }
.footer__liens a {
  font-size: var(--step-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  text-decoration: none; padding: .15rem 0;
  transition: transform var(--t-base) var(--ease-soft), color var(--t-fast) var(--ease);
}
@media (hover: hover) {
  .footer__liens:hover a { color: var(--ink-3); }
  .footer__liens a:hover { color: var(--ink); transform: translateX(8px); }
}
.footer__blocs { margin-top: auto; padding-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; font-size: var(--step-small); }
.footer__blocs h3 { font-size: var(--step-small); font-weight: 600; letter-spacing: 0; margin-bottom: .6rem; }
.footer__blocs p, .footer__blocs a { color: var(--ink-2); }
.footer__blocs a { display: flex; align-items: center; gap: .5rem; text-decoration: none; padding: .3rem 0; }
@media (hover: hover) { .footer__blocs a:hover { color: var(--ink); text-decoration: underline; } }
.footer__blocs i { font-size: 1.1rem; }
.footer__bas { margin-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: var(--step-small); color: var(--ink-3); }
.footer__espace { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-3); text-decoration: none; }
@media (hover: hover) { .footer__espace:hover { color: var(--ink); text-decoration: underline; } }
@media (max-width: 900px) {
  .footer { padding-bottom: calc(var(--gap) + 76px); }
  .footer__grille { grid-template-columns: minmax(0, 1fr); }
  .footer__cadre { min-height: 40svh; }
  .footer__menu { padding: 2rem 1rem 1rem; }
  .footer__liens { flex-direction: column; gap: .35rem; }
  .footer__liens a { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .footer__blocs { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Bouton d'action collant (téléphone et tablette) ---------- */
.mobile-cta { display: none; }
@media (max-width: 1080px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 38;
    display: flex; align-items: center; gap: .5rem;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    box-shadow: 0 -18px 30px -28px rgba(var(--shadow-rgb), .5); /* taste-skill-ignore : barre collante du bas : elle flotte */
    visibility: hidden; transform: translateY(110%);
    transition: transform var(--t-base) var(--ease-soft), visibility 0s linear var(--t-base);
  }
  .mobile-cta.is-shown { visibility: visible; transform: none; transition: transform var(--t-base) var(--ease-soft), visibility 0s; }
  body.menu-open .mobile-cta { visibility: hidden; transform: translateY(110%); }
}
.mobile-cta__call {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem;
  color: var(--ink); text-decoration: none; background: var(--tint);
}
.mobile-cta__main { flex: 1; justify-content: space-between; }

/* ---------- Apparition au défilement ---------- */
@keyframes reveal-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .reveal:not(.is-visible) { opacity: 0; }
.js .reveal.is-visible { animation: reveal-in .85s var(--ease) calc(var(--i, 0) * 80ms) backwards; }

[hidden] { display: none !important; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; animation: none; }
  .scene__photos img, .services__cadre img { transition: none; }
  .bande__piste { animation: none; }
  .bande { overflow-x: auto; }
  .bol__melange, .bol__parts circle { transition: none; }
  .form__alert, .form__success, .svc.is-on .svc__desc { animation: none; }
  .menu, .menu__inner > a, .nav { transition: none; }
  .mobile-cta, .mobile-cta.is-shown { transform: none; transition: none; }
  .btn, .btn__icon, .cellule, .cellule i, .svc, .svc__nom, .footer__liens a, .vignette, .vignette img { transition: none; }
}
