/* Volumiq-studio · portfolio. Palette de la demande de Carl (25.11.2026) : fond var(--fond), texte var(--encre), orange var(--orange).
   Contrastes mesurés (WCAG) : l'orange var(--orange) ne sert qu'aux formes et sur fond encre (5,7:1) ; en texte sur le beige,
   var(--orange-titre) pour les grands titres (3,8:1) et var(--orange-texte) pour le petit texte (4,9:1). */

@font-face { font-family: 'Playfair Display'; src: url(polices/playfair-display-latin-wght-normal.woff2) format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(polices/playfair-display-latin-wght-italic.woff2) format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(polices/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --fond: #F7F3EE; --encre: #1C1C1C; --orange: #E07A3D;
  --orange-titre: #C2602A; --orange-texte: #A9511C;
  --argile: #EDE6DC; --gris: #5F5952; --gris-sombre: #B8AFA4;
  --pierre: #BDB3A7; --sable: #E2DBD1; --nuit: #16120F; --lin: #CFC6BA; --rouge: #B3261E;   /* 01.12 : valeurs déjà utilisées en dur, nommées */
  --trait: rgba(28, 28, 28, .14); --trait-clair: rgba(247, 243, 238, .16);
  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --marge: clamp(20px, 4.2vw, 72px);
  --sortie: cubic-bezier(.16, 1, .3, 1);       /* expo.out */
  --bascule: cubic-bezier(.76, 0, .24, 1);     /* power3.inOut */
  --tete-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fond); color: var(--encre); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { overflow-x: clip; }   /* un décor qui dépasse ne doit jamais élargir la page (BOITE § 8) */
img, video, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }   /* un display: grid ou flex ne doit jamais l'emporter sur hidden (BOITE § 11) */
.sans-js .onglet[hidden] { display: block !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.filtres { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--orange); color: var(--encre); }

/* Focus toujours visible, au clavier */
:focus-visible { outline: 2px solid var(--orange-texte); outline-offset: 4px; border-radius: 4px; }
.rideau :focus-visible { outline-color: var(--orange); }

.evitement { position: fixed; left: 16px; top: 12px; z-index: 300; padding: 12px 18px; background: var(--encre); color: var(--fond); border-radius: 999px; text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--sortie); }
.evitement:focus { transform: none; outline: 2px solid var(--orange); outline-offset: 3px; }

.surtitre { font: 500 14px/1.3 var(--sans); letter-spacing: .01em; color: var(--gris); display: flex; align-items: center; gap: 10px; }
.surtitre::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); flex: none; }
h2 { font: 500 clamp(36px, 5.2vw, 80px)/1.02 var(--serif); letter-spacing: -.015em; }
h3 { font: 600 18px/1.35 var(--sans); }

/* ============ 0 · Intro ============ */
/* Fond de l'intro : le fond vide de la vidéo, prolongé tout autour puis fondu vers sa couleur lointaine (#F3E9E0).
   Fabriqué pour le site (site/tools/intro_video.py, branche site/en-ligne) : la vidéo occupe le cinquième central de l'image.
   Posé au même cadrage que la vidéo, il continue son éclairage : aucun disque clair autour du logo. */
.intro { --v: min(78vmin, 760px); position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: #F3E9E0 url(media/intro/fond.webp) center / calc(var(--v) * 5) calc(var(--v) * 5) no-repeat; }
.avec-intro .intro { display: grid; }
.intro-video { width: var(--v); aspect-ratio: 1; object-fit: cover; background: transparent; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%); mask-image: radial-gradient(closest-side, #000 86%, transparent 100%); }
.intro-ligne { position: absolute; left: 50%; bottom: 9vh; width: 120px; height: 1px; transform: translateX(-50%); background: rgba(28, 28, 28, .12); overflow: hidden; }
.intro-ligne span { position: absolute; inset: 0; background: var(--encre); transform-origin: left; transform: scaleX(0); }
/* 27.11 (audit : « Passer » petit et pâle) : visible dès la première image, contraste élevé, cible de 44 px */
.intro-passer { position: absolute; right: var(--marge); bottom: 7vh; padding: 12px 22px; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--encre);
  background: rgba(247, 243, 238, .8); border: 1px solid rgba(28, 28, 28, .35); border-radius: 999px; }
.intro-passer:hover { background: var(--fond); border-color: var(--encre); }
.avec-intro body { overflow: hidden; }
/* v5 : la page est le carrousel (sans fin) : sa barre de défilement ne dirait rien ; les onglets gardent la leur */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
/* Visite (v5) : sous l'intro, au-dessus du site ; elle n'existe que le temps de l'intro et du film */
.visite { position: fixed; inset: 0; z-index: 190; display: none; background: #0e0b09; cursor: pointer; }
.avec-intro .visite, .visite.visite-joue { display: block; }
.visite-video { width: 100%; height: 100%; object-fit: cover; }

/* ============ Rideau (changement de chapitre) ============ */
.rideau { position: fixed; inset: 0; z-index: 150; background: var(--encre); display: grid; place-items: center; pointer-events: none; clip-path: inset(100% 0 0 0); }
.rideau img { width: 72px; height: auto; opacity: 0; }

/* ============ En-tête ============ */
.tete { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--tete-h); padding: 0 var(--marge); display: flex; align-items: center; justify-content: space-between; pointer-events: none; transition: color .5s var(--sortie); }
.tete > * { pointer-events: auto; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; min-width: 44px; }
.marque-symbole { width: 34px; height: auto; }
/* sur fond sombre, le volume encre du symbole passe en clair (sinon il disparaît) */
.marque-symbole-clair, .tete.sombre .marque-symbole { display: none; }
.tete.sombre .marque-symbole-clair { display: block; }
.marque-mot { height: 34px; width: auto; transition: filter .5s var(--sortie); }
.menu { display: flex; gap: 6px; font-size: 16px; }
.menu a { position: relative; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--gris); transition: color .3s; }
.menu a:hover, .menu a[aria-current='true'] { color: var(--encre); }
.menu a::after { content: ''; position: absolute; left: 2px; right: 10px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--sortie); }
.menu a:hover::after, .menu a[aria-current='true']::after { transform: scaleX(1); transform-origin: left; }
.tete.sombre { color: var(--fond); }
.tete.sombre .menu a { color: var(--gris-sombre); }
.tete.sombre .menu a:hover, .tete.sombre .menu a[aria-current='true'] { color: var(--fond); }
.tete.sombre .marque-mot { filter: invert(1) brightness(1.6); }
@media (max-width: 700px) {
  :root { --tete-h: 72px; }
  .marque-mot { display: none; }   /* téléphone : le symbole seul, le menu garde sa place */
  .menu { gap: 2px; font-size: 15px; }
}

/* ============ 1 · L'atelier, fond des projets ============ */
/* v4 : un atelier de création la nuit (rendu Blender Cycles, outils/rendu-fond/) : net à l'arrivée, puis flou et assombri
   derrière les cartes. Le fond est fixe et vu à travers la section (clip-path: inset(0)) : il ne glisse pas pendant le carrousel.
   La version floue est déjà assombrie en haut, en bas et dans les coins (contraste mesuré : 5,5:1 au pire, sans voile CSS) ;
   un voile léger reste pour la marge. L'ancien fond (maquette d'entreprise) est dans media/atelier/. */
.projets-fond { position: fixed; inset: 0; background: #140f0c; overflow: hidden; }
.atelier-net, .atelier-flou { position: absolute; inset: -3%; background: url(media/fond-v4/ordi.webp) center / cover; will-change: transform, opacity; }
.atelier-flou { background-image: url(media/fond-v4/ordi-flou.webp); opacity: 0; }
.atelier-flou::after { content: ''; position: absolute; inset: 0;   /* en haut, un voile léger pour le titre ; ailleurs, un vignettage léger */
  background: linear-gradient(180deg, rgba(20, 15, 12, .32), rgba(20, 15, 12, 0) 40%), radial-gradient(120% 90% at 50% 56%, rgba(20, 15, 12, 0), rgba(20, 15, 12, .2)); }
@media (max-aspect-ratio: 3/4) { .atelier-net { background-image: url(media/fond-v4/tel.webp); } .atelier-flou { background-image: url(media/fond-v4/tel-flou.webp); }
  .atelier-flou::after { background: linear-gradient(180deg, rgba(20, 15, 12, .45), rgba(20, 15, 12, .15) 30%, rgba(20, 15, 12, 0) 50%), radial-gradient(120% 90% at 50% 56%, rgba(20, 15, 12, 0), rgba(20, 15, 12, .2)); } }
/* la lampe : une lueur chaude qui suit la souris (lumière douce, mélange « écran ») */
.atelier-lampe { position: absolute; left: 50%; top: 55%; width: 1040px; height: 1040px; margin: -520px 0 0 -520px; pointer-events: none; mix-blend-mode: screen; opacity: .9;
  background: radial-gradient(520px circle at 50% 50%, rgba(255, 190, 120, .22), rgba(255, 170, 90, .06) 45%, transparent 70%); }   /* 01.12 : déplacée par transform (projets.js), plus redessinée */
.reduit .atelier-lampe { display: none; }

/* ============ 2 · Projets : carrousel incurvé ============ */
.projets { position: relative; clip-path: inset(0); }   /* fenêtre sur le fond fixe de l'atelier */
.projets-cadre { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.projets-tete { position: absolute; z-index: 3; left: var(--marge); top: calc(var(--tete-h) + 2svh); max-width: 46em; }   /* 27.11 : titre plus long (les deux offres), sur deux lignes */
.projets { color: var(--fond); }
.projets .surtitre { color: var(--sable); font-size: 16px; }   /* sur la photo de l'atelier : plus clair que --gris-sombre (contraste mesuré ≥ 4,5:1 au point le plus clair) */
.projets-tete h1 { font: 500 clamp(28px, 2.9vw, 46px)/1.06 var(--serif); letter-spacing: -.015em; margin: 12px 0 8px; max-width: 17em; }
.projets-note { color: var(--sable); font-size: 16px; }
/* v5 : l'action principale dans le bloc de titre ; la grille en lien texte à côté */
.projets-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 16px; }
.bouton.bouton-petit { padding: 12px 22px; min-height: 48px; font-size: 16px; gap: 10px; }
.projets .bouton { background: var(--fond); color: var(--encre); }
.vue-grille { min-height: 44px; font-size: 16px; color: var(--sable); text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .vue-grille:hover { color: var(--fond); } }
.carrousel { position: absolute; inset: 0; z-index: 2; outline-offset: -8px; }
.carrousel-vue { position: absolute; inset: 0; perspective: var(--p, 1300px); perspective-origin: 50% var(--cy, 57%); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.carrousel-vue.tire { cursor: grabbing; }
.anneau { position: absolute; left: 50%; top: var(--cy, 57%); width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.carte { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.tranche { position: absolute; left: 0; top: 0; backface-visibility: hidden; background-repeat: no-repeat; background-color: #d8d0c6; }
.carrousel-centre { position: absolute; left: 50%; top: var(--cy, 57%); z-index: 2; pointer-events: none; translate: -50% -50%; }
.carrousel-centre::before { content: ''; position: absolute; inset: -14px; border: 1px solid rgba(247, 243, 238, .22); opacity: var(--cadre, 0); transition: opacity .6s var(--sortie); }
.coin { position: absolute; width: 18px; height: 18px; opacity: var(--cadre, 0); transition: opacity .6s var(--sortie); }
.coin::before, .coin::after { content: ''; position: absolute; background: var(--fond); }
.coin::before { left: 8px; top: 0; width: 1px; height: 18px; }
.coin::after { left: 0; top: 8px; width: 18px; height: 1px; }
.c1 { left: -23px; top: -23px; } .c2 { right: -23px; top: -23px; } .c3 { left: -23px; bottom: -23px; } .c4 { right: -23px; bottom: -23px; }
.carrousel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--sortie); background: transparent; }
.carrousel-video.visible { opacity: 1; }
/* Verre incurvé sur les bords : réfraction + aberration chromatique (filtre SVG en backdrop-filter, Chromium), flou ailleurs */
.verre { position: absolute; top: calc(var(--cy, 57%) - 24%); bottom: calc(100% - var(--cy, 57%) - 24%); width: 12vw; z-index: 3; pointer-events: none;
  -webkit-backdrop-filter: blur(7px) saturate(1.25) brightness(1.04); backdrop-filter: blur(7px) saturate(1.25) brightness(1.04);
  border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 34px 60px rgba(255, 255, 255, .3), inset 0 -34px 60px rgba(28, 28, 28, .1); }
.carrousel { --cy: 57%; }
.verre-g { background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .28) 70%, rgba(255, 255, 255, .5) 74%, transparent 80%); }
.verre-d { background: linear-gradient(270deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .28) 70%, rgba(255, 255, 255, .5) 74%, transparent 80%); }
/* téléphone : la carte descend sous le bloc de titre (titre, phrase, bouton), le vide sous la carte se resserre */
@media (max-width: 700px) { .carrousel { --cy: 63%; } .bouton.bouton-petit { padding: 10px 18px; font-size: 15px; gap: 8px; } .projets-actions { flex-wrap: nowrap; gap: 16px; margin-top: 14px; } .vg-long { display: none; } .vue-grille { font-size: 15px; white-space: nowrap; } .projets .surtitre { font-size: 15px; } }
.verre-g { left: -6vw; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.verre-d { right: -6vw; -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); }
.refraction .verre { backdrop-filter: url(#refraction) blur(1.5px) saturate(1.3) brightness(1.03); }
.carrousel-liste { position: absolute; left: var(--marge); bottom: 120px; z-index: 4; }
.carrousel-liste button { position: absolute; left: 0; bottom: 0; white-space: nowrap; padding: 10px 16px; min-height: 44px; border-radius: 999px; background: var(--encre); color: var(--fond); opacity: 0; pointer-events: none; }
.carrousel-liste button:focus-visible { opacity: 1; pointer-events: auto; }
.projets-pied { position: absolute; z-index: 4; left: 0; right: 0; bottom: max(28px, 4svh); display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 18px; padding: 0 var(--marge); }
.projets-pied .fleche:first-child { grid-column: 2; }
.legende { grid-column: 3; min-width: min(340px, 52vw); text-align: center; }
.legende-nom { font: 500 clamp(24px, 2.2vw, 34px)/1.1 var(--serif); }
.legende-cat { font-size: 16px; color: var(--gris-sombre); margin-top: 4px; }
.legende p > span { display: inline-block; }
.fleche { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--trait-clair); display: grid; place-items: center; font-size: 18px; background: rgba(29, 23, 18, .35); color: var(--fond); transition: background .3s, border-color .3s; }
.fleche:hover { background: var(--fond); color: var(--encre); border-color: var(--fond); }
.fleche:disabled { opacity: .35; pointer-events: none; }
.compteur-bloc { grid-column: 5; justify-self: end; display: flex; align-items: center; gap: 10px; }
.compteur { font: 500 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--gris-sombre); }
/* le bouton de la rotation automatique : discret, 44 px de cible ; pause tant qu'elle tourne, lecture une fois arrêtée */
.rotation { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gris-sombre); }
.rotation svg { width: 14px; height: 14px; fill: currentColor; }
.rotation .r-lecture, .rotation.arretee .r-pause { display: none; }
.rotation.arretee .r-lecture { display: inline; }
@media (hover: hover) and (pointer: fine) { .rotation:hover { color: var(--fond); } }
.sans-rotation .rotation { display: none; }
.compteur-n { color: var(--fond); }
@media (max-width: 700px) {
  .projets-tete { right: var(--marge); }
  .projets-tete h2 { font-size: 28px; }
  .projets-note { font-size: 15px; }
  .projets-pied { grid-template-columns: auto 1fr auto; gap: 10px; bottom: max(18px, 3svh); }
  .projets-pied .fleche:first-child { grid-column: 1; grid-row: 1; }
  .legende { grid-column: 2; grid-row: 1; min-width: 0; }
  /* « Liège-Huy-Waremme » doit tenir sur une ligne : sinon les lettres découpées passent à la ligne au milieu du mot */
  .legende-nom { font-size: clamp(20px, 5.6vw, 24px); }
  .projets-pied .fleche { width: 44px; height: 44px; }
  .projets-pied .fleche:last-of-type { grid-column: 3; grid-row: 1; }
  .compteur-bloc { grid-column: 1 / -1; grid-row: 2; justify-self: center; gap: 4px; margin-right: -44px; }   /* le compteur reste centré, le bouton à sa droite */
  /* verre moins haut : sur téléphone, à ±24 %, il remontait sous la phrase d'introduction (texte clair sur verre clair) */
  .verre { width: 18vw; top: calc(var(--cy, 55%) - 16%); bottom: calc(100% - var(--cy, 55%) - 16%); }
}

/* ============ 3 · « En grille » : tous les projets, fenêtre plein écran (remplace la section « Vingt images ») ============ */
.tous { position: fixed; inset: 0; z-index: 110; background: #1d1712; color: var(--fond); }
.tous-defile { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 4vh, 40px) var(--marge) clamp(48px, 8vh, 90px); }
.tous-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: clamp(28px, 5vh, 56px); }
.tous-fermer { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--fond); color: var(--encre); font-size: 16px; }
.tous-titre { font: 500 clamp(30px, 3.4vw, 54px)/1.04 var(--serif); letter-spacing: -.015em; }
.tous-n { color: var(--sable); font-size: 16px; }
.tous-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 40px) clamp(14px, 1.6vw, 24px); perspective: 1400px; }
.tous-carte { display: grid; gap: 4px; width: 100%; text-align: left; color: inherit; border-radius: 12px; }
.tous-img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #2a221b; margin-bottom: 10px; }
.tous-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.1s var(--sortie); }
.tous-nom { font: 500 20px/1.15 var(--serif); }
.tous-cat { font-size: 16px; color: var(--sable); }
.tous-carte:hover .tous-img img, .tous-carte:focus-visible .tous-img img { transform: scale(1.06); }
.tous-carte:focus-visible { outline: 2px solid var(--fond); outline-offset: 6px; }
@media (max-width: 1100px) { .tous-grille { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tous-grille { grid-template-columns: repeat(2, 1fr); } .tous-nom { font-size: 18px; } }

/* ============ Onglets : Studio, Prix, Contact (v4) ============ */
/* Plein écran sous l'en-tête (le menu reste cliquable), au-dessus des projets ; le rideau (z 150) les couvre pendant
   le changement. Chaque onglet défile pour lui-même ; la page derrière est inerte. */
.onglet { position: fixed; inset: 0; z-index: 94; }
.onglet[hidden] { display: none; }
.onglet-clair { background: var(--fond); color: var(--encre); }
.onglet-sombre { background: var(--nuit); color: var(--fond); }
.onglet-defile { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; outline: none;
  padding: calc(var(--tete-h) + clamp(28px, 6vh, 72px)) var(--marge) clamp(56px, 10vh, 110px); }
.onglet h2 { max-width: 15em; }
.onglet-sombre .surtitre { color: var(--gris-sombre); }
.onglet-sombre :focus-visible { outline-color: var(--orange); }
.onglet-ouvert .pellicule::before { opacity: .6; }
/* sur un onglet, l'en-tête prend un fond : le contenu qui défile ne passe plus sous le logo et le menu */
.onglet-ouvert .tete { background: rgba(247, 243, 238, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--trait); }
.onglet-ouvert.onglet-fonce .tete { background: rgba(22, 18, 15, .88); box-shadow: 0 1px 0 var(--trait-clair); }
.onglet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: clamp(40px, 7vh, 72px); }
.lien-fleche { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 18px; text-decoration: none; border-bottom: 1px solid currentColor; }
.lien-fleche span { transition: transform .5s var(--sortie); }
.lien-fleche:hover span { transform: translateX(5px); }

/* ---- Toucher (v5) : effet à l'appui, pas de double-tap-zoom, survol réservé à la souris ---- */
a, button, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bouton, .porte, .choix-carte, .pastilles span, .lien-fleche, .quiz-retour, .quiz-grille, .fiche-lien { transition: transform 160ms ease-out; user-select: none; -webkit-user-select: none; }
.bouton:active, .porte:active, .choix-carte:active, .pastilles label:active span, .fiche-lien:active { transform: scale(.97); }

/* Un onglet « un écran » (Devis, Contact) : il tient dans la fenêtre ; s'il manque de place (texte agrandi, très petit
   écran), il défile plutôt que de couper quoi que ce soit. */
.onglet-ecran { display: grid; align-items: center; padding-top: calc(var(--tete-h) + clamp(12px, 3vh, 36px)); padding-bottom: clamp(14px, 3vh, 36px); }

/* ---- Studio : premier écran = titre, deux portes, le bouton, quatre chiffres, une phrase sur les IA ---- */
.studio { max-width: 1240px; margin: 0 auto; }
.studio-premier { display: grid; gap: clamp(16px, 2.6vh, 28px); }
.studio-premier h2 { color: var(--orange-titre); margin: 0; font-size: clamp(34px, 4.2vw, 64px); max-width: 16em; }
.portes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); }
.porte { display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; border-radius: 16px; }
.porte-img { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--argile); }
.porte-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--sortie); }
.porte-titre { margin-top: 6px; font: 500 clamp(20px, 1.7vw, 26px)/1.15 var(--serif); }
.porte-ligne { color: var(--gris); font-size: 16px; line-height: 1.45; }
.porte-titre span { display: inline-block; transition: transform .5s var(--sortie); }
@media (hover: hover) and (pointer: fine) { .porte:hover .porte-titre span { transform: translateX(5px); } }
@media (hover: hover) and (pointer: fine) { .porte:hover .porte-img img { transform: scale(1.04); } }
.porte:focus-visible { outline-offset: 6px; }
.studio .onglet-actions { margin-top: 0; }
.studio .chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; margin: 0; padding: 18px 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.chiffres div { display: flex; flex-direction: column-reverse; }
.chiffres dd { font: 500 clamp(40px, 3.6vw, 56px)/1 var(--serif); color: var(--orange-titre); font-variant-numeric: lining-nums tabular-nums; }
.chiffres dt { font-size: 15px; line-height: 1.35; color: var(--gris); margin-top: 6px; }
.studio-ia { max-width: 52em; font-size: 17px; line-height: 1.5; }
.studio-suite { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: start; margin-top: clamp(56px, 10vh, 110px); }
.nuage { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--fond); --mx: -999px; --my: -999px; --r: 0px; touch-action: pan-y; }
.nuage-points, .nuage-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.nuage-photo { object-fit: cover; z-index: 1;
  /* moitié gauche en image ; sous la souris ou le doigt, l'image et les points s'échangent (masques combinés en « ou exclusif ») */
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 50%), radial-gradient(circle var(--r) at var(--mx) var(--my), #000 70%, transparent 100%);
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(90deg, #000 50%, transparent 50%), radial-gradient(circle var(--r) at var(--mx) var(--my), #000 70%, transparent 100%);
  mask-composite: exclude; }
.nuage::after { content: ''; position: absolute; z-index: 2; left: 50%; top: 6%; bottom: 6%; width: 1px; background: var(--trait); }
/* la légende sous la figure, plus posée sur les points */
.nuage { margin: 0 0 34px; overflow: visible; }
.nuage-points, .nuage-photo { border-radius: 14px; }
.nuage figcaption { position: absolute; top: calc(100% + 10px); left: 0; right: 0; font-size: 15px; color: var(--gris); }
.studio-facon h3 { font: 500 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); margin-bottom: 18px; }
.studio-facon ol { display: grid; gap: 16px; }
.studio-facon li { color: var(--gris); }
.studio-facon li strong { display: block; color: var(--encre); font-weight: 600; margin-bottom: 2px; }
.sf-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--trait); font-size: 14px; color: var(--orange-texte); margin-bottom: 8px; }
.secteurs { margin-top: 24px; color: var(--gris); }
.secteurs span { color: var(--encre); }
.studio-fin { margin-top: 28px; }
.mention-societe { margin-top: 22px; font-size: 14px; color: var(--gris); }
@media (max-width: 900px) {
  .studio-premier { gap: 16px; }
  .studio-premier h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .porte-titre { font-size: 18px; }
  .porte-ligne { font-size: 14px; }
  .studio .chiffres { grid-template-columns: repeat(2, 1fr); padding: 14px 0; }
  .chiffres dd { font-size: 40px; }
  .studio-suite { grid-template-columns: 1fr; }
}

/* ---- Devis : la pile en CSS 3D et le parcours, en un écran ---- */
.devis { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 4vw, 80px); align-items: center; }
.devis-scene { display: grid; justify-items: center; gap: 6px; }
.pile-cadre { width: 100%; height: clamp(240px, 44svh, 440px); display: grid; place-items: center; perspective: 1300px;
  background: radial-gradient(60% 55% at 50% 58%, rgba(224, 122, 61, .16), transparent 70%); }
.pile-incl { transform-style: preserve-3d; transform: rotateX(var(--rx, 58deg)); }
.pile { position: relative; width: clamp(160px, 17vw, 250px); aspect-ratio: 1; transform-style: preserve-3d; }
.plaque { position: absolute; inset: 0; transform-style: preserve-3d; }
.couche { position: absolute; inset: 0; border-radius: 26%; }
.couche.dessus { display: grid; place-items: center; padding: 12%; text-align: center; font: 500 clamp(14px, 1.3vw, 19px)/1.1 var(--serif);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -18px 40px rgba(0, 0, 0, .12); }
.pile-total { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: lining-nums tabular-nums; }
.pile-total.vide { visibility: hidden; }
.pile-des, .pile-montant, .pile-htva { white-space: nowrap; }
.pile-total.gratuit .pile-htva, .pile-total.gratuit .pile-des { display: none; }
.pile-des, .pile-htva { font-size: 16px; color: var(--gris-sombre); }
.pile-montant { font: 500 clamp(36px, 4.2vw, 64px)/1 var(--serif); color: var(--fond); min-width: 2ch; text-align: center; }
.devis-q h2 { margin: 8px 0 14px; font-size: clamp(32px, 3.6vw, 56px); }
.prix-progression { display: flex; gap: 8px; margin-bottom: 18px; }
.prix-progression li { width: 30px; height: 4px; border-radius: 2px; background: rgba(247, 243, 238, .18); transition: background .5s var(--sortie), width .5s var(--sortie); }
.prix-progression li.fait { background: var(--orange); }
.prix-progression li.ici { background: var(--fond); width: 52px; }
/* la zone des questions : hauteur fixe ; une étape remplace l'autre, la page ne grandit pas */
.quiz-pas { position: relative; height: clamp(330px, 46svh, 430px); }
/* au résultat (formulaire compris), la zone grandit un peu : rien ne défile dedans sur un écran d'ordinateur */
@media (min-width: 901px) { .devis:has(.quiz-pas[data-pas="3"]) .quiz-pas { height: clamp(330px, 58svh, 540px); } }
/* un seul prix à l'écran : sur ordinateur, le grand montant sous la pile ; le prix du résultat reste lu par les lecteurs d'écran */
@media (min-width: 901px) { .devis:has(.quiz-pas[data-pas="3"]) .res-prix { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.devis:has(.quiz-pas[data-pas="grille"]) .pile-total { visibility: hidden; }
.pas-contenu { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 14px; font: 500 clamp(22px, 2vw, 28px)/1.2 var(--serif); }
.q-num { display: block; margin-bottom: 4px; font: 500 14px/1.3 var(--sans); letter-spacing: .02em; color: var(--orange); }
.q-aide { margin: -8px 0 14px; font-size: 15px; line-height: 1.4; color: var(--pierre); }
.q legend:has(+ .q-aide) { margin-bottom: 12px; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; perspective: 900px; }
.choix-carte { position: relative; display: flex; align-items: center; min-height: 60px; padding: 12px 16px 12px 48px; border-radius: 14px; cursor: pointer;
  background: rgba(247, 243, 238, .05); border: 1px solid rgba(247, 243, 238, .16);
  transform: rotateX(calc(var(--iy, 0) * -7deg)) rotateY(calc(var(--ix, 0) * 9deg)); transition: transform .5s var(--sortie), background .3s, border-color .3s; }
@media (hover: hover) and (pointer: fine) { .choix-carte:hover { background: rgba(247, 243, 238, .09); border-color: rgba(247, 243, 238, .34); } }
.choix-carte input { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 50%; border: 1.5px solid rgba(247, 243, 238, .5); background: transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.choix-carte input:checked { background: var(--orange); border-color: var(--orange); box-shadow: inset 0 0 0 4px var(--nuit); }
.choix-carte:has(input:checked) { background: rgba(224, 122, 61, .14); border-color: var(--orange); }
.choix-carte:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; }
.cc-texte { display: grid; gap: 3px; }
.cc-titre { font-size: 17px; font-weight: 500; line-height: 1.3; }
.cc-desc { font-size: 14px; line-height: 1.35; color: var(--pierre); }   /* 9:1 sur le fond sombre */
.choix-carte:has(input:checked) .cc-desc { color: var(--sable); }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; min-height: 48px; }
.quiz-retour, .quiz-grille { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--gris-sombre); font-size: 16px; }
.quiz-grille { margin-left: auto; text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .quiz-retour:hover, .quiz-grille:hover { color: var(--fond); } }
.onglet-sombre .bouton { background: var(--fond); color: var(--encre); }
.onglet-sombre .merci p { color: var(--sable); }   /* le merci du Devis lisible (13:1) */
.onglet-sombre .bouton:hover, .onglet-sombre .bouton:focus-visible { color: var(--encre); }
.bouton[disabled] { opacity: .5; cursor: default; }
.bouton[disabled]::before { display: none; }
.resultat { display: grid; gap: 8px; }
.res-sur { font-size: 14px; color: var(--orange); }
.res-nom { font: 500 clamp(26px, 2.6vw, 38px)/1.08 var(--serif); outline: none; }
.res-prix { font: 500 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); color: var(--orange); font-variant-numeric: lining-nums tabular-nums; }
.res-prix small { font: 400 15px var(--sans); color: var(--gris-sombre); }
.res-quoi { font-size: 16px; line-height: 1.45; max-width: 40em; }
.res-quoi span { display: block; color: var(--gris-sombre); font-size: 14px; margin-top: 2px; }
/* 27.11 : première année (un calcul, pas un prix) et lien pour les petits budgets */
.res-annee { font-size: 15px; line-height: 1.4; color: var(--sable); font-variant-numeric: lining-nums tabular-nums; }
.res-annee strong { color: var(--fond); font-weight: 600; }
.res-annee span { color: var(--gris-sombre); }
.res-budget { font-size: 15px; line-height: 1.45; color: var(--sable); }
.res-budget summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.res-budget p { margin: 0 0 4px; max-width: 40em; }
.devis-form { display: grid; gap: 10px; margin-top: 6px; }
.devis-form .champ input { background: rgba(247, 243, 238, .08); border-color: rgba(247, 243, 238, .28); color: var(--fond); }
.devis-form .champ input:focus { background: rgba(247, 243, 238, .12); border-color: var(--fond); }
.devis-form .champ label { color: var(--sable); }
.devis-form .champ.erreur input { border-color: #FF8A80; }
.devis-form .champ-aide, .devis-form .formulaire-etat.erreur { color: #FFB4AB; }
.case-ia { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.35; color: var(--sable); cursor: pointer; }
.case-ia input { flex: none; width: 20px; height: 20px; accent-color: var(--orange); margin: 0; }
.devis-form .envoyer { justify-self: start; }
.devis-form .formulaire-rgpd { color: var(--gris-sombre); }
.res-refaire { min-height: 44px; color: var(--gris-sombre); text-decoration: underline; text-underline-offset: 4px; justify-self: start; }
.merci-devis { display: grid; gap: 10px; justify-items: start; padding-top: 10px; outline: none; }
.merci-devis h3 { font: 500 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); }
.merci-devis p { color: var(--sable); }
.merci-devis .merci-coche path { stroke: var(--fond); }
.grille-cadre { display: grid; gap: 10px; }
.grille-retour { justify-self: start; }
@media (min-width: 901px) { .grille-retour { display: none; } }
.grille-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px clamp(18px, 3vw, 40px); }
.grille-colonnes h3 { font: 500 19px/1.2 var(--serif); margin-bottom: 4px; }
.grille-colonnes li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--trait-clair); font-size: 15px; line-height: 1.35; }
.grille-colonnes li span:last-child { text-align: right; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; color: var(--fond); }
.grille-htva { font-size: 15px; color: var(--gris-sombre); }
@media (max-width: 900px) {
  .devis { grid-template-columns: 1fr; gap: 4px; align-items: start; }
  .devis-scene { grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; }
  .devis-scene > *, .devis-q { min-width: 0; }
  .pile-total { display: grid; grid-template-columns: auto auto; justify-items: end; align-items: baseline; column-gap: 6px; }
  .pile-des { grid-column: 1 / -1; font-size: 15px; }
  .pile-cadre { height: 86px; }
  .pile { width: 70px; }
  .couche.dessus { font-size: 10px; }
  .pile-montant { font-size: 34px; }
  .devis-q h2 { font-size: clamp(27px, 7.4vw, 34px); margin: 4px 0 10px; }
  .prix-progression { margin-bottom: 12px; }
  /* au téléphone, la zone suit son contenu : « Retour » et « Tous nos prix » restent juste sous les réponses */
  .quiz-pas { height: auto; }
  .quiz-pas > .pas-contenu:last-child { position: relative; inset: auto; overflow: visible; }
  .devis .surtitre { display: none; }
  .devis:has(.quiz-pas[data-pas="0"]) .devis-scene { display: none; }   /* la pile arrive avec la première réponse */
  .choix { grid-template-columns: 1fr; gap: 8px; }
  .choix-carte { min-height: 52px; padding: 9px 12px 9px 44px; }
  .cc-desc { font-size: 14px; }
  .choix-carte input { left: 14px; }
  .cc-titre { font-size: 16px; line-height: 1.25; }
  .devis-form .champs-2 { grid-template-columns: 1fr; gap: 10px; }
  .grille-colonnes { grid-template-columns: 1fr; }
  .grille-colonnes li { grid-template-columns: 1fr; gap: 2px; }
  .grille-colonnes li span:last-child { text-align: left; white-space: normal; }
  /* au résultat, sur téléphone, le titre et la pile se font discrets : le formulaire et son bouton restent dans l'écran */
  .devis:has(.quiz-pas[data-pas="3"]) .devis-q h2, .devis:has(.quiz-pas[data-pas="3"]) .surtitre, .devis:has(.quiz-pas[data-pas="3"]) .devis-scene { display: none; }
  /* résultat, merci et grille : la zone prend la hauteur de son contenu (pas de cadre qui défile dans l'écran) */
  .quiz-pas:is([data-pas="3"], [data-pas="4"], [data-pas="grille"]) { height: auto; min-height: 300px; }
  .quiz-pas:is([data-pas="3"], [data-pas="4"], [data-pas="grille"]) > .pas-contenu:last-child { position: relative; inset: auto; overflow: visible; }
}

/* Devis, téléphone court (360 × 740) : la pile se retire pendant les questions, les réponses se resserrent */
@media (max-width: 900px) and (max-height: 780px) {
  .devis-scene { display: none; }
  .choix-carte { min-height: 48px; padding-top: 7px; padding-bottom: 7px; }
  .cc-desc { font-size: 13.5px; line-height: 1.3; }
  .q legend { margin-bottom: 10px; }
}

/* ---- Contact : un écran, l'atelier en image, le formulaire entier ---- */
.contact { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: stretch; }
.contact-intro { position: relative; border-radius: 20px; overflow: hidden; min-height: min(640px, calc(100svh - var(--tete-h) - 72px)); display: grid; align-items: end; background: #1d1712; color: var(--fond); }
.contact-visuel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.contact-intro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 15, 12, 0) 30%, rgba(20, 15, 12, .78) 78%, rgba(20, 15, 12, .9)); }
.contact-texte-bloc { position: relative; z-index: 1; padding: clamp(20px, 3vw, 40px); display: grid; gap: 10px; }
.contact-texte-bloc .surtitre { color: var(--sable); }
.contact h2 { margin: 0; font-size: clamp(30px, 3.6vw, 54px); color: var(--fond); }
.contact-texte { font-size: 17px; line-height: 1.45; color: var(--sable); max-width: 30em; }
.contact-carte { position: relative; align-self: center; background: #fff; border-radius: 20px; padding: clamp(18px, 2.6vw, 36px); box-shadow: 0 30px 80px rgba(28, 28, 28, .10), 0 2px 6px rgba(28, 28, 28, .05); }
.formulaire { display: grid; gap: 14px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.champ { display: grid; gap: 5px; border: 0; padding: 0; margin: 0; min-width: 0; }
.champ label, .champ legend { font-size: 15px; font-weight: 500; padding: 0; }
.facultatif { font-weight: 400; color: var(--gris); font-size: 14px; margin-left: 6px; }
.champ input, .champ textarea { width: 100%; min-height: 50px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid #D9D1C6; background: var(--fond);
  font: 400 17px/1.4 var(--sans); color: var(--encre); transition: border-color .25s, box-shadow .25s, background .25s; }
.contact .champ input, .contact .champ textarea { border-color: #948A7E; background: #fff; }   /* bords lisibles (3,4:1) */
.champ textarea { resize: vertical; height: auto; min-height: 50px; }
@media (hover: hover) and (pointer: fine) { .champ input:hover, .champ textarea:hover { border-color: #BFB5A8; } }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--encre); background: #fff; box-shadow: 0 0 0 4px rgba(224, 122, 61, .22); }
.champ.erreur input { border-color: var(--rouge); }
.champ-aide { font-size: 14px; color: var(--rouge); }
.champ-aide:empty { display: none; }
.pastilles { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pastilles::-webkit-scrollbar { display: none; }
.pastilles label { position: relative; flex: none; }
.pastilles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pastilles span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #948A7E; font-size: 16px; font-weight: 400; transition: background .25s, border-color .25s, color .25s, transform 160ms ease-out; }
.pastilles input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.pastilles input:focus-visible + span { outline: 2px solid var(--orange-texte); outline-offset: 3px; }
.estimation-jointe { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(224, 122, 61, .12); }
.estimation-jointe[hidden] { display: none; }
.ej-texte { flex: 1; }
.ej-retirer { width: 44px; height: 44px; border-radius: 50%; font-size: 20px; color: var(--gris); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoyer { justify-self: stretch; justify-content: center; min-height: 54px; }
.formulaire.envoi .envoyer { opacity: .7; }
.formulaire-rgpd { font-size: 14px; line-height: 1.35; color: var(--gris); }
.formulaire-etat { font-size: 15px; }
.formulaire-etat:empty { display: none; }
.formulaire-etat.erreur { color: var(--rouge); }
.reessayer { margin-left: 6px; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.merci { display: grid; justify-items: start; gap: 12px; padding: 12px 0; outline: none; }
.merci-coche { width: 60px; height: 60px; }
.merci-coche circle { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 0; }
.merci-coche path { fill: none; stroke: var(--encre); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.merci h3 { font: 500 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); }
.merci p { color: var(--gris); max-width: 28em; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .contact-intro { min-height: 0; height: clamp(120px, 16svh, 150px); border-radius: 16px; }
  .ct-long { display: none; }   /* au téléphone : la promesse seule, le formulaire entier tient dans l'écran */
  .contact-visuel { object-position: 20% 70%; }
  .contact-intro::after { background: linear-gradient(180deg, rgba(20, 15, 12, .30), rgba(20, 15, 12, .85) 50%); }
  .contact-texte-bloc { padding: 14px 16px; gap: 4px; }
  .contact h2 { font-size: clamp(24px, 6.6vw, 30px); }
  .contact-texte { font-size: 15px; }
  .contact-texte-bloc .surtitre { display: none; }
  .contact-carte { padding: 16px; border-radius: 16px; }
  .formulaire { gap: 11px; }
  .contact .champs-2 { grid-template-columns: 1fr; gap: 9px; }
  .champ label, .champ legend { font-size: 14px; }
  .champ input, .champ textarea { min-height: 48px; padding: 11px 12px; }
  .champ textarea { height: 48px; }
  .pastilles { gap: 6px; }
  .pastilles span { padding: 0 12px; font-size: 15px; }
  .envoyer { min-height: 52px; }
  .formulaire-rgpd { font-size: 13px; }
}
/* téléphone court (360 × 740 et moins) : on resserre pour que le formulaire entier tienne sans défiler */
@media (max-width: 900px) and (max-height: 780px) {
  .contact-intro { height: 120px; }
  .contact-texte { font-size: 14px; line-height: 1.35; }
  .contact-carte { padding: 14px; }
  .formulaire { gap: 9px; }
  .champ { gap: 4px; }
  .champ input, .champ textarea { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
  .champ textarea { height: 46px; }
  .envoyer { min-height: 50px; }
}

/* ---- Bouton principal (repris de la v3) ---- */
.bouton { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 20px 32px; min-height: 64px; border-radius: 999px; background: var(--encre); color: var(--fond); text-decoration: none; font-size: 18px; overflow: hidden; isolation: isolate; }
.bouton::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--orange); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--sortie); }
.bouton:hover::before, .bouton:focus-visible::before { transform: none; }
.bouton:hover, .bouton:focus-visible { color: var(--encre); }
.bouton-texte, .bouton-fleche { display: inline-block; }
.bouton-fleche { transition: transform .6s var(--sortie); }
.bouton:hover .bouton-fleche { transform: translateX(5px); }

/* Sans JavaScript : les onglets se lisent à la suite des projets */
.sans-js .onglet[hidden] { display: block; position: static; }
.sans-js .onglet-defile { position: static; }

/* ============ Fiche d'un projet ============ */
.fiche { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 1.65fr 1fr; }
.fiche[hidden] { display: none; }
/* 27.11 (Modern Web Guidance : dialog) : fiche et grille sont des <dialog> natifs, plein écran, dans le top layer */
dialog.fiche, dialog.tous { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; }
dialog.fiche { background: transparent; color: var(--encre); }
dialog.fiche:not([open]), dialog.tous:not([open]) { display: none; }
dialog.fiche::backdrop, dialog.tous::backdrop { background: transparent; }
.fiche-voile { position: absolute; inset: 0; background: rgba(28, 28, 28, .35); }
.fiche-medias { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--tete-h) + 8px) clamp(16px, 2.4vw, 36px) 40px; display: flex; flex-direction: column; gap: 14px; background: #E9E2D8; outline: none; }
.fiche-medias figure { flex: none; position: relative; border-radius: 10px; overflow: hidden; background: var(--argile); }
.fiche-medias video, .fiche-medias img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.fiche-medias figure:not(:first-child) img { aspect-ratio: 16 / 9; }
.fiche-medias .fiche-avant img { aspect-ratio: 16 / 10; filter: saturate(.85); }
.fiche-medias .fiche-avant figcaption { background: var(--encre); color: var(--fond); }
.fiche-medias figcaption { position: absolute; left: 14px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(247, 243, 238, .9); font-size: 13px; color: var(--encre); }
.fiche-panneau { position: relative; overflow-y: auto; overscroll-behavior: contain; background: var(--fond); padding: calc(var(--tete-h) + 8px) clamp(22px, 3vw, 52px) 40px; display: flex; flex-direction: column; gap: 14px; box-shadow: -30px 0 80px rgba(28, 28, 28, .12); }
.fiche-fermer { align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 0; color: var(--gris); }
.fiche-fermer:hover { color: var(--encre); }
.fiche-cat { margin-top: 18px; font-size: 14px; color: var(--orange-texte); }
.fiche-titre { font: 500 clamp(32px, 2.9vw, 52px)/1.04 var(--serif); color: var(--orange-titre); text-wrap: balance; overflow-wrap: normal; }
.fiche-lieu { font-size: 16px; color: var(--gris); }
.fiche-desc { font-size: 18px; line-height: 1.55; margin-top: 8px; }
.fiche-meta { margin-top: 10px; border-top: 1px solid var(--trait); }
.fiche-meta div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); font-size: 16px; }
.fiche-meta dt { color: var(--gris); }
@media (max-width: 600px) { .fiche-meta div { grid-template-columns: 1fr; gap: 2px; } }   /* au téléphone : le libellé au-dessus, le texte sur toute la largeur */
.fiche-lien { align-self: flex-start; margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; padding: 14px 22px; min-height: 48px; border-radius: 999px; background: var(--encre); color: var(--fond); text-decoration: none; transition: background .3s, color .3s; }
.fiche-lien:hover { background: var(--orange); color: var(--encre); }
.fiche-estimer { align-self: flex-start; font-size: 16px; min-height: 44px; }   /* v5 : de la fiche au Devis */
.fiche-demo { font-size: 14px; color: var(--gris); }
.fiche-changements h3 { font-size: 16px; margin: 16px 0 6px; }
.fiche-changements ul { display: grid; gap: 6px; }
.fiche-changements li { position: relative; padding-left: 18px; font-size: 16px; }
.fiche-changements li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--orange); }
.fiche-suivant { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--trait); text-align: left; min-height: 44px; font: 500 20px/1.2 var(--serif); }
.fiche-suivant small { display: block; font: 400 14px/1.4 var(--sans); color: var(--gris); }
.volant { position: fixed; z-index: 130; left: 0; top: 0; object-fit: cover; border-radius: 10px; pointer-events: none; transform-origin: 0 0; }
.fiche-ouverte .curseur { opacity: 0; }
@media (max-width: 900px) {
  .fiche { grid-template-columns: 1fr; grid-template-rows: 42svh 1fr; }
  .fiche-medias { padding: calc(var(--tete-h) - 10px) 14px 14px; flex-direction: row; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
  .fiche-medias figure { flex: 0 0 86%; scroll-snap-align: start; }
  .fiche-panneau { padding-top: 18px; box-shadow: 0 -20px 60px rgba(28, 28, 28, .14); }
}

/* ============ Curseur personnalisé (souris seulement) ============ */
.curseur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; transition: opacity .3s; }
.curseur-actif .curseur { display: block; }
.curseur-point { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--encre); }
.curseur-anneau { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1px solid rgba(28, 28, 28, .4); display: grid; place-items: center; transition: width .5s var(--sortie), height .5s var(--sortie), margin .5s var(--sortie), background .4s, border-color .4s; }
.curseur-mot { font-size: 13px; font-weight: 500; color: var(--fond); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.curseur.lien .curseur-anneau { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(28, 28, 28, .6); }
.curseur.mot .curseur-anneau { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--encre); border-color: var(--encre); }
.curseur.mot .curseur-mot { opacity: 1; }
.curseur.mot .curseur-point { opacity: 0; }
.curseur.sombre .curseur-point { background: var(--fond); }
.curseur.sombre .curseur-anneau { border-color: rgba(247, 243, 238, .5); }
.curseur.cache { opacity: 0; }

/* ============ Pellicule : grain et vignettage, très légers ============ */
.pellicule { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.pellicule::before { content: ''; position: absolute; inset: 0; background: radial-gradient(140% 100% at 50% 50%, transparent 62%, rgba(60, 40, 25, .10)); }
.pellicule span { position: absolute; inset: -60px; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23b)'/%3E%3C/svg%3E");
  animation: grain 1s steps(8) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-22px, 14px); } 50% { transform: translate(18px, -26px); } 75% { transform: translate(-12px, -8px); } 100% { transform: translate(26px, 20px); } }

/* ============ Mouvement réduit, captures figées, sans JavaScript ============ */
.reduit .pellicule span, .fige .pellicule span { animation: none; }
.fige *, .fige *::before, .fige *::after { transition: none !important; }
html.reduit *, html.reduit *::before, html.reduit *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
.sans-js .projets-cadre { height: auto; }

/* ---- Fiche projet (v5) : le bouton tout de suite, un texte lisible et court ---- */
.fiche-lien { margin-top: 6px; }
.fiche-desc { font-size: 17px; line-height: 1.45; max-width: 60ch; }
@media (max-width: 900px) {
  .fiche-titre { font-size: clamp(28px, 7.6vw, 36px); }
  .fiche-desc { max-width: 42ch; }
  .fiche-lien { min-height: 52px; }
}
/* écrans tactiles : pas de survol « collé » après un toucher (placé en fin de feuille pour l'emporter) */
@media (hover: none) { .bouton:hover::before { transform: translateY(101%); } .bouton:hover { color: var(--fond); } .onglet-sombre .bouton:hover { color: var(--encre); } }

/* ============ 27.11.2026 : démonstration du logiciel (données fictives, DÉMO), lien légal ============ */
.lien-demo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; padding: 0 16px 0 6px; border-radius: 999px;
  border: 1px solid rgba(247, 243, 238, .35); background: rgba(20, 15, 12, .35); color: var(--fond); font-size: 15px; transition: transform 160ms ease-out, background .2s; }
.lien-demo:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .lien-demo:hover { background: rgba(20, 15, 12, .6); } }
.lien-demo-marque { padding: 4px 8px; border-radius: 999px; background: var(--orange); color: var(--encre); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
@media (max-width: 700px) { .projets .surtitre { display: none; } .lien-demo { margin-top: 0; font-size: 14px; } }
.mention-societe a, .formulaire-rgpd a { color: inherit; text-underline-offset: 3px; }

.demo { width: min(1240px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--fond); color: var(--encre); overflow: auto; overscroll-behavior: contain; }
.demo::backdrop { background: rgba(20, 15, 12, .72); }
.demo[open] { animation: demo-entre 260ms cubic-bezier(.23, 1, .32, 1); }
@keyframes demo-entre { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.reduit .demo[open] { animation: demo-fondu 200ms ease-out; }
@keyframes demo-fondu { from { opacity: 0; } }
.demo-cadre { padding: clamp(18px, 3vw, 36px); }
.demo-tete { position: relative; padding-right: 56px; margin-bottom: 18px; }
.demo-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--encre); color: var(--fond); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.demo-tete h2 { font: 500 clamp(26px, 3vw, 40px)/1.08 var(--serif); margin: 10px 0 6px; }
.demo-intro { font-size: 17px; line-height: 1.45; max-width: 44em; }
.demo-fermer { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #948A7E; font-size: 24px; line-height: 1; }
.demo-corps { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.demo-scene { margin: 0; border-radius: 14px; overflow: hidden; background: var(--fond); border: 1px solid var(--trait); }
.demo-image { position: relative; }
.demo-image img { display: block; width: 100%; height: auto; }
.demo-scene figcaption { padding: 8px 12px; font-size: 14px; color: var(--gris); }
.demo-reperes { position: absolute; inset: 0; }
.demo-repere { position: absolute; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #fff;
  background: var(--c); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: transform 160ms ease-out; }
.demo-repere.choisi { transform: scale(1.18); }
.demo-bulle { position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--encre); color: var(--fond); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.demo-repere.choisi .demo-bulle { opacity: 1; }
.etat-retard { --c: #B42318; } .etat-attention { --c: #8A5A00; } .etat-ok { --c: #1F7A49; }
.demo-vues { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--argile); margin-bottom: 14px; }
.demo-vues button { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; }
.demo-vues button[aria-pressed="true"] { background: var(--encre); color: var(--fond); }
.demo-liste-titre { font: 600 18px/1.3 var(--sans); margin-bottom: 8px; }
.demo-liste { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.demo-ligne { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #D9D1C6; background: #fff; font-size: 16px; line-height: 1.35; min-height: 44px; transition: border-color .2s; }
.demo-ligne.choisi { border-color: var(--c); box-shadow: 0 0 0 3px rgba(28, 28, 28, .08); }
.demo-forme { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 12px; margin-top: 1px; }
.demo-etat { display: inline-block; margin-left: 6px; font-size: 14px; font-weight: 600; color: var(--c); }
.demo-detail { display: block; font-size: 15px; color: var(--gris); margin-top: 2px; }
.demo-prix { font-size: 15px; line-height: 1.45; color: var(--gris); margin-bottom: 14px; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
@media (max-width: 900px) { .demo-corps { grid-template-columns: 1fr; } .demo-repere { width: 44px; height: 44px; font-size: 14px; border-width: 2px; } .demo-bulle { display: none; } }
.lien-demo { width: fit-content; white-space: nowrap; }
@media (max-width: 400px) { .ld-long { display: none; } }

/* 27.11 : qui est derrière (Studio) et téléphones (Contact) */
.qui { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--trait); }
.qui h3 { font: 500 clamp(22px, 2vw, 28px)/1.15 var(--serif); margin-bottom: 10px; }
.qui-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.qui-liste li { display: grid; gap: 2px; font-size: 16px; }
.qui-liste span { color: var(--gris); }
.qui-liste a, .contact-appel a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 600; text-underline-offset: 4px; }
.qui-lieu { margin-top: 8px; color: var(--gris); font-size: 15px; }
.contact-appel { color: var(--fond); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
.contact-appel a span { font-weight: 400; margin-left: 6px; }
/* 27.11 : quatre pastilles (Site sans 3D) : elles passent à la ligne au lieu de se cacher à droite */
.pastilles { flex-wrap: wrap; overflow: visible; }
@media (max-width: 900px) { .contact-intro { height: auto; min-height: 120px; } .contact-appel { font-size: 14px; column-gap: 12px; } .contact-appel a { min-height: 40px; } }

/* ============ 27.11.2026 : formulaire Contact 2026 (Modern Web Guidance, Chrome) ============
   :user-invalid (erreur seulement après interaction), :has() pour styler le champ parent, field-sizing pour le message,
   accent-color, focus-visible net, cibles de 48 px, tuiles = radios natifs. */
.formulaire { gap: 22px; }
.form-titre { font: 500 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); letter-spacing: -.01em; }
.etape { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.etape-titre, .etape > legend, .etape > label { font-size: 15px; font-weight: 600; letter-spacing: .01em; display: flex; align-items: baseline; gap: 10px; }
.etape-n { font: 600 12px/1 var(--sans); letter-spacing: .08em; color: var(--orange-texte); font-variant-numeric: tabular-nums; }
.requis { color: var(--orange-texte); margin-left: 2px; }

.tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tuile { position: relative; display: grid; gap: 2px; align-content: start; min-height: 64px; padding: 12px 12px 12px 14px; border-radius: 14px;
  border: 1.5px solid #948A7E; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform 160ms ease-out; }
.tuile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tuile-t { font-size: 16px; font-weight: 600; line-height: 1.2; }
.tuile-d { font-size: 13px; line-height: 1.3; color: var(--gris); }
.tuile:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .tuile:hover { border-color: var(--encre); } }
.tuile:has(input:checked) { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.tuile:has(input:checked) .tuile-d { color: #D8D0C6; }
.tuile:has(input:checked)::after { content: '✓'; position: absolute; top: 8px; right: 10px; font-size: 14px; color: var(--orange); }
.tuile:has(input:focus-visible) { outline: 3px solid var(--orange-texte); outline-offset: 2px; }

.contact .champ input, .contact .champ textarea { font-size: max(1rem, 17px); min-height: 52px; border-radius: 12px; border: 1.5px solid #767676; background: #fff; accent-color: var(--orange); }
.contact .champ input:focus-visible, .contact .champ textarea:focus-visible { outline: 3px solid var(--orange-texte); outline-offset: 1px; border-color: var(--encre); box-shadow: none; }
.contact .champ textarea { resize: vertical; height: auto; max-height: none; overflow-y: auto; field-sizing: content; min-block-size: 2lh; max-block-size: 7lh; width: 100%; padding-block: 12px; }
.contact .champ textarea::placeholder { color: #8A8178; }
.champ-note { font-size: 14px; color: var(--gris); }

/* l'erreur ne se montre qu'après interaction (pas au chargement, pas pendant la frappe) */
.champ-aide { display: none; }
.champ:has(:user-invalid) .champ-aide, .champ.erreur .champ-aide { display: flex; align-items: center; gap: 6px; }
.champ-aide::before { content: '!'; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 12px; font-weight: 700; }
.champ:has(:user-invalid) input, .champ.erreur input { border-color: var(--rouge); background: #FFF6F5; }
.champ:has(:user-invalid) label { color: var(--rouge); }
.champ:has(> input[required]:user-valid) > label::after { content: ' ✓'; color: #1F7A49; font-weight: 600; }
.champ .tuile { padding: 12px 28px 12px 14px; font-size: 16px; font-weight: 400; }
.envoyer .bouton-texte { white-space: nowrap; }
@media (max-width: 420px) { .envoyer { padding-inline: 22px; gap: 10px; font-size: 17px; } }

.envoyer { min-height: 56px; font-weight: 500; }
.envoyer[aria-busy="true"] { opacity: .75; }
.form-ou { font-size: 15px; color: var(--gris); }
.form-ou a { color: var(--encre); font-weight: 600; text-underline-offset: 4px; display: inline-block; padding-block: 8px; }
.visuellement-cache:where(:not(:focus-within, :active)) { position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important; }

@media (max-width: 900px) {
  .formulaire { gap: 16px; }
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile { min-height: 58px; padding: 10px 12px; }
  .contact .champ input { min-height: 50px; }
  .form-titre { font-size: 22px; }
}
@media (forced-colors: active) { .tuile:has(input:checked) { outline: 3px solid CanvasText; } }

/* ============ 27.11.2026 : design du portfolio, passe « 10/10 » (thème gardé : l'atelier de nuit, l'orange et l'encre) ============ */

/* 1. Typographie : Playfair seulement en grand (28 px et plus) ; en dessous, Inter 600, net sur fond sombre (critique DA, § 6) */
.tous-nom, .porte-titre, .grille-colonnes h3, .fiche-suivant, .qui h3, .q legend, .couche.dessus {
  font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.porte-titre { font-size: clamp(18px, 1.4vw, 21px); }
.q legend { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; }
.qui h3 { font-size: 20px; }
h1, h2, .fiche-titre, .res-nom, .merci h3, .form-titre, .demo-tete h2 { text-wrap: balance; }
p, li, .fiche-desc { text-wrap: pretty; }

/* 2. Fiche d'un projet : les médias posés dans l'atelier, de nuit, sous la lampe */
.fiche-medias { padding-top: 28px; gap: 22px;
  background: radial-gradient(90% 55% at 28% 0%, rgba(224, 122, 61, .20), rgba(224, 122, 61, 0) 60%),
              radial-gradient(70% 40% at 80% 100%, rgba(247, 243, 238, .06), rgba(247, 243, 238, 0) 70%), #1d1712; }
.fiche-medias figure { background: #120e0b; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(247, 243, 238, .07); }
.fiche-medias figcaption { background: rgba(20, 15, 12, .72); color: var(--fond); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; }
/* le premier média devient un écran d'ordinateur : cadre, trois pastilles, pied */
.fiche-medias > figure:first-child { overflow: visible; padding: 28px 10px 10px; margin-bottom: 18px; border-radius: 16px; background: linear-gradient(#17120f, #0d0a08); }
.fiche-medias > figure:first-child::before { content: ''; position: absolute; top: 11px; left: 16px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); box-shadow: 14px 0 0 #5F5952, 28px 0 0 #5F5952; }
.fiche-medias > figure:first-child::after { content: ''; position: absolute; left: -3.5%; right: -3.5%; bottom: -16px; height: 16px; border-radius: 2px 2px 18px 18px;
  background: linear-gradient(#4a4039, #1a1512 70%); box-shadow: 0 18px 30px rgba(0, 0, 0, .5); }
.fiche-medias > figure:first-child :is(img, video) { border-radius: 6px; }
.fiche-medias > figure:first-child figcaption { left: 22px; bottom: 22px; }
/* les médias suivants arrivent au défilement de la colonne (animation liée au défilement, sans JavaScript) */
@supports (animation-timeline: view()) {
  html:not(.reduit) .fiche-medias > figure:not(:first-child) { animation: media-entre linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes media-entre { from { opacity: .2; transform: translateY(28px) scale(.97); } }
}
@media (max-width: 900px) {
  .fiche-medias { padding: 18px 14px 26px; gap: 14px; }
  .fiche-medias > figure:first-child { padding: 22px 6px 6px; margin-bottom: 0; }
  .fiche-medias > figure:first-child::after { display: none; }
  .fiche-medias > figure:first-child::before { top: 8px; left: 12px; width: 6px; height: 6px; box-shadow: 11px 0 0 #5F5952, 22px 0 0 #5F5952; }
}

/* 3. Grille des projets : la vignette s'éclaire sous la lampe au survol, le nom glisse d'un cran */
@media (hover: hover) and (pointer: fine) {
  .tous-carte .tous-img img { transition: transform .5s cubic-bezier(.23, 1, .32, 1), filter .3s; }
  .tous-carte:hover .tous-img img { transform: scale(1.035); filter: brightness(1.08) saturate(1.05); }
  .tous-carte .tous-nom { transition: transform .25s cubic-bezier(.23, 1, .32, 1); }
  .tous-carte:hover .tous-nom { transform: translateX(4px); }
}

/* 4. Studio : les portes deviennent des « tables lumineuses » au survol, la flèche avance */
@media (hover: hover) and (pointer: fine) {
  .porte .porte-img img { transition: transform .6s cubic-bezier(.23, 1, .32, 1); }
  .porte:hover .porte-img img { transform: scale(1.03); }
  .porte .porte-titre span { display: inline-block; transition: transform .25s cubic-bezier(.23, 1, .32, 1); }
  .porte:hover .porte-titre span { transform: translateX(6px); }
}

/* 5. Démo du logiciel : le retard « respire » (seul mouvement continu, et seulement sans mouvement réduit) */
html:not(.reduit) .demo-repere.etat-retard::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #B42318; animation: alerte 1.8s cubic-bezier(.23, 1, .32, 1) infinite; }
  @keyframes alerte { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.5); } }
@media (max-width: 900px) { .fiche-medias { align-items: flex-start; } .fiche-estimer { font-size: 16px; gap: 8px; } }

/* ============ 27.11.2026 : accessibilité (contraste forcé, contraste renforcé, curseur au-dessus des champs) ============ */
.curseur.champ { opacity: 0; }
.sobre .pellicule, .sobre .curseur { display: none; }
@media (prefers-contrast: more) {
  :root { --gris: #3D3833; --gris-sombre: #D6CEC4; }
  .pellicule { display: none; }
  .champ input, .champ textarea, .tuile, .pastilles span { border-color: var(--encre); }
}
@media (forced-colors: active) {
  .pellicule, .curseur, .verre, .atelier-flou::after, .contact-intro::after { display: none; }
  :focus-visible { outline: 3px solid Highlight !important; outline-offset: 3px; }
  .bouton, .lien-demo, .tuile, .demo-ligne, .demo-vues button, .porte, .choix-carte, .tous-carte { border: 1px solid ButtonText; }
  .bouton::before { display: none; }
  .demo-repere, .demo-forme { forced-color-adjust: none; border: 2px solid CanvasText; }
  .tuile:has(input:checked), .demo-vues button[aria-pressed="true"] { outline: 3px solid Highlight; }
  .champ-aide::before { forced-color-adjust: none; }
}
/* 27.11 : écrans bas (ordinateur portable 1366 × 768, zoom 150 et 200 %) : le haut se resserre et le carrousel descend,
   pour que rien ne passe sur la carte centrale. La phrase « concept » reste toujours visible. */
@media (max-height: 800px) and (orientation: landscape) and (min-width: 701px) {
  .projets .surtitre { display: none; }
  .projets-tete { top: calc(var(--tete-h) - 6px); }
  .projets-tete h1 { font-size: clamp(20px, 2.2vw, 30px); margin: 8px 0 4px; }
  .projets-note { font-size: 14px; }
  .lien-demo { margin-top: 0; min-height: 40px; font-size: 14px; }
  .projets-actions { margin-top: 8px; }
  .bouton.bouton-petit { min-height: 44px; padding: 8px 18px; font-size: 15px; }
  .carrousel { --cy: 64%; }
}
@media (max-height: 560px) and (orientation: landscape) and (min-width: 701px) {
  .carrousel { --cy: 68%; }
  .legende-cat { display: none; }
  .projets-tete h1 { margin-top: 4px; }
}

/* 27.11 : la démo s'anime à la demande (« Une journée en 20 secondes ») */
.demo-lecture { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin-bottom: 14px; padding: 0 18px 0 8px; border-radius: 999px;
  background: var(--encre); color: var(--fond); font-size: 16px; font-weight: 600; transition: transform 160ms ease-out, background .2s; }
.demo-lecture:active { transform: scale(.97); }
.demo-lecture-icone { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); position: relative; }
.demo-lecture-icone::before { content: ''; position: absolute; left: 14px; top: 11px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--encre); }
.demo-lecture[data-etat="joue"] .demo-lecture-icone::before { left: 12px; top: 11px; width: 4px; height: 14px; border: 0; background: var(--encre); box-shadow: 8px 0 0 var(--encre); }
.demo-lecture[data-etat="fin"] .demo-lecture-icone::before { content: '↺'; border: 0; left: 0; right: 0; top: 6px; text-align: center; font-size: 18px; color: var(--encre); }
.demo-horloge { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; align-items: flex-start; gap: 10px; pointer-events: none; }
.demo-horloge[hidden] { display: none; }
.demo-heure { flex: none; padding: 6px 10px; border-radius: 8px; background: var(--encre); color: var(--fond); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-recit { max-width: 34em; padding: 6px 12px; border-radius: 8px; background: rgba(247, 243, 238, .94); color: var(--encre); font-size: 15px; line-height: 1.35; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.demo-progres { height: 3px; background: var(--trait); }
.demo-progres span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--orange); transition: width .4s cubic-bezier(.23, 1, .32, 1); }
.demo-repere { transition: transform 160ms ease-out, background-color .3s; }
html:not(.reduit) .demo-ligne.change { animation: demo-change .9s cubic-bezier(.23, 1, .32, 1); }
  html:not(.reduit) .demo-repere.change { animation: demo-pop .5s cubic-bezier(.23, 1, .32, 1); }
  html:not(.reduit) .demo-recit { animation: demo-recit .3s cubic-bezier(.23, 1, .32, 1); }
  @keyframes demo-change { from { background: #FFF1E6; transform: translateX(-6px); } }
  @keyframes demo-pop { from { transform: scale(.4); opacity: 0; } }
  @keyframes demo-recit { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 900px) { .demo-recit { font-size: 13px; } .demo-heure { font-size: 13px; } }
@media (forced-colors: active) { .demo-lecture-icone, .demo-heure { forced-color-adjust: none; } }
@media (max-width: 900px) { .demo-horloge { position: static; padding: 8px 10px 0; } .demo-recit { box-shadow: none; padding: 0; background: none; font-size: 14px; } }
/* 27.11 : petits téléphones (320 px de large, ou écran bas comme un iPhone SE) : le haut se resserre, le carrousel descend */
@media (max-width: 700px) and (max-height: 700px) { .carrousel { --cy: 67%; } .projets-note { font-size: 14px; } }
@media (max-width: 340px) { .projets-tete h1 { font-size: 22px; } .projets-note { font-size: 13px; line-height: 1.35; } .carrousel { --cy: 69%; } .bouton.bouton-petit { padding: 8px 14px; font-size: 14px; } .lien-demo { font-size: 13px; } }

/* =====================================================================================================================
   v6 (28.11.2026, demande de Théo) : Studio au niveau de la page Projets (même décor sombre, quatre parties numérotées,
   avant / après à glisser) ; Devis = un configurateur (plusieurs choix, ticket additionné, site actuel et détail à la fin) ;
   Contact = une lettre à Théo et Carl (plus de tuiles). Ces règles viennent après les anciennes et les remplacent.
   ===================================================================================================================== */

/* le titre reçoit le focus à l'ouverture d'un onglet (pour le lecteur d'écran) : pas de cadre, ce n'est pas un contrôle */
.onglet h2[tabindex="-1"]:focus, .onglet h2[tabindex="-1"]:focus-visible { outline: none; }

/* les états du logiciel, sur fond sombre (les teintes de la démo, éclaircies pour garder 4,5:1 sur var(--nuit)) */
.onglet-sombre .etat-retard { --etat: #FF8F80; }
.onglet-sombre .etat-attention { --etat: #F2C14E; }
.onglet-sombre .etat-ok { --etat: #6FD39B; }

/* ---------- Studio ---------- */
/* 28.11 (critique) : en haut, l'atelier se voit comme sur Projets ; il s'assombrit sous le texte qui suit */
.onglet-studio { background: linear-gradient(180deg, rgba(22, 18, 15, .62), rgba(22, 18, 15, .78) 55%, rgba(22, 18, 15, .9)), url(media/fond-v4/ordi-flou.webp) center / cover no-repeat, var(--nuit); }
.onglet-studio .studio { max-width: 1240px; margin: 0 auto; }
.studio-tete { display: grid; gap: 18px; }
.studio-tete h2 { margin: 0; color: var(--fond); font-size: clamp(38px, 5vw, 76px); line-height: 1.02; max-width: 14em; }
.studio-chapeau { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--sable); max-width: 36em; }
.studio-tete .onglet-actions { margin-top: 10px; }
.studio-partie { margin-top: clamp(72px, 12vh, 140px); padding-top: 26px; border-top: 1px solid var(--trait-clair); }
.sp-titre { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; font: 500 clamp(26px, 2.6vw, 40px)/1.1 var(--serif); color: var(--fond); }
.sp-n { font: 600 14px/1 var(--sans); letter-spacing: .1em; color: var(--orange); font-variant-numeric: tabular-nums; }
.sp-texte { margin: -8px 0 18px; font-size: 16px; line-height: 1.5; color: var(--pierre); max-width: 46em; }

/* les deux portes, comme des cartes du carrousel : cadre sombre, filet, image qui s'approche au survol */
.onglet-studio .portes { gap: clamp(16px, 2.4vw, 36px); }
.onglet-studio .porte { gap: 8px; }
.onglet-studio .porte-img { position: relative; background: #221c18; border-radius: 16px; box-shadow: 0 0 0 1px var(--trait-clair), 0 30px 60px rgba(0, 0, 0, .35); }
.onglet-studio .porte-titre { color: var(--fond); font-size: clamp(22px, 1.9vw, 28px); margin-top: 10px; }
.onglet-studio .porte-ligne { color: var(--pierre); font-size: 16px; max-width: 34em; }
.porte-prix { font-size: 14px; line-height: 1.4; color: var(--orange); font-variant-numeric: lining-nums tabular-nums; }
.porte-logiciel .porte-img img { filter: saturate(1.12) contrast(1.06); }
.porte-logiciel .porte-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(22, 18, 15, .05) 30%, rgba(22, 18, 15, .45)); pointer-events: none; }
/* la porte du logiciel montre le logiciel : la liste « ce qui bloque » et les repères à l'endroit où ça bloque */
.porte-ui { position: absolute; z-index: 2; top: 6%; right: 4%; width: min(48%, 300px); display: grid; gap: 5px; padding: 10px 12px 12px; border-radius: 12px;
  background: rgba(22, 18, 15, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); color: var(--fond); font-size: 13px; line-height: 1.3; }
.pu-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-size: 12px; color: var(--gris-sombre); }
.pu-pastille { padding: 2px 6px; border-radius: 5px; background: var(--orange); color: var(--encre); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.pu-ligne { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid var(--trait-clair); }
.pu-ligne b { color: var(--etat); font-size: 12px; text-align: center; }
.pu-ligne i { font-style: normal; font-size: 12px; color: var(--etat); }
.porte-repere { position: absolute; z-index: 1; left: var(--x); top: var(--y); translate: -50% -50%; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--etat); color: var(--nuit); font-size: 13px; box-shadow: 0 0 0 3px rgba(22, 18, 15, .55); }
.pr-1 { --x: 69%; --y: 67%; } .pr-2 { --x: 43%; --y: 65%; } .pr-3 { --x: 87%; --y: 58%; }
.porte-repere.etat-retard::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--etat); animation: repere-onde 2.2s var(--sortie) infinite; }
@keyframes repere-onde { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

/* avant / après */
.avap-choix { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.avap-choix button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(247, 243, 238, .28); color: var(--sable); font-size: 15px; transition: background .3s, color .3s, border-color .3s; }
@media (hover: hover) and (pointer: fine) { .avap-choix button:hover { border-color: var(--fond); color: var(--fond); } }
.avap-choix button[aria-pressed="true"] { background: var(--fond); border-color: var(--fond); color: var(--encre); }
.avap { --p: 50%; position: relative; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden; background: #221c18; box-shadow: 0 0 0 1px var(--trait-clair), 0 40px 80px rgba(0, 0, 0, .4); user-select: none; -webkit-user-select: none; }
.avap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.avap-avant-cadre { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.avap-trait { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--p); width: 2px; translate: -1px 0; background: var(--fond); box-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
.avap-poignee { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fond); color: var(--encre); font-size: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.avap-mot { position: absolute; z-index: 2; top: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(22, 18, 15, .82); color: var(--fond); font-size: 13px; font-weight: 600; letter-spacing: .02em; pointer-events: none; }
.avap-mot-avant { left: 14px; } .avap-mot-apres { right: 14px; }
.avap-curseur { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y; }
.avap-curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.avap-curseur::-moz-range-thumb { width: 48px; height: 100vh; border: 0; }
.avap:has(.avap-curseur:focus-visible) .avap-poignee { outline: 3px solid var(--orange); outline-offset: 3px; }
.avap figcaption { position: absolute; z-index: 4; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 4px 6px 4px 14px; border-radius: 999px; background: rgba(22, 18, 15, .86); color: var(--fond); font-size: 15px; }
.avap-nom { font-weight: 600; }
.avap-fiche { min-height: 40px; font-size: 15px; border-bottom: 0; padding: 0 10px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .avap-fiche:hover { background: rgba(247, 243, 238, .1); } }

/* notre façon de travailler : trois temps, grands numéros */
.facon { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); counter-reset: none; }
.facon li { color: var(--pierre); font-size: 16px; line-height: 1.5; }
.facon-n { display: block; margin-bottom: 10px; font: 500 clamp(52px, 5vw, 76px)/1 var(--serif); color: var(--orange); }
.facon strong { display: block; margin-bottom: 4px; color: var(--fond); font-weight: 600; font-size: 17px; }
.onglet-studio .chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; margin: clamp(36px, 6vh, 56px) 0 0; padding: 20px 0; border-top: 1px solid var(--trait-clair); border-bottom: 1px solid var(--trait-clair); }
.onglet-studio .chiffres dd { color: var(--orange); }
.onglet-studio .chiffres dt { color: var(--pierre); }
.onglet-studio .secteurs { margin-top: 20px; max-width: 58em; color: var(--pierre); font-size: 16px; line-height: 1.55; }
.onglet-studio .secteurs span { color: var(--fond); }

/* qui est derrière */
.initiales { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--encre); color: var(--fond); font: 500 19px/1 var(--serif); letter-spacing: .02em; }
.initiales-carl { background: var(--orange); color: var(--encre); }
.onglet-sombre .initiales:not(.initiales-carl) { background: var(--fond); color: var(--encre); }
.qui-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qui-cartes li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; align-items: center; padding: 20px; border-radius: 16px; background: rgba(247, 243, 238, .05); border: 1px solid var(--trait-clair); }
.qui-cartes .initiales { grid-row: span 4; align-self: start; }
.qui-cartes strong { font-size: 19px; font-weight: 600; color: var(--fond); }
.qui-cartes span:not(.initiales) { color: var(--pierre); font-size: 15px; line-height: 1.4; }
.qui-cartes a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--fond); font-weight: 600; text-underline-offset: 4px; font-variant-numeric: tabular-nums; }
.onglet-studio .qui-lieu { margin-top: 14px; color: var(--pierre); font-size: 15px; }
.onglet-studio .studio-fin { margin-top: clamp(40px, 7vh, 64px); padding: clamp(22px, 3vw, 40px); border-radius: 20px; background: rgba(224, 122, 61, .10); border: 1px solid rgba(224, 122, 61, .35); }
.studio-fin-titre { font: 500 clamp(26px, 3vw, 44px)/1.1 var(--serif); color: var(--fond); max-width: 18em; }
.onglet-studio .studio-fin .onglet-actions { margin-top: 20px; }
.onglet-studio .mention-societe { margin-top: 26px; color: var(--gris-sombre); }

@media (max-width: 900px) {
  .facon { grid-template-columns: 1fr; gap: 22px; }
  .facon li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .facon-n { grid-row: span 2; font-size: 46px; margin: 0; }
  .qui-cartes { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .onglet-studio .portes { grid-template-columns: 1fr; }
  .onglet-studio .chiffres { grid-template-columns: repeat(2, 1fr); }
  .studio-tete h2 { font-size: clamp(32px, 9vw, 44px); }
  .studio-partie { margin-top: 56px; padding-top: 20px; }
  .sp-titre { font-size: 26px; gap: 12px; margin-bottom: 16px; }
  .porte-ui { width: 56%; padding: 7px 8px 8px; font-size: 11px; gap: 2px; }
  .pu-tete { font-size: 10px; } .pu-ligne { padding: 3px 0; } .pu-ligne i { font-size: 10px; }
  .porte-repere { width: 22px; height: 22px; font-size: 11px; }
  .avap { aspect-ratio: 4 / 3; }
  .avap-mot { top: 10px; font-size: 12px; } .avap-mot-avant { left: 10px; } .avap-mot-apres { right: 10px; }
  .avap figcaption { left: 10px; right: 10px; bottom: 10px; justify-content: space-between; font-size: 14px; }
  .avap-poignee { width: 42px; height: 42px; }
}

/* ---------- Devis : un configurateur ---------- */
.choix-multi .choix-carte input[type="checkbox"] { border-radius: 6px; }
.choix-carte input[type="checkbox"]:checked { box-shadow: none; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%2316120f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.quiz-nav { flex-wrap: wrap; }
.quiz-suite { order: 0; }
.quiz-suite[disabled] { opacity: .45; }
.q-groupes { display: grid; gap: 14px; }
.q-titre { font: 500 clamp(22px, 2vw, 28px)/1.2 var(--serif); }
.q-groupe legend { margin-bottom: 8px; font: 600 16px/1.3 var(--sans); color: var(--fond); }
.q-groupe legend span { font-weight: 400; color: var(--pierre); }
.choix-ligne { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choix-ligne .choix-carte { min-height: 54px; padding: 9px 12px 9px 42px; }
.choix-ligne .choix-carte input { left: 14px; width: 18px; height: 18px; }
.choix-ligne .cc-titre { font-size: 15.5px; }
.choix-ligne .cc-desc { font-size: 13px; }
/* le ticket : une ligne par choix, additionnée sous la pile (décor : le résultat dit la même chose en texte) */
.ticket { width: min(340px, 100%); margin-top: 10px; padding: 10px 16px; border-radius: 12px; border: 1px dashed rgba(247, 243, 238, .26); background: rgba(247, 243, 238, .04); font-size: 14px; line-height: 1.35; color: var(--sable); }
.ticket li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 5px 0; }
.ticket li + li { border-top: 1px dashed rgba(247, 243, 238, .16); }
.ticket li span:last-child { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; color: var(--fond); }
.res-lignes { display: grid; margin: 2px 0 4px; font-size: 15px; }
.res-lignes li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--trait-clair); }
.res-lignes li span:last-child { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.devis-form .champ textarea { background: rgba(247, 243, 238, .08); border-color: rgba(247, 243, 238, .28); color: var(--fond); field-sizing: content; min-block-size: 50px; max-block-size: 5lh; resize: none; }
.devis-form .champ textarea:focus { background: rgba(247, 243, 238, .12); border-color: var(--fond); }
.devis-form .champ input::placeholder, .devis-form .champ textarea::placeholder { color: rgba(247, 243, 238, .45); }
.devis-form .facultatif, .devis-form .champ-note { color: var(--gris-sombre); }
@media (min-width: 901px) {
  /* au résultat, le titre et la progression laissent la place au formulaire ; le ticket à gauche dit les lignes */
  .devis:has(.quiz-pas[data-pas="3"]) .devis-q h2, .devis:has(.quiz-pas[data-pas="3"]) .prix-progression { display: none; }
  .devis:has(.quiz-pas[data-pas="3"]) .quiz-pas { height: clamp(430px, calc(100svh - 250px), 680px); }
  .devis:has(.quiz-pas[data-pas="3"]) .res-lignes { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .quiz-pas[data-pas="1"]:has(.q-groupes) { height: clamp(380px, calc(100svh - 360px), 520px); }
}
@media (max-width: 900px) { .ticket { display: none; } }

/* ---------- Contact : une lettre ---------- */
.contact-lettre { grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.contact-lettre .contact-intro { position: static; display: grid; gap: 16px; align-content: center; min-height: 0; overflow: visible; border-radius: 0; background: none; color: var(--fond); }
.contact-lettre .contact-intro::after { display: none; }
.contact-lettre .surtitre { color: var(--gris-sombre); }
.contact-lettre h2 { color: var(--fond); font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; }
.contact-lettre .contact-texte { color: var(--lin); font-size: 17px; max-width: 30em; }
.personnes { display: grid; gap: 10px; margin-top: 6px; }
.personne { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(247, 243, 238, .06); border: 1px solid var(--trait-clair); }
.personne-txt { display: grid; gap: 1px; min-width: 0; }
.personne-txt strong { font-size: 16px; font-weight: 600; }
.personne-txt span { font-size: 14px; line-height: 1.35; color: var(--pierre); }
.personne-tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; white-space: nowrap; text-underline-offset: 4px; font-variant-numeric: tabular-nums; }
.contact-lieu { font-size: 15px; line-height: 1.5; color: var(--pierre); }
.contact-lieu span { display: block; margin-top: 4px; }
.contact-lieu a { color: var(--fond); font-weight: 500; text-underline-offset: 4px; }
.contact-lettre .contact-carte { padding: clamp(20px, 3vw, 40px); border-radius: 6px 20px 20px 20px; }
.lettre-a, .lettre-de { display: flex; align-items: baseline; gap: 12px; font-size: 16px; color: var(--encre); }
.lettre-a { padding-bottom: 12px; border-bottom: 1px solid var(--trait); font-weight: 500; }
.lettre-a span, .lettre-de span { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-texte); min-width: 2.2em; }
.lettre-de { margin-bottom: 8px; }
.lettre-signe { padding-top: 14px; border-top: 1px solid var(--trait); }
.contact .champ-lettre textarea { min-block-size: 4lh; max-block-size: 10lh; font-size: 18px; line-height: 1.55; }
.champs-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.contact-lettre .envoyer { justify-self: start; }
@media (max-width: 900px) {
  .contact-lettre { grid-template-columns: 1fr; gap: 14px; }
  .contact-lettre .contact-intro { display: contents; }
  .contact-lettre .surtitre { display: none; }
  .contact-lettre h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .contact-lettre .contact-texte { font-size: 15px; }
  .contact-lettre .contact-carte { order: 4; padding: 16px; }
  .personnes { order: 5; margin-top: 4px; }
  .contact-lieu { order: 6; }
  .personne { grid-template-columns: auto 1fr; padding: 10px 12px; }
  .personne-tel { grid-column: 2; min-height: 40px; }
  .initiales { width: 44px; height: 44px; font-size: 16px; }
  .personne .initiales { grid-row: span 2; }
  .contact .champ-lettre textarea { min-block-size: 3lh; font-size: 17px; }
  .champs-3 { grid-template-columns: 1fr; gap: 9px; }
}
html.reduit .porte-repere.etat-retard::after { animation: none; }
.sobre .porte-repere.etat-retard::after { animation: none; }
@media (forced-colors: active) {
  .avap-choix button[aria-pressed="true"] { outline: 3px solid Highlight; }
  .porte-repere, .pu-pastille, .initiales { forced-color-adjust: none; }
  .avap-curseur { opacity: 1; }
}
.devis-form .champ textarea { min-height: 0; min-block-size: 0; padding: 13px 14px; line-height: 1.4; }
@media (max-width: 700px) { .avap-nom { display: none; } .avap figcaption { right: auto; padding: 2px; } }

/* ---------- 28.11 (critique de design) : Devis et Contact sur le décor de l'atelier, comme Projets et Studio ---------- */
.onglet-atelier { background: linear-gradient(180deg, rgba(22, 18, 15, .66), rgba(22, 18, 15, .84) 70%, rgba(22, 18, 15, .92)), url(media/fond-v4/ordi-flou.webp) center / cover no-repeat, var(--nuit); }
/* Contact : la lettre est une feuille posée sur le bureau ; elle garde son papier clair et son encre */
.contact-lettre .contact-carte { color: var(--encre); background: #FBF8F4; box-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .25); }
.contact-lettre .contact-carte :focus-visible { outline-color: var(--orange-texte); }
@media (max-width: 900px) { .onglet-atelier { background-attachment: scroll; } }
@media (forced-colors: active) { .contact-lettre .contact-carte { border: 1px solid CanvasText; } }
/* sur la feuille claire, le bouton reprend l'encre (sinon crème sur crème) */
.onglet-sombre .contact-carte .bouton { background: var(--encre); color: var(--fond); }
.onglet-sombre .contact-carte .bouton:hover, .onglet-sombre .contact-carte .bouton:focus-visible { color: var(--encre); }
@media (hover: none) { .onglet-sombre .contact-carte .bouton:hover { color: var(--fond); } }
.onglet-sombre .contact-carte .merci p { color: var(--gris); }

/* ---------- 28.11 (critique, suite) : Devis, Studio, règles d'interface ---------- */
/* Devis : la pile est l'objet de la scène ; plus grande, posée sur le bureau (une ombre au sol, pas un halo) */
@media (min-width: 901px) {
  .devis-scene { gap: 10px; }
  .pile { width: clamp(190px, 20vw, 290px); }
  .pile-cadre { background: radial-gradient(42% 16% at 50% 72%, rgba(0, 0, 0, .45), transparent 75%); }
  .ticket { width: min(360px, 100%); }
}
.ticket-vide { display: block !important; padding: 6px 0 !important; text-align: center; color: var(--pierre); }
/* Studio : l'appel final sans carte ; un trait, un grand titre, deux actions */
.onglet-studio .studio-fin { padding: clamp(32px, 6vh, 56px) 0 0; border: 0; border-top: 1px solid var(--trait-clair); border-radius: 0; background: none; }
.onglet-studio .studio-fin-titre { font-size: clamp(32px, 3.6vw, 56px); }
/* règles Vercel : titres équilibrés, thème des contrôles natifs selon le fond */
.sp-titre, .studio-fin-titre, .q legend, .porte-titre { text-wrap: balance; }
.onglet-sombre { color-scheme: dark; }
.contact-carte { color-scheme: light; }

/* ================= 28.11 : boutons et styles de texte selon les principes d'Apple (Human Interface Guidelines) =================
   Une échelle courte et nommée, réutilisée partout. Boutons : deux tailles seulement (52 px et 44 px, cible ≥ 44 px),
   libellé en demi-gras, une seule action pleine par vue, l'action secondaire en lien. Pression : léger rétrécissement. */
:root {
  --t-entete: 600 17px/1.3 var(--sans);      /* Headline */
  --t-corps: 400 17px/1.5 var(--sans);       /* Body */
  --t-legende: 400 15px/1.4 var(--sans);     /* Subheadline */
  --t-note: 400 13px/1.35 var(--sans);       /* Footnote */
  --t-surtitre: 600 14px/1.3 var(--sans);    /* repère au-dessus d'un titre */
  --bouton-h: 52px; --bouton-h-petit: 44px;
}
.bouton { min-height: var(--bouton-h); padding: 0 28px; gap: 10px; font: 600 17px/1 var(--sans); letter-spacing: -.01em; }
.bouton.bouton-petit { min-height: var(--bouton-h-petit); padding: 0 20px; gap: 8px; font: 600 16px/1 var(--sans); }
.bouton[disabled] { opacity: .4; }
.lien-fleche { min-height: 44px; font: 500 17px/1.2 var(--sans); }
.quiz-retour, .quiz-grille { font: 500 16px/1.2 var(--sans); }
.surtitre { font: var(--t-surtitre); }
.cc-titre { font: var(--t-entete); }
.porte-titre { letter-spacing: -.01em; }
.champ label, .champ legend { font: 500 15px/1.35 var(--sans); }
.champ-note, .formulaire-rgpd, .mention-societe { font: var(--t-note); }
.personne-txt strong, .qui-cartes strong { font: var(--t-entete); }
.personne-tel, .qui-cartes a { font-weight: 600; }
@media (max-width: 700px) {
  :root { --bouton-h: 50px; }
  .bouton { padding: 0 24px; font-size: 17px; }
  .bouton.bouton-petit { padding: 0 18px; font-size: 15px; }
  .lien-fleche { font-size: 16px; }
}
@media (max-width: 340px) { .bouton.bouton-petit { padding: 0 14px; font-size: 14px; } }

/* 28.11 : avant / après ; les repères et le nom sortent de l'image (ils couvraient le contenu des sites) */
.avap-fig { margin: 0; display: grid; gap: 12px; }
.avap-legende { display: flex; justify-content: space-between; gap: 16px; font: 600 14px/1.3 var(--sans); color: var(--pierre); }
.avap-legende span:last-child { color: var(--fond); }
.al-fleche { color: var(--orange); }
.avap-fig figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--fond); font-size: 16px; }
.avap-fig .avap-nom { display: inline; font-weight: 600; }
@media (max-width: 700px) { .avap-legende { font-size: 13px; } .avap-fig figcaption { font-size: 15px; } }
.avap-fig .avap-fiche { flex: none; white-space: nowrap; } .avap-fig .avap-nom { min-width: 0; }

/* v9 : « Être trouvé, sur Google et par les IA ». La même question, aux deux endroits ; le site du client répond. */
.trouve { margin-top: 22px; }
.trouve-choix { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.trouve-choix button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--trait-clair, rgba(247,243,238,.22)); background: transparent; color: var(--fond); font: 500 15px/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.trouve-choix button[aria-pressed="true"] { background: var(--fond); color: var(--encre); border-color: var(--fond); }
.trouve-scene { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.trouve-carte { min-width: 0; padding: clamp(18px, 2.2vw, 28px); border-radius: 14px; background: #FBF8F4; color: var(--encre); box-shadow: 0 30px 80px -30px rgba(0,0,0,.55); }
.tc-tete { margin: 0 0 14px; }
.tc-pastille { display: inline-block; padding: 5px 10px; border-radius: 6px; background: rgba(28,28,28,.07); font: 600 13px/1 var(--sans); letter-spacing: .02em; }
.tc-pastille-ia { background: rgba(224,122,61,.16); color: var(--orange-texte); }
.tc-champ { display: flex; align-items: center; min-height: 48px; margin: 0 0 18px; padding: 10px 16px; border: 1px solid rgba(28,28,28,.18); border-radius: 24px; font-size: 16px; line-height: 1.35; }
.tc-curseur { width: 1.5px; height: 1.1em; margin-left: 2px; background: var(--encre); animation: tc-clin 1s steps(1) infinite; }
@keyframes tc-clin { 50% { opacity: 0; } }
.tc-url { margin: 0; font-size: 14px; color: #5b5550; }
.tc-titre { margin: 4px 0 6px; font: 500 19px/1.3 var(--sans); color: #1f4fa8; text-wrap: balance; }
.tc-desc { margin: 0; font-size: 15px; line-height: 1.5; color: #3d3833; }
.tc-infos { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: 14px; color: #5b5550; }
.tc-bulle-q { margin: 0 0 14px auto; width: fit-content; max-width: 92%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: rgba(28,28,28,.07); font-size: 15px; line-height: 1.4; }
.tc-reponse p { margin: 0; font-size: 16px; line-height: 1.55; }
.tc-reponse b { font-weight: 600; background: linear-gradient(transparent 62%, rgba(224,122,61,.28) 0); }
.tc-source { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 12px !important; padding: 6px 10px 6px 6px; border: 1px solid rgba(28,28,28,.14); border-radius: 8px; font-size: 14px !important; color: #3d3833; }
.tc-source-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--orange); color: var(--encre); font: 600 12px/1 var(--sans); }
.tc-res, .tc-reponse { transition: opacity .45s var(--doux, ease), transform .45s var(--doux, ease); }
.trouve.attend .tc-res, .trouve.attend .tc-reponse { opacity: 0; transform: translateY(8px); }
.trouve.attend .tc-reponse { transition-delay: .25s; }
.trouve-note { margin: 12px 0 0; font-size: 14px; color: var(--pierre); }
.trouve-quoi { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); }
.trouve-quoi li { padding: 16px 0; border-top: 1px solid var(--trait-clair, rgba(247,243,238,.18)); font-size: 16px; line-height: 1.5; color: var(--lin); }
.trouve-quoi strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--fond); }
.mono-court { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; }
.trouve-honnete { margin: 18px 0 0; max-width: 60ch; font-size: 16px; line-height: 1.5; color: var(--lin); }
@media (max-width: 760px) {
  .trouve-scene, .trouve-quoi { grid-template-columns: 1fr; }
}
html.reduit .tc-curseur { animation: none; } html.reduit .tc-res, html.reduit .tc-reponse { transition: none; }

/* v9 : la fin du Studio. Un seul grand titre (la question qu'un client pose à une IA), une réponse forte (votre entreprise), puis l'audit offert et ses trois piliers. */
.offre { position: relative; margin-top: clamp(48px, 8vh, 96px); padding-top: clamp(36px, 6vh, 64px); border-top: 1px solid var(--trait-clair); }
.offre::before { content: ''; position: absolute; left: 0; top: -1px; width: 96px; height: 2px; background: var(--orange); }
.offre-sur { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(18px, 3vh, 28px); font: 600 14px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--orange); }
.offre-sur::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(224,122,61,.22); }
/* la question : sa hauteur est réservée (JS) pour que rien ne bouge quand les mots changent */
.offre-prompt { margin: 0; max-width: 15em; font: 400 clamp(38px, 5.8vw, 96px)/1.04 var(--serif); letter-spacing: -.025em; color: var(--fond); text-wrap: balance; }
.op-mot { display: inline-block; font-style: italic; color: var(--orange); }

/* la réponse : une carte d'assistant, le nom en grand */
.offre-reponse { width: min(100%, 620px); margin: clamp(22px, 4vh, 36px) 0 0 auto; padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 28px); border-radius: 18px; background: #FBF8F4; color: var(--encre);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(224,122,61,.18); transition: opacity .45s var(--doux, ease); }
.offre.cherche .offre-reponse { opacity: .7; }
.or-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.or-pastille { padding: 5px 10px; border-radius: 6px; background: rgba(224,122,61,.16); color: var(--orange-texte); font: 600 13px/1 var(--sans); letter-spacing: .02em; }
.or-source { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 8px; border: 1px solid rgba(28,28,28,.14); font: 500 14px/1 var(--sans); color: #4a443e; }
.or-source span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--orange); color: var(--encre); font-size: 12px; font-weight: 600; }
.or-avant { margin: 0; font-size: 16px; line-height: 1.45; color: #4a443e; }
.or-nom { margin: 6px 0 0; font: 500 clamp(34px, 3.6vw, 56px)/1.02 var(--serif); letter-spacing: -.02em; color: var(--encre); }

/* l'offre : une ligne forte en texte simple, le bouton à côté (plus de second grand titre) */
.offre-corps { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(44px, 8vh, 88px); padding: clamp(22px, 2.6vw, 32px) 0; border-top: 1px solid var(--trait-clair); border-bottom: 1px solid var(--trait-clair); }
.offre-titre { margin: 0 0 8px; font: 600 clamp(22px, 2vw, 28px)/1.25 var(--sans); letter-spacing: -.01em; color: var(--fond); text-wrap: balance; }
.offre-texte p { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.55; color: var(--lin); }
.offre-corps .onglet-actions { margin: 0; flex-wrap: nowrap; }

.offre-piliers { list-style: none; margin: clamp(36px, 6vh, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.offre-piliers li { position: relative; display: grid; align-content: start; gap: 8px; padding-top: 22px; color: var(--lin); font-size: 16px; line-height: 1.55; }
.offre-piliers li::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--trait-clair); }
.offre-piliers li::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.65,0,.35,1); }
.offre.vue .offre-piliers li::after { transform: scaleX(1); }
.offre.vue .offre-piliers li:nth-child(2)::after { transition-delay: .18s; }
.offre.vue .offre-piliers li:nth-child(3)::after { transition-delay: .36s; }
.opi-n { font: 400 clamp(40px, 4vw, 60px)/1 var(--serif); color: var(--orange); opacity: .9; font-variant-numeric: lining-nums; }
.offre-piliers strong { font: 600 19px/1.3 var(--sans); color: var(--fond); }
@media (max-width: 900px) {
  .offre-corps { grid-template-columns: 1fr; }
  .offre-corps .onglet-actions { flex-wrap: wrap; }
  .offre-piliers { grid-template-columns: 1fr; gap: 26px; }
  .offre-reponse { margin-left: 0; }
}
html.reduit .offre-piliers li::after { transform: scaleX(1); transition: none; } html.reduit .offre-reponse { transition: none; }
@media (forced-colors: active) { .offre-reponse { border: 1px solid CanvasText; } }

/* v9 : Devis sur mesure, 8 choix à la question 1. La zone grandit un peu à cette étape ; sur un écran bas, les cartes ne gardent que leur titre. */
@media (min-width: 901px) {
  .devis:has(.quiz-pas[data-pas="0"]) .quiz-pas { height: clamp(330px, calc(100svh - 370px), 470px); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .choix-8 .cc-desc { display: none; }
  .choix-8 .choix-carte { min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
}

/* 01.12 : la vidéo du vrai logiciel, en tête de la démo, sur toute la largeur */
.demo-video { grid-column: 1 / -1; margin: 0; }
.dv-cadre { position: relative; border-radius: 14px; overflow: hidden; background: #1c1814; border: 1px solid var(--trait); aspect-ratio: 16 / 9; }
.dv-cadre video, .dv-cadre img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dv-lecture { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(28, 24, 20, .78); color: var(--fond); font: 600 15px/1 var(--sans); cursor: pointer; }
.dv-lecture:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.demo-video figcaption { padding: 10px 2px 0; font-size: 15px; line-height: 1.45; color: var(--gris); }
.demo-video figcaption strong { color: var(--encre); font-weight: 600; }

/* 01.12 : la porte « Logiciel de gestion en 3D » montre la vidéo du vrai logiciel (en boucle, sans son, seulement à l'écran) */
.porte-img-video { position: relative; }
.porte-video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--sortie); }
@media (hover: hover) and (pointer: fine) { .porte:hover .porte-video { transform: scale(1.03); } }
.porte-logiciel .porte-img-video::after { background: linear-gradient(200deg, rgba(22, 18, 15, 0) 55%, rgba(22, 18, 15, .35)); }
.porte-pastille-video { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 6px 10px; border-radius: 999px; background: rgba(28, 24, 20, .78); color: var(--fond); font: 600 13px/1.2 var(--sans); }

/* 01.12 (zéro friction) : le logo fixe sous la vidéo, dès le premier affichage ; la vidéo le recouvre quand elle démarre */
.avec-intro .intro-video { background: url(media/intro/logo-affiche.webp) center / cover no-repeat; }

/* 01.12 : le bandeau « Activer les animations », quand l'ordinateur les coupe (souvent les PC de travail) */
.anim-bandeau { position: fixed; left: 16px; bottom: 16px; z-index: 300; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: min(520px, calc(100vw - 32px)); padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(28, 24, 20, .94); color: var(--fond); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); font: 500 15px/1.35 var(--sans); transition: opacity .4s, visibility 0s .4s; }
.anim-bandeau p { margin: 0; flex: 1 1 220px; }
.anim-action { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fond); color: var(--encre); font: 600 15px var(--sans); cursor: pointer; }
.anim-fermer { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--fond); font-size: 22px; line-height: 1; cursor: pointer; }
.anim-bandeau :focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.anim-bandeau.anim-cache { opacity: 0; visibility: hidden; }

/* 30.11 : les vrais avantages du logiciel, en tête de la démonstration */
.demo-av-titre { margin: 18px 0 10px; font: 600 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-texte); }
.demo-avantages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.demo-avantages li { padding: 14px 16px; border-radius: 14px; background: var(--argile); font-size: 15px; line-height: 1.45; color: var(--gris); }
.demo-avantages strong { display: block; margin-bottom: 4px; font: 500 19px/1.2 var(--serif); color: var(--encre); }
@media (max-width: 1000px) { .demo-avantages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .demo-avantages { grid-template-columns: 1fr; } .demo-avantages li { padding: 12px 14px; } }
.demo-avantages { margin-right: -56px; }   /* la liste prend toute la largeur, sous le bouton de fermeture */

/* 30.11 : questions fréquentes de l'onglet Studio */
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-of-type { border-bottom: 1px solid var(--trait); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 0; cursor: pointer; list-style: none; font: 500 clamp(18px, 1.6vw, 21px)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 400 24px/1 var(--sans); color: var(--orange-texte); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.faq details p { margin: 0 0 16px; max-width: 46em; font-size: 16px; line-height: 1.55; color: var(--gris-sombre); }
.faq details a { color: inherit; font-weight: 600; text-underline-offset: 3px; }

/* ============ v6 (30.11) : la fiche = l'objectif du client, des chiffres, ce qu'on a fait ============ */
.fiche-desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fiche-objectifs h3, .fiche-changements h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin: 18px 0 10px; }
.fiche-objectifs ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fiche-objectifs li { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3; letter-spacing: -.01em; padding-left: 26px; position: relative; text-wrap: balance; }
.fiche-objectifs li::before { content: '→'; position: absolute; left: 0; color: var(--orange); }
.fiche-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 18px 0 4px; background: var(--trait); border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; }
.fiche-chiffres div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 18px 20px; background: var(--fond); }
.fiche-chiffres dd { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 3.6vw, 56px); line-height: .95; letter-spacing: -.03em; color: var(--encre); font-variant-numeric: tabular-nums; }
.fiche-chiffres dt { font-size: 15px; line-height: 1.35; color: var(--gris); text-wrap: pretty; }
.fiche-changements li { font-size: 15.5px; line-height: 1.45; }
@media (max-width: 380px) { .fiche-chiffres { grid-template-columns: 1fr; } }
.fiche-objectifs, .fiche-chiffres, .fiche-changements { flex-shrink: 0; }   /* le panneau est une colonne flex qui défile : sans ça, la grille des chiffres s'écrase à 2 px */

/* ============ v6b : la fiche répartie comme une page produit. Un rythme : serré dans un bloc, large entre les blocs. ============ */
.fiche-panneau { gap: 0; }
.fiche-panneau > .fiche-cat { margin-bottom: 6px; }
.fiche-panneau > .fiche-lieu { margin-top: 6px; }
.fiche-panneau > .fiche-lien { align-self: flex-start; margin-top: 22px; }
.fiche-objectifs, .fiche-bloc-chiffres, .fiche-changements, .fiche-fin { flex-shrink: 0; margin-top: clamp(34px, 4.2vh, 52px); }
.fiche-objectifs h3, .fiche-bloc-chiffres h3, .fiche-changements h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin: 0 0 14px; }
.fiche-objectifs ul { gap: 10px; }
.fiche-objectifs li { font: 500 clamp(21px, 1.65vw, 26px)/1.25 var(--serif); letter-spacing: -.01em; padding-left: 0; }
.fiche-objectifs li::before { content: none; }
.fiche-objectifs li + li { padding-top: 10px; border-top: 1px solid var(--trait); }
.fiche-chiffres { margin: 0; border-radius: 16px; }
.fiche-chiffres div { padding: 20px 18px 22px; gap: 8px; }
.fiche-changements ul { gap: 10px; counter-reset: fait; }
.fiche-changements li { padding-left: 30px; font-size: 16px; line-height: 1.45; counter-increment: fait; }
.fiche-changements li::before { content: counter(fait, decimal-leading-zero); width: auto; height: auto; top: .1em; background: none; color: var(--orange); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.fiche-fin { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--trait); }
.fiche-fin .fiche-meta { margin: 0; border: 0; }
.fiche-fin .fiche-meta div { grid-template-columns: auto 1fr; padding: 0; border: 0; gap: 14px; }
.fiche-fin .fiche-estimer { justify-self: start; }
.fiche-panneau > .fiche-demo { margin-top: 22px; max-width: 46ch; }
.fiche-panneau > .fiche-suivant { margin-top: 26px; }

/* 30.11 : sur iPhone, Safari montre le fond de la page sous sa barre du bas ; sur l accueil (seulement l atelier), ce fond devient celui de l atelier */
html:has(.projets-cadre) { background: #140f0c; }

/* ============ 30.11 : Devis et Contact au téléphone ============
   Devis : le récapitulatif devient une barre fine collée en haut ; « Continuer » et « Retour » restent collés en bas, toujours au pouce.
   Contact : appeler Théo ou Carl passe avant le formulaire, en deux grosses touches. */
@media (max-width: 900px) {
  .devis-scene { position: sticky; top: 0; z-index: 3; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 0 -4px 6px; padding: 6px 8px; border-radius: 14px; background: rgba(29, 23, 18, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--trait-clair); }
  .pile-cadre { height: 52px; width: 64px; }
  .pile { width: 46px; }
  .pile-total { justify-items: start; }
  .pile-des { font-size: 13px; }
  .pile-montant { font-size: 22px; }
  .quiz-nav { position: sticky; bottom: 0; z-index: 3; margin: 12px -4px 0; padding: 12px 4px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(29, 23, 18, 0), rgba(29, 23, 18, .96) 28%); }
  .quiz-nav .quiz-suite:not([hidden]) { flex: 1 1 100%; order: -1; min-height: 54px; justify-content: center; font-size: 17px; }
  .quiz-nav .quiz-retour, .quiz-nav .quiz-grille { min-height: 44px; }
  /* le contact : les deux numéros d'abord */
  .personnes { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 4px; }
  .personne { position: relative; grid-template-columns: 1fr; gap: 6px; padding: 12px; }
  .personne .initiales { display: none; }
  .personne-txt span { display: none; }
  .personne-txt strong { font-size: 15px; }
  .personne-txt strong::before { content: 'Appeler '; font-weight: 400; color: var(--pierre); }
  .personne-tel { grid-column: 1; min-height: 0; font-size: 16px; text-decoration: none; color: var(--fond); }
  .personne-tel::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }   /* toute la carte appelle */
  .personne:active { background: rgba(247, 243, 238, .14); }
  .contact-lettre .contact-carte { order: 4; }
  .contact-lieu { order: 6; }
}

/* ============ Contact v7 (30.11) : une colonne centrée, façon Apple. Le titre, deux touches pour appeler, puis la lettre.
   Rythme : serré dans un bloc, large entre les blocs ; une seule action forte par bloc. ============ */
.contact.contact-v7 { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 760px; margin: 0 auto; padding: clamp(24px, 6vh, 72px) 0 clamp(40px, 8vh, 96px); text-align: center; }
.contact-v7 .c7-tete { display: grid; justify-items: center; gap: 0; width: 100%; }
.contact-v7 .surtitre { display: inline-flex; margin: 0 0 18px; color: var(--gris-sombre); }
.contact-v7 h2 { margin: 0; font: 500 clamp(44px, 6.4vw, 92px)/.98 var(--serif); letter-spacing: -.02em; color: var(--fond); text-wrap: balance; }
.c7-chapo { margin: 22px 0 0; max-width: 32em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--lin); text-wrap: pretty; }
.c7-appels { list-style: none; margin: clamp(32px, 5vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.c7-appel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 22px; text-align: left; text-decoration: none; color: var(--fond);
  background: rgba(247, 243, 238, .06); box-shadow: inset 0 0 0 1px rgba(247, 243, 238, .14); transition: background-color .3s, transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
@media (hover: hover) { .c7-appel:hover { background: rgba(247, 243, 238, .11); transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(247, 243, 238, .26), 0 18px 40px -20px rgba(0, 0, 0, .6); } }
.c7-appel:active { transform: scale(.98); transition-duration: .12s; }
.c7-av { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fond); color: var(--encre); font: 500 17px/1 var(--serif); }
.c7-av-carl { background: var(--orange); color: #fff; }
.c7-qui { display: grid; gap: 1px; min-width: 0; }
.c7-qui small { font-size: 13px; color: var(--pierre); }
.c7-qui b { font-size: 19px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c7-qui > span { font-size: 13px; line-height: 1.3; color: #9E9488; }
.c7-tel { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #3BB273; color: #fff; }
.c7-tel svg { width: 19px; height: 19px; }
html:not(.reduit) .c7-tel { animation: c7-sonne 4.5s cubic-bezier(.36, .07, .19, .97) 2s infinite; }
@keyframes c7-sonne { 0%, 86%, 100% { transform: none; } 88% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 92% { transform: rotate(-10deg); } 94% { transform: rotate(6deg); } }
.c7-ou { display: flex; align-items: center; gap: 16px; width: 100%; margin: clamp(32px, 5vh, 48px) 0 18px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #9E9488; }
.c7-ou::before, .c7-ou::after { content: ''; flex: 1; height: 1px; background: rgba(247, 243, 238, .14); }
.contact-v7 .contact-carte { width: 100%; text-align: left; order: initial; padding: clamp(20px, 3vw, 36px); border-radius: 26px; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.contact-v7 .champ-lettre textarea { min-block-size: 4.5lh; font: 400 clamp(19px, 1.6vw, 22px)/1.5 var(--serif); }
.contact-v7 .champ-lettre textarea::placeholder { color: #8C8378; }
.contact-v7 .champs-3 { grid-template-columns: 1fr 1fr; }
.contact-v7 .champs-3 .champ:last-child { grid-column: 1 / -1; }
.c7-envoi { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.contact-v7 .envoyer { min-height: 56px; padding: 0 28px; transition: background-color .3s, transform .3s; }
.c7-envoi.pret .envoyer { background: var(--orange); color: #fff; }
.c7-manque { margin: 0; font-size: 14px; color: var(--gris); transition: color .3s; }
.c7-envoi.pret .c7-manque { color: #2E7D52; font-weight: 600; }
.c7-avion { position: absolute; left: 22px; top: 8px; width: 40px; height: 40px; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.c7-envoi.vole .c7-avion { animation: c7-vol 1.6s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes c7-vol {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.6); }
  12% { opacity: 1; transform: translate(30px, -10px) rotate(-8deg) scale(1); }
  55% { opacity: 1; transform: translate(260px, -150px) rotate(-26deg) scale(.9); }
  100% { opacity: 0; transform: translate(520px, -420px) rotate(-40deg) scale(.5); }
}
.c7-lieu { margin: 22px 0 0; font-size: 15px; color: #9E9488; }
.c7-lieu a { color: var(--fond); font-weight: 500; text-underline-offset: 4px; margin-left: 6px; }
/* l'arrivée : le titre, puis les touches, puis la lettre */
@media (prefers-reduced-motion: no-preference) {
  #contact:not([hidden]) .c7-tete > *, #contact:not([hidden]) .contact-v7 .contact-carte { animation: c7-monte .9s cubic-bezier(.2, .8, .2, 1) both; }
  #contact:not([hidden]) .c7-tete > :nth-child(2) { animation-delay: .06s; }
  #contact:not([hidden]) .c7-tete > :nth-child(3) { animation-delay: .12s; }
  #contact:not([hidden]) .c7-tete > :nth-child(4) { animation-delay: .2s; }
  #contact:not([hidden]) .c7-tete > :nth-child(5) { animation-delay: .26s; }
  #contact:not([hidden]) .contact-v7 .contact-carte { animation-delay: .32s; }
}
@keyframes c7-monte { from { opacity: 0; transform: translateY(22px); } }
@media (max-width: 900px) {
  .contact.contact-v7 { padding: 8px 0 40px; }
  .contact-v7 .c7-tete { display: grid; }
  .contact-v7 .surtitre { display: none; }
  .contact-v7 h2 { font-size: clamp(38px, 11vw, 52px); }
  .c7-chapo { font-size: 16px; margin-top: 14px; }
  .c7-appels { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .c7-appel { padding: 12px 12px 12px 12px; border-radius: 18px; }
  .c7-av { width: 42px; height: 42px; font-size: 15px; }
  .c7-qui b { font-size: 18px; }
  .c7-ou { margin: 26px 0 14px; }
  .contact-v7 .contact-carte { padding: 18px 16px; border-radius: 20px; }
  .contact-v7 .champs-3 { grid-template-columns: 1fr; }
  .contact-v7 .envoyer { flex: 1 1 100%; justify-content: center; }
  .c7-lieu a { display: block; margin: 6px 0 0; }
}

/* 01.12 : la photo de Théo remplace ses initiales (Studio et Contact) */
.initiales-photo, .c7-av-photo { display: block; object-fit: cover; background: #e9e4dd; }

/* 01.12 : l'e-mail sous le téléphone, plus discret */
.qui-cartes a.qui-mail { grid-column: 2; min-height: 32px; margin-top: -6px; font-weight: 500; color: var(--pierre); font-variant-numeric: normal; }
@media (hover: hover) { .qui-cartes a.qui-mail:hover { color: var(--fond); } }
.c7-lieu .c7-ligne { display: block; margin-top: 6px; }
.c7-lieu .c7-ligne a { display: inline; margin: 0; }
.c7-lieu .c7-ligne a span { display: inline; margin: 0; }

/* 01.12 : la fenêtre Logiciel devient la vitrine du vrai logiciel (captures Mosane), les actions dès l'ouverture */
.demo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 16px 0 0; }
.demo-vitrine { display: grid; gap: clamp(26px, 3.4vw, 48px); margin-bottom: clamp(18px, 2.4vw, 28px); }
.demo-vitrine .demo-cta { margin: 0; }
.dvt-hero { margin: 0; }
.dvt-hero img, .dvt-capture, .dvt-tels img { display: block; width: 100%; height: auto; }
.dvt-hero img, .dvt-capture { border-radius: 14px; border: 1px solid var(--trait); background: #fff; }
.dvt-hero figcaption { padding: 10px 2px 0; font-size: 15px; line-height: 1.45; color: var(--gris); }
.dvt-hero figcaption strong { color: var(--encre); font-weight: 600; }
.dvt-ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(16px, 2.6vw, 40px); align-items: center; }
.dvt-ligne .demo-av-titre { margin-top: 0; }
.dvt-ligne h3 { font: 500 clamp(22px, 2.4vw, 30px)/1.15 var(--serif); margin: 0 0 10px; text-wrap: balance; }
.dvt-ligne p:not(.demo-av-titre) { font-size: 16px; line-height: 1.5; color: var(--gris); max-width: 32em; }
.dvt-pile { display: grid; gap: 12px; width: 100%; max-width: 560px; justify-self: center; }
.dvt-tels { display: flex; justify-content: center; gap: clamp(12px, 2vw, 24px); }
.dvt-tels figure { margin: 0; width: min(220px, 46%); }
.dvt-tels img { border: 6px solid #1c1814; border-radius: 28px; background: #1c1814; }
.dvt-tels figcaption { margin-top: 8px; text-align: center; font-size: 14px; font-weight: 600; }
.demo-vitrine .demo-avantages { margin-right: 0; }
.dvt-essai { margin: 6px 0 0; padding-top: clamp(20px, 2.6vw, 32px); border-top: 1px solid var(--trait); font: 500 clamp(20px, 2.2vw, 26px)/1.2 var(--serif); }
@media (max-width: 900px) { .dvt-ligne { grid-template-columns: 1fr; } }
.dvt-pilote { padding: clamp(20px, 3vw, 36px); border-radius: 18px; background: var(--encre); color: var(--fond); }
.dvt-pilote .demo-av-titre { margin-top: 0; color: #E9A06B; }
.dvt-phrase { font: 400 clamp(22px, 2.6vw, 32px)/1.3 var(--serif); max-width: 30em; text-wrap: pretty; }
.dvt-phrase b { font-weight: 600; color: #F3B585; }
.dvt-note { margin-top: 12px; font-size: 15px; line-height: 1.45; opacity: .78; max-width: 46em; }

/* 01.12 (audit) : cibles de 44 px. L'adresse e-mail garde sa place : seule la zone cliquable s'agrandit. */
.qui-cartes a.qui-mail { position: relative; }
.qui-cartes a.qui-mail::before { content: ''; position: absolute; inset: -6px 0; }
/* 01.12 (audit) : sur écran tactile, effets allégés. Le grain reste, fixe. Sous un fond presque opaque, le flou ne se voyait pas. */
@media (hover: none) and (pointer: coarse) {
  .pellicule span { animation: none; }
  .onglet-ouvert .tete, .porte-ui, .devis-scene { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* 01.12 : la capture principale ouvre la vraie démo */
.dvt-essayer { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.dvt-essayer img { transition: transform .6s var(--sortie), filter .3s; }
.dvt-essayer-bouton { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px 0 10px; border-radius: 999px; background: var(--encre); color: var(--fond); font: 600 18px/1 var(--sans); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); white-space: nowrap; }
.dvt-essayer-icone { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); position: relative; }
.dvt-essayer-icone::before { content: ''; position: absolute; left: 16px; top: 12px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--encre); }
@media (hover: hover) and (pointer: fine) { .dvt-essayer:hover img { transform: scale(1.015); filter: brightness(.92); } }
.dvt-essayer:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@media (max-width: 560px) { .dvt-essayer-bouton { min-height: 48px; font-size: 16px; padding-right: 18px; } .dvt-essayer-icone { width: 34px; height: 34px; } .dvt-essayer-icone::before { left: 13px; top: 10px; border-width: 7px 0 7px 11px; } }
