/* Mijoh Studio — maquette v6 · socle commun (tokens, typo, chrome, composants) */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: block;
}

:root {
  --paper: #F1EFEA;
  --paper-2: #E6E3DC;
  --paper-3: #DAD6CD;
  --ink: #0D0D0E;
  --ink-2: #161618;
  --ink-3: #232326;
  --mute: #63615C;
  --mute-d: #A6A49E;
  --line: rgba(13, 13, 14, .14);
  --line-d: rgba(241, 239, 234, .16);

  /* DA sobre (07/10) : plus aucun dégradé coloré. Les anciens jetons d'accent restent
     définis pour ne rien casser, mais tout est ramené à l'encre et au papier.
     --grad = « couleur d'accent du texte » : encre sur fond clair, papier sur fond sombre. */
  --a1: var(--ink);
  --a2: var(--ink-3);
  --a3: var(--ink);
  --grad: linear-gradient(var(--ink), var(--ink));
  --grad-v: linear-gradient(var(--ink-3), var(--ink-3));
  --grad-btn: linear-gradient(var(--ink), var(--ink));
  --soft: #8A867E;   /* gris doux : états inactifs des grandes listes (3,1:1 sur le papier, réservé aux grands textes) */

  --f: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 2.6vw, 40px);
  --gap: clamp(12px, 1.6vw, 24px);
  --r: 14px;
  --r-lg: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --d-xxl: clamp(60px, 11.6vw, 210px);
  --d-xl: clamp(52px, 8.4vw, 152px);
  --d-l: clamp(40px, 5.4vw, 96px);
  --d-m: clamp(30px, 3.4vw, 58px);
  --d-s: clamp(22px, 2vw, 34px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 420;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
/* Contextes sombres : l'accent de texte devient le papier */
.is-dark, .site-foot, .mega, .mmenu, .curtain, .on-dark { --grad: linear-gradient(var(--paper), var(--paper)); --a1: var(--paper); --a3: var(--paper); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-160%);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { transform: none; }

/* ---------- Typographie ---------- */
.display {
  font-family: var(--f);
  font-weight: 880;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.004em;
  font-kerning: normal;
}
.d-xxl { font-size: var(--d-xxl); }
.d-xl { font-size: var(--d-xl); }
.d-l { font-size: var(--d-l); line-height: .88; }
.d-m { font-size: var(--d-m); line-height: .9; }
.d-s { font-size: var(--d-s); line-height: .95; }
.grad-text {
  background: var(--grad);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Titre éclaté : le parent lâche son fond, chaque morceau reçoit le dégradé décalé (MJ.gradFix) */
.grad-text { position: relative; }
.grad-text.is-split { background: none; }
.grad-text.is-split .char, .grad-text.is-split .word__in, .grad-text.is-split .line__in {
  background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.lead { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.38; font-weight: 450; letter-spacing: -.005em; max-width: 34ch; }
.body-l { font-size: 18px; line-height: 1.5; }
.label { font-size: 13px; font-weight: 620; letter-spacing: .01em; line-height: 1.25; }
.idx { font-size: 13px; font-weight: 620; font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.on-dark .muted, .is-dark .muted { color: var(--mute-d); }

/* ---------- Mise en page ---------- */
.wrap { padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: clamp(80px, 11vw, 180px); position: relative; }
.is-dark { background: var(--ink); color: var(--paper); }
.is-dark ::selection { background: var(--paper); color: var(--ink); }

/* En-tête de section façon « titre / étiquette / filet / index » */
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 var(--gap); }
.sec-head__side { text-align: right; }
/* L'étiquette latérale n'est plus un second titre : petite capitale espacée */
.sec-head__side.display {
  font-size: 12px; font-weight: 640; font-stretch: 100%; letter-spacing: .14em; line-height: 1.3;
  padding-bottom: .5em; display: inline-flex; align-items: center; gap: 9px; justify-self: end;
}
.sec-head__side.display::before { content: ''; width: 26px; height: 1.5px; background: currentColor; }
/* Filet = rail de lecture : un globe parcourt la section, le trait se remplit derrière lui */
.sec-head__rule {
  grid-column: 1 / -1; height: 3px; background: currentColor; margin-top: clamp(14px, 1.6vw, 22px);
  transform-origin: left center;
}
.sec-head__rule.has-bead {
  --p: 0; --draw: 1; position: relative; height: 1.5px; background: none; transform: none;
}
.sec-head__rule.has-bead::before, .sec-head__rule.has-bead::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100%; transform-origin: left center;
}
.sec-head__rule.has-bead::before { background: currentColor; opacity: .18; transform: scaleX(var(--draw)); }
.sec-head__rule.has-bead::after { background: currentColor; transform: scaleX(calc(var(--p) * var(--draw))); }
.sec-head__bead {
  position: absolute; top: 50%; left: calc(var(--p) * (100% - 18px)); width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: var(--bead-bg, var(--paper)); box-shadow: 0 0 0 4px var(--bead-bg, var(--paper));
  opacity: var(--draw);
}
.sec-head__bead .globe { width: 100%; height: 100%; }
.is-dark .sec-head__rule.has-bead, .site-foot .sec-head__rule.has-bead { --bead-bg: var(--ink); }
.sec-head__meta {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: start; padding-top: 12px; min-height: 48px;
}
.sec-head__meta .idx { grid-column: 1 / span 2; }
.sec-head__meta .label { grid-column: 3 / span 4; }
.sec-head__meta .sec-head__cta { grid-column: 9 / -1; justify-self: end; }
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head__side, .sec-head__side.display { display: none; }
  .sec-head__meta .idx { grid-column: 1 / span 2; }
  .sec-head__meta .label { grid-column: 3 / -1; }
  .sec-head__meta .sec-head__cta { grid-column: 1 / -1; justify-self: start; margin-top: 16px; }
}

/* ---------- Boutons ---------- */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 24px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 15px; font-weight: 650; letter-spacing: .005em; white-space: nowrap;
  transition: transform .5s var(--ease), color .35s var(--ease);
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 60px; padding: 0 32px; font-size: 16px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--grad { background: var(--ink); color: var(--paper); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink-3); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn--paper::before { background: var(--ink); }
.btn--ghost::before { background: currentColor; }
.btn--ghost:hover { color: var(--paper); }
.is-dark .btn--ghost:hover, .on-dark .btn--ghost:hover { color: var(--ink); }
.btn--ink:hover, .btn--grad:hover, .btn--paper:hover { color: var(--paper); }
@media (hover: hover) { .btn:hover::before { transform: none; } }
.btn__roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.2; }
.btn__roll > span { display: block; transition: transform .55s var(--ease); }
.btn__roll::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%;
  transition: transform .55s var(--ease);
}
@media (hover: hover) {
  .btn:hover .btn__roll > span, a:hover > .btn__roll > span { transform: translateY(-100%); }
  .btn:hover .btn__roll::after, a:hover > .btn__roll::after { transform: translateY(-100%); }
}
.btn svg { width: 16px; height: 16px; flex: none; }

.arrow { display: inline-block; width: .8em; height: .8em; vertical-align: -.04em; }

/* Lien souligné qui se dessine */
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
@media (hover: hover) { .ulink:hover { background-size: 100% 1.5px; } }

/* ---------- En-tête ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  display: flex; align-items: center; gap: 22px; padding-inline: var(--pad);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  transition: transform .6s var(--ease), background-color .4s, color .4s, border-color .4s;
}
@supports not (background: color-mix(in srgb, red, blue)) { .site-head { background: var(--paper); } }
.site-head.is-hidden { transform: translateY(-101%); }
.site-head.is-menu-open { transform: none; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; flex: none; }
/* Globe de marque : contour épais, grille fine, toujours à la couleur du texte */
.globe { display: inline-block; flex: none; fill: none; stroke: currentColor; overflow: visible; }
.globe__rim { stroke-width: 8; }
.globe__lat, .globe__m { stroke-width: 4.5; }
.brand__globe { width: 25px; height: 25px; align-self: center; margin-right: 1px; transition: transform .8s var(--ease); }
@media (hover: hover) { .brand:hover .brand__globe { transform: rotate(-18deg); } }
.brand__word { font-weight: 900; font-stretch: 62%; font-size: 30px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.brand__sub { font-size: 12px; font-weight: 620; letter-spacing: .02em; }
.brand__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-left: 1px; }
.site-head__sep { width: 1.5px; height: 18px; background: currentColor; opacity: .7; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__a {
  position: relative; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px;
  font-size: 15px; font-weight: 600; border-radius: 999px; transition: background-color .3s;
}
.nav__a:hover, .nav__a[aria-expanded="true"] { background: rgba(13, 13, 14, .07); }
.nav__a[aria-current="page"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: currentColor; border-radius: 2px;
}
.nav__caret { width: 9px; height: 9px; transition: transform .4s var(--ease); }
.nav__a[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.site-head__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-head__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-right: 6px; }
.site-head__status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(13, 13, 14, .35); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(13, 13, 14, .3); } 70%, 100% { box-shadow: 0 0 0 9px rgba(13, 13, 14, 0); } }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1020px) { .site-head__status { display: none; } }
@media (max-width: 900px) {
  .nav, .site-head__sep { display: none; }
  .burger { display: inline-block; }
  .site-head__end .btn { display: none; }
}

/* Méga-menu Travaux */
.mega {
  position: fixed; left: var(--pad); right: var(--pad); top: calc(var(--header-h) + 8px); z-index: 89;
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 28px;
  display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.985); transform-origin: top center;
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
  box-shadow: 0 30px 80px -20px rgba(13, 13, 14, .45);
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__intro { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mega__intro p:not(.display) { color: var(--mute-d); font-size: 14px; max-width: 26ch; }
.mega__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mega__card { display: flex; flex-direction: column; gap: 10px; }
.mega__thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--ink-3); }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega__card:hover .mega__thumb img { transform: scale(1.06); }
.mega__name { font-weight: 880; font-stretch: 62%; text-transform: uppercase; font-size: 24px; line-height: .95; }
.mega__meta { font-size: 13px; color: var(--mute-d); }
.mega .mega__card { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.mega.is-open .mega__card { opacity: 1; transform: none; }
.mega.is-open .mega__card:nth-child(2) { transition-delay: .05s; }
.mega.is-open .mega__card:nth-child(3) { transition-delay: .1s; }

/* Menu mobile */
.mmenu {
  position: fixed; inset: 0; z-index: 88; background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--pad) 28px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
}
.mmenu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.mmenu__links a { display: block; font-weight: 880; font-stretch: 62%; text-transform: uppercase; font-size: clamp(54px, 15vw, 96px); line-height: .92; overflow: hidden; }
.mmenu__links a span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); }
.mmenu.is-open .mmenu__links a span { transform: none; }
.mmenu.is-open .mmenu__links li:nth-child(2) a span { transition-delay: .05s; }
.mmenu.is-open .mmenu__links li:nth-child(3) a span { transition-delay: .1s; }
.mmenu.is-open .mmenu__links li:nth-child(4) a span { transition-delay: .15s; }
.mmenu.is-open .mmenu__links li:nth-child(5) a span { transition-delay: .2s; }
.mmenu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; font-size: 14px; color: var(--mute-d); }
.site-head.is-menu-open { background: var(--ink); color: var(--paper); border-color: var(--line-d); }
.site-head.is-menu-open .burger { background: var(--paper); color: var(--ink); }

/* ---------- Pied de page ---------- */
.site-foot { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.site-foot__in { position: relative; z-index: 1; padding: clamp(56px, 7vw, 110px) var(--pad) 28px; }
/* Horizon : un grand globe filaire se lève derrière le pied de page */
.site-foot__globe {
  position: absolute; left: 50%; top: 34%; width: min(1500px, 128vw); aspect-ratio: 1; margin-left: calc(min(1500px, 128vw) / -2);
  color: var(--paper); opacity: .2; pointer-events: none; will-change: transform;
}
.site-foot__globe .globe { width: 100%; height: 100%; }
.globe--thin * { vector-effect: non-scaling-stroke; stroke-width: 1px; }
.globe--thin .globe__rim { stroke-width: 1.5px; }
.site-foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.site-foot__intro { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 14px; }
.site-foot__intro p { max-width: 30ch; font-size: 16px; opacity: .9; }
.site-foot__big {
  grid-column: 5 / -1; justify-self: end; text-align: right;
  font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .82;
  font-size: clamp(72px, 13.4vw, 250px); letter-spacing: -.01em;
  display: inline-flex; flex-direction: column; align-items: flex-end;
}
.site-foot__big .line { display: block; overflow: hidden; padding-bottom: .02em; white-space: nowrap; }
.site-foot__big .line__in { display: inline-block; transition: font-stretch .6s var(--ease); }
@media (hover: hover) { .site-foot__big:hover .line__in { font-stretch: 68%; } }
.site-foot__cols { margin-top: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gap); }
.site-foot__cols h3 { font-size: 13px; font-weight: 620; opacity: .75; margin-bottom: 12px; }
.site-foot__cols li + li { margin-top: 6px; }
.site-foot__cols a { font-weight: 620; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.site-foot__cols a .arrow { transition: transform .4s var(--ease); }
.site-foot__cols a:hover .arrow { transform: translate(3px, -3px); }
.site-foot__bottom { margin-top: clamp(40px, 5vw, 80px); padding-top: 18px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; opacity: .85; }
@media (max-width: 900px) {
  .site-foot__intro { grid-column: 1 / -1; }
  .site-foot__big { grid-column: 1 / -1; justify-self: start; text-align: left; align-items: flex-start; margin-top: 40px; }
  .site-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Rideau de transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
  transform: translateY(0); will-change: transform;
}
.curtain__word { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(64px, 12vw, 180px); line-height: .85; overflow: hidden; }
.curtain__word span { display: inline-flex; align-items: center; gap: .14em; }
.curtain__word .globe { width: .74em; height: .74em; }
html.is-ready .curtain { transform: translateY(-101%); transition: transform .95s var(--ease-io) .08s; }
html.is-ready .curtain__word span { transform: translateY(-110%); transition: transform .7s var(--ease-io); }
html.is-leaving .curtain { transform: translateY(0); transition: transform .65s var(--ease-io); }
html.is-leaving .curtain__word span { transform: translateY(0); transition: none; }
html.is-leaving .curtain:not(.from-top) { animation: none; }
html.no-js .curtain, html.reduce .curtain { display: none; }

/* ---------- Curseur ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .3s, opacity .3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor__label { font-size: 13px; font-weight: 650; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease); white-space: nowrap; }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--ink); }
.cursor.is-dark-bg .cursor__label { color: var(--ink); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-dark-bg { background: var(--paper); }
html:not(.fine) .cursor { display: none; }

/* ---------- Devis en 60 secondes ---------- */
.quote { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 1fr min(620px, 100%); visibility: hidden; }
.quote.is-open { visibility: visible; }
.quote__scrim { background: rgba(13, 13, 14, .55); opacity: 0; transition: opacity .5s var(--ease); }
.quote.is-open .quote__scrim { opacity: 1; }
.quote__panel {
  position: relative; background: var(--paper); color: var(--ink); height: 100%; overflow: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: 22px clamp(20px, 3vw, 40px) 26px;
  transform: translateX(101%); transition: transform .75s var(--ease-io);
}
.quote.is-open .quote__panel { transform: none; }
.quote__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quote__close { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.quote__close svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.quote__close:hover svg { transform: rotate(90deg); }
.quote__bar { height: 4px; background: var(--paper-3); border-radius: 4px; margin-top: 18px; overflow: hidden; }
.quote__bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width .6s var(--ease); }
.quote__count { margin-top: 30px; font-weight: 900; font-stretch: 62%; font-size: clamp(64px, 8vw, 110px); line-height: .8; font-variant-numeric: tabular-nums; }
.quote__count small { font-size: .38em; color: var(--mute); margin-left: 6px; }
.quote__steps { position: relative; flex: 1; margin-top: 24px; }
.quote__step { display: none; }
.quote__step.is-active { display: block; animation: stepIn .6s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.quote__q { font-weight: 860; font-stretch: 62%; text-transform: uppercase; font-size: clamp(34px, 3.6vw, 52px); line-height: .92; }
.quote__hint { margin-top: 10px; color: var(--mute); font-size: 15px; }
.quote__opts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 620; font-size: 15px; transition: background-color .3s, color .3s, box-shadow .3s;
}
.chip span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .3s, box-shadow .3s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:checked + span::before { background: var(--paper); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .chip:hover span { background: rgba(13, 13, 14, .06); } .chip:hover input:checked + span { background: var(--ink); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.field label { font-size: 13px; font-weight: 620; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
  padding: 10px 0; border-radius: 0; outline: none; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-width: 2.5px; }
.field input::placeholder, .field textarea::placeholder { color: #8f8d87; }
.quote__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote__back { font-weight: 620; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.quote__back[disabled] { opacity: .3; cursor: default; }
.quote__done { text-align: left; }
.quote__done .display { font-size: clamp(80px, 12vw, 160px); }
.quote__sum { margin-top: 22px; display: grid; gap: 8px; font-size: 15px; }
.quote__sum div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.quote__sum dt { color: var(--mute); }
@media (max-width: 700px) { .quote { grid-template-columns: 1fr; } .quote__scrim { display: none; } }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; white-space: nowrap; display: flex; }
.marquee__track { display: flex; flex: none; will-change: transform; }
.marquee__item { flex: none; display: inline-flex; align-items: center; }

/* ---------- Révélations (état initial seulement si JS + mouvement) ---------- */
html.motion [data-reveal="up"] { opacity: 0; transform: translateY(40px); }
html.motion [data-reveal="fade"] { opacity: 0; }
html.motion [data-reveal="rule"]:not(.has-bead) { transform: scaleX(0); }
html.motion [data-reveal="rule"].has-bead { --draw: 0; }
html.motion [data-reveal="img"] { clip-path: inset(14% 8% 14% 8% round var(--r)); }
html.motion [data-reveal="img"] > img, html.motion [data-reveal="img"] > video { transform: scale(1.18); }
.line { display: block; overflow: hidden; padding: .12em 0 .04em; margin: -.12em 0 -.04em; }
.line__in { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }
.word--mask { overflow: hidden; vertical-align: top; padding: .12em 0 .08em; margin: -.12em 0 -.08em; }
.word__in { display: inline-block; will-change: transform; }
.display [data-split="chars"] .word, [data-split="chars"].display .word { overflow: hidden; padding-top: .14em; margin-top: -.14em; padding-bottom: .02em; }
.char { display: inline-block; will-change: transform; }

/* Vidéo / média génériques */
.media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--ink-3); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }

/* Mouvement réduit : tout s'affiche, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Formulaires réels (07/10) */
.quote__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote__thanks { font-size: 17px; color: var(--ink); max-width: 36ch; }
.quote__err { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 560; }
/* Pot de miel : invisible pour le remplissage automatique du navigateur (champ non focalisable), visible pour un robot qui lit le HTML */
.quote__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; visibility: hidden; }
.site-foot__q { font-weight: 620; }
.quote__legal { margin-top: 18px; font-size: 13px; color: var(--mute); max-width: 52ch; }
.quote__legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Devis : le bouton Envoyer reste visible en bas du panneau, même clavier ouvert sur téléphone */
.quote__nav { position: sticky; bottom: -26px; z-index: 2; margin-left: calc(-1 * clamp(20px, 3vw, 40px)); margin-right: calc(-1 * clamp(20px, 3vw, 40px));
  padding: 14px clamp(20px, 3vw, 40px) 26px; background: var(--paper); }
.quote__panel { -webkit-overflow-scrolling: touch; }
