/* Page « L'agence » : s'appuie sur v4.css (copié tel quel), ne définit que ce qui est propre à cette page. */

.ap-hero { min-height: 100vh; min-height: 100svh; padding-top: clamp(150px, 25vh, 250px); }   /* texte descendu, la place du haut sert aux icônes */
.ap-hero h1 { max-width: 16ch; font-size: clamp(32px, min(3.8vw, 6vh), 54px); }
.ap-hero .lead { max-width: 44ch; font-size: 16px; }

/* colonnes de lecture */
.ap-col { max-width: 58ch; margin-top: 34px; }
.ap-col p { margin: 0 0 22px; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.62; color: var(--fg-soft); }
.ap-col--r { margin-top: 0; }
.ap-col--c { margin-left: auto; margin-right: auto; text-align: center; }
.ap-in { color: var(--fg) !important; font-weight: 600; }

/* la phrase qui claque */
.ap-punch { margin: clamp(46px, 7vw, 90px) 0; font: 500 clamp(28px, 3.9vw, 56px)/1.04 var(--t); letter-spacing: -.035em; color: var(--fg); text-wrap: balance; max-width: 16ch; }
.ap-punch::after { content: ''; display: block; width: 74px; height: 6px; border-radius: 3px; background: var(--accent); margin-top: 22px; }

.ap-story h2 { max-width: 17ch; }
.ap-chain { margin-top: 34px; }

/* fondateurs */
.ap-head { max-width: 640px; }
.ap-founders { margin-top: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.founder { padding: 30px; }
.founder h3 { font-size: 34px; }
.founder p { font-size: 15.5px; line-height: 1.6; }
.ap-roots .ap-col--c { margin-top: 56px; }

/* fennec */
.ap-pic { display: grid; place-items: center; }
.ap-pic img { width: min(100%, 520px); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .35)); transform-origin: 50% 100%; animation: idle-breathe 5s ease-in-out infinite; }
.ap-txt { margin: 22px 0 0; color: var(--fg-soft); font-size: 16px; line-height: 1.55; max-width: 44ch; }
.ap-fennec .facts p { color: var(--fg-soft); }
.ap-fennec h2 { max-width: 13ch; }
.ap-after { margin-top: 48px; }

.select h2 { max-width: 18ch; }

@media (max-width: 1000px) {
  .chapter { padding: 56px 0; }
  .chapter .grid2 { grid-template-columns: 1fr; gap: 40px; }
  .ap-founders { grid-template-columns: 1fr; }
  .ap-after { margin-top: 36px; }
  .ap-hero { min-height: 0; padding-bottom: 300px; }
}
@media (prefers-reduced-motion: reduce) { .ap-pic img { animation: none; } }

/* titres et textes un cran plus petits que le site principal */
.ap-story h2, .chapter h2, .select h2 { font-size: clamp(28px, 3.5vw, 48px); }
.chapter .lead, .select .lead { font-size: 16px; }
.facts p { font-size: 15px; }

/* ---------- Illustration du hero : dunes au trait, de jour comme de nuit ---------- */
:root { --dn-b: #EDEEE6; --dn-m: #E3E5D8; --dn-f: #DBDBCF; --dn-line: #1D1D1B; }
body[data-sky="nuit"] { --dn-b: #2B2C20; --dn-m: #222319; --dn-f: #191A12; --dn-line: #7E7F66; }
.ap-land { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(250px, 44vh, 470px); z-index: 0; pointer-events: none; }
.ap-land .dl { position: absolute; inset: 0; will-change: transform; }
.dunes { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.dunes * { vector-effect: non-scaling-stroke; }
.dunes .d-fill { stroke: var(--dn-line); stroke-width: 1.8; stroke-linejoin: round; transition: fill 1.2s ease, stroke 1.2s ease; }
.dunes .d-back { fill: var(--dn-b); } .dunes .d-mid { fill: var(--dn-m); } .dunes .d-front { fill: var(--dn-f); }
.dunes .hatch { fill: none; stroke: var(--dn-line); stroke-width: 1.4; stroke-linecap: round; opacity: .5; transition: stroke 1.2s ease; }
.prop { position: absolute; height: auto; overflow: visible; }
.prop .pl { fill: none; stroke: var(--dn-line); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 1.2s ease; vector-effect: non-scaling-stroke; }
.prop .pc { fill: var(--dn-b); } .prop .py { fill: var(--accent); stroke: #1D1D1B; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
/* traces de chien : une patte (coussinet + quatre doigts), un pas à gauche, un pas à droite, qui apparaissent une à une */
.paws { position: absolute; left: 22%; bottom: 4.4%; width: 42%; height: 17%; overflow: visible; }
.paws .pw { fill: none; stroke: var(--dn-line); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke 1.2s ease; }
.paws .pp { opacity: 0; animation: step-in .5s var(--ease3) forwards; }
.paws .pp:nth-of-type(1) { animation-delay: .8s; } .paws .pp:nth-of-type(2) { animation-delay: 1.6s; } .paws .pp:nth-of-type(3) { animation-delay: 2.4s; } .paws .pp:nth-of-type(4) { animation-delay: 3.2s; }
@keyframes step-in { from { opacity: 0; } to { opacity: .75; } }
/* Fenny reste posé : aucune flottaison dans le hero */
.ap-hero .fenny { bottom: clamp(24px, 6vh, 70px); z-index: 2; transform: none !important; translate: 0 var(--fy, 0px); animation: none !important; transition: none; }
.ap-hero .hero-fennec { animation: none; }

/* ---------- Jour -> nuit : le ciel, les dunes et les icônes changent ensemble quand on descend ---------- */
.sky i { transition: opacity 1.2s ease; }
.ap-stars { position: absolute; inset: 0 0 45% 0; z-index: 0; pointer-events: none; }
.ap-stars i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #F2F2ED; opacity: 0; transition: opacity 1.2s ease; }
body[data-sky="nuit"] .ap-stars i { opacity: .85; animation: twinkle 3.6s ease-in-out infinite; }
.ap-stars i:nth-child(2n) { animation-delay: -1.2s !important; } .ap-stars i:nth-child(3n) { animation-delay: -2.4s !important; width: 3px; height: 3px; }
@keyframes twinkle { 0%, 100% { opacity: .85; } 50% { opacity: .25; } }
.flies { transition: opacity 1s ease; }
body[data-sky="nuit"] .ap-hero .flies { opacity: 0; }

/* ---------- Icônes qui flottent et qui volent ---------- */
.flies { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fly { position: absolute; height: auto; overflow: visible; will-change: transform; animation: bob 6s ease-in-out infinite; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg)); }
.fly.f2 { animation-duration: 7.2s; animation-delay: -1.4s; } .fly.f3 { animation-duration: 5.4s; animation-delay: -2.2s; }
.fly.f4 { animation-duration: 6.6s; animation-delay: -.8s; } .fly.f5 { animation-duration: 7.8s; animation-delay: -3s; }
.fly.f6 { animation-duration: 6.2s; animation-delay: -4s; } .fly.f7 { animation-duration: 8.4s; animation-delay: -2.6s; }
.fly.f8 { animation-duration: 7s; animation-delay: -3.4s; } .fly.f9 { animation-duration: 5.8s; animation-delay: -1s; }
.fly.f10 { animation-duration: 7.6s; animation-delay: -5s; } .fly.f11 { animation-duration: 6.4s; animation-delay: -2s; }
.fly.ft { display: none; }   /* icônes en plus, seulement sur tablette */
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.fly-burst { position: fixed; z-index: 60; width: 40px; height: 40px; pointer-events: none; will-change: transform, opacity; }
.ap-roots, .ap-fennec, .ap-story, #approche { position: relative; overflow: hidden; }
@media (max-width: 1000px) { .f3, .f5, .f6 { display: none; } .ap-land { height: 240px; } .ap-hero { padding-top: 130px; } }
@media (prefers-reduced-motion: reduce) { .fly, .dunes .nosun, .dunes .steps ellipse { animation: none; } .dunes .steps ellipse { opacity: .7; } }

/* ---------- Phrase en tuiles : on les repousse, elles reviennent (JS : js/page.js) ---------- */
.ap-punch.is-tiles { max-width: none; margin: clamp(56px, 8vw, 100px) auto; display: grid; justify-items: center; gap: 8px; position: relative; touch-action: manipulation; }
.ap-punch.is-tiles::after { display: none; }
.ap-punch .trow { display: flex; gap: 8px; justify-content: center; }
.ap-punch .tgap { width: calc(var(--tile) * .5); }
.ap-punch { --tile: clamp(34px, 5.2vw, 66px); }
.tile { width: var(--tile); height: var(--tile); border-radius: calc(var(--tile) * .24); border: 2.5px solid #1D1D1B; background: #F2F2ED; color: #1D1D1B;
  display: grid; place-items: center; font: 600 calc(var(--tile) * .52)/1 var(--t); user-select: none; will-change: transform; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.tile.y { background: var(--accent); }
@media (max-width: 600px) { .ap-punch { --tile: clamp(24px, 7.4vw, 36px); } .ap-punch .trow, .ap-punch.is-tiles { gap: 5px; } }

/* sections plus serrées (le site principal garde 140 px) */
.chapter { padding: 72px 0; }
.select { padding: 72px 0 64px; }
.ap-col { margin-top: 24px; }
.ap-punch.is-tiles { margin: clamp(34px, 5vw, 60px) auto; }
.ap-roots .ap-col--c { margin-top: 36px; }
.ap-hero { min-height: 100svh; }
@media (prefers-reduced-motion: reduce) { .paws .pp { animation: none; opacity: .75; } .ap-stars i { animation: none !important; } }

/* ---------- Soleil : il se lève, ses rayons tournent, il pulse, puis il descend derrière les dunes quand on défile ---------- */
.ap-land .dl-s { z-index: 0; }
.sunsvg { position: absolute; right: 12%; bottom: 17%; width: clamp(130px, 15vw, 210px); height: auto; overflow: visible; animation: sun-rise 1.8s var(--ease) both; }
.sun-core { fill: var(--accent); stroke: #1D1D1B; stroke-width: 1.8; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: 50% 50%; animation: sun-pulse 4.5s ease-in-out infinite; }
.sun-glint { fill: none; stroke: #1D1D1B; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .55; }
.sun-rays { transform-box: view-box; transform-origin: 100px 100px; animation: sun-spin 36s linear infinite; }
.sun-rays path { fill: none; stroke: #1D1D1B; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: rays-breathe 3.2s ease-in-out infinite; transform-box: view-box; transform-origin: 100px 100px; }
@keyframes sun-rise { from { transform: translateY(90px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sun-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes rays-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: .65; } }
.sun, .moon { transition: opacity 1.2s ease; }
.moon { opacity: 0; }
.moon-core { fill: #F2F2ED; stroke: #A9AA90; stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.moon-cr { fill: none; stroke: #A9AA90; stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .7; }
.moon-st { fill: none; stroke: #F2F2ED; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: twinkle 3s ease-in-out infinite; }
.moon-st:nth-of-type(2n) { animation-delay: -1.3s; }
body[data-sky="nuit"] .sun { opacity: 0; }
body[data-sky="nuit"] .moon { opacity: 1; }
body[data-sky="nuit"] .rope-l { stroke: #A9AA90; }
@media (prefers-reduced-motion: reduce) { .sunsvg, .sun-core, .sun-rays, .sun-rays path, .moon-st { animation: none; } }
@media (max-width: 1000px) { .sunsvg { right: 6%; bottom: 36%; width: 120px; } }

/* ---------- Lecture : texte aligné à gauche, sans coupures forcées ---------- */
.ap-col, .ap-col p, .ap-txt, .founder p { text-align: left; text-wrap: wrap; hyphens: none; }
.ap-col { max-width: 74ch; }
.ap-col p { line-height: 1.75; margin-bottom: 26px; }
.ap-col--c { max-width: 74ch; }
.ap-col--c { max-width: 62ch; }
.ap-col--tight { margin-top: 0; }
.ap-punch.is-tiles { margin-bottom: 30px; }
.ap-in { color: var(--fg); font-weight: 600; }

/* CTA plus haut : Fenny assis du pied de page déborde sur la section, on lui laisse la place */
.select { padding: 24px 0 210px; }
@media (max-width: 1000px) { .select { padding-bottom: 270px; } }

/* Fenny allongé : même taille de tête que les autres Fenny */
.ap-pic img { width: var(--fenny); max-width: 100%; }

/* ---------- Soleil en yoyo : sa ficelle part du haut de l'écran, il monte et descend au bout ---------- */
.sunsvg { animation: sun-rise 1.8s var(--ease) both, yoyo 5.2s cubic-bezier(.55,0,.35,1) 1.8s infinite; }
.rope-l { fill: none; stroke: #1D1D1B; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@keyframes yoyo { 0%, 100% { translate: 0 -34px; } 55% { translate: 0 70px; } 62% { translate: 0 66px; } }
@media (prefers-reduced-motion: reduce) { .sunsvg { animation: none; } .bird, .bird svg, .bird path { animation: none; } }

/* ---------- Oiseaux : ils traversent le hero de gauche à droite ---------- */
.ap-birds { position: absolute; inset: 0 0 44% 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bird { position: absolute; left: 0; top: 0; width: var(--w); will-change: transform; }
.bird svg { width: 100%; height: auto; display: block; overflow: visible; }
.bird .wl, .bird .wr { transform-box: view-box; transform-origin: 32px 16px; animation: wing-l var(--flap, .7s) ease-in-out infinite alternate; }
.bird .wr { animation-name: wing-r; }
.bird .bd { fill: #F2F2ED; }
.bird path { fill: none; stroke: #1D1D1B; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke 1.2s ease; }
body[data-sky="nuit"] .bird path { stroke: #A9AA90; }
.bird:nth-child(2n) { --flap: .55s; } .bird:nth-child(3n) { --flap: .85s; }
@keyframes bird-cross { from { transform: translate3d(-12vw, 0, 0); } 50% { transform: translate3d(50vw, var(--dy), 0); } to { transform: translate3d(112vw, 0, 0); } }
@keyframes wing-l { from { transform: rotate(32deg); } to { transform: rotate(-26deg); } }
@keyframes wing-r { from { transform: rotate(-32deg); } to { transform: rotate(26deg); } }

/* Pourquoi PHENEQ : texte simple à gauche, Fenny à droite */
.ap-why2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 70px; align-items: center; }
.ap-why p:not(.eyebrow):not(.lead) { margin: 0 0 18px; max-width: 62ch; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; color: var(--fg-soft); font-weight: 400; }
.ap-why .lead { max-width: 62ch; }
.ap-pic2 { display: grid; place-items: center; }
.ap-pic2 img { width: min(100%, calc(var(--fenny) * 1.5)); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25)); animation: none; }
.foot-fenny { animation: none !important; }
@media (max-width: 1000px) { .ap-why2 { grid-template-columns: 1fr; gap: 36px; } .ap-pic2 img { width: min(70%, 300px); } }

/* fin de page compacte : le texte final, le CTA et le pied de page tiennent ensemble à l'écran */
.ap-trait svg { width: 56px; height: 56px; }
.ap-fennec { padding-bottom: 36px; }
.select { padding: 50px 0 140px; }   /* texte et bouton remontés, plus d'air au-dessus du pied de page */
.select .lead { margin-top: 14px; } .select .btn { margin-top: 20px; }
@media (max-width: 1000px) { .select { padding-bottom: 250px; } }

@media (prefers-reduced-motion: reduce) { .ap-birds { display: none; } }
.ap-why .lead { margin: 18px 0 18px; }

/* Pourquoi PHENEQ : Fenny à la taille des autres, titre sur deux lignes, texte plus serré */
.ap-fennec .ap-why h2 { max-width: none; font-size: clamp(28px, 3.1vw, 42px); }
.ap-fennec .ap-why h2 .tone { white-space: nowrap; }
.ap-pic2 img { width: calc(var(--fenny) * .97); max-width: 100%; }
.ap-why p:not(.eyebrow):not(.lead) { line-height: 1.5; margin-bottom: 10px; }
.ap-why .lead { line-height: 1.5; margin: 14px 0 10px; }
@media (max-width: 600px) { .ap-fennec .ap-why h2 .tone { white-space: normal; } }
.ap-fennec .ap-why h2 .tone { display: block; }
.ap-pic2 img { width: var(--fenny); }

/* cactus : plein de la couleur de leur dune, le trait de la dune ne les traverse plus */
.dl-b .cac .pl { fill: var(--dn-b); } .dl-m .cac .pl { fill: var(--dn-m); }
.cac .pl { transition: fill 1.2s ease, stroke 1.2s ease; }

/* Fenny : ses pattes posent sur le trait de la dune de devant (le trait est à 11,6 % de la hauteur du paysage, les pieds sont à 2 % du bas de l'image) */
.ap-hero { --land: clamp(250px, 44vh, 470px); }
.ap-hero .fenny { bottom: calc(var(--land) * .1163 - var(--fenny) * .0258); }
@media (max-width: 1000px) { .ap-hero { --land: 240px; } }

/* Pourquoi PHENEQ : un seul paragraphe, Fenny aligné sur sa dernière ligne */
.ap-why2 { align-items: end; }
.ap-why p:not(.eyebrow):not(.lead):last-child { margin-bottom: 0; max-width: 66ch; }
.ap-pic2 { align-self: end; }
.ap-pic2 img { display: block; }
@media (max-width: 1000px) { .ap-why2 { align-items: start; } }
.ap-why p:not(.eyebrow):not(.lead):last-child { margin-top: 18px; }

/* texte sous les cartes fondateurs : aligné à gauche, sur le bord des cartes et du titre */
.ap-roots .ap-col--c { margin-left: 0; margin-right: 0; max-width: 74ch; text-align: left; }

/* Notre façon de faire : titre à gauche, texte à droite, puis trois étapes en cartes comme les fondateurs */
.ap-way-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: end; }
.ap-way-head .ap-col { margin-top: 0; max-width: 56ch; }
.ap-way-head .ap-col p { margin: 0; }
.ap-steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.ap-step { position: relative; padding: 28px 30px 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--card-edge); }
.ap-step .n { display: block; margin-bottom: 38px; font: 600 11px/1 var(--b); letter-spacing: .16em; color: var(--fg-faint); }
.ap-step h3 { margin: 0 0 8px; font-size: 22px; }
.ap-step p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--fg-soft); max-width: 30ch; }
.ap-step:not(:last-child)::after { content: ''; position: absolute; top: 31px; right: -21px; width: 22px; height: 1.5px; background: var(--fg-faint); opacity: .6; }
.ap-step--end { background: var(--accent); border-color: transparent; }
.ap-step--end .n, .ap-step--end h3, .ap-step--end p { color: var(--ink); }
@media (max-width: 1000px) {
  .ap-way-head { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .ap-steps { grid-template-columns: 1fr; margin-top: 36px; }
  .ap-step:not(:last-child)::after { display: none; }
  .ap-step .n { margin-bottom: 20px; }
}

/* =====================================================================
   Sections 2, 3, 4 : animations au défilement (JS : js/page.js)
   Tout est lisible sans JS et sans animation (« réduire les animations »).
   ===================================================================== */

/* Mots qui s'allument au fil de la lecture */
[data-words].is-words .w { opacity: .26; transition: opacity .5s var(--ease3); }
[data-words].is-words .w.lit { opacity: 1; }

/* Section 2 : le bruit monte (les icônes s'accumulent et s'agitent), puis il s'efface d'un coup */
.ap-story { position: relative; overflow: hidden; }
.ap-story > .wrap { position: relative; z-index: 1; }
.ap-noise { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.nz { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); }
.nz b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 30%; background: #F2F2ED; border: 2px solid #1D1D1B; box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(30px) scale(.3) rotate(var(--r)); transition: opacity .35s var(--ease3), transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.nz b svg { width: 66%; height: 66%; overflow: visible; }
.nz.on b { opacity: 1; transform: none; transform: rotate(var(--r)); animation: nz-buzz var(--bz, .9s) ease-in-out infinite alternate; }
.nz.loud b { animation-duration: calc(var(--bz, .9s) * .35); }
.nz.gone b { opacity: 0; transform: translateY(70vh) rotate(calc(var(--r) * 6)); transition: opacity .9s ease .25s, transform 1.3s cubic-bezier(.55, 0, .8, .35); animation: none; }
.nz i { position: absolute; left: 50%; top: 50%; width: 150%; height: 150%; margin: -75% 0 0 -75%; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; }
.nz.on i { animation: nz-wave 1.8s ease-out infinite; animation-delay: var(--wd, 0s); }
.nz.gone i { animation: none; opacity: 0; }
@keyframes nz-buzz { from { transform: rotate(var(--r)) translate(0, 0); } to { transform: rotate(calc(var(--r) * -1)) translate(2px, -3px); } }
@keyframes nz-wave { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.ap-story .ap-col p { position: relative; }
@media (max-width: 1000px) { .nz:nth-child(n+13) { display: none; } }
@media (min-width: 601px) and (max-width: 1000px) {
  /* haut de page : le texte descend au milieu de l'espace libre, les icônes volantes passent dessous */
  .ap-hero { padding-top: 250px; }
  /* toutes les icônes volantes, plus 4 en plus : sur les côtés du texte et entre le texte et les dunes */
  .flies .fly.f3, .flies .fly.f5, .flies .fly.f6, .flies .fly.ft { display: block; }
  .flies .f1 { top: 56% !important; } .flies .f4 { top: 55% !important; }
  .flies .f2 { top: 63% !important; } .flies .f7 { top: 69% !important; }
  .flies .f3 { left: 8% !important; top: 32% !important; } .flies .f5 { right: 13% !important; top: 64% !important; }
  .flies .f6 { right: 4% !important; top: 70% !important; }
  /* Fenny pensif : les icônes se resserrent autour de lui, et le texte prend de l'air au-dessus */
  .ap-pic2 { width: min(100%, 540px); justify-self: center; margin: 100px 0 30px; }
}
/* les icônes entourent Fenny dans « Pourquoi PHENEQ » */
.ap-pic2 { position: relative; }
.ap-pic2 .ap-noise { inset: 0; overflow: visible; }
.ap-pic2 img { position: relative; z-index: 1; }
@media (max-width: 600px) { .ap-pic2 .nz { --s: 36px !important; } }

/* D'où nous venons : texte justifié, le ruban passe en dessous */
.ap-roots .ap-col--c { margin-left: auto; margin-right: auto; }
.ap-roots .ap-col--c p { text-align: center; text-wrap: balance; hyphens: none; }
.ap-roots .ap-ribbon { margin: 80px 0 0; }
.ap-roots .rb-w { font-size: clamp(20px, 2.4vw, 34px); }
.ap-roots .rb-track { gap: 16px; }
.ap-roots .rb-track svg { width: clamp(32px, 3vw, 44px); height: clamp(32px, 3vw, 44px); padding: 6px; border-width: 1.5px; }

/* Fenny de « Pourquoi PHENEQ » sans ombre */
.ap-pic2 img { filter: none; }

/* Section 3 : une ligne jaune parcourt les étapes, chaque étape s'allume quand elle l'atteint */
.ap-steps { position: relative; padding-top: 34px; }
.ap-track { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--card-edge); list-style: none; }
.ap-track i { position: absolute; left: 0; top: -1px; height: 4px; width: calc(var(--prog, 0) * 100%); border-radius: 4px; background: var(--accent); box-shadow: 0 0 12px rgba(254, 233, 81, .8); }
.ap-track i::after { content: ''; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #1D1D1B; opacity: calc(var(--prog, 0) * 20); }
.ap-step { z-index: 1; transition: background .6s var(--ease3), border-color .6s, transform .6s var(--ease), box-shadow .6s; }
.ap-step:not(:last-child)::after { display: none; }
.ap-step .n { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; margin-bottom: 30px; border-radius: 999px; background: var(--page); border: 1px solid var(--card-edge); transition: background .5s, color .5s, border-color .5s; }
.ap-ico { position: absolute; right: 24px; top: 22px; width: 54px; height: 54px; overflow: visible; stroke-dasharray: 220; stroke-dashoffset: 220; opacity: .25; transition: stroke-dashoffset 1.4s var(--ease3), opacity .6s, transform .8s cubic-bezier(.34, 1.56, .64, 1); transform: scale(.8) rotate(-8deg); }
.ap-step.lit .ap-ico { stroke-dashoffset: 0; opacity: 1; transform: none; }
.ap-step.lit { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(29, 29, 27, .08); }
.ap-step.lit .n { background: var(--accent); color: var(--ink); border-color: transparent; }
.ap-step--end { background: var(--card); border-color: var(--card-edge); }
.ap-step--end .n, .ap-step--end h3 { color: inherit; } .ap-step--end p { color: var(--fg-soft); } .ap-step--end .n { color: var(--fg-faint); }
.ap-step--end.lit { background: var(--accent); border-color: transparent; }
.ap-step--end.lit h3, .ap-step--end.lit p, .ap-step--end.lit .n { color: var(--ink); }
.ap-step--end.lit .n { background: #F6F7F4; }
.ap-step--end.lit .ap-ico { animation: ico-beat 1.6s ease-in-out 1s infinite; }
@keyframes ico-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 48% { transform: scale(1); } }
@media (max-width: 1000px) {
  .ap-steps { padding: 0 0 0 26px; }
  .ap-track { left: 4px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .ap-track i { left: -1px; top: 0; width: 4px; height: calc(var(--prog, 0) * 100%); }
  .ap-track i::after { right: -5px; top: auto; bottom: -7px; }
  .ap-step .n { margin-bottom: 20px; }
}

/* Section 4 : les fondateurs arrivent chacun de leur côté avec leurs outils, puis un ruban culture défile au rythme du scroll */
.founder { position: relative; }
.founder.f-l[data-reveal] { transform: translate(-60px, 30px) rotate(-2.5deg); }
.founder.f-r[data-reveal] { transform: translate(60px, 30px) rotate(2.5deg); }
.founder[data-reveal] { transition: opacity .9s var(--ease3), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.founder[data-reveal].in { transform: none; }
.f-tools { display: flex; gap: 10px; margin-top: 22px; }
.f-tools svg { width: 46px; height: 46px; padding: 8px; border-radius: 14px; background: var(--page); border: 1px solid var(--card-edge); overflow: visible;
  opacity: 0; transform: translateY(16px) scale(.6); transition: opacity .4s, transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.founder.in .f-tools svg { opacity: 1; transform: none; }
.founder.in .f-tools svg:nth-child(1) { transition-delay: .7s; } .founder.in .f-tools svg:nth-child(2) { transition-delay: .82s; } .founder.in .f-tools svg:nth-child(3) { transition-delay: .94s; }
.founder .f-tools svg:hover { transform: translateY(-4px) rotate(-8deg); transition-delay: 0s; }

.ap-ribbon { position: relative; margin: 100px 0 10px; display: grid; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rb-row { overflow: hidden; }
.rb-track { display: flex; align-items: center; gap: 22px; width: max-content; will-change: transform; transform: translate3d(var(--x, 0px), 0, 0); }
.rb-b .rb-track { margin-left: -40%; }
.rb-w { font: 500 clamp(30px, 4.4vw, 64px)/1 var(--t); letter-spacing: -.03em; color: var(--fg); white-space: nowrap; }
.rb-b .rb-w { color: transparent; -webkit-text-stroke: 1.2px var(--fg-faint); }
.rb-track svg { flex: none; width: clamp(44px, 5vw, 70px); height: clamp(44px, 5vw, 70px); padding: 10px; border-radius: 30%; background: #F2F2ED; border: 2px solid #1D1D1B; overflow: visible; }
.rb-a .rb-track svg:nth-of-type(2n) { background: var(--accent); }
.rb-b .rb-track svg:nth-of-type(2n+1) { background: var(--accent); }
.rb-track svg:nth-of-type(odd) { transform: rotate(-6deg); } .rb-track svg:nth-of-type(even) { transform: rotate(5deg); }
@media (max-width: 1000px) { .ap-ribbon { margin-top: 70px; gap: 10px; } .rb-track { gap: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .nz { display: none; }
  .ap-ico { stroke-dashoffset: 0; opacity: 1; transform: none; }
  .founder[data-reveal], .f-tools svg { transform: none; opacity: 1; }
}

/* Écrans peu hauts : tout « Et maintenant » reste visible quand on arrive tout en bas, au-dessus du pied de page */
@media (min-width: 1001px) and (max-height: 820px) {
  .select { padding: min(80px, 10vh) 0 104px; }
  .select .lead { margin-top: 10px; } .select .btn { margin-top: 16px; }
  footer.foot { padding-top: 36px; }
  .foot .base { margin-top: 18px; }
  .foot a { padding: 2px 0; } .foot .mono { margin-bottom: 8px; }
}

/* Western : une boule de broussaille roule sur la dune de devant, de la droite vers la gauche, en boucle */
.tw { position: absolute; left: 104%; bottom: 9%; width: clamp(34px, 3.8vw, 56px); aspect-ratio: 1; z-index: 1; animation: tw-go 28s linear infinite; animation-delay: 2s; }
.tw-hop { animation: tw-hop 1.15s cubic-bezier(.3, .6, .5, 1) infinite; }
.tw-roll { display: block; width: 100%; height: 100%; overflow: visible; animation: tw-roll 2s linear infinite; }
.tw .pl { fill: none; stroke: var(--dn-line); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 1.2s ease; }
@keyframes tw-go {
  0.00% { left: 104.0%; bottom: calc(13.08% - 4px); }
  3.00% { left: 99.3%; bottom: calc(12.93% - 4px); }
  6.00% { left: 94.7%; bottom: calc(12.28% - 4px); }
  9.00% { left: 90.0%; bottom: calc(12.23% - 4px); }
  12.00% { left: 85.3%; bottom: calc(12.51% - 4px); }
  15.00% { left: 80.7%; bottom: calc(12.85% - 4px); }
  18.00% { left: 76.0%; bottom: calc(12.95% - 4px); }
  21.00% { left: 71.3%; bottom: calc(12.58% - 4px); }
  24.00% { left: 66.7%; bottom: calc(11.52% - 4px); }
  27.00% { left: 62.0%; bottom: calc(9.79% - 4px); }
  30.00% { left: 57.3%; bottom: calc(7.91% - 4px); }
  33.00% { left: 52.7%; bottom: calc(6.61% - 4px); }
  36.00% { left: 48.0%; bottom: calc(6.14% - 4px); }
  39.00% { left: 43.3%; bottom: calc(6.44% - 4px); }
  42.00% { left: 38.7%; bottom: calc(7.52% - 4px); }
  45.00% { left: 34.0%; bottom: calc(9.16% - 4px); }
  48.00% { left: 29.3%; bottom: calc(10.82% - 4px); }
  51.00% { left: 24.7%; bottom: calc(11.98% - 4px); }
  54.00% { left: 20.0%; bottom: calc(12.38% - 4px); }
  57.00% { left: 15.3%; bottom: calc(12.12% - 4px); }
  60.00% { left: 10.7%; bottom: calc(11.42% - 4px); }
  63.00% { left: 6.0%; bottom: calc(10.46% - 4px); }
  66.00% { left: 1.3%; bottom: calc(9.48% - 4px); }
  69.00% { left: -3.3%; bottom: calc(9.23% - 4px); }
  72.00% { left: -8.0%; bottom: calc(9.23% - 4px); }
  100% { left: -8%; bottom: 9%; }
}
@keyframes tw-hop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-22%); } 70% { transform: translateY(-4%); } }
@keyframes tw-roll { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .tw { display: none; } }

/* marge légèrement plus grande entre « Pourquoi PHENEQ » et « Et maintenant » */
.ap-fennec { padding-bottom: 60px; }

/* ---------- Téléphone ---------- */
@media (max-width: 600px) {
  /* cubes « Le bruit ne laisse pas de trace » : la ligne la plus longue (11 cubes) tient dans l'écran, même marge à gauche et à droite */
  .ap-punch { --tile: min(36px, calc((100vw - 2 * var(--gut) - 55px) / 11)); }
  /* Fenny pensif : son corps (et pas la queue) au centre de l’écran */
  .ap-pic2 img { translate: 10% 0; }
  /* icônes en cercle autour de Fenny, éparpillées (plus ou moins loin, espacement irrégulier) */
  .ap-pic2 { margin: 95px 0; }
  .ap-pic2 .nz:nth-child(1) { left: 50.0% !important; top: -19.3% !important; }
  .ap-pic2 .nz:nth-child(2) { left: 70.5% !important; top: 5.3% !important; }
  .ap-pic2 .nz:nth-child(3) { left: 88.9% !important; top: 5.9% !important; }
  .ap-pic2 .nz:nth-child(4) { left: 87.5% !important; top: 60.0% !important; }
  .ap-pic2 .nz:nth-child(5) { left: 91.8% !important; top: 86.0% !important; }
  .ap-pic2 .nz:nth-child(6) { left: 63.7% !important; top: 103.1% !important; }
  .ap-pic2 .nz:nth-child(7) { left: 55.8% !important; top: 129.3% !important; }
  .ap-pic2 .nz:nth-child(8) { left: 30.1% !important; top: 101.0% !important; }
  .ap-pic2 .nz:nth-child(9) { left: 13.5% !important; top: 96.4% !important; }
  .ap-pic2 .nz:nth-child(10) { left: 14.6% !important; top: 44.4% !important; }
  .ap-pic2 .nz:nth-child(11) { left: 7.4% !important; top: 16.3% !important; }
  .ap-pic2 .nz:nth-child(12) { left: 34.6% !important; top: -3.7% !important; }
  /* haut de page : les icônes volantes descendent sous le texte, au-dessus des dunes */
  .flies .f1 { top: 54% !important; } .flies .f4 { top: 53% !important; }
  .flies .f2 { top: 60% !important; } .flies .f7 { top: 66% !important; }
}

/* tablette : fondateurs côte à côte (comme sur ordinateur) dans deux cartes plus compactes ; icônes d'outils alignées en bas des deux cartes */
@media (min-width: 601px) and (max-width: 1000px) {
  .ap-founders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
  .ap-founders .founder { padding: 24px 22px 22px; }
  .ap-founders .founder h3 { font-size: 30px; margin: 16px 0 12px; }
  .ap-founders .founder p { font-size: 15px; line-height: 1.6; }
  .ap-founders .f-tools { margin-top: auto; padding-top: 20px; }
  .ap-founders .f-tools svg { width: 42px; height: 42px; }
}

/* téléphone : le fil du soleil traversait le titre et le texte du héros ; il s'estompe désormais juste au-dessus des dunes
   (le calque du soleil est agrandi vers le haut pour garder le soleil et son yoyo entiers, puis masqué en fondu) */
@media (max-width: 600px) {
  .ap-land .dl-s { top: -260px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 170px, #000 240px); mask-image: linear-gradient(to bottom, transparent 0, transparent 170px, #000 240px); }
  .ap-land .dl-s .sunsvg { bottom: calc(240px * .36); }
}

/* téléphone, 2026-11-23 : même rythme que l'accueil (36 px en haut et en bas, ~72 px entre deux blocs au lieu de ~150) ;
   la dernière section garde de la place pour Fenny assis sur la ligne du pied de page */
@media (max-width: 600px) {
  .chapter, .ap-fennec { padding-top: 36px; padding-bottom: 36px; }
  section.select { padding: 36px 0 190px; }
  footer.foot { padding-top: 56px; }
}
