/* =========================================================
   GeoAqua Green — Feuille de style principale
   ========================================================= */
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sun: #FDB515;
  --sun-soft: #FFE7A3;
  --leaf: #8DC63F;
  --green: #1FA463;
  --lagoon: #0F8FA6;
  --ocean: #0B3E6F;
  --navy: #0B2A4A;
  --ink: #071A2E;
  --text: #2B3A48;
  --muted: #6B7A88;
  --line: #E3E8EC;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F3;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 20px 50px -24px rgba(7, 26, 46, .35);
  --max: 1240px;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Image du hero : assets/img/hero.jpg — vidéo : assets/video/hero.mp4 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-weight: 800; }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 500; }
h2 strong { font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.frame { padding: 16px; }
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hl { color: var(--sun); }

/* ---------- Boutons : pilule + flèche ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 15px; color: var(--ink);
  cursor: pointer; border: 0; background: none; font-family: inherit; padding: 0;
}
.btn .pill {
  background: var(--sun); padding: 14px 24px; border-radius: 999px; transition: background .25s;
}
.btn .arrow {
  width: 48px; height: 48px; border-radius: 50%; background: var(--sun);
  display: grid; place-items: center; transition: transform .3s ease, background .25s;
}
.btn .arrow svg { width: 18px; height: 18px; }
.btn:hover .arrow { transform: rotate(45deg); }
.btn:hover .pill, .btn:hover .arrow { background: #FFC93F; }
.btn.small .pill { padding: 10px 18px; font-size: 14px; }
.btn.small .arrow { width: 40px; height: 40px; }
.btn.ghost .pill, .btn.ghost .arrow { background: transparent; border: 1.5px solid currentColor; }
.btn.ghost { color: #fff; }
.btn.ghost:hover .pill, .btn.ghost:hover .arrow { background: rgba(255,255,255,.12); }
.btn.dark .pill, .btn.dark .arrow { background: var(--ink); color: #fff; }
.btn.dark:hover .pill, .btn.dark:hover .arrow { background: var(--navy); }

/* ---------- En-tête ---------- */
.header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 34px;
}
.logo img { height: 40px; width: auto; }
.nav {
  display: flex; gap: 4px; padding: 6px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
}
.nav a {
  color: #fff; font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: 999px; transition: background .2s;
}
.nav a:hover { background: rgba(255,255,255,.14); }
.nav a.active { background: #fff; color: var(--ink); }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

/* En-tête collant (apparaît au défilement) */
.sticky {
  position: fixed; top: 12px; left: 50%; transform: translate(-50%, -140%);
  width: min(var(--max), 100% - 24px); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.sticky.show { transform: translate(-50%, 0); }
.sticky .logo img { height: 32px; }
.sticky .nav { background: transparent; border: 0; backdrop-filter: none; }
.sticky .nav a { color: var(--ink); }
.sticky .nav a:hover { background: var(--bg-soft); }
.sticky .nav a.active { background: var(--ink); color: #fff; }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 28px; gap: 8px;
  transform: translateY(-100%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.open { transform: none; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-menu a.link { font-size: 34px; font-weight: 700; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: min(880px, 94vh); display: flex; align-items: flex-end;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(7,26,46,.55) 0%, rgba(7,26,46,0) 28%, rgba(7,26,46,0) 45%, rgba(7,26,46,.82) 100%),
    url("../img/hero.jpg");
  background-size: cover; background-position: center 60%;
  color: #fff;
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: end;
  padding: 0 44px 56px;
}
.hero h1 {
  color: #fff; text-transform: uppercase;
  font-size: clamp(40px, 5.6vw, 82px); line-height: .98; letter-spacing: -0.025em;
}
.hero-side p { color: rgba(255,255,255,.86); margin-bottom: 24px; font-size: 17px; max-width: 420px; }
.reviews {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 8px 18px 8px 8px; border-radius: 999px;
}
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.reviews .stars { color: var(--sun); letter-spacing: 2px; font-size: 14px; line-height: 1; }
.reviews small { display: block; font-size: 12px; color: rgba(255,255,255,.8); font-weight: 600; }

.hero-chips {
  position: absolute; z-index: 2; top: 38%; left: 52%; display: flex; gap: 12px;
}
.chip {
  width: 108px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; padding: 6px; color: #fff; font-size: 11px; font-weight: 700; text-align: center;
  animation: float 6s ease-in-out infinite;
}
.chip:nth-child(2) { animation-delay: -3s; }
.chip .ico { height: 62px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 5px; }
.chip .ico svg { width: 34px; height: 34px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Bandeau confiance + chiffres ---------- */
.trust { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: center; }
.trust .label { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.partners { display: flex; flex-wrap: wrap; gap: 14px 38px; align-items: center; }
.partners span { font-size: 21px; font-weight: 800; color: #9AA6B1; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; }
.partners span i { width: 20px; height: 20px; border-radius: 6px; background: #C9D1D8; display: inline-block; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.stat b { display: block; font-size: clamp(44px, 5vw, 60px); font-weight: 800; color: var(--green); line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 14px; color: var(--muted); display: block; margin-top: 8px; line-height: 1.4; }

/* ---------- À propos (carte soleil) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.sun-card {
  background: var(--sun); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; color: var(--ink);
}
.sun-card .stripes { position: absolute; right: -60px; bottom: -60px; width: 260px; opacity: .22; }
.sun-card .logo-mini { height: 34px; width: auto; position: relative; align-self: flex-start; }
.sun-card small { font-weight: 700; font-size: 14px; display: block; margin-bottom: 4px; position: relative; }
.sun-card .big { font-size: 72px; font-weight: 800; line-height: .95; letter-spacing: -0.04em; position: relative; }
.sun-card .big + span { font-size: 22px; font-weight: 700; position: relative; }
.about-right p.intro { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; color: var(--muted); margin-bottom: 22px; }
.about-right p.intro b { color: var(--ink); font-weight: 700; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.img-card { position: relative; border-radius: var(--radius-sm); overflow: hidden; min-height: 200px; }
.img-card .cap { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; color: #fff; font-weight: 700; font-size: 20px; line-height: 1.15; display: flex; justify-content: space-between; align-items: flex-end; }
.img-card .cap small { font-size: 13px; font-weight: 600; opacity: .85; }
.img-card.light .cap { color: var(--ink); top: 18px; bottom: auto; }

/* ---------- Emplacements photo (à remplacer) ---------- */
.ph {
  position: relative; width: 100%; height: 100%; min-height: inherit;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 10px, transparent 10px 22px),
    linear-gradient(160deg, var(--c1, #0F8FA6), var(--c2, #0B2A4A));
  display: grid; place-items: center; overflow: hidden;
}
.ph.sun { --c1: #FDB515; --c2: #1FA463; }
.ph.green { --c1: #8DC63F; --c2: #0F6E4A; }
.ph.water { --c1: #2BB3C8; --c2: #0B3E6F; }
.ph.ink { --c1: #12324F; --c2: #071A2E; }
.ph.soft { --c1: #DDF0E4; --c2: #BFE3EA; }
.ph::after {
  content: attr(data-label); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.92); background: rgba(7,26,46,.35); padding: 7px 12px; border-radius: 999px;
  white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis;
}
.ph.soft::after { color: var(--ink); background: rgba(255,255,255,.6); }
.ph.nolabel::after { display: none; }
.img-card .ph::before, .svc-card .ph::before, .proj .ph::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,26,46,.6)); z-index: 1;
}

/* ---------- Services (bandeau photo) ---------- */
.services {
  position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 90px 0 60px;
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(7,26,46,.72), rgba(7,26,46,.55) 40%, rgba(7,26,46,.92)), url("../img/hero.jpg");
  background-size: cover; background-position: center 30%;
}
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding: 0 44px; margin-bottom: 140px; }
.services-head h2 { color: #fff; font-weight: 400; }
.services-head p { color: rgba(255,255,255,.8); max-width: 360px; margin-bottom: 18px; font-size: 16px; }
.tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); margin-bottom: 22px; }
.tabs button { font-family: inherit; font-weight: 700; font-size: 14px; color: #fff; background: none; border: 0; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.tabs button.on { background: var(--sun); color: var(--ink); }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 44px 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.svc-card {
  flex: 0 0 min(520px, 86%); scroll-snap-align: start;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px;
  background: rgba(7,26,46,.55); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px; padding: 14px; color: #fff;
}
.svc-card.hide { display: none; }
.svc-card .txt { padding: 10px 6px 6px 10px; display: flex; flex-direction: column; }
.svc-card .tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 8px; }
.svc-card h3 { color: #fff; font-weight: 600; margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.55; margin-bottom: 18px; flex: 1; }
.svc-card .btn { color: #fff; }
.svc-card .media { border-radius: 14px; overflow: hidden; min-height: 210px; }
.rail-nav { display: flex; gap: 10px; justify-content: flex-end; padding: 22px 44px 0; }
.round {
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit;
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s;
}
.round svg { width: 18px; height: 18px; }
.round.fill { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.round:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }

/* ---------- Domaines (2 grandes cartes) ---------- */
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end; margin-bottom: 50px; }
.domains { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.domain {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 34px;
}
.domain .ph { position: absolute; inset: 0; }
.domain .ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(7,26,46,.85)); }
.domain > *:not(.ph) { position: relative; z-index: 2; }
.domain .n { font-size: 13px; font-weight: 800; letter-spacing: .16em; color: var(--sun); margin-bottom: 10px; }
.domain h3 { color: #fff; font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.domain ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.domain li { font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.domain .btn { color: #fff; }

/* ---------- Pourquoi nous (section foncée) ---------- */
.dark { background: var(--ink); color: #fff; border-radius: var(--radius); position: relative; overflow: hidden; }
.dark h2 { color: #fff; }
.dark .lead { color: rgba(255,255,255,.7); }
.dark .deco { position: absolute; right: -140px; top: -140px; width: 480px; opacity: .08; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.why { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px; min-height: 260px; display: flex; flex-direction: column; }
.why:nth-child(odd) { background: var(--sun); }
.why .ic { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; margin-bottom: auto; }
.why:nth-child(even) .ic { background: var(--sun-soft); color: var(--ink); }
.why .ic svg { width: 24px; height: 24px; }
.why h3 { font-size: 20px; margin: 28px 0 10px; }
.why p { font-size: 14.5px; line-height: 1.55; color: rgba(7,26,46,.72); }

/* ---------- Processus ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { border-top: 2px solid var(--line); padding-top: 24px; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 14px; font-weight: 800; color: var(--green); letter-spacing: .1em; }
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 60px; height: 2px; background: var(--sun); }
.step h3 { margin: 14px 0 10px; font-size: 21px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Témoignages ---------- */
.testi-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.testi-board { position: relative; min-height: 520px; }
.dots-map {
  position: absolute; inset: 0; border-radius: var(--radius);
  background-image: radial-gradient(circle, #B8D9C6 1.6px, transparent 1.8px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 75%);
}
.testi {
  position: relative; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line); max-width: 420px;
}
.testi + .testi { margin: 26px 0 0 auto; }
.testi .who { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.testi .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.testi .who b { display: block; color: var(--ink); line-height: 1.2; }
.testi .who small { color: var(--muted); font-size: 13px; }
.testi p { font-size: 15.5px; color: var(--text); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.testi .loc { font-size: 13px; font-weight: 700; color: var(--green); display: flex; gap: 6px; align-items: center; }
.testi .stars { color: var(--sun); margin-left: auto; letter-spacing: 1px; }

/* ---------- Équipe ---------- */
.team-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.team-head .navs { display: flex; gap: 10px; color: var(--ink); }
.team { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.team::-webkit-scrollbar { display: none; }
.member { flex: 0 0 calc((100% - 54px) / 4); scroll-snap-align: start; }
.member .media { height: 320px; border-radius: 20px; overflow: hidden; margin-bottom: 14px; position: relative; }
.member b { display: block; color: var(--ink); font-size: 18px; }
.member small { color: var(--muted); font-size: 14px; }

/* ---------- Formulaire devis ---------- */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.quote .side { position: relative; min-height: 560px; }
.quote .side .ph { position: absolute; inset: 0; }
.quote .side .over { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 34px; color: #fff; }
.quote .side .over h3 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.quote .side .over p { color: rgba(255,255,255,.85); }
.quote form { padding: 48px; }
.quote h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
.quote .lead { margin-bottom: 28px; font-size: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 15px 20px; outline: none; transition: border .2s;
}
.field textarea { border-radius: 22px; min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A4A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.wa { color: #25D366; }

/* ---------- Bandeau CTA ---------- */
.cta {
  background: var(--sun); border-radius: var(--radius); padding: 60px; position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
}
.cta h2 { max-width: 640px; }
.cta .deco { position: absolute; right: 26%; top: -80px; width: 280px; opacity: .2; }
.cta .btn { position: relative; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); border-radius: var(--radius); padding: 70px 0 30px; margin-top: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo img { height: 42px; margin-bottom: 20px; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: var(--sun); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.socials a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; font-size: 14px; flex-wrap: wrap; gap: 10px; }
.giant { font-size: clamp(56px, 13.2vw, 200px); font-weight: 800; letter-spacing: -0.05em; line-height: .8; color: rgba(255,255,255,.05); margin-top: 40px; white-space: nowrap; overflow: hidden; }

/* ---------- Bannière des pages intérieures ---------- */
.page-hero {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 520px; color: #fff;
  display: flex; align-items: flex-end;
}
.page-hero .ph { position: absolute; inset: 0; }
.page-hero .ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,46,.55), rgba(7,26,46,.1) 40%, rgba(7,26,46,.85)); z-index: 1; }
.page-hero.photo { background-image: linear-gradient(180deg, rgba(7,26,46,.55), rgba(7,26,46,.1) 40%, rgba(7,26,46,.88)), url("../img/hero.jpg"); background-size: cover; background-position: center 60%; }
.page-hero .inner { position: relative; z-index: 2; padding: 0 44px 50px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.crumb { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.crumb a:hover { color: var(--sun); }
.page-hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(40px, 5.4vw, 76px); line-height: .98; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 400px; }

/* ---------- Blocs service détaillés ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.rev .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; min-height: 460px; position: relative; }
.feature-media .badge {
  position: absolute; z-index: 3; left: 20px; bottom: 20px; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
}
.feature-media .badge b { font-size: 26px; color: var(--green); display: block; line-height: 1; font-weight: 800; }
.feature-media .badge span { font-size: 13px; color: var(--muted); font-weight: 600; }
.feature .num { font-size: 14px; font-weight: 800; color: var(--green); letter-spacing: .16em; }
.feature h2 { margin: 14px 0 18px; font-size: clamp(30px, 3.4vw, 46px); }
.feature p { color: var(--muted); margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071A2E' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 1px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-size: 19px; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 22px; transition: transform .3s, background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sun); }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---------- Projets ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button { font-family: inherit; font-weight: 700; font-size: 15px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 11px 22px; border-radius: 999px; cursor: pointer; }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj { border-radius: 22px; overflow: hidden; background: var(--bg-soft); transition: transform .3s; }
.proj:hover { transform: translateY(-6px); }
.proj.hide { display: none; }
.proj .media { height: 260px; position: relative; }
.proj .media .pill-tag { position: absolute; z-index: 2; top: 16px; left: 16px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.proj .body { padding: 22px; }
.proj .body small { color: var(--green); font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.proj h3 { margin: 8px 0 14px; font-size: 21px; }
.proj .kpis { display: flex; gap: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.proj .kpis b { display: block; color: var(--ink); font-size: 18px; font-weight: 800; }
.proj .kpis span { font-size: 12.5px; color: var(--muted); }

/* ---------- À propos ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { border-radius: 22px; padding: 32px; background: var(--bg-soft); }
.value .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--ink); color: var(--sun); display: grid; place-items: center; margin-bottom: 26px; }
.value .ic svg { width: 26px; height: 26px; }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 15.5px; }
.big-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.big-stats .stat { background: #fff; border-radius: 22px; padding: 28px; border: 1px solid var(--line); }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 140px 1fr; gap: 30px; padding: 26px 0; border-top: 1px solid var(--line); }
.tl b { font-size: 30px; color: var(--green); font-weight: 800; }
.tl h3 { margin-bottom: 6px; font-size: 20px; }
.tl p { color: var(--muted); }
.certs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.certs span { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.info-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; position: relative; overflow: hidden; }
.info-card h3 { color: #fff; font-size: 28px; margin-bottom: 26px; }
.info-card .row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.info-card .row .ic { flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; }
.info-card .row .ic svg { width: 20px; height: 20px; }
.info-card .row small { display: block; color: rgba(255,255,255,.6); font-size: 13px; }
.info-card .row b { font-size: 17px; }
.info-card .deco { position: absolute; right: -90px; bottom: -90px; width: 300px; opacity: .08; }
.map { border-radius: var(--radius); overflow: hidden; height: 420px; margin-top: 20px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header .btn, .sticky .btn { display: none; }
  .burger { display: grid; place-items: center; }
  .sticky .burger { background: var(--bg-soft); color: var(--ink); }
  .hero-inner, .trust, .about-grid, .split-head, .testi-wrap, .quote, .feature, .faq, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-chips { display: none; }
  .why-grid, .steps, .big-stats { grid-template-columns: 1fr 1fr; }
  .projects, .values { grid-template-columns: 1fr 1fr; }
  .member { flex-basis: calc((100% - 18px) / 2); }
  .feature.rev .feature-media { order: 0; }
  .feature { gap: 34px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .services-head { flex-direction: column; align-items: flex-start; margin-bottom: 60px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .frame { padding: 8px; }
  .section { padding: 72px 0; }
  .header { padding: 18px; }
  .logo img { height: 32px; }
  .hero-inner { padding: 0 22px 34px; }
  .services-head, .rail, .rail-nav { padding-left: 22px; padding-right: 22px; }
  .page-hero .inner { padding: 0 22px 34px; flex-direction: column; align-items: flex-start; }
  .about-cards, .domains, .why-grid, .steps, .projects, .values, .big-stats, .fields { grid-template-columns: 1fr; }
  .svc-card { grid-template-columns: 1fr; }
  .svc-card .media { min-height: 170px; order: -1; }
  .member { flex-basis: 80%; }
  .quote form, .cta, .info-card { padding: 30px 24px; }
  .tl { grid-template-columns: 1fr; gap: 6px; }
  .dark .container { width: calc(100% - 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip { animation: none; }
}

/* Vidéo du hero (par-dessus l'image, sous le texte) */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,26,46,.55) 0%, rgba(7,26,46,0) 28%, rgba(7,26,46,0) 45%, rgba(7,26,46,.82) 100%); }

/* =========================================================
   HERO CINÉMATIQUE — plein écran, sans bord, titre centré
   ========================================================= */
.hero.cine {
  border-radius: 0; min-height: 100vh; min-height: 100svh;
  align-items: center; justify-content: center; text-align: center;
  background-position: center;
}
.hero.cine .hero-video { animation: kenburns 22s ease-out both; transform-origin: 50% 60%; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
/* Dégradé + vignette pour l'ambiance cinéma */
.hero.cine::after {
  background:
    radial-gradient(ellipse 75% 70% at 50% 50%, rgba(7,26,46,0) 30%, rgba(7,26,46,.55) 100%),
    linear-gradient(180deg, rgba(7,26,46,.55) 0%, rgba(7,26,46,.12) 25%, rgba(7,26,46,.18) 60%, rgba(7,26,46,.85) 100%);
}
/* Grain de film */
.hero.cine::before {
  content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.hero.cine .header { padding: 30px 48px; }
.hero-center {
  position: relative; z-index: 2; width: min(1180px, 100% - 40px);
  display: flex; flex-direction: column; align-items: center; padding: 120px 0 140px;
}
.hero-center .reviews { margin-bottom: 34px; }
.hero-center .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: rgba(255,255,255,.8);
  margin-bottom: 26px; display: flex; align-items: center; gap: 16px;
}
.hero-center .kicker::before, .hero-center .kicker::after { content: ""; width: 46px; height: 1px; background: rgba(255,255,255,.5); }
.hero.cine h1 {
  font-size: clamp(42px, 7.4vw, 118px); line-height: .94; letter-spacing: -0.035em;
  text-shadow: 0 10px 60px rgba(7,26,46,.45);
}
.hero-center p.sub { color: rgba(255,255,255,.88); font-size: clamp(16px, 1.4vw, 19px); max-width: 640px; margin: 30px auto 34px; }
.hero-center .ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Apparition du titre ligne par ligne */
.hero.cine .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero.cine .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero.cine .line:nth-child(2) > span { animation-delay: .15s; }
.hero.cine .line:nth-child(3) > span { animation-delay: .3s; }
@keyframes rise { to { transform: none; } }
.hero.cine .fade { opacity: 0; animation: fadeup 1.2s ease forwards; }
.hero.cine .d1 { animation-delay: .1s; } .hero.cine .d2 { animation-delay: .65s; } .hero.cine .d3 { animation-delay: .85s; } .hero.cine .d4 { animation-delay: 1.1s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Barre du bas : vignettes, indicateur de défilement, lieu */
.hero-bottom {
  position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 34px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; color: #fff;
}
.hero-bottom .hero-chips { position: static; }
.hero-bottom .chip { width: 96px; }
.hero-bottom .chip .ico { height: 52px; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.scroll-cue i { width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 20px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--sun); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.geo { justify-self: end; text-align: right; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); line-height: 1.7; }
.geo b { color: #fff; font-weight: 800; }

.hero-wrap { position: relative; }
@media (max-width: 1080px) {
  .hero-bottom .hero-chips { display: none; }
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .scroll-cue { justify-self: start; }
}
@media (max-width: 680px) {
  .hero.cine .header { padding: 18px; }
  .hero-center { padding: 110px 0 120px; }
  .hero-center .kicker { letter-spacing: .24em; font-size: 11px; }
  .hero-center .kicker::before, .hero-center .kicker::after { width: 22px; }
  .hero-bottom { left: 20px; right: 20px; bottom: 22px; }
  .hero-center .reviews small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.cine .hero-video, .hero.cine::before { animation: none; }
  .hero.cine .line > span, .hero.cine .fade { animation: none; transform: none; opacity: 1; }
}
/* ajustements hero cinématique */
.hero.cine h1 { font-size: clamp(40px, 5.9vw, 100px); text-shadow: none; }
.hero-center { padding: 110px 0 150px; }
.hero-center .reviews { margin-bottom: 26px; }
.hero-center .kicker { margin-bottom: 22px; }
.hero-center p.sub { margin: 26px auto 30px; }
.btn.ghost .pill, .btn.ghost .arrow { color: #fff; }
@media (max-height: 820px) and (min-width: 681px) { .hero-center .reviews { display: none; } }
@media (max-width: 680px) {
  .hero-bottom { display: none; }
  .hero-center { padding: 100px 0 60px; }
  .hero-center .kicker::before, .hero-center .kicker::after { display: none; }
}
@media (min-width: 681px) { .hero-bottom { right: 116px; } }
@media (max-width: 680px) { .stats[style] { grid-template-columns: 1fr 1fr !important; } }

.count { font-variant-numeric: tabular-nums; }
.stat b .count { display: inline; font-size: inherit; color: inherit; margin: 0; line-height: inherit; }

/* =========================================================
   CARTE « -70 % » — design premium + apparition animée
   ========================================================= */
.sun-card2 {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius);
  min-height: 380px; padding: 28px; color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 90% at 0% 0%, #FFE08A 0%, rgba(255,224,138,0) 55%),
    linear-gradient(150deg, #FFC93C 0%, #FDB515 45%, #F59E0B 100%);
  box-shadow: 0 30px 60px -30px rgba(245,158,11,.55), inset 0 1px 0 rgba(255,255,255,.5);
}
/* Apparition : la carte se dévoile du bas vers le haut */
.sc-wrap.reveal { opacity: 1; transform: none; display: flex; }
.sc-wrap > .sun-card2 { flex: 1; }
.sun-card2 { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1); }
.sc-wrap.in .sun-card2 { clip-path: inset(0 0 0 0 round var(--radius)); }
/* Grand symbole qui se dessine bande par bande */
.sc-mark { position: absolute; z-index: -1; right: -70px; bottom: -70px; width: 300px; opacity: .28; transform: rotate(-8deg) scale(.9); transition: transform 1.6s cubic-bezier(.2,.8,.2,1) .3s; }
.sc-wrap.in .sun-card2 .sc-mark { transform: rotate(0) scale(1); }
.sc-mark svg { width: 100%; height: auto; display: block; }
.sc-mark path { stroke-dasharray: 300; stroke-dashoffset: 300; }
.sc-wrap.in .sun-card2 .sc-mark path { animation: draw 1.1s cubic-bezier(.6,0,.2,1) forwards; }
.sc-wrap.in .sun-card2 .sc-mark path:nth-child(1) { animation-delay: .45s } .sc-wrap.in .sun-card2 .sc-mark path:nth-child(2) { animation-delay: .52s }
.sc-wrap.in .sun-card2 .sc-mark path:nth-child(3) { animation-delay: .59s } .sc-wrap.in .sun-card2 .sc-mark path:nth-child(4) { animation-delay: .66s }
.sc-wrap.in .sun-card2 .sc-mark path:nth-child(5) { animation-delay: .73s } .sc-wrap.in .sun-card2 .sc-mark path:nth-child(6) { animation-delay: .80s }
.sc-wrap.in .sun-card2 .sc-mark path:nth-child(7) { animation-delay: .87s } .sc-wrap.in .sun-card2 .sc-mark path:nth-child(8) { animation-delay: .94s }
.sc-wrap.in .sun-card2 .sc-mark path:nth-child(9) { animation-delay: 1.01s }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Reflet lumineux qui balaie la carte */
.sun-card2::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%);
}
.sc-wrap.in .sun-card2::after { animation: sheen 1.4s ease 1.2s forwards; }
@keyframes sheen { to { transform: translateX(120%); } }

.sc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sc-head img { height: 30px; width: auto; }
.sc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(7,26,46,.9); color: var(--sun); padding: 7px 12px 7px 9px; border-radius: 999px; }
.sc-chip svg { width: 15px; height: 15px; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sc-body > *, .sc-head { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.sc-wrap.in .sun-card2 .sc-head { opacity: 1; transform: none; transition-delay: .5s; }
.sc-wrap.in .sun-card2 .sc-body > * { opacity: 1; transform: none; }
.sc-wrap.in .sun-card2 .sc-body > :nth-child(1) { transition-delay: .6s } .sc-wrap.in .sun-card2 .sc-body > :nth-child(2) { transition-delay: .7s }
.sc-wrap.in .sun-card2 .sc-body > :nth-child(3) { transition-delay: .8s } .sc-wrap.in .sun-card2 .sc-body > :nth-child(4) { transition-delay: .9s }
.sc-body small { font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; }
.sc-big { display: flex; align-items: flex-start; font-weight: 800; letter-spacing: -0.05em; line-height: .85; }
.sc-big .count { font-size: clamp(84px, 8vw, 112px); font-variant-numeric: tabular-nums; }
.sc-minus { font-size: clamp(60px, 6vw, 80px); margin-right: 2px; line-height: 1.05; }
.sc-big em { font-style: normal; font-size: clamp(36px, 3.4vw, 46px); margin: 8px 0 0 4px; }
.sc-body p { font-size: 19px; font-weight: 700; margin: 8px 0 20px; }
.sc-bars { display: grid; gap: 9px; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.5); border-radius: 16px; padding: 12px 14px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sc-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; }
.sc-row b { font-size: 12.5px; min-width: 62px; text-align: right; }
.sc-track { height: 8px; border-radius: 8px; background: rgba(7,26,46,.1); overflow: hidden; }
.sc-track i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.sc-track .b1 { background: var(--ink); }
.sc-track .b2 { background: linear-gradient(90deg, var(--green), #34C77B); }
.sc-wrap.in .sun-card2 .sc-track .b1 { width: 100%; transition-delay: 1s; }
.sc-wrap.in .sun-card2 .sc-track .b2 { width: 30%; transition-delay: 1.35s; }
.sun-card2:hover .sc-mark { transform: rotate(6deg) scale(1.05); transition-duration: .8s; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .sun-card2 { clip-path: none; transition: none; }
  .sc-mark path { stroke-dashoffset: 0; } .sun-card2::after { display: none; }
  .sc-body > *, .sc-head { opacity: 1; transform: none; }
  .sc-track .b1 { width: 100%; } .sc-track .b2 { width: 30%; }
}
.stat b { white-space: nowrap; }
@media (max-width: 680px) { .count-stats .stat b { font-size: 38px; } }
/* Photos réelles dans les cartes */
.media { position: relative; }
img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.svc-card:hover img.cover { transform: scale(1.06); }
.domain > img.cover { position: absolute; z-index: 0; object-position: center 45%; }
.domain > .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,26,46,.05) 25%, rgba(7,26,46,.88)); }
.domain:hover > img.cover { transform: scale(1.05); }

/* =========================================================
   TÉMOIGNAGES INTERACTIFS — carte du Maroc + cartes animées
   ========================================================= */
.t-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--ink); }
.t-count { margin-left: 14px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-count b { color: var(--ink); font-size: 22px; }
.t-progress { margin-top: 18px; height: 3px; max-width: 260px; border-radius: 3px; background: var(--line); overflow: hidden; }
.t-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--green)); }
.t-progress i.run { animation: tprog var(--dur, 6s) linear forwards; }
.t-board:hover ~ * .t-progress i, .t-paused .t-progress i { animation-play-state: paused; }
@keyframes tprog { to { width: 100%; } }

.t-board { position: relative; min-height: 560px; outline: none; }
.t-map { position: absolute; left: 8%; top: 0; width: 70%; height: 100%; }
.t-pin { position: absolute; z-index: 3; transform: translate(-50%, -50%); background: none; border: 0; padding: 8px; cursor: pointer;
  /* la carte svg occupe left:8% width:70% : on recale les pins dans ce cadre */
  margin-left: 0; }
.t-pin .dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(7,26,46,.25); position: relative; transition: transform .3s, background .3s; }
.t-pin .dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; }
.t-pin.on .dot { background: var(--sun); transform: scale(1.35); }
.t-pin.on .dot::after { border-color: var(--sun); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.t-pin:hover .dot { transform: scale(1.3); }
.t-pin .lbl { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 12px; font-weight: 800; color: var(--ink);
  background: #fff; padding: 4px 10px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(7,26,46,.3); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.t-pin:hover .lbl, .t-pin.on .lbl { opacity: 1; transform: translate(-50%, -2px); }
.t-pin.on .lbl { background: var(--ink); color: #fff; }

.t-cards { position: absolute; right: 0; bottom: 20px; width: min(420px, 100%); min-height: 250px; z-index: 4; }
.tcard {
  position: absolute; inset: auto 0 0 0; background: #fff; border-radius: 22px; padding: 24px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -28px rgba(7,26,46,.45);
  opacity: 0; transform: translateY(24px) scale(.96); pointer-events: none;
  transition: opacity .55s ease, transform .65s cubic-bezier(.2,.8,.2,1);
}
.tcard.on { opacity: 1; transform: none; pointer-events: auto; }
.tcard.out { opacity: 0; transform: translateY(-18px) scale(.98); }
.tcard .who { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.tcard .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: 0 0 46px; }
.tcard .who b { display: block; color: var(--ink); line-height: 1.2; }
.tcard .who small { color: var(--muted); font-size: 13px; }
.tcard .stars { color: var(--sun); margin-left: auto; letter-spacing: 1px; }
.tcard p { font-size: 16px; color: var(--text); line-height: 1.55; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.t-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-foot .loc { font-size: 13px; font-weight: 700; color: var(--green); display: flex; gap: 6px; align-items: center; }
.t-chip { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--bg-soft); padding: 5px 10px; border-radius: 999px; }
.t-kpi { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.t-kpi b { color: var(--ink); font-size: 18px; font-weight: 800; }
@media (max-width: 1080px) { .t-board { min-height: 620px; } .t-map { left: 0; width: 80%; height: 70%; } .t-cards { left: 0; right: 0; width: auto; } }
@media (max-width: 680px) { .t-board { min-height: 600px; } .t-map { width: 100%; height: 62%; } .t-pin .lbl { font-size: 11px; } }
@media (min-width: 1081px) {
  .t-map { left: -6%; top: -4%; width: 74%; height: 80%; }
  .t-cards { width: min(370px, 100%); bottom: 0; }
}

/* Témoignages : même design, plus interactif */
.tx-board { perspective: 1000px; }
.tx-board .dots-map { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tx-glow { position: absolute; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgba(253,181,21,.35), rgba(31,164,99,.12) 45%, transparent 70%); z-index: 0; }
.testi.tx { --px: 0px; --py: 0px; --rx: 0deg; --ry: 0deg; cursor: pointer; z-index: 1;
  transition: box-shadow .4s ease, border-color .4s; }
.testi.tx.reveal.in { transform: translate(var(--px), var(--py)) rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .8s ease, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.testi.tx:hover { box-shadow: 0 40px 70px -30px rgba(7,26,46,.5); border-color: rgba(31,164,99,.4); }
.testi.tx .tx-in { transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.testi.tx.flip .tx-in { opacity: 0; transform: translateY(10px); }
.testi.tx .stars { display: inline-flex; }
.testi.tx:hover .av { transform: scale(1.08) rotate(-6deg); }
.testi .av { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.testi.tx .loc span { transition: color .3s; }
.tx-dots { display: flex; gap: 8px; margin-top: 26px; }
.tx-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .4s cubic-bezier(.2,.8,.2,1), background .3s; }
.tx-dots button.on { width: 34px; background: linear-gradient(90deg, var(--sun), var(--green)); }
@media (hover: none) { .tx-glow { display: none; } }
/* Grand nom en haut du pied de page */
.giant.giant-top { margin: -10px 0 56px; text-align: center; line-height: .9; padding-bottom: .08em;
  font-size: clamp(48px, 12.4vw, 186px);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.03)); -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 40px; }

/* =========================================================
   « POURQUOI NOUS » — section et cartes animées
   ========================================================= */
/* La section sombre s'ouvre depuis le centre */
.why-sec.reveal { opacity: 1; transform: none; clip-path: inset(12% 8% 12% 8% round 80px); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1); }
.why-sec.reveal.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.why-sec .split-head.reveal { transition-delay: .35s; }
/* Grand symbole qui se dessine puis tourne lentement */
.why-deco { position: absolute; right: -150px; top: -150px; width: 520px; opacity: .09; pointer-events: none; animation: slowspin 60s linear infinite; }
.why-deco svg { width: 100%; height: auto; display: block; }
.why-deco path { stroke-dasharray: 300; stroke-dashoffset: 300; }
.why-sec.in .why-deco path { animation: draw 1.4s cubic-bezier(.6,0,.2,1) forwards; }
.why-sec.in .why-deco path:nth-child(2){animation-delay:.08s}.why-sec.in .why-deco path:nth-child(3){animation-delay:.16s}
.why-sec.in .why-deco path:nth-child(4){animation-delay:.24s}.why-sec.in .why-deco path:nth-child(5){animation-delay:.32s}
.why-sec.in .why-deco path:nth-child(6){animation-delay:.4s}.why-sec.in .why-deco path:nth-child(7){animation-delay:.48s}
.why-sec.in .why-deco path:nth-child(8){animation-delay:.56s}.why-sec.in .why-deco path:nth-child(9){animation-delay:.64s}
@keyframes slowspin { to { transform: rotate(360deg); } }
/* Lueur qui respire derrière les cartes */
.why-sec::after { content: ""; position: absolute; left: 50%; bottom: -220px; width: 900px; height: 440px; margin-left: -450px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(253,181,21,.18), rgba(31,164,99,.1) 55%, transparent); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .6; } }

/* Cartes : entrée en 3D, l'une après l'autre */
.why-grid { perspective: 1400px; position: relative; z-index: 1; }
.why { position: relative; overflow: hidden; isolation: isolate; --rx: 0deg; --ry: 0deg; }
.why.reveal { opacity: 0; transform: translateY(70px) rotateX(-38deg) scale(.92); transform-origin: 50% 100%;
  transition: opacity .8s ease, transform 1s cubic-bezier(.2,.9,.25,1.15), box-shadow .4s ease; }
.why.reveal.in { opacity: 1; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.why-grid .why:nth-child(1) { transition-delay: .45s, .45s, 0s; } .why-grid .why:nth-child(2) { transition-delay: .6s, .6s, 0s; }
.why-grid .why:nth-child(3) { transition-delay: .75s, .75s, 0s; } .why-grid .why:nth-child(4) { transition-delay: .9s, .9s, 0s; }
.why.reveal.in.ready { transition: transform .35s ease, box-shadow .4s ease; }
/* Numéro géant en filigrane */
.why-n { position: absolute; right: 16px; top: 6px; font-size: 86px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: rgba(7,26,46,.07); z-index: -1; transition: transform .6s cubic-bezier(.2,.8,.2,1), color .4s; }
/* Icône qui apparaît en rebond puis flotte */
.why .ic { transform: scale(0) rotate(-120deg); transition: transform .8s cubic-bezier(.3,1.7,.5,1); }
.why.in .ic { transform: scale(1) rotate(0); }
.why-grid .why:nth-child(1).in .ic { transition-delay: .9s } .why-grid .why:nth-child(2).in .ic { transition-delay: 1.05s }
.why-grid .why:nth-child(3).in .ic { transition-delay: 1.2s } .why-grid .why:nth-child(4).in .ic { transition-delay: 1.35s }
.why.ready .ic { animation: bob 4s ease-in-out infinite; transition-delay: 0s; }
.why-grid .why:nth-child(2).ready .ic { animation-delay: -1s } .why-grid .why:nth-child(3).ready .ic { animation-delay: -2s } .why-grid .why:nth-child(4).ready .ic { animation-delay: -3s }
@keyframes bob { 50% { transform: translateY(-6px); } }
/* Ligne qui se remplit en bas de chaque carte */
.why::before { content: ""; position: absolute; left: 26px; right: 26px; bottom: 18px; height: 3px; border-radius: 3px; background: currentColor; opacity: .12; }
.why::after { content: ""; position: absolute; left: 26px; bottom: 18px; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--ink), var(--green)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.why:nth-child(odd)::after { background: var(--ink); }
.why:nth-child(even)::after { background: linear-gradient(90deg, var(--sun), var(--green)); }
.why.in::after { width: 34px; transition-delay: 1.4s; }
/* Survol : la carte se soulève, l'icône tourne, la ligne se remplit */
.why:hover { box-shadow: 0 40px 70px -30px rgba(0,0,0,.6); }
.why:hover .ic { animation: none; transform: rotate(-12deg) scale(1.15); transition: transform .5s cubic-bezier(.3,1.7,.5,1); }
.why:hover .why-n { transform: translateY(6px) scale(1.12); color: rgba(7,26,46,.13); }
.why:hover::after { width: calc(100% - 52px); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.why p { padding-bottom: 18px; }
@media (prefers-reduced-motion: reduce) {
  .why-sec.reveal, .why.reveal { clip-path: none; opacity: 1; transform: none; transition: none; }
  .why .ic { transform: none; } .why-deco, .why-sec::after { animation: none; } .why-deco path { stroke-dashoffset: 0; }
}

/* =========================================================
   TRANSITION « Pourquoi nous » → « 4 étapes »
   ========================================================= */
.bridge { position: relative; height: 140px; margin-bottom: -30px; display: flex; flex-direction: column; align-items: center; }
.bridge-line { width: 2px; height: 100%; border-radius: 2px; background: linear-gradient(180deg, var(--ink), var(--sun) 45%, var(--green));
  transform: scaleY(0); transform-origin: top; transition: transform 1.1s cubic-bezier(.6,0,.2,1); }
.bridge.in .bridge-line { transform: scaleY(1); }
.bridge-dot { position: absolute; bottom: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #fff;
  box-shadow: 0 0 0 0 rgba(31,164,99,.5); opacity: 0; transform: scale(0); transition: opacity .4s ease .9s, transform .6s cubic-bezier(.3,1.7,.5,1) .9s; }
.bridge.in .bridge-dot { opacity: 1; transform: scale(1); animation: halo 2.2s ease-out 1.5s infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(31,164,99,.45); } 100% { box-shadow: 0 0 0 18px rgba(31,164,99,0); } }
.steps-sec { padding-top: 70px; }
.steps-sec .split-head { justify-items: start; }

/* Ligne de temps qui se remplit au défilement */
.steps.timeline { position: relative; padding-top: 34px; }
.tl-track { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tl-track i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--sun), var(--green), var(--lagoon)); border-radius: inherit; transition: width .15s linear; }
.steps.timeline .step { border-top: 0; padding-top: 22px; }
.steps.timeline .step::after { top: -42px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--line);
  transition: background .4s, border-color .4s, transform .5s cubic-bezier(.3,1.7,.5,1); }
.steps.timeline .step.on::after { background: var(--sun); border-color: #fff; box-shadow: 0 0 0 5px rgba(253,181,21,.25); transform: scale(1.15); }
.steps.timeline .step::before { transition: color .4s; color: var(--muted); }
.steps.timeline .step.on::before { color: var(--green); }
.steps.timeline .step h3, .steps.timeline .step p { transition: color .4s, opacity .4s; opacity: .45; }
.steps.timeline .step.on h3, .steps.timeline .step.on p { opacity: 1; }
@media (max-width: 1080px) {
  .tl-track { display: none; }
  .steps.timeline { padding-top: 0; }
  .steps.timeline .step { padding-top: 34px; }
  .steps.timeline .step::after { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bridge-line { transform: none; } .bridge-dot { opacity: 1; transform: none; }
  .steps.timeline .step h3, .steps.timeline .step p { opacity: 1; }
}
.steps-sec { padding-top: 110px; }

/* =========================================================
   TRANSITION EMPILÉE : « Pourquoi nous » recule, « 4 étapes » glisse par-dessus
   ========================================================= */
.stack { position: relative; }
@media (min-width: 1081px) {
  .stack-back { position: sticky; top: 0; z-index: 1; }
  .stack-back .why-sec { transform-origin: 50% 0; transform: scale(calc(1 - var(--sp, 0) * .1)); filter: brightness(calc(1 - var(--sp, 0) * .55)); border-radius: calc(var(--radius) + var(--sp, 0) * 30px); will-change: transform, filter; }
  .stack-front { position: relative; z-index: 2; background: #fff; margin-top: -60px; padding-top: 120px;
    border-radius: 48px 48px 0 0; box-shadow: 0 -40px 80px -40px rgba(7,26,46,.45); }
  .stack-front::before { content: ""; position: absolute; left: 50%; top: 18px; width: 64px; height: 5px; margin-left: -32px; border-radius: 5px;
    background: linear-gradient(90deg, var(--sun), var(--green)); transform: scaleX(var(--fp, 0)); transition: transform .2s linear; }
}
/* Titre qui monte ligne par ligne */
.mask-h .ml { display: block; overflow: hidden; padding-bottom: .06em; }
.mask-h .ml > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.mask-h .ml:nth-child(2) > span { transition-delay: .12s; }
.split-head.in .mask-h .ml > span { transform: none; }
/* Étapes : entrée en cascade sur la ligne de temps */
.steps.timeline .step.reveal { transform: translateY(40px); }
.steps.timeline .step.reveal.in { transform: none; }
.steps.timeline .step:nth-of-type(1) { transition-delay: .1s } .steps.timeline .step:nth-of-type(2) { transition-delay: .22s }
.steps.timeline .step:nth-of-type(3) { transition-delay: .34s } .steps.timeline .step:nth-of-type(4) { transition-delay: .46s }
.steps.timeline .step.on h3 { color: var(--ink); }
.steps.timeline .step { transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.steps.timeline .step:hover::after { transform: scale(1.4); }
@media (prefers-reduced-motion: reduce) {
  .stack-back .why-sec { transform: none !important; filter: none !important; }
  .mask-h .ml > span { transform: none; }
}

/* =========================================================
   ANIMATIONS AU DÉFILEMENT (GSAP)
   ========================================================= */
html.gsap-on { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.scroll-progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 300; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--sun), var(--green), var(--lagoon)); pointer-events: none; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }
.about-right p.intro .w { overflow: visible; }
.giant-top .ch { display: inline-block; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.03)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.services.pinned { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.services.pinned .services-head { margin-bottom: 70px; }
.services.pinned .rail { overflow: visible; scroll-snap-type: none; will-change: transform; }
.services.pinned .rail-nav { display: none; }
.svc-card .media { overflow: hidden; }
.domain, .feature-media, .quote { will-change: clip-path; }

/* =========================================================
   EFFETS SPECTACULAIRES : intro, transitions, curseur, bandeaux
   ========================================================= */
/* ---- Écran d'intro ---- */
.preloader { display: none; }
html.is-loading .preloader {
  display: flex; position: fixed; inset: 0; z-index: 10000; background: var(--ink); color: #fff;
  flex-direction: column; align-items: center; justify-content: center;
  animation: plSafety .01s 6s forwards; /* sécurité si le script ne charge pas */
}
html.is-loading body { overflow: hidden; }
@keyframes plSafety { to { opacity: 0; visibility: hidden; } }
.pl-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pl-mark { width: 120px; }
.pl-mark svg { width: 100%; height: auto; display: block; }
.pl-mark path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.2s cubic-bezier(.6,0,.2,1) forwards; }
.pl-mark path:nth-child(2){animation-delay:.08s}.pl-mark path:nth-child(3){animation-delay:.16s}.pl-mark path:nth-child(4){animation-delay:.24s}
.pl-mark path:nth-child(5){animation-delay:.32s}.pl-mark path:nth-child(6){animation-delay:.4s}.pl-mark path:nth-child(7){animation-delay:.48s}
.pl-mark path:nth-child(8){animation-delay:.56s}.pl-mark path:nth-child(9){animation-delay:.64s}
.pl-name { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; overflow: hidden; }
.pl-name span, .pl-name em { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.8,.2,1) .5s forwards; }
.pl-name em { font-style: normal; font-weight: 300; color: var(--leaf); animation-delay: .62s; }
.pl-tag { position: absolute; left: 40px; bottom: 40px; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.pl-count { position: absolute; right: 40px; bottom: 26px; font-size: clamp(64px, 10vw, 150px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--sun), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-count small { font-size: .35em; }
.preloader.done { animation: plOut 1.1s cubic-bezier(.8,0,.15,1) forwards; }
.preloader.done .pl-inner, .preloader.done .pl-count, .preloader.done .pl-tag { transition: opacity .4s, transform .6s; opacity: 0; transform: translateY(-40px); }
@keyframes plOut { to { clip-path: inset(0 0 100% 0); } }
.preloader { clip-path: inset(0 0 0 0); }
/* Le hero attend la fin de l'intro */
html.is-loading .hero.cine .line > span, html.is-loading .hero.cine .fade, html.is-loading .hero.cine .hero-video,
html.transit-in:not(.arrived) .hero.cine .line > span, html.transit-in:not(.arrived) .hero.cine .fade { animation-play-state: paused; }

/* ---- Transition entre les pages ---- */
.curtain { position: fixed; inset: 0; z-index: 9990; background: var(--ink); pointer-events: none; display: grid; place-items: center;
  transform: translateY(100%); }
.curtain img { width: 90px; opacity: 0; transform: scale(.6) rotate(-30deg); transition: opacity .4s, transform .6s cubic-bezier(.3,1.6,.5,1); }
html.leaving .curtain { transform: none; transition: transform .6s cubic-bezier(.8,0,.2,1); }
html.leaving .curtain img { opacity: .9; transform: none; transition-delay: .25s; }
html.transit-in .curtain { transform: none; }
html.transit-in .curtain img { opacity: .9; transform: none; }
html.transit-in.arrived .curtain { transform: translateY(-100%); transition: transform .9s cubic-bezier(.8,0,.15,1) .1s; }
html.transit-in.arrived .curtain img { opacity: 0; transition-delay: 0s; }

/* ---- Curseur personnalisé ---- */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999; border-radius: 50%; opacity: 0; }
html.has-cursor .cur-dot, html.has-cursor .cur-ring { opacity: 1; }
.cur-dot { width: 7px; height: 7px; background: var(--sun); }
.cur-ring { width: 40px; height: 40px; border: 1.5px solid #fff; mix-blend-mode: difference; display: grid; place-items: center;
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s; }
.cur-ring span { font-size: 13px; font-weight: 800; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s; white-space: nowrap; letter-spacing: .02em; }
.cur-ring.hover { width: 64px; height: 64px; background: #fff; }
.cur-ring.label { width: 104px; height: 104px; background: var(--sun); border-color: var(--sun); mix-blend-mode: normal; box-shadow: 0 10px 30px -8px rgba(253,181,21,.6); }
.cur-ring.label span { opacity: 1; transform: none; }
.cur-ring.down { transform: scale(.85); }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-cursor], html.has-cursor summary { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }

/* ---- Lueur du soleil qui suit la souris dans le hero ---- */
.hero-glow { position: absolute; z-index: 1; width: 620px; height: 620px; left: 0; top: 0; margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,200,80,.42), rgba(253,181,21,.14) 45%, transparent 75%); mix-blend-mode: screen; opacity: 0; transition: opacity .6s; }
.hero:hover .hero-glow { opacity: 1; }

/* ---- Bandeaux de texte croisés ---- */
.marquee-band { position: relative; padding: 70px 0 40px; overflow: hidden; }
.mq { overflow: hidden; white-space: nowrap; padding: 18px 0; }
.mq-1 { background: var(--sun); transform: rotate(-2.2deg) scale(1.04); position: relative; z-index: 2; box-shadow: 0 20px 40px -20px rgba(245,158,11,.6); }
.mq-2 { background: var(--ink); transform: rotate(1.8deg) scale(1.04); margin-top: -4px; }
.mq-track { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; will-change: transform; animation: mqMove 40s linear infinite; }
.mq-2 .mq-track { animation-direction: reverse; animation-duration: 46s; }
html.gsap-on .mq-track { animation: none; }
@keyframes mqMove { to { transform: translateX(-50%); } }
.mq-item { font-size: clamp(30px, 4.4vw, 62px); font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.mq-1 .mq-item { color: var(--ink); }
.mq-2 .mq-item { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85); }
.mq-2 .mq-item:nth-of-type(odd) { color: #fff; -webkit-text-stroke: 0; }
.mq-ico { width: clamp(34px, 3.6vw, 52px); height: auto; }
.mq-star { font-size: clamp(26px, 3vw, 44px); color: var(--sun); }

/* ---- En-tête : se cache en descendant, revient en remontant ---- */
.sticky.hide { transform: translate(-50%, -140%); }

/* ---- Pied de page : lettres réactives ---- */
.giant-top .ch.hot { background: linear-gradient(180deg, var(--sun), var(--green)); -webkit-background-clip: text; background-clip: text; }

@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; } .hero-glow { display: none; }
}
html.transit-in .curtain { animation: curtainSafety .9s cubic-bezier(.8,0,.15,1) 2.6s forwards; }
@keyframes curtainSafety { to { transform: translateY(-100%); } }
