/* Science éducation · vitrine des vidéos sur commande (11/10/2026)
   DA « cartel de musée » : papier ivoire, encre, une couleur signal vermillon.
   Titres en Fraunces, texte en IBM Plex Sans, cartels en IBM Plex Mono. */

@font-face { font-family: 'Fraunces'; src: url('/polices/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/polices/fraunces-italique.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/polices/plex-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/polices/plex-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/polices/plex-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/polices/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/polices/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --papier: #f4efe6;
  --papier-2: #ebe3d4;
  --carte: #fbf8f2;
  --encre: #171412;
  --encre-2: #5b5249;
  --filet: #d6ccbb;
  --vermillon: #c8402a;
  --vermillon-f: #a5321f;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plex', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, monospace;
  --largeur: 1240px;
  --marge: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--vermillon); outline-offset: 3px; }

.evitement { position: absolute; left: -9999px; top: 8px; background: var(--encre); color: var(--carte); padding: 8px 14px; z-index: 50; }
.evitement:focus { left: 8px; }

/* ------------------------------------------------------------------ bandeau */
.bandeau {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--marge);
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--filet);
}
.marque { font-family: var(--serif); font-size: 22px; font-weight: 600; text-decoration: none; letter-spacing: -0.015em; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.marque em { font-style: italic; font-weight: 400; color: var(--vermillon); }
.marque .symbole { width: 34px; height: auto; flex: none; color: var(--encre); }

/* symbole : la roue à chevilles entraîne la lanterne (16 chevilles pour 6 fuseaux, la lanterne tourne 8/3 fois plus vite) */
.symbole .roue { transform-origin: 50px 64px; }
.symbole .lanterne { transform-origin: 85.81px 33.95px; }
.symbole .construction { color: var(--encre-2); }
@keyframes roue { to { transform: rotate(360deg); } }
@keyframes lanterne { to { transform: rotate(-960deg); } }
.marque .roue, .tourne .roue { animation: roue 24s linear infinite paused; }
.marque .lanterne, .tourne .lanterne { animation: lanterne 24s linear infinite paused; }
.marque:hover .roue, .marque:hover .lanterne, .tourne .roue, .tourne .lanterne { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .symbole .roue, .symbole .lanterne { animation: none !important; } }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--encre-2); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--encre); border-bottom-color: var(--encre); }

/* ------------------------------------------------------------------ boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--encre); color: var(--carte);
  font: 500 16px/1 var(--sans); text-decoration: none;
  padding: 16px 24px; border: 0; border-radius: 2px; cursor: pointer;
  transition: background .15s, transform .15s;
}
.bouton:hover { background: var(--vermillon); }
.bouton:active { transform: translateY(1px); }
.bouton-petit { padding: 11px 16px; font-size: 14px; white-space: nowrap; }
.lien-fleche { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--encre); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.lien-fleche::after { content: ' →'; }
.lien-fleche:hover { color: var(--vermillon); border-bottom-color: var(--vermillon); }

/* ------------------------------------------------------------------ ouverture : trois lieux réels en photo */
.ouverture {
  position: relative; overflow: hidden; color: var(--carte); background: #1b1714;
  height: min(86vh, 860px); min-height: 580px;
  display: flex; flex-direction: column; justify-content: center;
}
/* ordinateur : texte sur le panneau sombre à gauche, lieux à droite */
.lieux { position: absolute; top: 0; bottom: 0; right: 0; left: 38%; overflow: hidden; }
.lieu { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity; }
.lieu > img:first-child { display: block; width: 100%; height: 100%; max-width: none; }
.lieu-repli { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.lieu-ecran { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden; background: #f1e8d8; }
.lieu-ecran::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.16), rgba(255,255,255,0) 42%), radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 62%, rgba(0,0,0,.18)); pointer-events: none; }
.lieu-scene, .lieu-scene svg { width: 1600px; height: 900px; max-width: none; }
.lieu-devant { position: absolute; max-width: none; }
.ouverture::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 38%; width: 16%; z-index: 3; pointer-events: none;
  background: linear-gradient(to right, #1b1714, rgba(27,23,20,0));
}
.ouverture-texte { position: relative; z-index: 4; width: 100%; padding: 64px var(--marge) 40px clamp(24px, 5vw, 96px); }
.ouverture-texte > * { max-width: calc(38vw - clamp(24px, 5vw, 96px) + 40px); }
.ouverture h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144; text-wrap: balance;
}
.ouverture h1 em { font-style: italic; color: #ff8a6e; }
.chapo { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(251,248,242,.86); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }
.bouton-clair { background: var(--carte); color: var(--encre); }
.bouton-clair:hover { background: var(--vermillon); color: #fff; }
.lien-clair { border-bottom-color: var(--carte); }
.lien-clair:hover { color: #ff8a6e; border-bottom-color: #ff8a6e; }
.profil-insta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 10px 18px 10px 10px;
  border: 1px solid rgba(251,248,242,.28); border-radius: 999px; text-decoration: none; color: var(--carte);
  transition: border-color .15s, background .15s;
}
.profil-insta:hover { border-color: var(--carte); background: rgba(251,248,242,.06); }
.profil-insta img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.profil-texte { display: grid; gap: 3px; min-width: 0; }
.profil-nom { display: inline-flex; align-items: center; gap: 7px; font: 500 15px/1.2 var(--sans); }
.logo-insta { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.logo-insta .point { fill: currentColor; stroke: none; }
.profil-chiffres { font: 400 13px/1.35 var(--mono); color: rgba(251,248,242,.78); }
.profil-chiffres b { font-weight: 500; color: var(--carte); }
.profil-insta:hover .profil-nom { color: #ff8a6e; }


/* ------------------------------------------------------------------ sections */
.salle, .manips, .offre, .methode, .devis { max-width: var(--largeur); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--marge); }
.entete-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 64px; align-items: baseline; margin-bottom: clamp(28px, 4vw, 48px); }
.entete-section h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; font-variation-settings: 'opsz' 96; }
.entete-section p { color: var(--encre-2); max-width: 62ch; }

/* ------------------------------------------------------------------ cartels */
.cartel { background: var(--carte); border: 1px solid var(--filet); padding: 16px 18px 18px; }
.cartel-ligne { font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); }
.cartel h3 { font-size: 19px; line-height: 1.22; margin-top: 8px; font-variation-settings: 'opsz' 24; }
.cartel-pied { margin-top: 12px; font: 400 13px/1.4 var(--mono); color: var(--encre-2); }
.cartel-chiffre { font-weight: 500; color: var(--vermillon); }
.cartel-note { margin-top: 12px; font-size: 13px; color: var(--encre-2); }

/* ------------------------------------------------------------------ salle des réalisations */

.vitrine { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.oeuvre { display: flex; flex-direction: column; }
.oeuvre .cartel { flex: 1; border-top: 0; }
.ecran { position: relative; aspect-ratio: 9 / 16; background: var(--papier-2); border: 1px solid var(--encre); overflow: hidden; }
.ecran img, .ecran video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ecran img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.oeuvre:hover .ecran img { transform: scale(1.035); }
.lire { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.lire span {
  position: absolute; left: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--carte); border: 1px solid var(--encre); transition: background .15s, transform .2s;
}
.lire span::after { content: ''; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--encre); }
.lire:hover span { background: var(--vermillon); transform: scale(1.06); }
.lire:hover span::after { border-left-color: var(--carte); }
.ecran.en-lecture .lire, .ecran.en-lecture img { display: none; }
.releve { margin-top: 18px; font: 400 12px/1.4 var(--mono); color: var(--encre-2); }

/* ------------------------------------------------------------------ manips */
.manips { border-top: 1px solid var(--filet); }
.manip { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 0; margin-bottom: clamp(36px, 5vw, 64px); align-items: stretch; }
.manip:nth-of-type(even) { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.75fr); }
.manip:nth-of-type(even) .manip-cadre { order: 2; }
.manip-cadre { position: relative; border: 1px solid var(--encre); overflow: hidden; display: flex; flex-direction: column; }
.manip .scene { position: relative; flex: 1; aspect-ratio: 16 / 9; min-height: 0; touch-action: manipulation; }
.manip .scene svg { width: 100%; height: 100%; }
.barre { height: 3px; background: color-mix(in srgb, var(--encre) 12%, transparent); }
.barre-avance { display: block; height: 100%; width: 0; background: var(--vermillon); }
.manip.mode-manip .barre { visibility: hidden; }
.cartel-manip { border-left: 0; display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 24px; }
.manip:nth-of-type(even) .cartel-manip { border-left: 1px solid var(--filet); border-right: 0; }
.cartel-manip h3 { font-size: clamp(22px, 2.2vw, 28px); margin-top: -8px; }
.fiche { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.fiche div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.fiche dt { font: 400 12px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); }
.fiche dd { margin: 0; }
.modes { display: inline-flex; border: 1px solid var(--encre); align-self: flex-start; }
.mode { font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 9px 14px; border: 0; background: transparent; color: var(--encre); cursor: pointer; }
.mode + .mode { border-left: 1px solid var(--encre); }
.mode[aria-pressed="true"] { background: var(--encre); color: var(--carte); }
.mode:hover:not([aria-pressed="true"]) { background: var(--papier-2); }
.commande { display: flex; flex-direction: column; gap: 10px; }
.commande[hidden] { display: none; }
.legende { font-family: var(--serif); font-size: 18px; line-height: 1.4; min-height: 5.6em; font-variation-settings: 'opsz' 18; border-top: 1px solid var(--filet); padding-top: 14px; margin-top: auto; }

/* commandes des manips */
.cmd-bouton {
  font: 600 16px/1 var(--sans); padding: 15px 20px; border: 2px solid var(--encre); border-radius: 999px;
  background: var(--vermillon); color: #fff; cursor: pointer; align-self: flex-start;
  box-shadow: 0 4px 0 var(--encre); transition: transform .08s, box-shadow .08s, background .15s;
  -webkit-user-select: none; user-select: none; touch-action: none;
}
.cmd-bouton:hover { background: var(--vermillon-f); }
.cmd-bouton:active, .cmd-bouton.appuye { transform: translateY(4px); box-shadow: 0 0 0 var(--encre); }
.cmd-bouton:disabled { opacity: .45; cursor: default; }
.cmd-bouton.secondaire { background: var(--carte); color: var(--encre); }
.cmd-rangee { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cmd-mesure { font: 500 14px/1.5 var(--mono); }
.cmd-mesure b { font-weight: 500; color: var(--vermillon); }
.cmd-curseur { display: grid; gap: 6px; }
.cmd-curseur label { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); }
.cmd-curseur input[type=range] { width: 100%; height: 36px; margin: 0; cursor: pointer; background: transparent; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
/* piste : filet d'encre, la partie parcourue en vermillon */
.cmd-curseur input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--vermillon) var(--rempli, 0%), var(--filet) 0); }
.cmd-curseur input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--filet); }
.cmd-curseur input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--vermillon); }
/* poignée : pastille de carte cerclée d'encre, ombre décalée comme les boutons */
.cmd-curseur input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--carte); border: 2.5px solid var(--encre); box-shadow: 2px 3px 0 var(--encre); transition: transform .15s; }
.cmd-curseur input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--carte); border: 2.5px solid var(--encre); box-shadow: 2px 3px 0 var(--encre); transition: transform .15s; }
.cmd-curseur input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.1); }
.cmd-curseur input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); background: var(--vermillon); }
.cmd-curseur input[type=range]:active::-moz-range-thumb { background: var(--vermillon); }
.cmd-sauts { display: flex; flex-wrap: wrap; gap: 6px; }
.cmd-saut { font: 400 12px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--filet); background: var(--carte); color: var(--encre); cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .12s; }
.cmd-saut:hover { border-color: var(--encre); }
.cmd-saut:active { transform: translateY(2px); }
.cmd-saut.actif { background: var(--encre); border-color: var(--encre); color: var(--carte); }
/* bouton à appui long : il se remplit pendant l'appui */
.b-frotter { background: linear-gradient(to right, var(--vermillon-f) calc(var(--p, 0) * 100%), var(--vermillon) 0); }
.b-frotter:hover { background: linear-gradient(to right, var(--vermillon-f) calc(var(--p, 0) * 100%), #b83a26 0); }
/* légende : chaque nouveau texte glisse en place */
.legende.neuf { animation: legende-neuf .45s cubic-bezier(.2,.7,.2,1); }
@keyframes legende-neuf { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .legende.neuf { animation: none; } }

/* fonds des quatre styles */
.manip-plume .manip-cadre { background: #f1e8d8; }
.manip-plan .manip-cadre { background: #143a66; border-color: #0d2747; }
.manip-strates .manip-cadre { background: #ebe6dc; }
.manip-micro .manip-cadre { background: #05070c; border-color: #05070c; }

/* ------------------------------------------------------------------ offre */
.offre { border-top: 1px solid var(--filet); }
.usages { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.usages-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--encre); }
.usages-liste li { border-bottom: 1px solid var(--filet); }
.usages-liste button {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: var(--encre-2);
  font: 400 clamp(22px, 2.3vw, 30px)/1.15 var(--serif); font-variation-settings: 'opsz' 48; padding: 14px 0 14px 18px; position: relative;
  transition: color .2s;
}
.usages-liste button::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--vermillon); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.usages-liste button span { display: block; max-height: 0; overflow: hidden; opacity: 0; font: 400 15px/1.45 var(--sans); color: var(--encre-2); transition: max-height .4s, opacity .3s, margin .3s; }
.usages-liste button[aria-selected="true"] { color: var(--encre); }
.usages-liste button[aria-selected="true"]::before { transform: scaleY(1); }
.usages-liste button[aria-selected="true"] span { max-height: 4em; opacity: 1; margin-top: 6px; }
.usages-liste button:hover { color: var(--encre); }
.usages-scene { position: relative; aspect-ratio: 1000 / 620; color: var(--encre); }
.usages-decor { position: absolute; inset: 0; width: 100%; height: 100%; }
.decor { opacity: 0; transition: opacity .5s; }
.decor.visible { opacity: 1; transition-delay: .25s; }
.decor .toucher { transform-origin: 500px 220px; animation: toucher 1.6s ease-out infinite; }
@keyframes toucher { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.decor .coeur { fill: var(--vermillon); stroke: none; animation: monter 2.4s ease-in infinite; animation-delay: calc(var(--i) * .6s); opacity: 0; }
@keyframes monter { 0% { transform: translateY(40px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
.appareil {
  position: absolute; box-sizing: border-box; border: 10px solid var(--encre); background: var(--encre); overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(23,20,18,.45);
  transition: left .8s cubic-bezier(.65,0,.25,1), top .8s cubic-bezier(.65,0,.25,1), width .8s cubic-bezier(.65,0,.25,1), height .8s cubic-bezier(.65,0,.25,1), border-radius .8s, border-width .8s;
}
.appareil-vue { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #f1e8d8; }
.appareil-manip, .appareil-manip svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.appareil-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.appareil-vue.en-video .appareil-video { opacity: 1; transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .appareil, .decor, .usages-liste button span { transition: none; } .decor .toucher, .decor .coeur { animation: none; opacity: 1; } }
.livrables { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--filet); font: 400 13px/1.6 var(--mono); color: var(--encre-2); }
.option { margin-top: 22px; padding: 16px 20px; border: 1px dashed var(--encre-2); font-size: 15px; }
.champ-aide { font-size: 13px; color: var(--encre-2); margin-top: -2px; }

/* ------------------------------------------------------------------ méthode */
.methode { border-top: 1px solid var(--filet); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: etape; border-top: 1px solid var(--encre); }
.etapes li { counter-increment: etape; padding: 20px 20px 0 0; position: relative; }
.etapes li::before { content: counter(etape); display: block; font: 400 44px/1 var(--serif); font-variation-settings: 'opsz' 96; color: var(--vermillon); margin-bottom: 14px; }
.etapes li::after { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--encre); }
.etapes h3 { font-size: 21px; }
.etapes p { margin-top: 8px; font-size: 15px; color: var(--encre-2); }
.preuve { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 32px; align-items: end; background: var(--carte); border: 1px solid var(--filet); padding: 22px 24px; }
.preuve .cartel-ligne { grid-column: 1 / -1; }
.preuve-texte { font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); line-height: 1.3; max-width: 46ch; font-variation-settings: 'opsz' 36; }

/* ------------------------------------------------------------------ devis */
.devis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px 64px; border-top: 1px solid var(--filet); }
.devis-intro h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.devis-intro p { margin-top: 14px; color: var(--encre-2); max-width: 40ch; }
.devis-statut { margin-top: 20px !important; padding: 14px 16px; border-left: 4px solid var(--encre); background: var(--carte); color: var(--encre) !important; }
.devis-statut.erreur { border-left-color: var(--vermillon); }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-content: start; }
.champ { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.champ-large { grid-column: 1 / -1; }
.champ label, .champ legend { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); padding: 0; }
.champ input[type=text], .champ input[type=email], .champ select, .champ textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--encre);
  background: var(--carte); border: 1px solid var(--filet); border-bottom: 2px solid var(--encre); border-radius: 0;
  padding: 12px 14px; transition: border-color .15s, background .15s;
}
.champ select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--vermillon); background: #fff; }
.champ [aria-invalid="true"] { border-bottom-color: var(--vermillon); }
.cases { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cases label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--filet); background: var(--carte); cursor: pointer; font: 400 15px/1 var(--sans); text-transform: none; letter-spacing: 0; color: var(--encre); transition: border-color .15s; }
.cases label:hover { border-color: var(--encre); }
.cases input { accent-color: var(--vermillon); width: 16px; height: 16px; margin: 0; }
.cases label:has(input:checked) { border-color: var(--encre); background: #fff; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .bouton { grid-column: 1 / -1; justify-self: start; }

/* ------------------------------------------------------------------ pied */
.pied { border-top: 1px solid var(--encre); padding: 32px var(--marge) 40px; max-width: var(--largeur); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; color: var(--encre-2); font-size: 15px; }
.pied .marque { color: var(--encre); }
.pied-liens { display: flex; gap: 20px; margin-left: auto; }
.pied-liens a { text-decoration: none; }
.pied-liens a:hover { color: var(--vermillon); }

/* ------------------------------------------------------------------ page des mentions */
.page-texte { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--marge); }
.page-texte h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
.page-texte h2 { font-size: 24px; margin-top: 40px; }
.page-texte p { margin-top: 10px; color: var(--encre-2); }

/* ------------------------------------------------------------------ hero empilé : image puis texte */
@media (max-width: 999px) {
  .ouverture { height: auto; min-height: 0; display: block; }
  .lieux { position: relative; left: auto; height: min(62vw, 520px); min-height: 240px; }
  .ouverture::before { display: none; }
  .ouverture-texte { padding: 26px var(--marge) 34px; }
  .ouverture-texte > * { max-width: 640px; }
  .ouverture h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); }
}

/* ------------------------------------------------------------------ tablette */
@media (max-width: 1080px) {
  .vitrine { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(210px, 32%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(-1 * var(--marge)); padding-left: var(--marge); padding-right: var(--marge); scroll-padding-left: var(--marge); }
  .oeuvre { scroll-snap-align: start; }
  .manip, .manip:nth-of-type(even) { grid-template-columns: 1fr; }
  .manip:nth-of-type(even) .manip-cadre { order: 0; }
  .cartel-manip, .manip:nth-of-type(even) .cartel-manip { border: 1px solid var(--filet); border-top: 0; }
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }

}

/* ------------------------------------------------------------------ téléphone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .bandeau { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .nav { display: none; }
  .bouton-petit { margin-left: auto; }
  .profil-insta { max-width: 100%; }
  .marque { font-size: 20px; }
  .entete-section, .devis { grid-template-columns: 1fr; }

  .vitrine { grid-auto-columns: 68%; gap: 14px; }
  .usages { grid-template-columns: 1fr; }
  .usages-scene { order: -1; }
  .usages-liste button { font-size: 21px; padding: 11px 0 11px 16px; }
  .etapes { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--encre); padding-left: 22px; row-gap: 22px; }
  .etapes li { padding: 0; }
  .etapes li::before { font-size: 34px; margin-bottom: 6px; }
  .etapes li::after { top: 12px; left: -27px; }
  .preuve { grid-template-columns: 1fr; }
  .formulaire { grid-template-columns: 1fr; }
  .cartel-manip { padding: 18px 16px 20px; }
  .legende { font-size: 17px; min-height: 6.6em; }
  .pied-liens { margin-left: 0; }
  .profil-insta { border-radius: 18px; }
  .chapo { margin-top: 12px; }
  .actions { margin-top: 18px; }
}

/* ------------------------------------------------------------------ petit téléphone : le bandeau tient sur une ligne */
@media (max-width: 380px) {
  .bandeau { gap: 8px; }
  .marque { font-size: 18px; gap: 8px; }
  .marque .symbole { width: 28px; }
  .bouton-petit { padding: 9px 12px; font-size: 14px; }
}
@media (max-width: 340px) {
  .bandeau { gap: 6px; }
  .marque { font-size: 16px; gap: 6px; }
  .marque .symbole { width: 24px; }
  .bouton-petit { padding: 8px 9px; font-size: 13px; }
}
