/* Hallmark · custom · « Le conte » : reprise fidèle de la mise en scène de naijm.com (structure, échelle, mouvements), contenu et peintures Rizqify
   critique : sept peintures fondues dans la couleur de leur ciel ; deux polices (Geist, Space Grotesk) ; mouvement unique et discret ; 210 mots */

:root {
  --ink: #0f2c43;
  --night: #0d1b2d;
  --paper: #f7efdd;
  --gold: #f0cd85;
  --coral: #df8a7f;
  --mint: #a9e5d7;
  --brass: #e6bd72;
  --reed: #c8995a;
  --model-paper: #f3e4c7;
  --human-sky: #8c9eca;
  --carpet-paper: #f6e3c4;
  --mist: #d1dbdd;
  --mist-2: #e4e9e4;
  --slate: #405964;
  --slate-2: #56696b;
  --white: #ffffff;
  --wine: #861f32;
  --wine-2: #a32b43;
  --display-font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --arabic-font: "Noto Nastaliq Urdu", "Amiri", "Geeza Pro", serif;
  --text-title: clamp(2rem, 1.5rem + 2.25vw, 3.5rem);
  --text-section: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --text-subheading: clamp(1.25rem, 1.125rem + .5vw, 1.5rem);
  --text-lead: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --text-body: clamp(1rem, .95rem + .2vw, 1.125rem);
  --text-small: .875rem;
  --leading-title: 1.08;
  --leading-section: 1.15;
  --leading-subheading: 1.25;
  --leading-body: 1.6;
  --leading-lead: 1.45;
  --leading-small: 1.5;
  --tracking-title: -.035em;
  --tracking-section: -.025em;
  --tracking-subheading: -.015em;
  --measure-copy: 55ch;
  --settle: cubic-bezier(.18, .8, .22, 1);
  --arrive: cubic-bezier(.16, 1, .3, 1);
  --curtain: cubic-bezier(.76, 0, .24, 1);
  --scene-bridge: clamp(100px, 11vw, 160px);
  --page-progress: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--night); font-family: var(--body-font); font-size: var(--text-body); line-height: var(--leading-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display-font); font-weight: 900; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: var(--text-title); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
h2 { font-size: var(--text-section); line-height: var(--leading-section); letter-spacing: var(--tracking-section); }
h3 { font-size: var(--text-subheading); line-height: var(--leading-subheading); letter-spacing: var(--tracking-subheading); font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid #cc613d; outline-offset: 3px; transition: none; }
.container { width: min(1280px, 100% - 112px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 110; top: 12px; left: 20px; padding: 14px 24px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; background: var(--gold); transform: scaleX(var(--page-progress)); transform-origin: 0; pointer-events: none; }

/* Boutons et liens */
.arrow { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 56px; padding: 15px 25px; border-radius: 4px; font-size: var(--text-small); line-height: var(--leading-small); font-weight: 600; transition: background .3s, box-shadow .4s; }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 20%, rgba(240, 205, 133, .33) 48%, rgba(255, 255, 255, .6) 50%, transparent 75%); transform: translateX(-130%) skewX(-15deg); }
.button:is(:hover, :focus-visible)::before { animation: brass-sweep .85s var(--settle) both; }
.button:is(:hover, :focus-visible) .arrow { animation: arrow-depart .75s var(--settle) both; }
.button:active { box-shadow: inset 0 0 0 2px rgba(183, 146, 79, .5); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: #f3e8cf; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--night); }
.text-link { position: relative; display: inline-flex; align-items: center; gap: 20px; padding-block: 8px; font-size: var(--text-small); line-height: var(--leading-small); font-weight: 500; background: none; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; opacity: .35; transform: scaleX(.12); transform-origin: 0; transition: transform .65s var(--settle), opacity .3s; }
.text-link:is(:hover, :focus-visible)::after { opacity: 1; transform: none; }
.text-link:is(:hover, :focus-visible) .arrow { transform: translateX(6px); transition: transform .55s var(--settle); }
@keyframes brass-sweep { to { transform: translateX(130%) skewX(-15deg); } }
@keyframes arrow-depart { 0% { transform: none; } 45% { transform: translate(14px, -14px); opacity: 0; } 46% { transform: translate(-14px, 14px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Peintures : un calque qui déborde de 80 px pour la parallaxe, des bords toujours fondus */
.artwork { position: absolute; inset: 0; display: block; overflow: hidden; pointer-events: none; }
.artwork img { display: block; width: 100%; height: 100%; object-fit: cover; }
.artwork img { transition: opacity .7s var(--settle); }
.en-chargement img { opacity: 0; }
.scene-art { inset-block: -80px; transform: translate3d(0, var(--parallax, 0px), 0); }
.scene-media {
  --fade-in: 0px; --fade-out: 0px;
  --edge-mask: linear-gradient(180deg, transparent 0, rgba(0,0,0,.15) calc(var(--fade-in) * .25), rgba(0,0,0,.7) calc(var(--fade-in) * .7), #000 var(--fade-in), #000 calc(100% - var(--fade-out)), rgba(0,0,0,.7) calc(100% - var(--fade-out) * .7), rgba(0,0,0,.15) calc(100% - var(--fade-out) * .25), transparent 100%);
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: var(--edge-mask); mask-image: var(--edge-mask);
}

/* Intro de marque : رزق se trace, ses points d'or arrivent, il vole dans l'en-tête, le voile remonte */
.brand-intro { display: none; position: fixed; inset: 0; z-index: 105; color: var(--paper); pointer-events: none; }
html[data-intro] .brand-intro { display: block; pointer-events: auto; cursor: pointer; }
.intro-veil { position: absolute; inset: 0; background: var(--night); }
.intro-mark-position { position: absolute; inset: 0; display: grid; place-items: center; }
.intro-mark { width: clamp(240px, 40vw, 520px); aspect-ratio: 1082 / 798; transform-origin: 50%; will-change: transform; }
.intro-mark svg { width: 100%; height: 100%; overflow: visible; }
.intro-lettres path { fill: var(--paper); }
.intro-brush { stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-ink-stroke .46s cubic-bezier(.38, .05, .25, 1) both; }
.intro-brush.b1 { animation-delay: 60ms; }
.intro-brush.b2 { animation-delay: .52s; }
.intro-brush.b3 { animation-delay: .98s; animation-duration: .47s; }
.intro-ink-finish { opacity: 0; animation: intro-ink-complete .12s 1.45s both; }
.intro-star path { fill: var(--gold); transform-box: fill-box; transform-origin: 50%; animation: intro-star-arrive .35s var(--arrive) 1.52s both; }
html[data-intro] .site-header .logo-sequence { visibility: hidden; }
html[data-intro] .site-header .header-side { opacity: 0; }
html[data-intro="revealing"] .site-header .header-side { animation: intro-navigation .65s .3s both; }
html[data-intro="revealing"] .hero-media { transform-origin: 50% 35%; animation: intro-world 1.05s var(--arrive) both; }
@keyframes intro-ink-stroke { to { stroke-dashoffset: 0; } }
@keyframes intro-ink-complete { to { opacity: 1; } }
@keyframes intro-star-arrive { 0% { opacity: 0; transform: scale(.7); } 100% { opacity: 1; transform: none; } }
@keyframes intro-navigation { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes intro-world { 0% { scale: 1.075; } 100% { scale: 1; } }

/* En-tête du héros : deux boutons à gauche, le logo au centre, la pastille de candidature à droite */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 170px; margin-inline: 56px; color: var(--white); }
.header-side { display: flex; align-items: center; gap: 4px; }
.header-icon { position: relative; z-index: 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 5px; color: var(--white); background: none; transition: background .25s, color .25s, transform .45s var(--settle); }
.header-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header-icon:is(:hover, :focus-visible) { color: var(--gold); background: #000; transform: scale(1.055); }
.header-icon:active { transform: scale(.96); }
.header-icon:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.header-label { position: absolute; top: calc(100% + 10px); left: 0; padding: 8px 12px; border-radius: 4px; background: #000; color: var(--white); font: 500 var(--text-small)/1.3 var(--body-font); white-space: nowrap; visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .35s var(--settle), visibility .25s; pointer-events: none; }
.header-icon:is(:hover, :focus-visible) .header-label { visibility: visible; opacity: 1; transform: none; }
.header-candidater { border-radius: 50%; background: var(--wine); }
.header-candidater:is(:hover, :focus-visible) { background: var(--wine-2); color: var(--white); }
.header-candidater .header-label { left: auto; right: 0; }
.header-candidater svg { width: 26px; height: 26px; }
.candidater-star { transform-origin: 20px 20px; transition: transform .8s var(--settle); }
.header-candidater:is(:hover, :focus-visible) .candidater-star { transform: rotate(90deg); }
.wordmark { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); display: inline-flex; color: var(--white); }
.logo-sequence { position: relative; display: block; width: 118px; height: 87px; }
.logo-mark { width: 100%; height: 100%; overflow: visible; transition: transform .6s var(--settle); }
.site-header .logo-mark { filter: drop-shadow(0 1px 8px rgba(7, 29, 49, .45)); }
.logo-mark .logo-lettres path { fill: currentColor; }
.logo-mark .logo-nuqta path { fill: var(--gold); transform-box: fill-box; transform-origin: 50%; }
.wordmark:is(:hover, :focus-visible) .logo-mark { transform: rotate(-4deg) scale(1.035); }
.wordmark:is(:hover, :focus-visible) .logo-nuqta path { animation: logo-ignite 1.15s var(--settle) both; }
.wordmark:active .logo-mark { transform: scale(.94); }
@keyframes logo-ignite { 0%, 12% { opacity: 0; transform: scale(.1) rotate(-135deg); } 70% { opacity: 1; transform: scale(1.25) rotate(10deg); } 100% { transform: none; } }

/* Héros */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; height: 100svh; min-height: 900px; max-height: 1250px; overflow: hidden; color: var(--white); background: var(--night); }
.hero-media { --fade-out: clamp(140px, 16vw, 220px); }
.hero-art { inset: -80px 0; }
.hero-art img { object-position: center top; }
.hero-shade { position: absolute; inset: 0; background: rgba(6, 30, 53, .31); }
.hero-places { margin-top: 16px; color: color-mix(in srgb, var(--white) 82%, transparent); font-size: var(--text-small); text-shadow: 0 1px 3px rgba(7, 29, 49, .5); }
/* Les étiquettes de l'agent, posées sur les boutiques de la peinture (placées par d3.js, qui suit le cadrage de l'image) */
.hero-tags { position: absolute; inset: -80px 0; z-index: 2; pointer-events: none; }
.hero-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 10px; color: var(--ink); background: var(--paper); font: 500 13px/1.2 var(--body-font); white-space: nowrap; box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--night) 80%, transparent); translate: -50% calc(-100% - 9px); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .6s var(--settle) var(--tag-delay, 0s), transform .9s var(--settle) var(--tag-delay, 0s); }
.hero-tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; translate: -50% 0; rotate: 45deg; border-radius: 0 0 2px 0; background: var(--paper); }
.hero-tag svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--wine-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-tag b { font-weight: 600; }
.hero-tag i { padding-left: 8px; border-left: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); font-style: normal; color: var(--slate); }
.hero-tag[hidden] { display: none; }
.hero-tag--droite { translate: -86% calc(-100% - 9px); }
.hero-tag--droite::after { left: 86%; }
.hero.etiquettes .hero-tag { opacity: 1; transform: none; }
.hero-content { position: relative; isolation: isolate; text-align: center; padding-inline: 24px; }
.hero-content::before { content: ""; position: absolute; inset: -180px -20%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side at 50% 48%, rgba(7, 29, 49, .72) 0%, rgba(7, 29, 49, .64) 42%, rgba(7, 29, 49, .36) 72%, transparent 100%); }
.hero h1 { max-width: 15em; text-wrap: balance; margin-inline: auto; color: var(--white); text-shadow: 0 2px 4px rgba(7, 29, 49, .4); }
.hero-description { max-width: 46ch; margin: 28px auto; font-size: var(--text-lead); line-height: var(--leading-lead); text-wrap: balance; text-shadow: 0 1px 3px rgba(7, 29, 49, .5); }
.hero-bottom { position: absolute; left: 56px; right: 56px; bottom: 28px; z-index: 4; display: flex; align-items: center; justify-content: space-between; color: #fff6e0; font-size: var(--text-small); line-height: var(--leading-small); text-shadow: 0 1px 6px var(--ink); }
.hero-bottom > a { position: absolute; left: 50%; translate: -50%; display: flex; align-items: center; gap: 14px; }
.hero-bottom > a:is(:hover, :focus-visible) .scroll-line { animation: discover-drop .8s var(--settle) both; }
.nowrap { white-space: nowrap; }
.scroll-line { position: relative; display: block; width: 1px; height: 28px; background: currentColor; }
.scroll-line::after { content: ""; position: absolute; left: -3px; bottom: 0; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; rotate: 45deg; }
@keyframes discover-drop { 40% { transform: translateY(8px); opacity: 0; } 41% { transform: translateY(-8px); } 100% { transform: none; opacity: 1; } }

/* La noria : le métier comme une roue qui fait tourner le quartier */
.business-engine { --engine-progress: .65; --engine-turn: 0deg; --engine-travel: 65%; position: relative; isolation: isolate; min-height: max(1050px, 72vw); color: var(--paper); background: var(--night); overflow: clip; }
.engine-stage { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.engine-canvas { position: absolute; bottom: 0; left: 50%; translate: -50%; width: max(100%, 1240px); aspect-ratio: 2528 / 1696; transform: translateY(calc(var(--parallax, 0px) * .2)) scale(calc(1 + var(--engine-progress) * .012)); transform-origin: 66% 53%; -webkit-mask-image: linear-gradient(transparent, #000 14% 80%, transparent 95%); mask-image: linear-gradient(transparent, #000 14% 80%, transparent 95%); }
.engine-canvas .artwork::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(13, 27, 45, .4) 14%, transparent 30%); }
.engine-details { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.engine-current, .engine-outflow { fill: none; stroke: url(#eau); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }
.engine-current { stroke-dashoffset: calc(1 - min(1, var(--engine-progress) * 2)); opacity: .8; }
.engine-outflow { stroke-dashoffset: calc(1 - max(0, (var(--engine-progress) - .25) / .75)); opacity: .7; }
/* le halo de l'eau : un second trait large et pâle, au lieu d'un filtre recalculé à chaque image */
.engine-glow { stroke-width: 13; opacity: .16; }
.engine-invitation-trail { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .9s var(--settle), opacity .35s; }
.business-engine:has(.engine-invitation:is(:hover, :focus-visible)) .engine-invitation-trail { stroke-dashoffset: 0; opacity: .55; }
.engine-door-light { fill: #ffd791; opacity: 0; filter: blur(18px); transition: opacity .7s; }
.business-engine:has(.engine-invitation:is(:hover, :focus-visible)) .engine-door-light { opacity: .6; }
.engine-copy { position: relative; z-index: 1; padding-block: 115px 600px; }
@media (min-width: 701px) { .engine-copy::before { content: ""; position: absolute; z-index: -1; inset: 40px auto 470px -140px; width: 980px; pointer-events: none; background: radial-gradient(closest-side, rgba(13, 27, 45, .88), rgba(13, 27, 45, .7) 55%, rgba(13, 27, 45, 0)); } }
.engine-copy h2 { max-width: 20ch; font-size: var(--text-title); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
.engine-copy p { max-width: 36ch; margin-top: 28px; font-size: var(--text-lead); line-height: var(--leading-lead); color: var(--mist-2); }
.engine-invitation { display: inline-flex; align-items: center; gap: 25px; min-height: 56px; margin-top: 34px; color: var(--gold); background: none; font-size: var(--text-body); font-weight: 600; line-height: 1.4; transition: color .35s; }
.engine-invitation > span { padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--settle); }
.engine-invitation > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--settle); }
.engine-invitation:is(:hover, :focus-visible) > svg { transform: translateX(4px); }
.engine-invitation:is(:hover, :focus-visible) { color: var(--mint); }
.engine-invitation:is(:hover, :focus-visible) > span { background-size: 100% 1px; }
.engine-invitation:active > svg { transform: scale(.88); }

/* La méthode : nuit, trois instruments, puis la bande de l'envol */
.approach-section { position: relative; padding-block: 110px 0; overflow: hidden; color: var(--paper); background: linear-gradient(180deg, var(--night) calc(100% - var(--scene-bridge)), var(--model-paper)); }
.approach-intro { position: relative; margin-bottom: 70px; }
.approach-intro h2 { max-width: 760px; }
.process-list { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); margin-block: 0; padding: 0 0 70px; list-style: none; }
.process-step { min-width: 0; }
.process-illustration { position: relative; display: flex; align-items: center; height: 235px; margin-bottom: 38px; }
.process-illustration > svg { flex: none; width: 230px; height: 230px; margin-inline: auto; overflow: visible; fill: none; stroke: var(--paper); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
/* Les instruments, gravés au trait : crème pour la structure, or pour le métal, menthe pour ce qui vit */
.instrument .or { stroke: var(--brass); }
.instrument .fin { stroke-width: .85; }
.instrument .tres-fin { stroke-width: .55; }
.instrument .epais { stroke-width: 2.1; }
.instrument .plein { fill: var(--brass); stroke: none; }
.instrument .nuit-plein { fill: var(--night); stroke: none; }
.instrument .mere { stroke-width: 1.8; }
.instrument .graduation { stroke-width: .7; }
.instrument .tympan { stroke: var(--paper); stroke-width: .5; opacity: .34; }
.instrument .cercle-fin { stroke: var(--paper); stroke-width: .5; opacity: .5; }
.instrument .trone { fill: var(--night); stroke-width: 1.4; }
.instrument .etoile-point { fill: var(--paper); stroke: none; }
.instrument .regle { fill: var(--night); stroke: var(--paper); stroke-width: 1.1; }
.instrument .papier { fill: color-mix(in srgb, var(--paper) 4.5%, transparent); stroke-width: 1.3; }
.instrument .encre { stroke: var(--paper); stroke-width: 1.05; }
.instrument .encre.epais { stroke-width: 2.4; }
.instrument .encre.fin { stroke-width: .75; opacity: .8; }
.instrument .hachures { stroke: var(--brass); stroke-width: .5; opacity: .55; }
.instrument .bouton { fill: var(--brass); stroke: none; }
.instrument .trace-vivant { stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.instrument .roseau { fill: var(--reed); stroke: var(--brass); stroke-width: .9; }
.instrument .noeud { stroke: var(--night); stroke-width: 1.1; opacity: .7; }
.instrument .fente { stroke: var(--night); stroke-width: .8; }
.instrument .goutte { fill: var(--mint); stroke: none; }
.instrument .laiton { fill: var(--night); stroke: var(--brass); stroke-width: 1.2; }
.instrument .chaine { stroke: var(--paper); stroke-width: .9; stroke-dasharray: 2.2 1.7; opacity: .85; }
.instrument .mur { fill: var(--night); stroke: var(--paper); stroke-width: 1.05; }
.instrument .store { fill: var(--coral); stroke: var(--coral); stroke-width: .8; }
.instrument .vitrine { fill: color-mix(in srgb, var(--brass) 55%, transparent); stroke: var(--brass); stroke-width: .8; }
.instrument .piece { fill: var(--night); stroke: var(--brass); stroke-width: 1.05; }
.instrument g { transform-box: view-box; }
.instrument-astrolabe :is(.rete, .aiguille) { transform-origin: 120px 134px; }
.instrument-astrolabe .rete { transition: rotate 2.6s var(--settle); }
.instrument-mizan .fleau { transform-origin: 120px 76px; }
.step-number { position: absolute; top: 10px; left: 0; color: var(--gold); font-size: var(--text-small); line-height: var(--leading-small); font-variant-numeric: tabular-nums; }
.process-copy h3 { margin-bottom: 20px; }
.process-copy p { max-width: var(--measure-copy); color: var(--mist); }
/* Le geste de chaque instrument : au survol sur ordinateur, une fois à l'apparition sur téléphone */
@media (hover: hover) {
  .process-find:hover .rete { rotate: 32deg; }
  .process-find:hover .aiguille { animation: compass-seek 1.6s cubic-bezier(.2, .75, .2, 1) both; }
  .process-build:hover .calame { animation: calame-ecrit 2.2s cubic-bezier(.45, 0, .2, 1) both; }
  .process-build:hover .trace-vivant { animation: trace-ecrit 2.2s cubic-bezier(.45, 0, .2, 1) both; }
  .process-sell:hover .fleau { animation: mizan-fleau 1.9s cubic-bezier(.3, .6, .25, 1) both; }
  .process-sell:hover .plateau-g { animation: mizan-gauche 1.9s cubic-bezier(.3, .6, .25, 1) both; }
  .process-sell:hover .plateau-d { animation: mizan-droite 1.9s cubic-bezier(.3, .6, .25, 1) both; }
}
@media (hover: none) {
  .process-find[data-scene-reveal="entering"] .rete { rotate: 32deg; transition-delay: 1.1s; }
  .process-build[data-scene-reveal="entering"] .calame { animation: calame-ecrit 2.2s 1.3s cubic-bezier(.45, 0, .2, 1) both; }
  .process-build[data-scene-reveal="entering"] .trace-vivant { animation: trace-ecrit 2.2s 1.3s cubic-bezier(.45, 0, .2, 1) both; }
  .process-sell[data-scene-reveal="entering"] .fleau { animation: mizan-fleau 1.9s 1.4s cubic-bezier(.3, .6, .25, 1) both; }
  .process-sell[data-scene-reveal="entering"] .plateau-g { animation: mizan-gauche 1.9s 1.4s cubic-bezier(.3, .6, .25, 1) both; }
  .process-sell[data-scene-reveal="entering"] .plateau-d { animation: mizan-droite 1.9s 1.4s cubic-bezier(.3, .6, .25, 1) both; }
}
@keyframes compass-seek { 0% { transform: rotate(0); } 30% { transform: rotate(-38deg); } 55% { transform: rotate(24deg); } 78% { transform: rotate(-8deg); } 100% { transform: rotate(0); } }
/* le calame revient au début de la ligne, puis l'écrit jusqu'au bout */
@keyframes calame-ecrit { 0%, 100% { translate: 0 0; } 14% { translate: -33px -5px; } 26% { translate: -65.75px 5.75px; } 86% { translate: 0 0; } }
@keyframes trace-ecrit { 0%, 86%, 100% { stroke-dashoffset: 0; } 18%, 26% { stroke-dashoffset: 1; } }
/* le fléau penche, les plateaux restent droits et suivent ses bras (84 × sin de l'angle) */
@keyframes mizan-fleau { 0%, 100% { rotate: 0deg; } 28% { rotate: -7deg; } 56% { rotate: 4deg; } 80% { rotate: -1.5deg; } }
@keyframes mizan-gauche { 0%, 100% { translate: 0 0; } 28% { translate: 0 10.24px; } 56% { translate: 0 -5.86px; } 80% { translate: 0 2.2px; } }
@keyframes mizan-droite { 0%, 100% { translate: 0 0; } 28% { translate: 0 -10.24px; } 56% { translate: 0 5.86px; } 80% { translate: 0 -2.2px; } }
/* La méthode complète reste entre nous : un sceau d'or, une phrase, une invitation */
.secret { position: relative; z-index: 4; display: grid; justify-items: center; gap: 0; padding-block: 10px 120px; text-align: center; }
.secret-sceau { width: clamp(128px, 12vw, 168px); height: auto; margin-bottom: 30px; fill: none; stroke: var(--brass); stroke-width: 1.3; stroke-linejoin: round; }
.secret-sceau .fin { stroke-width: .7; opacity: .75; }
.secret-sceau .graduation { stroke-width: 3; stroke-dasharray: .6 4.1; opacity: .55; }
.secret-sceau .plein { fill: var(--brass); stroke: none; }
/* l'étoile se trace quand la section arrive ; sans script ou en mouvement réduit, elle est déjà tracée */
.secret-sceau .trace { stroke-dasharray: 1; stroke-dashoffset: 0; }
.secret[data-scene-reveal="pending"] .secret-sceau .trace { stroke-dashoffset: 1; }
.secret[data-scene-reveal="entering"] .secret-sceau .trace { transition: stroke-dashoffset 2.4s var(--arrive) .3s; }
.secret h2 { max-width: 18ch; font-size: var(--text-section); line-height: var(--leading-section); letter-spacing: var(--tracking-section); text-wrap: balance; }
.secret p { max-width: 40ch; margin: 18px auto 30px; color: var(--mist); font-size: var(--text-lead); line-height: var(--leading-lead); }
.race-scene { position: relative; height: 560px; overflow: hidden; background: linear-gradient(180deg, var(--night) 0 35%, var(--model-paper) 100%); }
.race-media { --fade-in: clamp(56px, 7vw, 100px); --fade-out: clamp(100px, 11vw, 160px); }
.race-scene img { object-position: 50% 45%; }

/* Le modèle : la sélection, en trois temps, sur le jardin */
.model-section { --model-accent: #a45347; position: relative; isolation: isolate; padding-block: 80px 230px; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, var(--model-paper) calc(100% - var(--scene-bridge)), var(--night)); }
.model-section[data-stage="1"] { --model-accent: #246d72; }
.model-section[data-stage="2"] { --model-accent: #8c641b; }
.model-heading { position: relative; z-index: 2; text-align: center; }
.model-heading h2 { font-size: var(--text-subheading); line-height: var(--leading-subheading); letter-spacing: var(--tracking-subheading); font-weight: 600; }
.model-theatre { position: relative; z-index: 2; }
.model-story { position: relative; width: min(1100px, 100% - 48px); min-height: 208px; margin: 16px auto 30px; text-align: center; }
.model-panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.model-panel[hidden] { display: none; }
.model-panel h3 { font-size: var(--text-title); font-weight: 850; line-height: var(--leading-title); letter-spacing: var(--tracking-title); animation: model-statement-in .7s var(--settle) both; }
.model-panel > p { max-width: 47ch; margin-top: 20px; font-size: var(--text-lead); line-height: var(--leading-lead); color: var(--slate); animation: model-statement-in .7s 80ms var(--settle) both; }
@keyframes model-statement-in { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: none; } }
.model-controls { display: flex; align-items: center; gap: 24px; width: min(780px, 100% - 48px); margin: 0 auto 24px; }
.model-tabs { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; min-width: 0; }
.model-tabs > button { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 80px; padding: 14px 8px 20px; color: var(--slate-2); background: none; font-size: var(--text-body); line-height: var(--leading-body); font-weight: 500; transition: color .3s; }
.model-tabs > button[aria-pressed="true"], .model-tabs > button:is(:hover, :focus-visible) { color: var(--ink); }
.model-tab-track { position: absolute; inset: auto 0 0; height: 2px; background: rgba(9, 44, 67, .15); }
.model-tab-progress { display: block; width: 100%; height: 3px; margin-top: -1px; background: var(--model-accent); transform: scaleX(0); transform-origin: 0; }
.model-tabs > button[aria-pressed="true"] .model-tab-progress { transform: scaleX(1); }
.model-section[data-playing="true"] .model-tabs > button[aria-pressed="true"] .model-tab-progress { animation: model-stage-progress 8s linear both; }
@keyframes model-stage-progress { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.model-stage-icon { flex: none; width: 32px; height: 32px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--settle), color .3s; }
.model-tabs > button[aria-pressed="true"] .model-stage-icon { color: var(--model-accent); }
.model-tabs > button:is(:hover, :focus-visible, [aria-pressed="true"]) .model-stage-icon-0 { transform: rotate(-8deg) translateY(-2px); }
.model-tabs > button:is(:hover, :focus-visible, [aria-pressed="true"]) .model-stage-icon-1 { transform: rotate(45deg); }
.model-tabs > button:is(:hover, :focus-visible, [aria-pressed="true"]) .model-stage-icon-2 { transform: translateY(-3px) scale(1.1); }
.model-tabs > button:focus-visible, .model-playback:focus-visible { outline-color: var(--ink); outline-offset: 7px; }
.model-playback { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: none; border: 1px solid rgba(9, 44, 67, .3); transition: background .3s, color .3s, transform .4s var(--settle); }
.model-playback svg { width: 20px; height: 20px; fill: currentColor; }
.model-playback:is(:hover, :focus-visible) { background: var(--ink); color: var(--paper); transform: scale(1.06); }
.model-garden { position: relative; width: min(820px, 100% - 80px); margin-inline: auto; }
.labyrinth-map { position: relative; width: 100%; aspect-ratio: 1; }
.labyrinth-art { position: relative; inset: auto; width: 100%; height: 100%; -webkit-mask-image: url("img/masque-jardin.svg"); mask-image: url("img/masque-jardin.svg"); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.labyrinth-art img { object-fit: contain; }
.labyrinth-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.labyrinth-route-track { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; opacity: .14; }
/* Un seul chemin : la porte du bas (1), la fontaine (2), la porte du haut (3). Le halo est un trait large et pâle, pas un filtre. */
.labyrinth-route { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transition: stroke-dashoffset 1.8s var(--settle), opacity .5s; }
.labyrinth-halo { stroke: var(--model-accent); stroke-width: 19; }
.model-section[data-visible="true"] .labyrinth-route[data-active="true"] { stroke-dashoffset: 0; opacity: 1; }
.model-section[data-visible="true"] .labyrinth-halo[data-active="true"] { opacity: .5; }
.labyrinth-flow { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 97; opacity: 0; transition: opacity .6s; animation: labyrinth-flow 3.4s linear infinite; }
.labyrinth-flow[data-active="true"] { opacity: .95; }
@keyframes labyrinth-flow { 0% { stroke-dashoffset: 100; } 100% { stroke-dashoffset: 0; } }
.labyrinth-center { opacity: 0; transition: opacity .8s; }
.labyrinth-center[data-active="true"] { opacity: 1; }
.labyrinth-center-ring { fill: none; stroke: var(--ink); stroke-width: 2; opacity: .55; }
.labyrinth-gate { opacity: 0; transition: opacity .6s; }
.labyrinth-gate[data-active="true"] { opacity: 1; }
.labyrinth-gate circle { fill: var(--model-paper); stroke: var(--model-accent); stroke-width: 3; }
.labyrinth-gate .labyrinth-gate-dot { fill: var(--model-accent); stroke: none; }
.model-section[data-running="false"] .labyrinth-flow { animation-play-state: paused; }
.labyrinth-label { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; color: var(--paper); background: var(--night); border: 1px solid color-mix(in srgb, var(--brass) 50%, transparent); border-radius: 999px; font-size: var(--text-small); line-height: var(--leading-small); font-weight: 500; white-space: nowrap; transform: translate(-50%, -50%); box-shadow: 0 4px 16px color-mix(in srgb, var(--night) 16%, transparent); transition: background .5s, color .5s, transform .6s var(--settle), opacity .5s; }
.labyrinth-label b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--night); background: var(--paper); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.labyrinth-label-1 { top: 96.5%; left: 50%; }
.labyrinth-label-2 { top: 66%; left: 50%; }
.labyrinth-label-3 { top: 3.5%; left: 50%; }
.model-section[data-stage="0"] .labyrinth-label-1, .model-section[data-stage="1"] .labyrinth-label-2, .model-section[data-stage="2"] .labyrinth-label-3 { color: var(--white); background: var(--model-accent); border-color: transparent; transform: translate(-50%, -50%) scale(1.06); }
.model-agreement { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 48px; text-align: center; }
.model-agreement p { color: var(--slate); }
.model-agreement strong { color: var(--ink); font-weight: 600; }
.model-agreement .text-link { font-size: var(--text-body); color: var(--ink); }

/* Avec toi, avec Amine : le chameau qui porte le village */
.human-section { --human-exit: clamp(80px, 9vw, 140px); position: relative; height: 1000px; overflow: hidden; color: var(--paper); background: linear-gradient(180deg, var(--night) calc(100% - var(--human-exit)), var(--paper)); }
.human-media { --fade-out: var(--human-exit); }
.human-media > .artwork { inset: 0 auto 0 0; width: min(64%, 980px); -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 98%), linear-gradient(180deg, transparent, #000 90px); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 58%, transparent 98%), linear-gradient(180deg, transparent, #000 90px); mask-composite: intersect; }
.human-media > .artwork img { object-fit: cover; object-position: 46% 30%; }
.human-shade { display: none; }
.human-copy { position: relative; z-index: 4; max-width: 510px; margin-left: 62%; padding: 220px 56px 80px 0; }
.human-copy h2 { margin-bottom: 24px; }
.human-copy p { max-width: var(--measure-copy); margin-bottom: 20px; color: var(--mist); font-size: var(--text-lead); line-height: var(--leading-lead); }
.human-citation { margin: 8px 0 10px; padding-left: 18px; border-left: 2px solid var(--gold); }
.human-citation p { margin: 0; color: var(--paper); font-size: var(--text-subheading); line-height: 1.38; }
.human-citation cite { display: block; margin-top: 8px; color: var(--gold); font-size: var(--text-small); font-style: normal; }
.human-copy .text-link { margin-top: 18px; }
/* la signature : sa vraie photo et sa phrase */
.human-byline { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; }
.human-byline img { flex: none; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper), 0 6px 16px color-mix(in srgb, var(--ink) 25%, transparent); }
.human-byline figcaption { display: grid; gap: 3px; }
.human-byline b { font-weight: 600; font-size: var(--text-body); }
.human-byline span { max-width: 36ch; color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: var(--text-small); line-height: 1.45; }


/* Le départ : la vague de sable, du jour vers la nuit */
.contact-section { --contact-entry: clamp(60px, 7vw, 110px); --contact-exit: clamp(130px, 15vw, 210px); position: relative; height: 930px; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, var(--paper), var(--carpet-paper) var(--contact-entry), var(--night) calc(100% - var(--contact-exit)), var(--night)); }
/* l'appel final, posé dans le ciel calme de la vague */
.contact-copy { position: absolute; z-index: 2; top: clamp(90px, 10vw, 150px); left: auto; right: max(40px, calc((100% - 1280px) / 2)); width: min(520px, 42%); max-width: none; margin: 0; padding: 0; text-align: left; }
.contact-copy p { max-width: 40ch; margin: 18px 0 30px; color: var(--slate); font-size: var(--text-lead); line-height: var(--leading-lead); }
.contact-media { --fade-in: var(--contact-entry); --fade-out: var(--contact-exit); }
.contact-section .artwork img { object-position: center 48%; }

/* Pied de page sous le campement */
.site-footer { position: relative; overflow: hidden; color: var(--paper); background: var(--night); }
.footer-media { --fade-in: 70px; }
.footer-media > .artwork { inset: -300px 0 -700px 35%; opacity: .35; }
.footer-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 10%, rgba(13, 27, 45, .87) 45%, rgba(13, 27, 45, .6)); }
.footer-top { position: relative; z-index: 4; display: flex; align-items: center; gap: 70px; padding-block: 72px; }
.footer-top .wordmark { position: static; transform: none; color: var(--paper); }
.footer-top .logo-sequence { width: 64px; height: 47px; }
.footer-top > p { color: #ccd1d1; font-size: var(--text-small); }
.footer-top > .text-link { margin-left: auto; color: var(--paper); }
.footer-bottom { position: relative; z-index: 4; display: flex; gap: 32px; padding-block: 24px; border-top: 1px solid rgba(248, 241, 223, .15); color: #b1bec3; font-size: var(--text-small); line-height: var(--leading-small); }
.footer-bottom > a:first-of-type { margin-left: auto; }
.footer-bottom a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .5s var(--settle); }
.footer-bottom a:is(:hover, :focus-visible) { color: var(--paper); background-size: 100% 1px; }

/* La fenêtre de candidature, en trois étapes */
.client-enquiry { width: min(660px, 100vw - 40px); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; color: var(--paper); color-scheme: dark; background: #0f2a3e; border: 1px solid rgba(241, 207, 135, .29); border-radius: 12px; box-shadow: 0 32px 120px rgba(2, 14, 29, .8); }
.client-enquiry::backdrop { background: rgba(4, 21, 38, .72); backdrop-filter: blur(10px); }
.client-enquiry[open] { animation: enquiry-unfold .48s var(--arrive) both; }
.client-enquiry[open]::backdrop { animation: enquiry-backdrop .35s both; }
@keyframes enquiry-unfold { 0% { opacity: 0; transform: translateY(18px) scale(.97); } 100% { opacity: 1; transform: none; } }
@keyframes enquiry-backdrop { 0% { opacity: 0; } 100% { opacity: 1; } }
.enquiry-shell { position: relative; padding: 24px 42px 20px; }
.enquiry-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.enquiry-top > span { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: var(--text-small); }
.enquiry-top > span > svg { width: 24px; height: 24px; fill: var(--gold); }
.enquiry-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: none; border: 1px solid rgba(248, 241, 223, .22); transition: color .2s, background .2s, transform .25s; }
.enquiry-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.enquiry-close:hover { background: var(--paper); color: var(--ink); transform: rotate(90deg); }
.enquiry-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 34px; padding: 0; list-style: none; }
.enquiry-progress li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; color: #a8bbc2; font-size: .75rem; }
.enquiry-progress li:nth-child(2) { align-items: center; }
.enquiry-progress li:last-child { align-items: flex-end; }
.enquiry-progress li > svg { position: relative; z-index: 1; width: 16px; height: 16px; fill: currentColor; background: #0f2a3e; transition: color .45s, transform .55s; }
.enquiry-progress-line { position: absolute; top: 8px; left: 8px; width: calc(150% - 8px); height: 1px; background: rgba(248, 241, 223, .15); }
.enquiry-progress li:nth-child(2) .enquiry-progress-line { left: 50%; }
.enquiry-progress li:last-child .enquiry-progress-line { display: none; }
.enquiry-progress [data-reached="true"] { color: var(--gold); }
.enquiry-progress [aria-current="step"] svg { transform: rotate(90deg) scale(1.2); }
.enquiry-progress li:has(+ [data-reached="true"]) .enquiry-progress-line { background: var(--gold); transition: background .45s; }
.enquiry-step { animation: enquiry-step-in .38s cubic-bezier(.2, .7, .2, 1) both; }
.enquiry-step[hidden] { display: none; }
@keyframes enquiry-step-in { 0% { opacity: 0; transform: translateX(14px); } 100% { opacity: 1; transform: none; } }
.client-enquiry h2 { max-width: 16ch; margin: 0 0 26px; font-size: var(--text-section); line-height: var(--leading-section); letter-spacing: var(--tracking-section); font-weight: 750; }
.client-enquiry h2:focus { outline: none; }
.enquiry-intro { margin: -10px 0 30px; color: #c2d3d7; }
.enquiry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.enquiry-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--paper); font-size: var(--text-small); font-weight: 500; }
.enquiry-field.plein { grid-column: 1 / -1; }
.enquiry-field input, .enquiry-field select { width: 100%; min-width: 0; min-height: 56px; padding: 14px 16px; color: var(--paper); background: #0a2236; border: 1px solid rgba(139, 172, 183, .47); border-radius: 5px; font: 400 1.0625rem/1.5 var(--body-font); transition: border-color .2s, background .2s, box-shadow .2s; }
.enquiry-field input::placeholder { color: #a4bac4; opacity: 1; }
.enquiry-field :is(input, select):focus { border-color: var(--gold); outline: 2px solid rgba(241, 207, 135, .2); outline-offset: 2px; background: #0d283c; }
.enquiry-field[data-error] :is(input, select) { border-color: #e98a7a; }
.enquiry-error { color: #f1a596; font-size: .8125rem; font-weight: 400; }
.enquiry-error:empty { display: none; }
.enquiry-tel { display: grid; grid-template-columns: 118px 1fr; gap: 10px; }
.enquiry-privacy { max-width: 55ch; margin: 16px 0 0; color: #b9cbd0; font-size: .8125rem; line-height: 1.65; }
.enquiry-privacy a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.enquiry-privacy a:hover { color: var(--gold); }
.enquiry-consent { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid rgba(139, 172, 183, .36); border-radius: 5px; font-size: .9375rem; line-height: 1.55; cursor: pointer; transition: border-color .2s, background .2s; }
.enquiry-consent:has(input:checked) { border-color: #a3d1d1; background: #164750; }
.enquiry-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.enquiry-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; }
.enquiry-duration { color: #a8c0c9; font-size: .8125rem; }
.enquiry-back { padding: 10px 4px; color: #c2d3d7; background: none; font-size: var(--text-small); }
.enquiry-back:hover { color: var(--paper); }
.enquiry-submit { margin-left: auto; color: var(--ink); background: var(--gold); }
.enquiry-submit:hover { background: #f5dba4; }
.enquiry-submit[disabled] { opacity: .6; cursor: wait; }
.enquiry-save { min-height: 1.5em; margin-top: 12px; color: #f1a596; font-size: .8125rem; }

/* Apparitions : rien n'est caché sans script ; le script passe les blocs de « pending » à « entering » */
[data-scene-item] { --scene-animation: scene-copy-arrive; --scene-duration: .95s; }
[data-scene-reveal="pending"][data-scene-item], [data-scene-reveal="pending"] [data-scene-item] { opacity: 0; pointer-events: none; }
[data-scene-reveal="entering"][data-scene-item], [data-scene-reveal="entering"] [data-scene-item] { animation: var(--scene-animation) var(--scene-duration) var(--scene-delay, 0s) var(--arrive) backwards; }
[data-scene-item="title"] { --scene-animation: scene-title-print; --scene-duration: 1.1s; }
[data-scene-item="hero-title"] { --scene-animation: scene-hero-print; --scene-duration: 1.3s; }
[data-scene-item="invitation"] { --scene-animation: scene-invitation-arrive; --scene-duration: .85s; }
[data-scene-item="instrument"] { --scene-animation: scene-instrument-assemble; --scene-duration: 1.4s; }
[data-scene-item="garden"] { --scene-animation: scene-garden-unfold; --scene-duration: 1.5s; }
[data-scene-item="controls"] { --scene-animation: scene-controls-arrive; --scene-duration: 1.05s; }
[data-scene-item="closing"] { --scene-animation: scene-closing-arrive; --scene-duration: 1s; }
[data-scene-item="landscape"] { --scene-animation: scene-landscape-open; --scene-duration: 1.8s; transform-origin: 50%; }
[data-scene-reveal="pending"][data-scene-item="landscape"], [data-scene-reveal="pending"] [data-scene-item="landscape"] { opacity: 1; }
[data-scene-direction="right"] [data-scene-item="title"] { --scene-animation: scene-title-from-right; }
[data-scene-direction="right"] [data-scene-item="invitation"] { --scene-animation: scene-invitation-from-right; }
@keyframes scene-title-print { 0% { opacity: 0; clip-path: inset(0 0 100%); transform: translateY(20px); } 100% { opacity: 1; clip-path: inset(0 0 -20%); transform: none; } }
@keyframes scene-hero-print { 0% { opacity: 0; clip-path: inset(0 0 100%); transform: translateY(28px) scale(.975); } 100% { opacity: 1; clip-path: inset(0 0 -20%); transform: none; } }
@keyframes scene-copy-arrive { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
@keyframes scene-invitation-arrive { 0% { opacity: 0; transform: translateX(-12px); } 100% { opacity: 1; transform: none; } }
@keyframes scene-instrument-assemble { 0% { opacity: 0; transform: scale(.8) rotate(-7deg); } 100% { opacity: 1; transform: none; } }
@keyframes scene-garden-unfold { 0% { opacity: 0; transform: perspective(1400px) rotateX(8deg) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes scene-controls-arrive { 0% { opacity: 0; transform: scaleX(.94); } 100% { opacity: 1; transform: none; } }
@keyframes scene-closing-arrive { 0% { opacity: 0; transform: translateX(-8px); } 100% { opacity: 1; transform: none; } }
@keyframes scene-landscape-open { 0% { scale: 1.045; } 100% { scale: 1; } }
@keyframes scene-title-from-right { 0% { opacity: 0; clip-path: inset(0 0 0 100%); transform: translateX(18px); } 100% { opacity: 1; clip-path: inset(0 -10% 0 0); transform: none; } }
@keyframes scene-invitation-from-right { 0% { opacity: 0; transform: translateX(12px); } 100% { opacity: 1; transform: none; } }

/* Tablette */
@media (max-width: 1100px) {
  .container { width: min(1280px, 100% - 72px); }
  .site-header { margin-inline: 36px; }
  .hero { min-height: 850px; }
  .hero-bottom { left: 36px; right: 36px; }
  .engine-copy h2 { max-width: 18ch; }
  .engine-copy p { max-width: 30ch; }
  .approach-section { padding-block: 75px 0; }
  .approach-intro { margin-bottom: 40px; }
  .race-scene { height: 430px; }
  .race-scene img { object-position: 58% center; }
  .process-illustration { height: 200px; margin-bottom: 30px; }
  .process-illustration > svg { width: 175px; height: 175px; }
  .step-number { top: -8px; }
  .model-story { min-height: 196px; margin-block: 12px 24px; }
  .model-garden { width: min(720px, 100% - 48px); }
  .model-tabs { gap: 12px; }
  .model-tabs > button { flex-direction: column; gap: 10px; }
  .human-section { height: 870px; }
  .human-copy { margin-left: 60%; padding: 140px 32px 80px 0; }
}

/* Téléphone */
@media (max-width: 700px) {
  .container { width: calc(100% - 48px); }
  .site-header { height: 140px; margin-inline: 24px; }
  .header-icon { width: 48px; height: 48px; }
  .wordmark { top: 24px; }
  .logo-sequence { width: 96px; height: 71px; }
  .hero { min-height: 760px; max-height: 1000px; }
  .hero-art img { object-position: 52% center; }
  .hero-content { padding-inline: 20px; }
  .hero-description { margin-block: 24px; }
  .hero-bottom { left: 24px; right: 24px; bottom: 24px; }
  .hero-bottom > a { white-space: nowrap; }
  .button { min-height: 52px; }
  .scene-art { transform: none; }
  .engine-copy { padding-block: 75px calc(123vw - 70px); }
  .engine-copy h2 { max-width: 17ch; }
  .engine-copy p { max-width: 30ch; margin-top: 24px; }
  .engine-invitation { gap: 20px; margin-top: 24px; }
  .engine-canvas { width: 100%; bottom: 0; translate: -50%; aspect-ratio: 1376 / 1576; -webkit-mask-image: linear-gradient(transparent, #000 14% 72%, transparent 94%); mask-image: linear-gradient(transparent, #000 14% 72%, transparent 94%); }
  .engine-details { display: none; }
  .process-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process-step { padding: 0 0 60px; }
  .process-step + .process-step { padding-top: 25px; }
  .process-step:last-child { padding-bottom: 0; }
  .process-illustration { height: 180px; margin-bottom: 22px; }
  .process-illustration > svg { width: 180px; height: 180px; margin-inline: 0; }
  .step-number { top: 15px; left: auto; right: 0; }
  .race-scene { height: 480px; }
  .race-scene img { object-position: 50% 40%; }
  .race-media { --fade-in: 130px; --fade-out: 150px; }
  .model-story { min-height: 220px; margin-bottom: 16px; }
  .model-panel h3 { max-width: 13ch; }
  .model-panel > p { max-width: 30ch; margin-top: 16px; font-size: var(--text-body); }
  .model-controls { flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 20px; }
  .model-tabs { flex-basis: 100%; }
  .model-tabs > button { padding-inline: 0; font-size: var(--text-small); }
  .model-stage-icon { width: 28px; height: 28px; }
  .model-playback { width: 40px; height: 40px; }
  .model-garden { width: 100%; }
  .labyrinth-label { gap: 7px; padding: 4px 10px 4px 4px; font-size: 12px; }
  .labyrinth-label b { width: 20px; height: 20px; font-size: 11px; }
  .model-agreement { margin-top: 32px; }
  .human-section { height: auto; }
  .human-media > .artwork { inset: auto 0 -40px; height: 500px; width: auto; -webkit-mask-image: linear-gradient(180deg, transparent, #000 110px); mask-image: linear-gradient(180deg, transparent, #000 110px); }
  .human-media > .artwork { width: auto; }
  .human-media > .artwork img { object-fit: cover; object-position: 50% 20%; }
  .enquiry-actions { flex-wrap: wrap; row-gap: 12px; }
  .enquiry-submit { order: -1; flex: 1 0 100%; justify-content: space-between; }
  .enquiry-back, .enquiry-duration { white-space: nowrap; }
  .enquiry-tel select { padding-inline: 12px 8px; }
  .human-shade { display: none; }
  .human-copy { margin: 0; padding: 75px 24px 470px; }
  .human-copy p { margin-bottom: 16px; }
  .human-copy .text-link { margin-top: 6px; }
  .contact-section .artwork img { object-position: 30% center; }
  .contact-section { height: 1040px; background: linear-gradient(180deg, var(--paper), var(--carpet-paper) var(--contact-entry), var(--carpet-paper) 420px, var(--night) calc(100% - var(--contact-exit)), var(--night)); }
  .contact-copy { top: 56px; left: 0; right: 0; width: auto; padding-inline: 24px; text-align: center; }
  .contact-copy p { margin-inline: auto; }
  .contact-section .contact-media { inset: 330px 0 0; }
  .hero-tag { font-size: 12px; padding: 6px 10px 6px 8px; }
  .footer-media > .artwork { inset: 0 -30% -150px -10%; }
  .footer-top { flex-wrap: wrap; gap: 30px; padding-block: 50px 40px; }
  .footer-top > .text-link { width: 100%; margin: 0; }
  .footer-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 10px; padding-block: 25px; }
  .footer-bottom > a:first-of-type { margin: 0; }
  .footer-bottom > a:last-child { text-align: right; }
  .enquiry-shell { padding: 20px 22px 18px; }
  .enquiry-fields { grid-template-columns: 1fr; }
  .enquiry-tel { grid-template-columns: 118px 1fr; }
}

/* Mouvement réduit : tout s'affiche, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  .hero-tag { transition: none; }
  html { scroll-behavior: auto; }
  html[data-intro] .brand-intro { display: none; }
  html[data-intro] .site-header .logo-sequence { visibility: visible; }
  html[data-intro] .site-header .header-side { opacity: 1; }
  [data-scene-reveal] [data-scene-item], [data-scene-item] { animation: none !important; opacity: 1 !important; }
  .scene-art, .engine-canvas { transform: none !important; }
  .labyrinth-flow, .labyrinth-center-motion { animation: none; }
  .labyrinth-route { transition: none; }
  .model-panel h3, .model-panel > p, .enquiry-step, .client-enquiry[open] { animation: none; }
  .button::before { display: none; }
  .button .arrow, .text-link .arrow, .logo-mark, .header-icon, .model-stage-icon { transition: none !important; animation: none !important; }
}

/* Retour d'Alex du 1/12 soir : la méthode centrée comme le secret, des écarts resserrés sur téléphone, Amine avec un vrai bouton */
.approach-intro { text-align: center; }
.approach-intro h2 { margin-inline: auto; }
.process-illustration { flex-direction: column; justify-content: center; gap: 14px; height: auto; }
.step-number { position: static; order: 2; }
.process-copy { text-align: center; }
.process-copy p { margin-inline: auto; }
.human-bouton { margin-top: 26px; }
@media (max-width: 700px) {
  .process-illustration > svg { width: 190px; height: 190px; }
  .process-illustration { margin-bottom: 18px; }
  .process-step { padding-bottom: 44px; }
  .business-engine { min-height: 0; }
  .engine-copy { padding-block: 64px calc(114.5vw - 40px); }
  .approach-section { padding-top: 36px; }
  .secret { padding-bottom: 24px; }
  .race-scene { margin-top: -30px; }
}
