/* Page d'accueil */
:root { --ink-dark: #04140f; --night: #062b20; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); overflow-x: hidden; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn-glass { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 10px 30px -10px rgba(226, 185, 74, .7); }

/* Navigation */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; color: #fff; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(4, 26, 19, .82); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.logo img { border-radius: 11px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.logo span { display: flex; flex-direction: column; line-height: 1.05; }
.logo strong { font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.logo small { font-size: 15px; color: var(--gold-300); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 10px; transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-cta { min-height: 42px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Héros */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 140px 0 56px;
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(226, 185, 74, .22), transparent 62%),
    radial-gradient(700px 600px at 0% 100%, rgba(23, 144, 104, .45), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1.2'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3Cpath d='M0 0l22 22M80 0L58 22M0 80l22-22M80 80L58 58'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg, #0b5a41 0%, var(--night) 55%, var(--ink-dark) 100%);
  background-size: auto, auto, 80px 80px, auto;
}
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, rgba(4, 20, 15, .55)); pointer-events: none; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.rosette { position: absolute; width: 900px; height: 900px; right: -260px; top: -220px; color: rgba(243, 215, 122, .16); animation: spin 140s linear infinite; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(226, 185, 74, .2); }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 560px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-ctas .btn svg { width: 18px; height: 18px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.hero-note svg { width: 16px; height: 16px; color: var(--gold-300); flex: none; }

.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.ar-mark { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); font-size: clamp(64px, 9vw, 120px); color: rgba(243, 215, 122, .13); white-space: nowrap; pointer-events: none; }
.hero-map { width: 100%; max-width: 540px; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero-map path { fill: rgba(63, 174, 134, .16); stroke: rgba(243, 215, 122, .75); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.6s ease forwards, glow 6s ease-in-out infinite; }
.hero-map path:nth-child(odd) { fill: rgba(63, 174, 134, .26); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow { 50% { fill: rgba(63, 174, 134, .38); } }
.float { position: absolute; animation: float 7s ease-in-out infinite; }
.float-card { right: -10px; bottom: 8%; width: 300px; animation-delay: -2s; }
.float-card .member-card { margin: 0; width: 100%; transform: rotate(-4deg); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); border: 1px solid rgba(243, 215, 122, .25); }
.float-card .mc-photo svg { color: rgba(255, 255, 255, .8); }
.float-card .mc-year { text-align: right; }
.float-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: #17231e; font-size: 13px; font-weight: 700; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); }
.chip-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #e5f6ea; color: #15803d; font-size: 14px; }
.chip-ico.off { background: #fdf3dc; color: #a66a00; }
.chip-a { left: 0; top: 18%; animation-delay: -4s; }
.chip-b { left: 8%; bottom: 2%; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-12px); } }

.facts { position: relative; z-index: 1; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(10px); overflow: hidden; }
.facts li { padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.facts li + li { border-left: 1px solid rgba(255, 255, 255, .1); }
.facts b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.facts span { font-size: 13.5px; color: rgba(255, 255, 255, .7); }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.kicker-gold { color: var(--gold-300); }
.section h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.section-head p { color: var(--text-2); font-size: 17px; margin-top: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; padding: 32px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.pillar::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand-500), var(--gold-400)); opacity: 0; transition: opacity .25s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar:hover::before { opacity: 1; }
.pillar-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 22px; }
.pillar-ico svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 21px; font-weight: 750; margin-bottom: 10px; }
.pillar p { color: var(--text-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.features { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
.features li { display: flex; gap: 16px; }
.f-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 20px -12px var(--primary); }
.features h3 { font-size: 17px; font-weight: 750; margin-bottom: 4px; }
.features p { color: var(--text-2); font-size: 14.5px; }

/* Maquette de tableau de bord (décorative) */
.mock { border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform .5s; }
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-bar i:first-child { background: #e98b6d; } .mock-bar i:nth-child(2) { background: #e8c35a; } .mock-bar i:nth-child(3) { background: #5cc29b; }
.mock-bar span { margin-left: 8px; }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div, .mock-panel { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: var(--bg-elev); overflow: hidden; }
.mock small { display: block; font-size: 11px; font-weight: 700; color: var(--text-3); }
.mock-kpis b { font-size: 22px; color: var(--text-3); }
.mock .spark { position: absolute; right: 10px; bottom: 12px; width: 50px; height: 18px; border-bottom: 2px solid var(--primary); border-radius: 0 0 40% 0; opacity: .8; }
.mock .ring { position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(var(--primary) 80%, var(--surface-3) 0); }
.mock-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.mock-map { width: 100%; height: 150px; margin-top: 6px; }
.mock-map path { stroke: var(--surface); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 150px; margin-top: 6px; }
.mock-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--brand-400), var(--brand-600)); opacity: .9; }

/* Territoire */
.split-rev { grid-template-columns: 1.1fr .9fr; }
.territory-map { position: relative; padding: 24px; border-radius: 28px; background: radial-gradient(circle at 30% 30%, var(--primary-soft), transparent 70%); }
#big-map { width: 100%; height: auto; overflow: visible; }
#big-map path { fill: var(--brand-100); stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s, transform .2s; }
#big-map path:nth-child(3n) { fill: var(--brand-200); }
#big-map path:nth-child(3n+1) { fill: color-mix(in srgb, var(--brand-200) 60%, var(--brand-100)); }
#big-map path.on { fill: var(--brand-500); }
.map-label { position: absolute; left: 24px; bottom: 18px; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm); }
.regions { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.regions li { padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; cursor: default; transition: background .15s, color .15s, border-color .15s; }
.regions li.on { background: var(--primary); color: var(--on-primary); border-color: transparent; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 30px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 52px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--gold-400), transparent); }
.step-n { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(120deg, var(--brand-500), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.steps h3 { font-size: 19px; font-weight: 750; margin-bottom: 8px; }
.steps p { color: var(--text-2); }

/* Sécurité */
.security { color: #fff; background: linear-gradient(160deg, var(--night), var(--ink-dark)); position: relative; overflow: hidden; }
.security::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.04' stroke-width='1.2'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E"); }
.security .wrap { position: relative; }
.lead-sm { color: rgba(255, 255, 255, .75); font-size: 17px; max-width: 520px; }
.guarantees { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guarantees li { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 6px; transition: background .2s, border-color .2s; }
.guarantees li:hover { background: rgba(255, 255, 255, .08); border-color: rgba(243, 215, 122, .35); }
.guarantees b { color: var(--gold-300); font-size: 16px; }
.guarantees span { color: rgba(255, 255, 255, .72); font-size: 14px; }

/* Appel final */
.cta { padding: 96px 0; }
.cta-inner { position: relative; overflow: hidden; text-align: center; padding: 64px 32px; border-radius: 32px; color: #fff; background: radial-gradient(600px 300px at 50% 0%, rgba(226, 185, 74, .3), transparent 70%), linear-gradient(150deg, var(--brand-600), var(--night)); box-shadow: var(--shadow-lg); }
.cta-ar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(90px, 16vw, 200px); color: rgba(255, 255, 255, .05); white-space: nowrap; pointer-events: none; }
.cta h2 { position: relative; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.cta p { position: relative; color: rgba(255, 255, 255, .78); margin: 14px auto 28px; max-width: 520px; font-size: 16px; }
.cta .btn { position: relative; }

.footer { padding: 32px 0 40px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); }
.footer .logo { color: var(--text); }
.footer .logo small { color: var(--text-3); font-size: 12px; }
.footer a { font-weight: 700; text-decoration: none; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .hero-grid, .split, .split-rev { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; order: 2; }
  .float-card { right: 0; width: 260px; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .mock { transform: none; }
  .territory-map { order: 2; }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; top: 76px; left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 18px; background: rgba(4, 26, 19, .96); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 560px) {
  .nav-inner { gap: 12px; }
  .wrap { width: calc(100% - 32px); }
  .nav-cta { padding: 0 12px; font-size: 13px; }
  .nav-cta svg { display: none; }
  .logo small { display: none; }
  .hero { padding-top: 112px; }
  .hero .lead { font-size: 16px; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { min-height: 330px; }
  .float-card { width: 220px; bottom: 0; }
  .chip-b { display: none; }
  .facts b { font-size: 26px; }
  .facts li { padding: 16px; }
  .section { padding: 72px 0; }
  .guarantees { grid-template-columns: 1fr; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpis div:last-child { display: none; }
  .mock-row { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 20px; border-radius: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 440px) {
  .nav .logo span { display: none; }
}
