/* ==========================================================================
   Accueil
   ========================================================================== */
.page-home { background: var(--ink-2); color: var(--text-2); --reveal-y: 20px; --reveal-d: .75s; }

@keyframes pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* --------------------------------------------------------------------------
   Parcours d'ouverture : bannière → SHINY → bulles → expertises
   -------------------------------------------------------------------------- */
.journey { position: relative; height: 400vh; height: 400svh; background: var(--ink); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; background: var(--ink); isolation: isolate; }
.stage .site-header { z-index: 12; }

.pl { position: absolute; top: 0; will-change: transform; }
.pl--nebula {
  left: 50%; width: 170vw; height: 230vh;
  background:
    radial-gradient(38% 24% at 66% 20%, rgba(255, 238, 51, .13), transparent 70%),
    radial-gradient(30% 20% at 20% 56%, rgba(255, 255, 255, .045), transparent 70%),
    radial-gradient(34% 22% at 62% 88%, rgba(255, 238, 51, .07), transparent 70%);
}
.pl--haze { left: 28%; width: 95vw; height: 70vh; border-radius: 999px; background: radial-gradient(closest-side, rgba(255, 238, 51, .08), rgba(255, 238, 51, .025) 55%, transparent); }
.pl--planet { left: 80%; width: min(62vw, 880px); aspect-ratio: 1; }
.pl--planet i { position: absolute; inset: -16% -46%; border-radius: 50%; border: 1px solid rgba(244, 244, 242, .08); transform: rotate(-14deg); }
.pl--planet span {
  position: absolute; inset: 0; border-radius: 999px;
  background: radial-gradient(circle at 34% 30%, #1a1a1e, #0b0b0e 62%);
  box-shadow: inset 0 0 160px rgba(255, 238, 51, .08), inset 22px 26px 60px rgba(255, 238, 51, .07), 0 0 120px rgba(255, 238, 51, .06);
}
.pl--floor { left: 50%; width: 150vw; height: 30vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .05), rgba(255, 238, 51, .025) 50%, transparent); }

.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-canvas--reveal { z-index: 7; }
.stage-canvas--near { z-index: 14; }

.ring {
  position: absolute; left: 50%; top: 50%; width: 80vmin; height: 80vmin; border-radius: 999px;
  opacity: 0; will-change: transform, opacity;
}
.ring--0 { border: 1.5px solid rgba(255, 238, 51, .5); box-shadow: 0 0 50px rgba(255, 238, 51, .1), inset 0 0 50px rgba(255, 238, 51, .06); }
.ring--1 { border: 1px solid rgba(244, 244, 242, .22); }
.ring--2 { border: 1.5px solid rgba(255, 238, 51, .35); }
.core {
  position: absolute; left: 50%; top: 50%; width: 70vmin; height: 70vmin; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 247, 170, .36), rgba(255, 238, 51, .12) 42%, transparent);
  opacity: 0; pointer-events: none; will-change: transform, opacity;
}

.layer { position: absolute; inset: 0; pointer-events: none; }
.layer--4 { z-index: 4; }
.layer--6 { z-index: 6; }
[data-star] {
  position: absolute; display: block; pointer-events: none;
  will-change: transform, opacity; opacity: 0; transform: translate3d(0, 0, 0);
}
[data-star] svg { width: 100%; height: 100%; display: block; fill: var(--yellow); }

.bub {
  position: absolute; border-radius: 999px; opacity: 0; will-change: transform, opacity;
  border: 1px solid rgba(244, 244, 242, .2);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .09), rgba(255, 255, 255, .015) 58%, transparent 72%);
}
.bub--warm {
  border-color: rgba(255, 238, 51, .38);
  background: radial-gradient(circle at 34% 28%, rgba(255, 238, 51, .14), rgba(255, 255, 255, .015) 58%, transparent 72%);
}

.word {
  position: absolute; left: 0; right: 0; top: 50%; height: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.word__inner {
  position: relative;
  font-family: var(--f-display); font-variation-settings: 'wdth' 100, 'wght' 800;
  font-size: 31vw; line-height: .78; letter-spacing: -.045em;
  color: transparent; -webkit-text-stroke: 2px var(--yellow); white-space: nowrap;
  transform-origin: 50% 50%; /* will-change géré par home.js (activé uniquement pendant la plongée) */
}

.lens {
  --mx: 50%; --my: 50%;
  position: absolute; inset: 0; z-index: 7; opacity: 0; pointer-events: none;
  background: radial-gradient(300px 300px at var(--mx) var(--my), rgba(255, 238, 51, .07), rgba(255, 238, 51, .02) 45%, transparent 74%);
}
.beam { position: absolute; left: 50%; top: 0; width: 1px; height: 38%; z-index: 7; background: linear-gradient(180deg, rgba(255, 238, 51, .5), transparent); pointer-events: none; }

.hero-in {
  position: absolute; inset: 0; z-index: 8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(110px, 14vh, 160px) var(--gutter) clamp(70px, 9vh, 110px);
  pointer-events: none; will-change: transform, opacity;
}
.hero-in__eyebrow { display: block; margin-top: 14px; font: 600 13px/1.6 var(--f-mono); letter-spacing: .2em; color: var(--yellow); }
.hero-in__title {
  margin: clamp(22px, 2.6vw, 38px) 0 0; width: 100%; max-width: min(92vw, 1500px);
  font-family: var(--f-display); font-variation-settings: 'wdth' 96, 'wght' 650;
  font-size: clamp(28px, 4.3vw, 76px); line-height: 1.06; letter-spacing: -.035em; color: var(--text);
  text-wrap: balance;
}
.hero-in__title > span { display: inline-block; }
.hero-in__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(26px, 3vw, 40px); pointer-events: auto; }

.comet { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; opacity: 0; pointer-events: none; z-index: 13; }
.comet svg { width: 100%; height: 100%; display: block; fill: var(--yellow); filter: drop-shadow(0 0 22px rgba(255, 238, 51, .95)); }
.dark { position: absolute; inset: 0; z-index: 10; background: radial-gradient(90% 70% at 50% 50%, rgba(8, 8, 10, .55), var(--ink) 92%); opacity: 0; pointer-events: none; }

/* Étape 4 : les cinq expertises */
.expertise {
  position: absolute; inset: 0; z-index: 11;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 3.4vw, 48px);
  padding: 96px var(--gutter) 52px; color: var(--text);
  opacity: 0; visibility: hidden; overflow: hidden;
}
.expertise .glow-follow { --size: 820px; background: radial-gradient(circle, rgba(255, 238, 51, .075), transparent 62%); filter: none; }
.expertise__head {
  position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: 1320px; width: 100%; margin: 0 auto; opacity: 0; will-change: transform, opacity, filter;
}
.expertise__tag { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.expertise__tag span { font: 600 10px/1 var(--f-mono); letter-spacing: .2em; color: var(--yellow); }
.excards {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 18px); width: 100%; max-width: 1320px; margin: 0 auto;
}
.excard {
  opacity: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 14px;
  padding: clamp(28px, 2.6vw, 40px) clamp(16px, 1.4vw, 22px) clamp(24px, 2.2vw, 32px);
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, #131316, #0d0d0f);
  color: inherit; transition: border-color .35s, box-shadow .35s;
  will-change: transform, opacity, filter;
}
.excard:hover { border-color: rgba(255, 238, 51, .55); box-shadow: 0 22px 60px rgba(255, 238, 51, .1); color: inherit; }
.excard__icon {
  display: block; box-sizing: border-box; width: clamp(64px, 5.6vw, 92px); height: clamp(64px, 5.6vw, 92px);
  margin-bottom: clamp(6px, 1vw, 14px); color: var(--yellow);
  transition: transform .45s var(--ease), filter .45s;
}
.excard__icon svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.excard:hover .excard__icon { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 0 18px rgba(255, 238, 51, .7)); }
.excard__title {
  font-family: var(--f-display); font-variation-settings: 'wdth' 100, 'wght' 650;
  font-size: clamp(15px, 1.15vw, 18px); line-height: 1.12; letter-spacing: -.01em; color: var(--text); text-align: center;
  /* titres : exactement 2 lignes réservées, jamais 3 */
  height: 2.24em; display: -webkit-box; -webkit-box-pack: center; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis;
}
.excard__text { margin-top: 0; font: 400 13px/1.6 var(--f-body); color: rgba(244, 244, 242, .55); text-align: center; text-wrap: pretty; }
@media (min-width: 640px) { .excards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .excards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1420px) { .excards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* scènes courtes : on resserre au lieu de déborder */
@media (max-height: 760px) {
  .expertise { padding: 78px var(--gutter) 40px; gap: 20px; }
  .excards { gap: 14px; }
  .excard { padding: 22px 20px 20px; gap: 11px; }
  .excard__title { font-size: clamp(15px, 1.2vw, 17px); }
  .excard__text { font-size: 12.5px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
}
@media (max-height: 620px) {
  .expertise { padding: 66px 26px 26px; gap: 12px; }
  .expertise__head { gap: 6px; }
  .excard { padding: 16px 18px; gap: 8px; }
  .excard__text { font-size: 12px; line-height: 1.5; -webkit-line-clamp: 2; line-clamp: 2; }
}
@media (max-width: 640px) {
  .excard__text { display: none; }
  .excard { padding: 16px 18px; gap: 8px; }
}

.stage-ind {
  position: absolute; right: var(--gutter); bottom: calc(clamp(34px, 4vw, 54px) + clamp(28px, 4vw, 56px)); z-index: 12;
  display: flex; align-items: center; gap: 10px;
  font: 600 10px/1 var(--f-mono); letter-spacing: .2em; color: rgba(244, 244, 242, .5); pointer-events: none;
}
.stage-ind__n { color: var(--yellow); }
.stage-ind__line { width: 34px; height: 1px; background: rgba(244, 244, 242, .25); }
.stage-hint {
  position: absolute; z-index: 12; left: var(--gutter); bottom: calc(clamp(34px, 4vw, 54px) + clamp(28px, 4vw, 56px));
  pointer-events: none; font: 400 9.5px/1 var(--f-mono); letter-spacing: .18em; color: rgba(244, 244, 242, .45);
}
@media (max-width: 900px) { .stage-hint { display: none; } }
@media (max-width: 600px) { .stage-ind { bottom: 84px; } }

/* --------------------------------------------------------------------------
   Un seul partenaire (fond clair)
   -------------------------------------------------------------------------- */
.partner {
  position: relative; z-index: 1; overflow: hidden;
  margin-top: clamp(-56px, -4vw, -28px);
  padding: clamp(90px, 11vw, 160px) var(--gutter) clamp(110px, 13vw, 190px);
  background: var(--paper); color: var(--ink-text);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
}
.partner .glow-follow { background: radial-gradient(circle, rgba(224, 194, 0, .13), transparent 62%); }
.partner__inner { position: relative; max-width: 1320px; margin: 0 auto; }
.partner__title { max-width: 40ch; text-wrap: balance; }
.chain {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(12px, 1.2vw, 18px); margin-top: clamp(28px, 3.4vw, 51px);
}
.chain__step {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  min-width: 0; min-height: 128px; padding: 20px 16px; box-sizing: border-box;
  border-radius: 26px; background: #fff; border: 1px solid rgba(16, 16, 18, .1); color: var(--ink-text);
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.chain__step:hover { border-color: var(--yellow-deep); transform: translateY(-4px); box-shadow: 0 22px 50px rgba(16, 16, 18, .1); }
.chain__step--accent, .chain__step--accent:hover { background: var(--yellow); border-color: var(--yellow); }
.chain__num { font: 600 11px/1 var(--f-mono); letter-spacing: .16em; color: rgba(16, 16, 18, .4); }
.chain__step--accent .chain__num { color: rgba(8, 8, 10, .6); }
.chain__label {
  font-family: var(--f-display); font-variation-settings: 'wdth' 106, 'wght' 700;
  font-size: clamp(18px, 1.7vw, 26px); line-height: 1.05; letter-spacing: -.02em;
  max-width: 100%; overflow-wrap: anywhere; hyphens: auto;
}

/* --------------------------------------------------------------------------
   Agence web (maquette d'écran en perspective)
   -------------------------------------------------------------------------- */
.agency {
  position: relative; overflow: hidden; padding: clamp(90px, 10vw, 150px) 40px;
  background: radial-gradient(130% 95% at -8% 112%, rgba(255, 238, 51, .085), rgba(255, 238, 51, .03) 34%, transparent 62%), var(--ink-2);
}
.agency .glow-follow { --size: 820px; background: radial-gradient(circle, rgba(255, 238, 51, .075), transparent 62%); filter: none; }
.agency__inner { position: relative; max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 6vw, 96px); }
.mac { flex: 1 1 420px; min-width: min(300px, 100%); position: relative; perspective: 1400px; }
.mac__halo {
  position: absolute; left: 50%; top: 48%; width: min(560px, 110%); height: min(560px, 110%);
  transform: translate(-50%, -50%); border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 238, 51, .2), transparent 64%); filter: blur(14px); pointer-events: none;
}
.twinkle { position: absolute; animation: pulse 3.4s ease-in-out infinite; }
.twinkle svg { width: 100%; height: 100%; display: block; fill: var(--yellow); filter: drop-shadow(0 0 10px rgba(255, 238, 51, .8)); }
.mac__body { position: relative; transform: rotateY(-11deg) rotateX(5deg); transform-style: preserve-3d; transition: transform .9s var(--ease); }
.mac:hover .mac__body { transform: rotateY(-4deg) rotateX(2deg); }
.mac__frame {
  position: relative; padding: 11px 11px 22px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(165deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, .01));
  box-shadow: 0 44px 110px rgba(0, 0, 0, .65), 0 0 70px rgba(255, 238, 51, .1);
}
.mac__screen {
  position: relative; aspect-ratio: 16/10; border-radius: 13px; overflow: hidden;
  background: linear-gradient(170deg, #101113, #07070a); border: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-direction: column;
}
.mac__glare { position: absolute; left: -10%; top: -30%; width: 70%; height: 120%; background: linear-gradient(100deg, rgba(255, 255, 255, .07), transparent 60%); transform: rotate(8deg); pointer-events: none; }
.mac__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mac__logo { font-family: var(--f-display); font-variation-settings: 'wdth' 118, 'wght' 700; font-size: clamp(8px, .85vw, 11px); letter-spacing: .02em; color: var(--text-2); }
.mac__menu { display: flex; gap: 7px; }
.mac__menu span { width: clamp(16px, 2vw, 26px); height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.mac__cta { padding: 5px 11px; border-radius: 999px; background: var(--yellow); color: var(--ink-2); font: 600 clamp(6px, .62vw, 8px)/1 var(--f-body); white-space: nowrap; }
.mac__content { flex: 1; display: flex; gap: clamp(12px, 1.6vw, 22px); padding: clamp(16px, 2vw, 28px); }
.mac__text { flex: 1.25; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.mac__text span { display: block; }
.mac__media { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mac__tile { flex: 1.4; border-radius: 9px; border: 1px solid rgba(255, 238, 51, .3); background: linear-gradient(160deg, rgba(255, 238, 51, .14), rgba(255, 238, 51, .02)); display: flex; align-items: center; justify-content: center; }
.mac__tile i { width: clamp(12px, 1.5vw, 20px); height: clamp(12px, 1.5vw, 20px); opacity: .9; }
.mac__tile--plain { flex: 1; border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .035); }
.mac__neck { position: relative; width: clamp(70px, 9vw, 110px); height: clamp(26px, 3vw, 40px); margin: 0 auto; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border-left: 1px solid rgba(255, 255, 255, .08); border-right: 1px solid rgba(255, 255, 255, .08); }
.mac__foot { position: relative; width: clamp(150px, 19vw, 230px); height: 10px; margin: 0 auto; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05)); box-shadow: 0 26px 50px rgba(0, 0, 0, .6); }

.agency__copy { flex: 1 1 420px; min-width: min(300px, 100%); display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 28px); }
.agency__title {
  margin: 0; font-family: var(--f-display); font-variation-settings: 'wdth' 98, 'wght' 700;
  font-size: clamp(28px, 4.4vw, 45px); line-height: 1; letter-spacing: -.035em; text-wrap: balance;
}
.agency__text { margin: 0; max-width: 54ch; font: 400 clamp(14px, 1.5vw, 17px)/1.75 var(--f-body); color: rgba(242, 242, 240, .7); }
.agency__text--lead { color: #fff; font-weight: 500; }
.agency__text--lead strong { font-weight: 500; color: var(--text-2); }
.agency__copy .btn { align-self: flex-start; justify-content: center; margin-top: 6px; }

/* --------------------------------------------------------------------------
   Réalisations
   -------------------------------------------------------------------------- */
.work { position: relative; padding: clamp(80px, 9vw, 130px) 40px; background: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.work__inner { max-width: 1140px; margin: 0 auto; display: flex; flex-direction: column; gap: 44px; }
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.work__intro { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 260px; }
.work__title { max-width: 26ch; text-wrap: balance; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.project {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px;
  padding: clamp(14px, 1.4vw, 20px) clamp(14px, 1.4vw, 20px) clamp(22px, 2vw, 30px);
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .09); background: var(--ink-3);
  color: inherit; text-decoration: none;
}
a.project { cursor: pointer; }
.js .project[data-r] { transition: border-color .35s, opacity var(--reveal-d) var(--ease), transform var(--reveal-d) var(--ease); }
.project:hover { border-color: rgba(255, 238, 51, .45); color: inherit; }
.project .glow-follow { --size: 320px; background: radial-gradient(circle, rgba(255, 238, 51, .16), transparent 65%); filter: none; }
.project__media { position: relative; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: var(--ink-2); }
.project__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); transform: scale(1.001); }
a.project:hover .project__media img { transform: scale(1.045); }
.project__text { position: relative; display: flex; flex-direction: column; gap: 8px; }
.project__name { font-family: var(--f-display); font-variation-settings: 'wdth' 116, 'wght' 600; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.1; text-transform: uppercase; }
.project__desc { font: 400 clamp(13px, 1.05vw, 14.5px)/1.65 var(--f-body); color: rgba(242, 242, 240, .55); }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Méthode (variante accueil)
   -------------------------------------------------------------------------- */
.page-home .method__title { text-wrap: balance; }
.page-home .step__text p { margin: 0 0 10px; }
.js .step[data-r] { transition: background .4s, opacity .9s var(--ease), transform .9s var(--ease); }

/* --------------------------------------------------------------------------
   Témoignages
   -------------------------------------------------------------------------- */
.reviews {
  position: relative; padding: clamp(80px, 9vw, 130px) 40px;
  background: radial-gradient(130% 95% at -8% 112%, rgba(255, 238, 51, .085), rgba(255, 238, 51, .03) 34%, transparent 62%), var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.reviews__inner { max-width: 1140px; margin: 0 auto; display: flex; flex-direction: column; gap: 44px; }
.stack-head { display: flex; flex-direction: column; gap: 14px; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.review {
  margin: 0; display: flex; flex-direction: column; gap: 22px; padding: 32px 30px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .09); background: var(--ink-3);
  transition: transform .35s var(--ease), border-color .35s;
}
.js .review[data-r] { transition: transform .35s var(--ease), border-color .35s, opacity var(--reveal-d) var(--ease); }
.review:hover { border-color: rgba(255, 238, 51, .4); }
.review__quote { margin: 0; font-family: var(--f-display); font-variation-settings: 'wdth' 112, 'wght' 500; font-size: 19px; line-height: 1.45; color: var(--text-2); }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar { flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .2); }
.review__name { font: 400 11.5px/1.4 var(--f-body); color: rgba(242, 242, 240, .5); }

/* --------------------------------------------------------------------------
   Estimateur
   -------------------------------------------------------------------------- */
.estimate { position: relative; padding: clamp(80px, 9vw, 130px) 40px; background: var(--ink-3); border-top: 1px solid rgba(255, 255, 255, .06); }
.estimate__inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(34px, 4vw, 52px); }
.estimate__title { max-width: 24ch; }
.estimator { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .82fr); gap: clamp(24px, 3vw, 50px); align-items: start; }
.estimator__steps { display: flex; flex-direction: column; gap: clamp(34px, 3.6vw, 50px); min-width: 0; }
.est-block { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.est-block__title { font-family: var(--f-display); font-variation-settings: 'wdth' 116, 'wght' 700; font-size: clamp(17px, 1.7vw, 23px); line-height: 1; margin: 0; font-weight: 400; }
.est-block__title span { color: var(--yellow); }

.est-list { display: flex; flex-direction: column; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.est-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 1.6vw, 22px);
  padding: 19px clamp(10px, 1.2vw, 18px); border-top: 1px solid rgba(255, 255, 255, .07);
  background: transparent; cursor: pointer; transition: background .35s;
}
.est-row.is-on { background: rgba(255, 238, 51, .07); }
.est-row:hover { background: rgba(255, 255, 255, .035); }
.est-row__num { font: 600 10px/1 var(--f-mono); letter-spacing: .1em; color: rgba(242, 242, 240, .34); transition: color .3s; }
.est-row__main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.est-row__line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.est-row__title { font-family: var(--f-display); font-variation-settings: 'wdth' 116, 'wght' 600; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.15; color: var(--text-2); transition: color .3s; }
.est-row__desc { font: 400 12.5px/1.5 var(--f-body); color: rgba(242, 242, 240, .48); }
.est-row__from { font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; color: rgba(242, 242, 240, .5); white-space: nowrap; transition: color .3s; }
.est-row.is-on .est-row__num, .est-row.is-on .est-row__title { color: var(--yellow); }
.est-row.is-on .est-row__from { color: rgba(255, 238, 51, .8); }
.incl-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; flex: none; padding: 0;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: rgba(242, 242, 240, .6);
  font: 400 8px/1 var(--f-body); cursor: pointer;
  transition: transform .45s var(--ease), color .3s, border-color .3s, background .3s;
}
.incl-btn[aria-expanded="true"] { color: var(--yellow); border-color: rgba(255, 238, 51, .55); transform: rotate(180deg); }
.incl-btn:hover { color: var(--yellow); border-color: rgba(255, 238, 51, .55); background: rgba(255, 238, 51, .08); }
.incl-panel { display: block; overflow: hidden; height: 0; opacity: 0; transition: height .5s var(--ease), opacity .45s; }
.incl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 0; padding: 14px 0 4px; list-style: none; }
.incl-grid li { display: flex; align-items: center; gap: 9px; font: 400 12px/1.45 var(--f-body); color: rgba(242, 242, 240, .6); }
.incl-grid i { width: 9px; height: 9px; flex: none; opacity: .55; }

.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt-grid[hidden] { display: none; }
.opt-grid--single { grid-template-columns: minmax(0, 1fr); }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin: 0;
  padding: 15px 16px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .015);
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .35s, background .35s;
}
.opt__main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.opt__tick { width: 13px; height: 13px; flex: none; opacity: .22; transition: opacity .35s, transform .45s; }
.opt__label { font: 500 13px/1.35 var(--f-body); color: rgba(242, 242, 240, .82); transition: color .3s; }
.opt__price { font: 600 11px/1 var(--f-mono); color: var(--yellow); opacity: .55; white-space: nowrap; transition: opacity .3s; }
.opt[aria-pressed="true"] { border-color: rgba(255, 238, 51, .55); background: rgba(255, 238, 51, .07); }
.opt[aria-pressed="true"] .opt__tick { opacity: 1; transform: rotate(72deg) scale(1.15); }
.opt[aria-pressed="true"] .opt__label { color: var(--text-2); }
.opt[aria-pressed="true"] .opt__price { opacity: 1; }

.ecard {
  position: sticky; top: 26px; display: flex; flex-direction: column; gap: 20px;
  padding: clamp(22px, 2.2vw, 30px) clamp(20px, 2vw, 28px); border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.ecard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ecard__brand { font-family: var(--f-display); font-variation-settings: 'wdth' 118, 'wght' 700; font-size: 15px; letter-spacing: .02em; }
.ecard__tag { font: 400 9px/1 var(--f-mono); letter-spacing: .16em; color: rgba(242, 242, 240, .42); }
.ecard__price { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.ecard__halo { position: absolute; left: -14%; top: -54px; width: min(340px, 120%); height: 200px; background: radial-gradient(circle, rgba(255, 238, 51, .13), transparent 68%); filter: blur(8px); pointer-events: none; }
.ecard__range {
  position: relative; font-family: var(--f-display); font-variation-settings: 'wdth' 118, 'wght' 700;
  font-size: clamp(25px, 2.9vw, 38px); line-height: 1.02; letter-spacing: -.03em; color: var(--yellow);
  text-shadow: 0 0 40px rgba(255, 238, 51, .3);
}
.ecard__star { position: relative; width: 13px; height: 13px; margin-top: 4px; flex: none; animation: pulse 2.8s ease-in-out infinite; }
.ecard__star svg { width: 100%; height: 100%; display: block; fill: var(--yellow); filter: drop-shadow(0 0 8px rgba(255, 238, 51, .7)); }
.ecard__sum { display: flex; flex-direction: column; margin: 0; }
.ecard__sum div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.ecard__sum dt { font: 600 10px/1 var(--f-mono); letter-spacing: .16em; color: rgba(242, 242, 240, .4); }
.ecard__sum dd { margin: 0; font: 500 12.5px/1.55 var(--f-body); color: var(--text-2); text-align: right; white-space: pre-line; }
.ecard__sum dd.is-empty { color: rgba(242, 242, 240, .45); }
.ecard__note { margin: 0; font: 400 12px/1.65 var(--f-body); color: rgba(242, 242, 240, .5); }
.ecard__form { display: flex; flex-direction: column; gap: 11px; }
.ecard__form label { display: flex; flex-direction: column; gap: 6px; }
.ecard__form label[hidden] { display: none; }
.ecard__form label > span { font: 600 9.5px/1 var(--f-mono); letter-spacing: .16em; color: rgba(242, 242, 240, .4); }
.ecard__form input {
  width: 100%; box-sizing: border-box; margin: 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .02); color: var(--text-2);
  font: 400 13px/1.3 var(--f-body); outline: none; transition: border-color .3s, background .3s;
}
.ecard__form input:focus { border-color: rgba(255, 238, 51, .55); background: rgba(255, 238, 51, .04); }
.ecard__error { font: 400 11.5px/1.45 var(--f-body); color: #ff8a6b; }
.ecard__error[hidden] { display: none; }
.ecard__actions { display: flex; flex-direction: column; gap: 10px; }
.ecard__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border: 0; border-radius: 999px;
  background: var(--yellow); color: var(--ink-2); font: 600 12.5px/1 var(--f-body); cursor: pointer;
  transition: box-shadow .35s, transform .35s;
}
.ecard__submit:hover { box-shadow: 0 0 40px rgba(255, 238, 51, .45); transform: translateY(-2px); }
.ecard__submit:disabled { opacity: .6; cursor: progress; }
/* champ piège anti-robots, invisible pour les visiteurs */
.ecard__form .ecard__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ecard__ok {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 238, 51, .4); background: rgba(255, 238, 51, .07); color: var(--yellow);
  font: 600 11.5px/1.4 var(--f-body); text-align: center;
}
.ecard__ok[hidden] { display: none; }
.ecard__restart {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: rgba(242, 242, 240, .65);
  font: 600 11.5px/1 var(--f-body); cursor: pointer; transition: border-color .3s, color .3s, background .3s;
}
.ecard__restart:hover { border-color: rgba(255, 238, 51, .5); color: var(--yellow); background: rgba(255, 238, 51, .05); }

@media (max-width: 980px) {
  .estimator { grid-template-columns: minmax(0, 1fr); }
  .opt-grid { grid-template-columns: 1fr; }
  /* la carte reprend sa place en fin de bloc ; une barre compacte garde le prix visible pendant le choix */
  .ecard {
    position: relative; top: auto;
    flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 16px 18px;
  }
  .ecard__sum, .ecard__note, .ecard__star { display: none; }
  .ecard__range { font-size: 22px; }
  .ecard__actions { flex: 1 1 210px; flex-direction: row; flex-wrap: wrap; }
  .ecard__form { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .ecard__form label { flex: 1 1 150px; gap: 0; }
  .ecard__form label > span { display: none; }
  .ecard__error { flex: 1 1 100%; }
}
@media (max-width: 980px) and (hover: none) {
  /* évite le zoom automatique d'iOS sur les champs */
  .ecard__form input { font-size: 16px; }
}

/* Barre d'estimation compacte (tablette et mobile) */
.ecard-bar {
  position: fixed; z-index: 50; left: 12px; right: 70px; bottom: 12px;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)), var(--ink-3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .35s, visibility 0s .5s;
}
.ecard-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .35s, visibility 0s; }
.ecard-bar__range {
  font-family: var(--f-display); font-variation-settings: 'wdth' 118, 'wght' 700;
  font-size: 20px; line-height: 1; letter-spacing: -.03em; color: var(--yellow); text-shadow: 0 0 40px rgba(255, 238, 51, .3); white-space: nowrap;
}
.ecard-bar .ecard__submit { padding: 13px 18px; white-space: nowrap; }
@media (max-width: 980px) { .ecard-bar { display: flex; } }
@media (max-width: 360px) { .ecard-bar__range { font-size: 17px; } .ecard-bar .ecard__submit { padding: 12px 14px; } }
@media (max-width: 620px) {
  .est-row__desc { display: none; }
  .incl-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { position: relative; padding: clamp(80px, 9vw, 130px) 40px; background: #fff; color: var(--ink-text); border-top: 1px solid rgba(16, 16, 18, .08); }
.faq__inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid rgba(16, 16, 18, .12); }
.faq__item:last-child { border-bottom: 1px solid rgba(16, 16, 18, .12); }
.faq__q {
  display: flex; align-items: center; gap: 18px; width: 100%; margin: 0; padding: 22px 4px;
  border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
}
.faq__q-text { flex: 1; font-family: var(--f-display); font-variation-settings: 'wdth' 114, 'wght' 600; font-size: clamp(15px, 1.6vw, 19px); text-transform: uppercase; }
.faq__icon { color: var(--yellow-ink); font-size: 18px; font-family: var(--f-body); transition: transform .35s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(135deg); }
.faq__panel { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq__a { margin: 0 0 22px; max-width: 62ch; font: 400 13.5px/1.7 var(--f-body); color: rgba(16, 16, 18, .66); }
.faq__a p { margin: 0; }

/* --------------------------------------------------------------------------
   Démarrer
   -------------------------------------------------------------------------- */
.final { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 150px) 40px; background: var(--ink-3); border-top: 1px solid rgba(255, 255, 255, .06); }
.final .glow-follow { filter: none; }
.final__inner { position: relative; max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px; }
.final__copy { flex: 1; min-width: min(280px, 100%); display: flex; flex-direction: column; gap: 18px; }
.final__title { max-width: 20ch; }
.final__text { margin: 0; max-width: 100%; font: 400 clamp(13px, 1.4vw, 15px)/1.7 var(--f-body); color: rgba(242, 242, 240, .6); }
.final__actions { display: flex; flex-direction: column; gap: 12px; min-width: min(230px, 100%); }
.final__actions .btn { justify-content: center; gap: 10px; padding: 17px 32px; }
.final__call { --btn-glow: 0 0 46px rgba(255, 238, 51, .55); background: var(--yellow); color: var(--ink-2); transition: box-shadow .35s, transform .35s; }
.final__call:hover { transform: translateY(-2px); box-shadow: var(--btn-glow); color: var(--ink-2); }
.final__write { border: 1px solid rgba(255, 255, 255, .2); color: var(--text-2); transition: border-color .3s, background .3s; }
.final__write:hover { border-color: var(--yellow); background: rgba(255, 238, 51, .08); color: var(--text-2); }

/* Les sections à marge latérale fixe (40 px) respirent mieux sur petit écran */
@media (max-width: 600px) {
  .agency, .work, .reviews, .estimate, .faq, .final { padding-left: 20px; padding-right: 20px; }
}

/* --------------------------------------------------------------------------
   Smartphones (≤ 640 px) — ajustements propres au mobile, sans effet sur tablette et ordinateur
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Bannière : seule la proposition de valeur (titre) est affichée, la ligne des expertises est masquée */
  .hero-in__eyebrow { display: none; }
  .hero-in__title { font-size: clamp(31px, 9.2vw, 40px); line-height: 1.07; }

  /* Expertises : cartes en liste compacte, pictogramme à gauche et intitulé à droite */
  .excards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .excard { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 13px 18px; border-radius: 16px; }
  .excard__icon { flex: none; width: 40px; height: 40px; margin: 0; }
  .excard__title { display: block; height: auto; font-size: 15.5px; line-height: 1.25; text-align: left; }

  /* Agence : écran d'ordinateur un peu moins imposant, proportions conservées */
  .mac { flex: none; width: 84%; min-width: 0; margin: 0 auto; }
  .mac__neck { width: 20%; height: auto; aspect-ratio: 70/26; }
  .mac__foot { width: 43%; }

  /* Réalisations : carrousel horizontal (une carte entière + l'amorce de la suivante) */
  .projects {
    display: flex; gap: 14px; margin: 0 -20px; padding: 2px 20px 6px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .projects::-webkit-scrollbar { display: none; }
  .project { box-sizing: border-box; flex: 0 0 84%; min-width: 0; scroll-snap-align: start; gap: 16px; }

  /* Témoignages : les deux avis tiennent ensemble à l'écran */
  .reviews__inner { gap: 28px; }
  .reviews__grid { gap: 12px; }
  .review { gap: 14px; padding: 20px 20px 18px; border-radius: 16px; }
  .review__quote { font-size: 15px; line-height: 1.5; }
  .review__author { gap: 10px; }
  .review__avatar { width: 28px; height: 28px; }

  /* Démarrer : composition centrée */
  .final__inner { flex-direction: column; align-items: center; gap: 30px; text-align: center; }
  .final__copy { flex: none; width: 100%; align-items: center; }
  .final__text { max-width: 34ch; }
  .final__actions { width: 100%; max-width: 300px; }
}
/* écrans peu hauts (iPhone SE…) : les deux témoignages restent visibles ensemble */
@media (max-width: 640px) and (max-height: 760px) {
  .reviews__grid { gap: 10px; }
  .review { gap: 12px; padding: 16px 18px 15px; }
  .review__quote { font-size: 14px; line-height: 1.45; }
}
/* très petits écrans (≤ 620 px de haut) : la liste des expertises reste entièrement visible */
@media (max-width: 640px) and (max-height: 620px) {
  .excards { gap: 8px; }
  .excard { padding: 10px 16px; gap: 14px; }
  .excard__icon { width: 34px; height: 34px; }
}
