/*
 * Siltek Group , feuille de style du site vitrine.
 * Charte : rouge #8E171D, logo en Gotham, texte et titres en Montserrat.
 * Effets (effets.js) : defilement fluide, titres qui montent mot par mot, images qui se devoilent, parallaxe, frise qui
 * se remplit, nuancier en relief, carte qui s'allume. Tout est coupe si l'utilisateur demande moins d'animations.
 */

/* Montserrat hebergee sur le site (licence OFL, assets/polices/OFL.txt), prechargee dans la page. « block » : le texte
   attend la police quelques instants au lieu de s'afficher dans une police de secours puis de basculer. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url("assets/polices/montserrat-latin.woff2") format("woff2");
  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;
}

:root {
  --resine: #150D0E;
  --graphite: #231A1B;
  --sang: #8E171D;
  --braise: #B8262E;
  --marbre: #EDECEA;
  --pierre: #E1DDDA;
  --trait: #D2CCC8;
  --veine: #6A6361;
  --encre: #1E1718;
  --brume: #BDB3B2;
  --blanc: #FFFFFF;

  --titre: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --cadre: 1240px;
  --gouttiere: clamp(20px, 4.5vw, 56px);
  --entete: 78px;
  --rayon: 4px;
  --courbe: cubic-bezier(.2, .8, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--marbre);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--braise); outline-offset: 3px; }
::selection { background: var(--sang); color: var(--blanc); }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.evitement {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--blanc); color: var(--resine); padding: 12px 18px; border-radius: var(--rayon);
  font-weight: 600; text-decoration: none;
}
.evitement:focus { top: 12px; }

main > section[id] { scroll-margin-top: calc(var(--entete) - 1px); }

.cadre { max-width: var(--cadre); margin: 0 auto; padding: 0 var(--gouttiere); }
.insecable { white-space: nowrap; }

h1, h2 {
  margin: 0;
  font-family: var(--titre);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; max-width: 20ch; }
h3 { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 1.2rem; line-height: 1.35; }
p { margin: 0 0 1em; max-width: 62ch; }

/* --- Boutons --- */
.bouton {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--sang); border-radius: var(--rayon);
  background: var(--sang); color: var(--blanc);
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--courbe);
}
.bouton--plein { padding-block: 12px; }
/* Un reflet passe sur le bouton au survol, comme sur une resine qui brille. */
.bouton::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--courbe);
}
.bouton:hover::after { transform: translateX(120%); }
.bouton:hover { background: var(--braise); border-color: var(--braise); }
.bouton--petit { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.bouton--plein { width: 100%; }
.bouton--fantome { background: transparent; border-color: rgba(255, 255, 255, .5); color: var(--blanc); }
.bouton--fantome:hover { background: rgba(255, 255, 255, .08); border-color: var(--blanc); }
.bouton--fantome-sombre { background: transparent; border-color: var(--trait); color: var(--encre); }
.bouton--fantome-sombre:hover { background: var(--pierre); border-color: var(--veine); }

/* --- En-tete --- */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .35s, box-shadow .35s, transform .45s var(--courbe); }
.entete--pleine, .entete--ouvert { background: rgba(21, 13, 14, .95); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
@supports (backdrop-filter: blur(8px)) { .entete--pleine { background: rgba(21, 13, 14, .9); backdrop-filter: blur(14px) saturate(1.2); } }
.entete--cache:not(.entete--ouvert) { transform: translateY(-100%); }
.entete__barre {
  max-width: var(--cadre); height: var(--entete); margin: 0 auto; padding: 0 var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.entete__logo { display: block; flex: none; }
.entete__logo img { width: clamp(150px, 15vw, 186px); }
.menu { display: flex; align-items: center; gap: 30px; }
.menu ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.menu ul a {
  position: relative; display: inline-block; padding: 6px 0;
  color: rgba(255, 255, 255, .84); font-size: 0.93rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s;
}
.menu ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--braise);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--courbe);
}
.menu ul a:hover, .menu ul a[aria-current="true"] { color: var(--blanc); }
.menu ul a:hover::after, .menu ul a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.entete__ouvrir { display: none; }

/* --- 1. Accueil : le sol en resine --- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--resine); color: var(--blanc);
}
.hero__resine { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero--sans-webgl { background: var(--resine) url("assets/finitions/noir-rouge-sol.jpg") center / cover no-repeat; }
.hero--sans-webgl .hero__resine { display: none; }
.hero__voile {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(21, 13, 14, .9) 0%, rgba(21, 13, 14, .62) 38%, rgba(21, 13, 14, 0) 72%),
    linear-gradient(0deg, rgba(21, 13, 14, .9) 0%, rgba(21, 13, 14, 0) 42%),
    linear-gradient(180deg, rgba(21, 13, 14, .7) 0%, rgba(21, 13, 14, 0) 22%);
}
.hero__contenu {
  width: 100%; max-width: var(--cadre); margin: 0 auto;
  padding: calc(var(--entete) + 56px) var(--gouttiere) 0;
  will-change: transform, opacity;
}
.hero__titre { font-size: clamp(2.4rem, 5.1vw, 4.7rem); line-height: 1.04; max-width: 16ch; letter-spacing: -0.03em; }
.hero__texte { max-width: 46ch; margin: 28px 0 36px; color: rgba(255, 255, 255, .84); font-size: clamp(1.02rem, 1.25vw, 1.16rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.piliers {
  width: 100%; max-width: var(--cadre); margin: 0 auto; padding: 72px var(--gouttiere) 36px;
  display: flex; flex-wrap: wrap; gap: 14px 44px; list-style: none;
}
.piliers li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .8); font-size: 0.95rem; font-weight: 500; }
.piliers svg { width: 22px; height: 22px; fill: none; stroke: var(--braise); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.hero__defiler {
  position: absolute; right: var(--gouttiere); bottom: 40px; width: 26px; height: 44px;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 14px;
}
.hero__defiler span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--blanc); }
@media (prefers-reduced-motion: no-preference) { .hero__defiler span { animation: molette 2.2s var(--courbe) infinite; } }
@keyframes molette { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* --- Bandeau defilant --- */
.bandeau { overflow: hidden; background: var(--sang); color: var(--blanc); padding: 18px 0; }
.bandeau__piste { display: flex; align-items: center; gap: 34px; width: max-content; }
.bandeau__piste span { font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.bandeau__piste i { flex: none; width: 10px; height: 10px; transform: rotate(45deg); background: rgba(255, 255, 255, .55); }
@media (prefers-reduced-motion: no-preference) { .bandeau__piste { animation: bandeau 38s linear infinite; } }
@keyframes bandeau { to { transform: translateX(-50%); } }

/* --- Sections --- */
.bloc { padding: clamp(88px, 11vw, 150px) 0; }
.bloc--clair { background: var(--marbre); color: var(--encre); }
.bloc--pierre { background: var(--pierre); color: var(--encre); }
.bloc--sombre { background: var(--resine); color: var(--blanc); }
.entete-bloc { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 84px); }
.entete-bloc p { margin: 0; font-size: 1.1rem; }
.entete-bloc--centre { justify-items: center; text-align: center; }
.entete-bloc--centre h2 { max-width: 22ch; }
.bloc--clair .entete-bloc p { color: var(--veine); }
.bloc--sombre .entete-bloc p { color: var(--brume); }

.points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { display: flex; align-items: baseline; gap: 14px; font-weight: 500; }
.points li::before { content: ""; flex: none; width: 18px; height: 1.5px; background: var(--sang); transform: translateY(-4px); }
.points--clairs li { color: rgba(255, 255, 255, .88); }
.points--clairs li::before { background: var(--braise); }

/* --- 2. A propos --- */
.apropos { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faits { margin: 44px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.faits li { display: flex; align-items: center; gap: 16px; font-weight: 500; }
.faits li::before { content: ""; width: 30px; height: 1.5px; background: var(--sang); }
.apropos__texte p { font-size: 1.08rem; }
.metiers {
  margin: 44px 0 0; padding-top: 30px; border-top: 1px solid var(--trait);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.metiers dt { margin-bottom: 6px; font-weight: 700; }
.metiers dd { margin: 0; color: var(--veine); font-size: 0.95rem; line-height: 1.55; }

/* --- 3. Accompagnement : la frise --- */
.accompagnement { position: relative; overflow: hidden; }
.accompagnement::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(142, 23, 29, .35), rgba(142, 23, 29, 0) 62%);
}
.frise {
  --progression: 0;
  position: relative; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px;
}
.frise__fil {
  position: absolute; left: 10%; right: 10%; top: 40px; height: 2px; z-index: 0;
  background: rgba(255, 255, 255, .12); border-radius: 2px;
}
.frise__fil span {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--sang), var(--braise));
  transform: scaleX(var(--progression)); transform-origin: left;
  box-shadow: 0 0 18px rgba(184, 38, 46, .55);
}
.frise__etape {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 10px 8px;
}
.frise__pastille {
  display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 26px;
  border: 1.5px solid rgba(255, 255, 255, .18); border-radius: 50%;
  background: var(--resine); color: var(--brume);
  transition: background-color .5s, border-color .5s, color .5s, box-shadow .5s, transform .5s var(--courbe);
}
.frise__pastille svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.frise__etape.est-active .frise__pastille {
  border-color: var(--braise); background: var(--sang); color: var(--blanc);
  box-shadow: 0 0 0 8px rgba(142, 23, 29, .18), 0 14px 34px rgba(142, 23, 29, .45);
  transform: scale(1.04);
}
.frise__num { margin-bottom: 8px; color: var(--braise); font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; }
.frise__etape h3 { margin-bottom: 10px; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.frise__etape p { margin: 0 0 14px; color: rgba(255, 255, 255, .7); font-size: 0.93rem; line-height: 1.6; }
.marque {
  display: inline-block; padding: 3px 11px; border: 1px solid rgba(184, 38, 46, .5); border-radius: 99px;
  background: rgba(184, 38, 46, .16); color: #F2BCBF; font-size: 0.74rem; font-weight: 600;
}
.marque--douce { border-color: rgba(255, 255, 255, .22); background: transparent; color: var(--brume); }
.accompagnement__action { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 72px); }

/* --- 4. Domaines --- */
.domaine {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.domaine--inverse { grid-template-columns: 5fr 7fr; }
.domaine--inverse .domaine__image { order: 2; }
.domaine__image {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--resine);
  box-shadow: 0 30px 60px -30px rgba(21, 13, 14, .45);
}
.domaine__image img { width: 100%; height: 118%; object-fit: cover; transform: translateY(-8%); will-change: transform; transition: scale 1.2s var(--courbe); }
.domaine__image:hover img { scale: 1.035; }
.domaine__image figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: 99px;
  background: rgba(21, 13, 14, .72); color: var(--blanc); font-size: 0.8rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.domaine__texte h3 {
  margin-bottom: 18px; font-family: var(--titre); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15;
}
.domaine__texte p { color: #4A4341; }
.au-dela {
  display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--trait);
}
.au-dela img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 6px; }
.au-dela h3 { margin-bottom: 12px; font-family: var(--titre); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.2; }
.au-dela p { margin: 0; color: #4A4341; }

/* --- Avant / apres : le comparateur a glisser --- */
.transformation { position: relative; overflow: hidden; }
.transformation::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(circle at center, rgba(142, 23, 29, .28), rgba(142, 23, 29, 0) 60%);
}
.transformation__grille { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.transformation__texte > p { margin-top: 22px; color: var(--brume); font-size: 1.1rem; }
.transformation__choix { display: grid; gap: 10px; margin: 34px 0 0; }
.transformation__choix button {
  display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 16px; width: 100%;
  padding: 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px;
  background: rgba(255, 255, 255, .03); color: var(--blanc); text-align: left; cursor: pointer;
  font: inherit; transition: border-color .3s, background-color .3s, transform .3s var(--courbe);
}
@media (hover: hover) { .transformation__choix button:hover { border-color: rgba(255, 255, 255, .28); transform: translateX(4px); } }
.transformation__choix button[aria-selected="true"] { border-color: var(--braise); background: rgba(142, 23, 29, .22); }
.choix__vignette { width: 58px; height: 58px; border-radius: 6px; background: var(--vignette) center / cover; }
.choix__texte { display: grid; gap: 2px; }
.choix__texte strong { font-weight: 700; }
.choix__texte span { color: var(--brume); font-size: 0.88rem; }
.transformation__credit { margin: 22px 0 0; color: rgba(255, 255, 255, .5); font-size: 0.82rem; }

.comparateur {
  --pos: 50%;
  position: relative; overflow: hidden; aspect-ratio: 2 / 3; width: 100%; max-width: 560px; justify-self: end;
  cursor: ew-resize; touch-action: pan-y;
  max-height: calc(100vh - var(--entete) - 60px);
  border-radius: 10px; background: var(--graphite); user-select: none; -webkit-user-select: none;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
}
.comparateur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s; -webkit-user-drag: none; }
.comparateur.en-changement img { opacity: 0; }
.comparateur__avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparateur__poignee {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; pointer-events: none;
  background: var(--blanc); box-shadow: 0 0 22px rgba(255, 255, 255, .45);
}
.comparateur__poignee span {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  background: var(--sang); box-shadow: 0 0 0 7px rgba(142, 23, 29, .28), 0 14px 34px rgba(0, 0, 0, .45);
  transition: transform .3s var(--courbe);
}
.comparateur__poignee span::before, .comparateur__poignee span::after {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  border-top: 2px solid var(--blanc); border-left: 2px solid var(--blanc);
}
.comparateur__poignee span::before { left: 15px; transform: rotate(-45deg); }
.comparateur__poignee span::after { right: 15px; transform: rotate(135deg); }
.comparateur:hover .comparateur__poignee span { transform: scale(1.08); }
.comparateur__etiquette {
  position: absolute; top: 16px; z-index: 2; padding: 6px 13px; border-radius: 99px;
  background: rgba(21, 13, 14, .72); color: var(--blanc); font-size: 0.8rem; font-weight: 700; pointer-events: none;
  backdrop-filter: blur(6px); transition: opacity .3s;
}
.comparateur__etiquette--avant { left: 16px; }
.comparateur__etiquette--apres { right: 16px; background: var(--sang); }
/* Le curseur ne sert qu'au clavier et aux lecteurs d'ecran : la souris et le doigt passent par app.js. */
.comparateur__curseur {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0;
  pointer-events: none; -webkit-appearance: none; appearance: none;
}
.comparateur:has(.comparateur__curseur:focus-visible) { outline: 3px solid var(--braise); outline-offset: 5px; }

@media (max-width: 980px) {
  /* Sur telephone : titre, texte, puis le comparateur tout de suite, et les pieces en dessous. */
  .transformation__grille { grid-template-columns: 1fr; gap: 26px; }
  .transformation__texte { display: contents; }
  .transformation__texte > h2 { order: 1; }
  .transformation__texte > p:not(.transformation__credit) { order: 2; margin: 0; }
  .comparateur { order: 3; justify-self: center; max-width: 520px; max-height: none; }
  .transformation__choix { order: 4; margin: 0; grid-template-columns: 1fr 1fr; }
  .transformation__credit { order: 5; margin: 0; }
}
@media (max-width: 560px) {
  .transformation__choix { grid-template-columns: 1fr; }
  .transformation__choix button { grid-template-columns: 48px 1fr; }
  .choix__vignette { width: 48px; height: 48px; }
}

/* --- Finitions : l'atelier (atelier.js ajoute .atelier-actif sur <html> quand WebGL marche ; sinon le nuancier en images) --- */
.finitions { overflow-x: clip; }
.atelier { display: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.atelier-actif .atelier { display: grid; }
.atelier-actif .nuancier { display: none; }
.atelier__apercu {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 10px;
  background: var(--resine); touch-action: pan-y;
  box-shadow: 0 44px 80px -40px rgba(21, 13, 14, .6), 0 0 0 1px rgba(21, 13, 14, .06);
}
.atelier__apercu canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.atelier__legende {
  position: absolute; left: 16px; bottom: 16px; display: grid; padding: 10px 16px; border-radius: 8px;
  background: rgba(21, 13, 14, .72); color: var(--blanc); line-height: 1.3; pointer-events: none;
  backdrop-filter: blur(8px);
}
.atelier__legende strong { font-size: 1.05rem; font-weight: 700; }
.atelier__legende span { color: #D8CFCD; font-size: 0.88rem; }
.atelier__panneau { min-width: 0; }
.atelier__groupe { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.atelier__groupe legend { margin-bottom: 12px; padding: 0; font-size: 1rem; font-weight: 700; }
.atelier__effets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.effet {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 7px;
  border: 1px solid var(--trait); border-radius: 8px; background: rgba(255, 255, 255, .55); cursor: pointer;
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .3s var(--courbe);
}
.effet input, .teinte input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.effet__vignette {
  flex: none; width: 40px; height: 40px; border-radius: 6px;
  background: var(--resine) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.effet__nom { overflow: hidden; font-size: 0.95rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.effet.est-choisi { border-color: var(--sang); background: var(--blanc); box-shadow: 0 0 0 1px var(--sang), 0 12px 24px -16px rgba(142, 23, 29, .6); }
.effet:has(input:focus-visible), .teinte:has(input:focus-visible) { outline: 3px solid var(--braise); outline-offset: 3px; }
.atelier__description { min-height: 3.3em; margin: -4px 0 20px; color: #4A4341; }
.atelier__teintes { display: flex; flex-wrap: wrap; gap: 10px; }
.teinte { position: relative; display: block; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; }
.teinte__vignette {
  display: block; width: 100%; height: 100%; border-radius: 50%; background-position: center; background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .3s var(--courbe), box-shadow .3s;
}
.teinte.est-choisi .teinte__vignette { box-shadow: 0 0 0 3px var(--marbre), 0 0 0 5px var(--sang); }
.atelier__note { margin: 0 0 22px; color: var(--veine); font-size: 0.95rem; }
.atelier__mention { margin: 14px 0 0; color: var(--veine); font-size: 0.8rem; }
@media (hover: hover) {
  .effet:hover { border-color: var(--veine); transform: translateY(-1px); }
  .effet.est-choisi:hover { border-color: var(--sang); }
  .teinte:hover .teinte__vignette { transform: scale(1.08); }
}

/* --- Finitions : le nuancier en images (secours sans WebGL) --- */
.nuancier { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.echantillon { perspective: 900px; }
.echantillon__surface {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: var(--image) center / cover;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--courbe), box-shadow .5s;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.echantillon__reflet {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 45%);
  mix-blend-mode: soft-light; transition: opacity .4s;
}
.echantillon:hover .echantillon__surface { box-shadow: 0 34px 70px -26px rgba(142, 23, 29, .55), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.echantillon p { margin: 16px 0 0; font-weight: 600; }

/* --- Questions --- */
.questions { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.questions__liste details { border-bottom: 1px solid rgba(30, 23, 24, .15); }
.questions__liste details:first-child { border-top: 1px solid rgba(30, 23, 24, .15); }
.questions__liste summary {
  position: relative; padding: 24px 52px 24px 0; cursor: pointer; list-style: none;
  font-family: var(--titre); font-weight: 600; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.35;
  transition: color .2s;
}
.questions__liste summary:hover { color: var(--sang); }
.questions__liste summary::-webkit-details-marker { display: none; }
.questions__liste summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  background:
    linear-gradient(var(--sang), var(--sang)) center / 16px 1.5px no-repeat,
    linear-gradient(var(--sang), var(--sang)) center / 1.5px 16px no-repeat;
  transition: transform .35s var(--courbe);
}
.questions__liste details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.questions__liste details p { margin: 0; padding: 0 52px 26px 0; color: var(--veine); }
@media (prefers-reduced-motion: no-preference) {
  .questions__liste details[open] p { animation: deplie .45s var(--courbe); }
}
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } }

/* --- 5. Reservation d'un appel --- */
.reservation { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.reservation__intro { position: sticky; top: calc(var(--entete) + 40px); }
.reservation__intro > p { margin-top: 22px; color: var(--brume); font-size: 1.1rem; }
.agenda { border-radius: 8px; background: var(--marbre); color: var(--encre); padding: clamp(22px, 3vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.agenda__etape { min-width: 0; margin: 0 0 34px; padding: 0; border: 0; transition: opacity .3s; }
.agenda__etape:last-child { margin-bottom: 0; }
.agenda__etape[disabled] { opacity: .42; }
.agenda__etape legend { margin-bottom: 16px; padding: 0; font-size: 1.05rem; font-weight: 700; }
.agenda__aide { margin: 0 0 12px; color: var(--veine); font-size: 0.92rem; }
.calendrier__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.calendrier__mois { margin: 0; font-family: var(--titre); font-weight: 600; font-size: 1.15rem; }
.calendrier__fleche {
  display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--trait); border-radius: 50%;
  background: transparent; color: var(--encre); cursor: pointer;
}
.calendrier__fleche:hover:not(:disabled) { background: var(--pierre); }
.calendrier__fleche:disabled { opacity: .3; cursor: default; }
.calendrier__fleche svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.calendrier__jours-semaine, .calendrier__grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendrier__jours-semaine span { padding: 4px 0; text-align: center; color: var(--veine); font-size: 0.8rem; }
.jour {
  height: 46px; border: 1px solid var(--trait); border-radius: var(--rayon);
  background: var(--blanc); color: var(--encre); font: 600 0.95rem var(--sans); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .2s var(--courbe);
}
.jour:hover:not(:disabled) { border-color: var(--sang); transform: translateY(-2px); }
.jour:disabled { border-color: transparent; background: transparent; color: #B4ACA9; font-weight: 400; cursor: default; }
.jour[aria-pressed="true"] { border-color: var(--sang); background: var(--sang); color: var(--blanc); }
.creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.creneau { position: relative; }
.creneau input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.creneau span {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc);
  font-size: 0.92rem; font-weight: 600; transition: background-color .15s, border-color .15s, color .15s;
}
.creneau input:hover + span { border-color: var(--sang); }
.creneau input:checked + span { border-color: var(--resine); background: var(--resine); color: var(--blanc); }
.creneau input:focus-visible + span { outline: 3px solid var(--braise); outline-offset: 2px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.champ label, .champ__libelle { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 600; }
.facultatif { color: var(--veine); font-weight: 500; }
.champ input:not([type="radio"]), .champ textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #CDC6C2; border-radius: var(--rayon); background: var(--blanc); color: var(--encre);
  font: inherit; font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; }
.champ input:not([type="radio"]):focus, .champ textarea:focus { outline: none; border-color: var(--sang); box-shadow: 0 0 0 3px rgba(142, 23, 29, .16); }
.champ--large { grid-column: 1 / -1; }
.champ--erreur input:not([type="radio"]), .champ--erreur .bascule span { border-color: var(--braise); }
.bascule { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.bascule label { position: relative; margin: 0; }
.bascule input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bascule span {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  border: 1px solid #CDC6C2; border-radius: var(--rayon); background: var(--blanc);
  font-size: 0.92rem; font-weight: 600;
}
.bascule input:checked + span { border-color: var(--resine); background: var(--resine); color: var(--blanc); }
.bascule input:focus-visible + span { outline: 3px solid var(--braise); outline-offset: 2px; }
.agenda__erreur { margin: 18px 0 0; color: var(--braise); font-weight: 600; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.agenda__formulaire .bouton--plein { margin-top: 22px; }
.agenda__mention { margin: 12px 0 0; color: var(--veine); font-size: 0.84rem; }
.agenda__confirmation { padding: clamp(8px, 2vw, 24px) 0; }
.agenda__confirmation:focus { outline: none; }
.agenda__coche { width: 56px; height: 56px; margin-bottom: 18px; fill: none; stroke: var(--sang); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .agenda__coche circle { stroke-dasharray: 140; stroke-dashoffset: 140; animation: trace .8s var(--courbe) forwards; }
  .agenda__coche path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: trace .5s .55s var(--courbe) forwards; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
.agenda__confirmation h3 { margin-bottom: 10px; font-family: var(--titre); font-weight: 700; letter-spacing: -0.02em; font-size: 1.8rem; }
.agenda__apercu { padding: 12px 14px; border-left: 3px solid var(--sang); background: var(--pierre); color: var(--veine); font-size: 0.9rem; }

/* --- 6. Zone et contact --- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__texte > p { margin-top: 22px; color: var(--veine); font-size: 1.1rem; }
.coordonnees { margin: 32px 0 40px; }
.coordonnees div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.coordonnees div:first-child { border-top: 1px solid var(--trait); }
.coordonnees dt { color: var(--veine); font-size: 0.92rem; }
.coordonnees dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.coordonnees a { text-decoration-color: var(--sang); text-underline-offset: 4px; }
.coordonnees a:hover { color: var(--sang); }
.a-completer { color: var(--veine); font-style: italic; font-weight: 500 !important; }
.carte { margin: 0; }
.carte svg { width: 100%; height: auto; overflow: visible; }
.carte__pays { fill: var(--sang); filter: drop-shadow(0 30px 40px rgba(142, 23, 29, .25)); }
.ville circle { fill: rgba(255, 255, 255, .92); }
.ville text { fill: var(--blanc); font: 600 23px var(--sans); letter-spacing: -.01em; }
.ville--capitale circle:not(.ville__onde) { fill: var(--blanc); }
.ville--capitale text { font-size: 30px; font-weight: 800; }
.ville__onde { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .carte .ville { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--courbe), transform .6s var(--courbe); transition-delay: calc(var(--i) * 90ms + 200ms); }
  .carte.est-visible .ville { opacity: 1; transform: none; }
  .carte.est-visible .ville__onde { animation: onde 2.6s ease-out infinite; }
}
@keyframes onde { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }

/* --- Pied de page --- */
.pied { padding: 72px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--resine); color: rgba(255, 255, 255, .7); }
.pied__grille { display: grid; grid-template-columns: 1fr auto; gap: 40px 64px; }
.pied__marque img { width: 200px; }
.pied__marque p { margin: 16px 0 0; }
.pied__liens { display: flex; flex-wrap: wrap; align-content: start; gap: 12px 28px; max-width: 560px; }
.pied__liens a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.pied__liens a:hover { color: var(--blanc); text-decoration: underline; text-decoration-color: var(--braise); text-underline-offset: 4px; }
.pied__legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 0.86rem; max-width: none; }

/* --- Bouton collant (telephone) --- */
.barre-mobile { display: none; }

/* --- Effets d'apparition (effets.js ajoute .js-effets sur <html> ; sans JS ni animation, tout est visible) --- */
@media (prefers-reduced-motion: no-preference) {
  .js-effets .titre-anime:not(.est-decoupe) { visibility: hidden; }
  .js-effets .titre-anime .mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .js-effets .titre-anime .mot > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--courbe); transition-delay: calc(var(--m) * 55ms); }
  .js-effets .titre-anime.est-visible .mot > span { transform: none; }

  .js-effets .revele { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--courbe), transform .9s var(--courbe); transition-delay: var(--delai, 0s); }
  .js-effets .revele.est-visible { opacity: 1; transform: none; }

  .js-effets .apparait { opacity: 0; }
  .js-effets.polices-pretes .apparait { animation: apparait 1s var(--courbe) forwards; animation-delay: calc(var(--delai, 0s) + .1s); }

  .js-effets .image-revele { clip-path: inset(12% 12% 12% 12% round 6px); transition: clip-path 1.3s var(--courbe); }
  .js-effets .image-revele.est-visible { clip-path: inset(0 0 0 0 round 6px); }
  .js-effets .image-revele img { scale: 1.12; transition: scale 1.6s var(--courbe); }
  .js-effets .image-revele.est-visible img { scale: 1; }
  .js-effets .image-revele.est-visible:hover img { scale: 1.035; }
  .js-effets .image-revele figcaption { opacity: 0; transition: opacity .6s var(--courbe) .9s; }
  .js-effets .image-revele.est-visible figcaption { opacity: 1; }

  .js-effets .frise__etape { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--courbe), transform .8s var(--courbe); }
  .js-effets .frise.est-visible .frise__etape { opacity: 1; transform: none; }
  .js-effets .frise.est-visible .frise__etape:nth-child(3) { transition-delay: .1s; }
  .js-effets .frise.est-visible .frise__etape:nth-child(4) { transition-delay: .2s; }
  .js-effets .frise.est-visible .frise__etape:nth-child(5) { transition-delay: .3s; }
  .js-effets .frise.est-visible .frise__etape:nth-child(6) { transition-delay: .4s; }
}
@keyframes apparait { to { opacity: 1; } }

/* --- Tablette et telephone --- */
/* Sous 1100 px, cinq colonnes sont trop etroites (8 lignes de texte a 1024 px) : la frise passe a la verticale. */
@media (max-width: 1100px) {
  .frise { max-width: 760px; margin: 0 auto; }
  .frise { grid-template-columns: 1fr; gap: 0; }
  .frise__fil { left: 39px; right: auto; top: 40px; bottom: 40px; width: 2px; height: auto; }
  .frise__fil span { transform: scaleY(var(--progression)); transform-origin: top; background: linear-gradient(180deg, var(--sang), var(--braise)); }
  .frise__etape {
    display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 22px; align-items: start;
    text-align: left; padding: 0 0 38px;
  }
  .frise__pastille { grid-row: 1 / span 4; margin-bottom: 0; }
  .frise__etape .marque { justify-self: start; }
}

/* En dessous de 1180 px, six liens et le bouton ne tiennent plus sur une ligne : menu burger. */
@media (max-width: 1180px) {
  .entete__ouvrir {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 48px; height: 48px; padding: 12px; border: 0; background: transparent; cursor: pointer;
  }
  .entete__trait { display: block; height: 1.5px; background: var(--blanc); transition: transform .25s; }
  .entete--ouvert .entete__trait:first-child { transform: translateY(4.25px) rotate(45deg); }
  .entete--ouvert .entete__trait:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
  .menu {
    position: fixed; inset: var(--entete) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gouttiere) 28px; background: var(--resine);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .entete--ouvert .menu { opacity: 1; visibility: visible; transform: none; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.1rem; }
  .menu ul a::after { display: none; }
  .menu .bouton { margin-top: 22px; min-height: 52px; }
}

@media (max-width: 980px) {
  .apropos, .questions, .reservation, .contact, .pied__grille { grid-template-columns: 1fr; }
  .reservation__intro { position: static; }
  .domaine, .domaine--inverse { grid-template-columns: 1fr; }
  .domaine--inverse .domaine__image { order: 0; }
  .carte { max-width: 620px; }

  .nuancier { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* L'atelier passe en une colonne : l'apercu en haut, les choix juste en dessous (la coulee part d'en bas). */
  /* minmax(0, 1fr) : la rangee d'effets qui defile au doigt ne doit jamais elargir la colonne. */
  .atelier { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .atelier__apercu { aspect-ratio: 16 / 10; }
  .atelier__effets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .atelier__description { min-height: 0; }
}

@media (max-width: 760px) {
  .barre-mobile {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    display: flex; align-items: center; justify-content: center; min-height: 54px;
    border-radius: var(--rayon); background: var(--sang); color: var(--blanc);
    font-weight: 600; text-decoration: none; box-shadow: 0 12px 32px rgba(21, 13, 14, .4);
    transform: translateY(160%); transition: transform .3s;
  }
  .barre-mobile--visible { transform: none; }
  .pied { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .metiers { grid-template-columns: 1fr; gap: 20px; }
  .au-dela { grid-template-columns: 1fr; }
  .hero__defiler { display: none; }
  /* Carte : on garde les grandes villes lisibles, les autres restent des points. */
  .ville--secondaire text { display: none; }
  /* Atelier : les 8 effets visibles d'un coup, en grille 4 x 2 (vignette au-dessus, nom en dessous). */
  .atelier__effets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .effet { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 7px 3px 8px; text-align: center; }
  .effet__vignette { width: 100%; max-width: 54px; height: auto; aspect-ratio: 1; }
  .effet__nom { font-size: 0.72rem; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
  .ville text { font-size: 34px; }
  .ville--capitale text { font-size: 40px; }
}

@media (max-width: 560px) {
  .champs { grid-template-columns: 1fr; }
  .hero__actions .bouton { width: 100%; }
  .piliers { padding-top: 48px; gap: 12px 26px; }
  .frise__etape { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
  .frise__pastille { width: 64px; height: 64px; }
  .frise__fil { left: 31px; top: 32px; }
  .coordonnees div { grid-template-columns: 92px 1fr; }

  /* Atelier sur telephone : apercu carre, effets sur une ligne qui defile au doigt, tout tient sous le pouce. */
  .atelier { gap: 18px; }
  .atelier__apercu { aspect-ratio: 1 / 1; }
  .atelier__legende { left: 12px; bottom: 12px; padding: 8px 13px; }
  .atelier__groupe { margin-bottom: 16px; }
  .teinte { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
