/* Polices hébergées sur le site (pas d'appel à Google Fonts : plus rapide et conforme RGPD) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/caveat-latin-600.woff2') format('woff2'); }

/* =============================================================================
   Valmia — styles
   Tokens en tête de fichier : changer la marque = changer ces variables.
============================================================================= */
:root {
  --accent: #6E4FF6;        /* violet du logo */
  --accent-dark: #5536DE;
  --accent-soft: #F0ECFF;
  --navy: #0A1530;
  --navy-2: #13204A;
  --yellow: #FFD45C;
  --ink: #0F172A;
  --text: #334155;
  --muted: #526075;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --tint: #F4F7FC;
  --green: #16A34A;
  --red: #EF4444;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(10, 21, 48, .08);
  --shadow-lg: 0 24px 60px rgba(10, 21, 48, .16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h3, .h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }

.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 9vw, 104px); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #C7D2E8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; text-align: left; flex-wrap: wrap; }
.row-head h2 { margin: 0; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow.light { color: var(--yellow); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.section-dark .lead { color: #A9B6D3; }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 4px; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  font: 700 16px/1.2 var(--font); padding: 14px 22px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, color .2s, border-color .2s;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(110, 79, 246, .3); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { transform: translateY(-2px); background: #FFDD7A; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------------------------------------------------------------- Navigation + méga-menu */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(10, 21, 48, .06); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); position: relative; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.logo-text { font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.logo-light { color: #fff; }

.menu { margin-right: auto; }
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu-list > li { position: relative; }
.drop-btn, .menu-link {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  font: 500 15px var(--font); color: var(--ink); padding: 10px 12px; border-radius: 10px; text-decoration: none !important;
}
.drop-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.drop-btn:hover, .menu-link:hover, .drop-btn[aria-expanded="true"] { background: var(--tint); }
.drop-btn[aria-current], .menu-link[aria-current] { color: var(--accent); }

.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.drop > a, .drop-col a { color: var(--ink); padding: 9px 12px; border-radius: 10px; font-size: 15px; text-decoration: none !important; }
.drop > a:hover, .drop-col a:hover { background: var(--tint); color: var(--accent); }
.drop-wide { width: min(760px, 92vw); padding: 18px; }
.menu-list > li:nth-child(2) .drop-wide { left: -100px; }
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drop-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px !important; }
.di-ico { font-size: 22px; line-height: 1; }
.drop-item b { display: block; font-size: 15px; color: var(--ink); }
.drop-item small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.drop-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.drop-col { display: flex; flex-direction: column; }
.drop-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 12px 6px; }
.drop-all { display: block; margin-top: 10px; padding: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; }

@media (hover: hover) and (min-width: 1081px) {
  .has-drop:hover > .drop, .has-drop:focus-within > .drop { opacity: 1; visibility: visible; transform: none; }
  .has-drop:hover > .drop-btn::after { transform: rotate(225deg) translateY(-2px); }
}
.has-drop.open > .drop { opacity: 1; visibility: visible; transform: none; }

.nav-cta { display: flex; align-items: center; gap: 18px; flex: none; }
.nav-phone { color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.menu-mobile-cta { display: none; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; margin-left: auto; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- En-têtes de page */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); background: radial-gradient(1000px 500px at 85% 0%, var(--accent-soft), transparent 70%); }
.page-hero .lead { max-width: 680px; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 0; }
.center-actions { justify-content: center; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #CBD5E1; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.hero-visual { position: relative; min-height: 420px; }
.dash-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line); position: relative; z-index: 1; margin: 30px 30px 0 0; }
.dash-head { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #FF6159; } .dot.y { background: #FFBF2F; } .dot.g { background: #2ACB42; }
.dash-title { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.dash-kpis div { background: var(--tint); border-radius: var(--radius-sm); padding: 12px; }
.dash-kpis small { display: block; font-size: 12px; color: var(--muted); }
.dash-kpis b { display: block; font-size: 24px; color: var(--ink); line-height: 1.2; }
.dash-kpis em { font-style: normal; font-size: 12px; font-weight: 700; }
.up { color: var(--green); }
.dash-chart { width: 100%; height: 140px; }
.dash-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.toast { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: 14px; animation: float 6s ease-in-out infinite; }
.toast b { display: block; color: var(--ink); }
.toast small { color: var(--muted); }
.toast-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 18px; }
.t1 { top: 0; right: 0; }
.t2 { bottom: 40px; left: -24px; animation-delay: -2s; }
.t3 { bottom: -10px; right: 10px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- Plateformes */
.platforms { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; text-align: center; }
.platforms p { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.platform-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; }
.platform-row span { font-size: 20px; font-weight: 800; color: #94A3B8; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- Cartes */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-link { display: block; color: inherit; text-decoration: none !important; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: 16px; }
.ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.more { font-weight: 700; font-size: 15px; color: var(--accent); }
.s-ico { font-size: 32px; display: block; margin-bottom: 12px; }
.sector h3 { font-size: 18px; }
.sector p { margin: 0; font-size: 15px; }
.city h3 { font-size: 22px; margin-top: 18px; }
.city { margin: 0; }
.city-credit { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.city-credit a { color: inherit; text-decoration: underline; }
.zone-flag { font-size: 34px; display: block; margin-bottom: 10px; }
.zone .chips { margin-top: 14px; }
.why-card .num { display: inline-block; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 4px 10px; font-size: 14px; margin-bottom: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.center-chips { justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 10px 16px; border-radius: 999px; font: 500 15px var(--font); text-decoration: none !important; cursor: pointer; transition: border-color .2s, background .2s; }
a.chip:hover, button.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-sm { padding: 5px 10px; font-size: 13px; }
.filter-chips { justify-content: center; margin-bottom: 36px; }

/* ---------------------------------------------------------------- Méthode */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: p; }
.process li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: relative; }
.process li p { color: var(--muted); font-size: 16px; margin: 0; }
.p-num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }

/* ---------------------------------------------------------------- Portail (onglets) */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs button { background: transparent; border: 1px solid rgba(255, 255, 255, .15); color: #C7D2E8; font: 600 15px var(--font); padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.tab-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; background: var(--navy-2); border-radius: 24px; padding: clamp(24px, 4vw, 48px); }
.tab-panel[hidden] { display: none; }
.panel-text p { color: #A9B6D3; }
.panel-ui { background: #fff; border-radius: var(--radius); padding: 20px; color: var(--text); }
.lead-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "badge name time" "badge src time"; column-gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.lead-row:last-child { border-bottom: 0; }
.lead-row .badge { grid-area: badge; }
.lead-row b { grid-area: name; color: var(--ink); font-size: 15px; }
.lead-row small { grid-area: src; color: var(--muted); font-size: 13px; }
.lead-row time { grid-area: time; font-size: 13px; color: var(--muted); }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.b-hot { background: #FEE2E2; color: #B91C1C; }
.b-warm { background: #FEF3C7; color: #92400E; }
.b-new { background: var(--accent-soft); color: var(--accent-dark); }
.roi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi div { background: var(--tint); border-radius: var(--radius-sm); padding: 18px; }
.roi small { display: block; color: var(--muted); font-size: 13px; }
.roi b { font-size: 26px; color: var(--ink); }
.roi .roi-big { background: var(--accent); }
.roi .roi-big small, .roi .roi-big b { color: #fff; }
.bars .bar { display: grid; grid-template-columns: 110px 1fr 36px; gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; }
.bars i { height: 12px; border-radius: 99px; background: var(--accent-soft); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--accent); border-radius: 99px; }
.bars b { color: var(--ink); text-align: right; }
.insights p { background: var(--tint); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 10px; font-size: 15px; }
.insights p:last-child { margin: 0; }

/* ---------------------------------------------------------------- Résultats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-radius: var(--radius); padding: 32px 24px; background: linear-gradient(160deg, var(--accent), var(--accent-dark)); color: #fff; }
.stat:nth-child(even) { background: var(--navy); }
.stat b { display: block; font-size: clamp(40px, 4.5vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.stat span { display: block; font-weight: 600; font-size: 17px; }
.stat small { display: block; margin-top: 18px; opacity: .7; font-size: 14px; }
.demo-note { text-align: center; font-size: 13px; color: var(--muted); font-style: italic; margin: 18px 0 0; }
.demo-note.light { color: #8D9BBB; }

.case-tag { font-size: 14px; font-weight: 600; color: var(--muted) !important; }
.case-metric { font-size: 44px; font-weight: 800; color: var(--accent) !important; line-height: 1; margin: 6px 0 4px; letter-spacing: -.03em; }
.case-label { font-weight: 600; color: var(--ink) !important; }
.case h3 { margin-top: 18px; }

/* ---------------------------------------------------------------- À propos */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.founder { margin: 0; background: var(--tint); border-radius: 24px; padding: 40px; position: relative; }
.founder::before { content: "“"; position: absolute; top: -10px; left: 28px; font-size: 120px; line-height: 1; color: var(--accent); font-weight: 800; }
.founder blockquote { margin: 20px 0 28px; font-size: 19px; color: var(--ink); font-weight: 500; }
.founder figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }
.founder b { display: block; color: var(--ink); }
.founder small { color: var(--muted); }

/* ---------------------------------------------------------------- Avis */
.stars { color: #F59E0B; letter-spacing: 2px; }
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px; }
.track::-webkit-scrollbar { display: none; }
.review { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.review p { color: var(--ink); font-size: 17px; flex: 1; }
.review b { display: block; color: var(--ink); }
.review small { color: var(--muted); }
.carousel-ctrl { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.circle { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; transition: all .2s; }
.circle:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; color: var(--ink); font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* ---------------------------------------------------------------- Bandeau CTA */
.cta-band { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #E9E4FF; margin: 0; max-width: 620px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-phone { color: #E9E4FF; font-size: 14px; }

/* ---------------------------------------------------------------- Contact & formulaires */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy h3 { margin-top: 32px; font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 0 0 28px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 10px 0; color: #DCE3F2; }
.steps-light li { color: var(--ink); }
.steps span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px 20px; }
.contact-card .ico { grid-row: span 2; margin: 0; width: 44px; height: 44px; font-size: 20px; }
.contact-card b { color: var(--ink); }
.contact-card small { color: var(--muted); }
.form { padding: clamp(22px, 3vw, 36px); }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; font: 400 16px var(--font); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .invalid { border-color: var(--red); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-result { margin: 14px 0 0; font-weight: 600; font-size: 15px; }
.form-result:empty { display: none; }
.form-result.ok { color: var(--green); }
.form-result.err { color: var(--red); }
.disclaimer { font-size: 12px; color: var(--muted) !important; margin: 14px 0 0; }

/* ---------------------------------------------------------------- Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; padding: 36px 30px; }
.plan .btn { margin-top: auto; }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.plan-price { font-size: 32px; font-weight: 800; color: var(--ink) !important; letter-spacing: -.02em; margin: 6px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { padding: 8px 0 8px 30px; position: relative; color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.ticks-lg li { font-size: 17px; padding-top: 10px; padding-bottom: 10px; }

/* ---------------------------------------------------------------- Blog */
.post { padding: 0; overflow: hidden; }
.post > *:not(.thumb) { margin-left: 24px; margin-right: 24px; }
.post small { display: block; color: var(--muted); margin-top: 18px; font-size: 13px; }
.post h3 { margin-top: 6px; font-size: 19px; }
.post .more { display: inline-block; margin-bottom: 24px; }
.post[hidden] { display: none; }
.thumb { display: block; width: 100%; height: 180px; object-fit: cover; }
.post-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 22px; margin-top: 28px; }
.th1 { background: linear-gradient(135deg, #6E4FF6, #A996FF); }
.th2 { background: linear-gradient(135deg, #0A1530, #2A4CA8); }
.th3 { background: linear-gradient(135deg, #FFD45C, #FF9F43); }
.post-title { font-size: clamp(32px, 4.5vw, 52px); }
.post-meta { color: var(--muted); font-size: 15px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.post-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.aside-card p { font-size: 15px; }

.prose { font-size: 18px; color: var(--text); max-width: 720px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.aside-card h2 { margin: 0 0 8px; }
.prose strong { color: var(--ink); }
.prose em { color: var(--ink); }

/* ---------------------------------------------------------------- 404 */
.big-404 { font-size: clamp(100px, 18vw, 180px); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.05em; margin: 0; }

/* ---------------------------------------------------------------- Footer */
.footer { background: #070F24; color: #94A3B8; padding: 56px 0 24px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin: 14px 0 16px; max-width: 320px; }
.footer address { font-style: normal; display: grid; gap: 4px; }
.footer-social { display: flex; gap: 16px; margin-top: 12px; }
.footer .f-title { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0; margin: 6px 0 14px; }
.footer a { display: block; color: #94A3B8; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer .logo { display: flex; }
.footer-map { position: relative; margin-top: 36px; }
.footer-map iframe { display: block; width: 100%; height: 220px; border: 0; border-radius: 16px; filter: grayscale(.35) contrast(1.05); }
.map-consent { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; min-height: 140px; padding: 28px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(circle at 20% 30%, rgba(110, 79, 246, .25), transparent 55%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px), #0B1534; }
.map-consent p { margin: 0; display: grid; gap: 6px; }
.map-consent b { color: #fff; font-size: 16px; }
.map-consent span { font-size: 13px; color: #94A3B8; }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.map-actions .btn { margin: 0; }
.footer .map-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 20px; padding-top: 20px; font-size: 13.5px; }
.footer-bottom a { display: inline; }

/* ---------------------------------------------------------------- Accueil */
.home-hero { padding-bottom: 40px; }
.hero-proof { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; color: var(--ink); }
.check { color: var(--green); font-weight: 800; margin-right: 4px; }
.trust-strip { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.trust-strip p { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.trust-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; }
.trust-logos span { font-size: 19px; font-weight: 800; color: #94A3B8; letter-spacing: -.02em; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split .btn { margin-top: 12px; }

.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone { position: relative; width: 290px; height: 590px; border-radius: 48px; background: #0B0F1A; padding: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A3142; }
.island { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.screen { position: absolute; inset: 14px; border-radius: 36px; background: #fff; padding: 64px 16px 16px; overflow: hidden; opacity: 0; transition: opacity .5s ease; font-size: 13px; color: var(--ink); }
.screen.active { opacity: 1; }
.screen b { display: block; font-size: 13px; }
.screen span, .screen small { color: var(--muted); font-size: 12px; }
.g-bar { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.g-ad, .g-res { padding: 12px 0; border-bottom: 1px solid var(--line); }
.g-ad small { font-weight: 700; color: var(--ink); }
.g-ad b, .g-res b { color: #1A0DAB; }
.dim { opacity: .45; }
.m-map { height: 200px; margin: -64px -16px 12px; background: linear-gradient(135deg, #E3F0E1 0%, #D7E8F7 60%, #EEF2E6 100%); position: relative; }
.m-map::before, .m-map::after { content: ""; position: absolute; background: #fff; }
.m-map::before { left: 0; right: 0; top: 55%; height: 10px; }
.m-map::after { top: 0; bottom: 0; left: 40%; width: 10px; }
.pin { position: absolute; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #EA4335; z-index: 1; }
.p1 { left: 30%; top: 30%; width: 24px; height: 24px; } .p2 { left: 62%; top: 62%; background: #9AA0A6; } .p3 { left: 70%; top: 22%; background: #9AA0A6; }
.m-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-item.top b { color: var(--accent); }
.i-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.i-head i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.i-head small { margin-left: auto; }
.i-img { height: 260px; margin: 0 -16px; background: linear-gradient(135deg, #FFD45C, #FF8A5B 50%, #6E4FF6); }
.i-cta { background: var(--accent); color: #fff; font-weight: 700; padding: 10px; margin: 0 -16px 10px; }
.scr-wa { background: #ECE5DD; padding-left: 12px; padding-right: 12px; }
.w-head { background: #075E54; color: #fff; margin: -64px -12px 16px; padding: 62px 16px 12px; }
.w-head small { color: #CDE8E3; }
.w-msg { max-width: 80%; padding: 8px 12px; border-radius: 10px; margin-bottom: 8px; font-size: 13px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.w-msg.in { background: #fff; }
.w-msg.out { background: #DCF8C6; margin-left: auto; }
.phone-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.phone-dots span { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--tint); transition: all .3s; }
.phone-dots span.active { background: var(--ink); color: #fff; }

.portal-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.portal-tabs { display: grid; gap: 10px; }
.portal-tabs button { text-align: left; background: transparent; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 18px 20px; cursor: pointer; font: inherit; color: #A9B6D3; transition: all .2s; }
.portal-tabs button b { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }
.portal-tabs button span { font-size: 15px; line-height: 1.5; }
.portal-tabs button[aria-selected="true"] { background: var(--navy-2); border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.portal-screen { background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.portal-screen .dash-head { margin-bottom: 12px; }
.portal-screen .panel-ui { padding: 6px; }

.track-cases { grid-auto-columns: calc((100% - 48px) / 3); }
.result-card { scroll-snap-align: start; display: flex; flex-direction: column; }
.result-card .r-metric { font-size: clamp(44px, 5vw, 60px); font-weight: 800; color: var(--accent) !important; line-height: 1; letter-spacing: -.04em; margin: 0 0 6px; }
.result-card .r-label { font-weight: 700; color: var(--ink) !important; font-size: 17px; }
.result-card .r-metric2 { font-size: 22px; font-weight: 800; color: var(--ink) !important; padding-top: 14px; border-top: 1px solid var(--line); }
.r-metric2 span { font-size: 15px; font-weight: 500; color: var(--muted); }
.r-client { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.r-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; font-size: 22px; }
.r-client b { display: block; color: var(--ink); font-size: 15px; }
.r-client small { color: var(--muted); }

.sector-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.sector-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; color: inherit; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.sector-row:hover { border-color: var(--accent); transform: translateX(4px); }
.sector-row .s-ico { margin: 0; font-size: 28px; }
.sector-row b { display: block; color: var(--ink); }
.sector-row small { color: var(--muted); font-size: 14px; }
.sector-row .arrow { color: var(--accent); font-weight: 700; }

.founder-card { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; background: var(--tint); border-radius: 24px; padding: 28px; }
.founder-photo img, .photo-placeholder { width: 150px; height: 190px; border-radius: 18px; object-fit: cover; object-position: center 25%; display: grid; place-items: center; }
.photo-placeholder { background: linear-gradient(160deg, var(--accent), var(--navy)); color: #fff; font-size: 64px; font-weight: 800; }
.founder-card blockquote { margin: 0 0 18px; font-size: 17px; color: var(--ink); font-weight: 500; }
.signature { display: block; font-family: 'Caveat', cursive; font-size: 34px; color: var(--accent); line-height: 1; }
.founder-card small { color: var(--muted); }

.pre-footer { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.pre-footer h2 { color: #fff; font-size: clamp(34px, 5vw, 56px); }
.pre-footer p { color: #E9E4FF; font-size: 19px; margin-bottom: 28px; }

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

/* ---------------------------------------------------------------- Apparition au scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .card-link.reveal.in:hover { transform: translateY(-4px); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
  .nav-phone { display: none; }
}
@media (max-width: 1080px) {
  .nav-cta { display: none; }
  .burger { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--menu-top, 112px)); height: calc(100dvh - var(--menu-top, 112px)); background: #fff; overflow-y: auto; border-top: 1px solid var(--line);
    padding: 12px var(--gutter) 32px; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden;
  }
  .nav.open .menu { opacity: 1; transform: none; visibility: visible; }
  .menu-list { flex-direction: column; gap: 0; }
  .menu-list > li { border-bottom: 1px solid var(--line); }
  .drop-btn, .menu-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 17px; font-weight: 600; border-radius: 0; }
  .drop-btn:hover, .menu-link:hover, .drop-btn[aria-expanded="true"] { background: none; }
  .drop-btn[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; width: auto; min-width: 0; }
  .has-drop.open > .drop { display: flex; }
  .menu-list > li:nth-child(2) .drop-wide { left: auto; }
  .drop-grid, .drop-cols { grid-template-columns: 1fr; gap: 0; }
  .drop-item small { display: none; }
  .drop-label { margin-top: 12px; }
  .menu-mobile-cta { display: grid; gap: 10px; margin-top: 24px; }
  .cards-4, .stats-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .track { grid-auto-columns: calc((100% - 24px) / 2); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .track-cases { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, .tab-panel, .post-grid, .pricing, .split, .portal-split { grid-template-columns: 1fr; }
  .split { gap: 48px; }
  .hero-grid { gap: 40px; }
  .hero-visual { min-height: 0; max-width: 520px; margin: 0 auto; width: 100%; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .post-aside { position: static; }
  .pricing { max-width: 480px; margin: 0 auto; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards-3, .cards-4, .stats-grid, .process, .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .track, .track-cases { grid-auto-columns: 88%; }
  .sector-list { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-photo img, .photo-placeholder { width: 100%; height: 240px; }
  .phone { width: 260px; height: 530px; }
  .dash-card { margin: 24px 0 0; padding: 16px; }
  .dash-kpis b { font-size: 18px; }
  .toast { font-size: 12px; padding: 8px 12px; }
  .toast-ico { width: 28px; height: 28px; font-size: 14px; }
  .t2 { left: 0; bottom: 24px; }
  .t3 { display: none; }
  .hero-actions .btn { width: 100%; }
  .bars .bar { grid-template-columns: 90px 1fr 30px; }
  .founder { padding: 32px 24px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .prose { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dash-line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =============================================================================
   Images et finitions (en-têtes illustrés, cartes avec photo, boutons, formules)
============================================================================= */
/* Photo dans l'en-tête des pages */
.hero-photo { margin: 0; position: relative; }
.hero-photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: 28px; background: linear-gradient(135deg, var(--accent), #A996FF); opacity: .18; z-index: 0; }
.hero-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero-photo figcaption { position: relative; z-index: 1; margin-top: 26px; font-size: 12px; color: var(--muted); }
.hero-photo figcaption a { color: inherit; text-decoration: underline; }

/* Cartes avec photo : l'icône se pose sur l'image */
.card-media { padding-top: 0; overflow: hidden; }
.card-img { display: block; width: calc(100% + 56px); max-width: none; height: 170px; margin: 0 -28px 0; object-fit: cover; transition: transform .5s ease; }
.card-media:hover .card-img { transform: scale(1.04); }
.card-media .ico, .sector.card-media .s-ico { position: relative; z-index: 1; margin-top: -26px; margin-bottom: 14px; width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 24px; box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.card-media:not(:has(.ico)) h3 { margin-top: 20px; }
.cards-4 .card-img { height: 130px; }
.cards-4 .card-media .card-img { width: calc(100% + 56px); }

/* Boutons */
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, #8D72FF 100%); box-shadow: 0 10px 24px -6px rgba(110, 79, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); box-shadow: 0 14px 30px -8px rgba(110, 79, 246, .65); }
.btn-ghost { background: #fff; border-color: var(--line); box-shadow: 0 2px 6px rgba(15, 23, 42, .05); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(110, 79, 246, .4); outline-offset: 3px; }
.section-dark .btn-ghost, .cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.section-dark .btn-ghost:hover, .cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.more { display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover .more { gap: 10px; }
.more { transition: gap .2s; }

/* Formules de prix */
.plan { border-radius: 24px; padding: 40px 32px 32px; }
.plan h2 { margin-bottom: 6px; }
.plan .ticks { margin-bottom: 28px; }
.plan-featured { background: linear-gradient(165deg, #241653 0%, var(--navy) 70%); border: 0; color: #C7D2E8; transform: translateY(-10px); box-shadow: 0 30px 60px -20px rgba(36, 22, 83, .55); }
.plan-featured h2, .plan-featured .plan-price { color: #fff !important; }
.plan-featured p { color: #C7D2E8; }
.plan-featured .ticks li { color: #E2E8F0; }
.plan-badge { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
@media (max-width: 900px) { .plan-featured { transform: none; } }

/* Encadré auteur des articles */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 24px; border-radius: 20px; background: var(--tint); border: 1px solid var(--line); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; }
.author-box b { display: block; color: var(--ink); font-size: 17px; }
.author-box small { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.author-box p { margin: 0; font-size: 15px; }
