/* ══════════════════════════════════════════════════════════════════
   STRATÉGIKA DIGITAL — brand.css v8.1 — THÈME CLAIR
   Hero sombre Canard · Corps ivoire · Texte encre
   ══════════════════════════════════════════════════════════════════ */

@import url("https://api.fontshare.com/v2/css?f[]=clash-display@600,700&f[]=general-sans@400,500,600&display=swap");

/* ── VARIABLES ───────────────────────────────────────────────────── */
:root {
  /* Palette DA v2 — inchangée */
  --deep:    #0F5D54;
  --signal:  #198591;
  --tiffany: #0ABAB5;
  --coral:   #FF6B4A;
  --ivory:   #F2EEE3;
  --encre:   #071E1C;

  /* Thème clair — fond ivoire, texte encre */
  --page-bg: #F2EEE3;
  --card-bg: #FFFFFF;
  --border:  rgba(15,93,84,.14);
  --text:    #071E1C;
  --muted:   rgba(7,30,28,.62);
  --dim:     rgba(7,30,28,.42);

  /* Aliases compat (style.css) — redéfinis pour thème clair */
  --black:       #071E1C;
  --dark:        var(--page-bg);   /* sections avec bg:var(--dark) deviennent ivoire */
  --dark2:       var(--card-bg);   /* cartes dark2 deviennent blanches */
  --dark3:       var(--card-bg);
  --white:       var(--encre);     /* textes var(--white) deviennent encre */
  --accent:      var(--signal);
  --accent2:     var(--tiffany);
  --accent-glow: rgba(25,133,145,.12);
  --text-muted:  var(--muted);
  --text-dim:    var(--dim);
  --font: 'General Sans','Montserrat',system-ui,sans-serif;
  --font-display: 'Clash Display','General Sans','Montserrat',system-ui,sans-serif;
}

/* ── BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font); background: var(--page-bg); color: var(--text); }

/* ── TITRES → CLASH DISPLAY ──────────────────────────────────────── */
h1, h2, h3, h4,
.hero__title, .section-title, .section__title,
.service-card__title, .conseil-card__title,
.step__title, .expertise__content h2,
.diagnostic__intro h2, .cta-section h2,
.hp-pipeline__title, .positioning__item h3 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  color: var(--encre);
}

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav__links a, .nav__links li > a { white-space: nowrap; }
.nav__logo img { height: 32px !important; width: 160px !important; object-fit: contain; object-position: left center; }

/* Nav scrolled — ivoire sur contenu clair */
.nav.scrolled {
  background: rgba(242,238,227,.97) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(15,93,84,.12) !important;
  box-shadow: 0 2px 16px rgba(15,93,84,.08) !important;
}
.nav.scrolled .nav__links a:not(.mega__card-cta),
.nav.scrolled .nav__links li > a:not(.mega__card-cta) {
  color: var(--encre) !important;
}
.nav.scrolled .mega__card-cta,
.nav__mega .mega__card-cta { color: #fff !important; }
.nav.scrolled .nav__cta {
  border-color: var(--signal) !important;
  color: var(--signal) !important;
}

/* ── HERO — fond sombre Canard (homepage + pages internes) ──────── */
.hero {
  background: linear-gradient(160deg, #071E1C 0%, #0F3530 50%, #071E1C 100%) !important;
}
.page-hero {
  background: linear-gradient(160deg, #071E1C 0%, #0C2D29 60%, #071E1C 100%) !important;
}
/* Texte dans les heroes — reste ivory */
.hero, .page-hero { color: var(--ivory) !important; }
.hero h1, .hero h2, .hero p,
.page-hero h1, .page-hero h2, .page-hero p,
.page-hero__title, .hero__subtitle,
.hero__trust, .hero__trust span { color: var(--ivory) !important; }
.hero .eyebrow, .page-hero .eyebrow { color: rgba(242,238,227,.7) !important; -webkit-text-fill-color: unset !important; }
/* BTN outline dans le hero — reste visible */
.hero .btn--outline, .page-hero .btn--outline {
  border-color: rgba(242,238,227,.45) !important;
  color: var(--ivory) !important;
}

/* ── BTN PRIMARY → CORAIL ────────────────────────────────────────── */
.btn--primary {
  background: linear-gradient(135deg, #FF6B4A 0%, #ff8a6a 100%) !important;
  box-shadow: 0 4px 24px rgba(255,107,74,.32) !important;
  position: relative; overflow: hidden;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #e85530 0%, #FF6B4A 100%) !important;
  box-shadow: 0 8px 36px rgba(255,107,74,.48) !important;
  transform: translateY(-2px);
}

/* ── S-LIGHT — thème clair natif ────────────────────────────────── */
.s-light {
  background: var(--page-bg) !important;
  color: var(--text) !important;
}
.s-light h1, .s-light h2, .s-light h3, .s-light h4 { color: var(--encre) !important; }
.s-light p { color: var(--muted) !important; }

/* ── SECTIONS — blanc + vert + 2 touches ivoire max ─────────────── */
/*
   hero (sombre) → problem (ivoire) → positioning (vert foncé)
   → hp-pipeline (blanc) → services (blanc) → outils (vert clair)
   → expertise (blanc) → pourqui (ivoire) → conseils (blanc)
   → faq (vert clair) → cta (sombre) → footer (sombre)
*/

/* IVOIRE — 2 sections max */
.problem,
.pourqui,
.methode,
.vision {
  background: var(--page-bg) !important;
  color: var(--text) !important;
}

/* BLANC */
.hp-pipeline,
.services,
.expertise,
.conseils {
  background: var(--card-bg) !important;
  color: var(--text) !important;
}

/* VERT CLAIR — teal frais */
section#outils.s-light {
  background: #E4F3F2 !important;
  color: var(--text) !important;
}
.faq {
  background: #E8F5F4 !important;
  color: var(--text) !important;
}

/* VERT FONCÉ — positioning (avantages) */
.positioning {
  background: linear-gradient(135deg, #0F5D54 0%, #0B4038 100%) !important;
  color: var(--ivory) !important;
}
.positioning h2, .positioning h3 { color: var(--ivory) !important; }
.positioning p { color: rgba(242,238,227,.78) !important; }
.positioning .eyebrow { color: var(--tiffany) !important; }

/* Titres dans les sections claires — SANS .positioning (fond sombre) */
.expertise h2, .expertise h3,
.vision h2, .vision h3,
.methode h2, .methode h3,
.problem h2, .problem h3,
.services h2, .services h3,
.conseils h2, .conseils h3,
.faq h2, .faq h3 {
  color: var(--encre) !important;
}

/* ── CARTES — fond blanc sur ivoire ──────────────────────────────── */
.service-card,
.conseil-card,
.step,
.hp-pipe__card {
  background: var(--card-bg) !important;
  border: 1px solid rgba(15,93,84,.1) !important;
  border-left: 3px solid rgba(10,186,181,.45) !important;
  box-shadow: 0 2px 12px rgba(15,93,84,.06);
  color: var(--text) !important;
}
/* Titres dans les cartes */
.service-card h3, .conseil-card h3, .step h3,
.hp-pipe__card h3 { color: var(--encre) !important; }
/* Descriptions dans les cartes */
.service-card p, .conseil-card p, .step p { color: var(--muted) !important; }

/* ── POSITIONING ITEMS — cartes vert profond, accent corail ─────── */
.positioning__item {
  background: linear-gradient(160deg, #0B3E37 0%, #071E1C 100%) !important;
  border: 1px solid rgba(10,186,181,.18) !important;
  border-top: 3px solid #FF6B4A !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.28), 0 1px 0 rgba(255,107,74,.25) inset;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ivory) !important;
  transition: transform .35s cubic-bezier(.32,.72,0,1), box-shadow .35s, border-color .25s !important;
}
.positioning__item:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.35), 0 0 24px rgba(10,186,181,.18) !important;
  border-color: rgba(10,186,181,.35) !important;
  border-top-color: #FF6B4A !important;
}
.positioning__item h3 {
  color: var(--ivory) !important;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.positioning__item p  { color: rgba(242,238,227,.72) !important; }
.positioning__item .positioning__icon {
  background: rgba(255,107,74,.12) !important;
  border: 1px solid rgba(255,107,74,.3) !important;
  color: #FF6B4A !important;
}

/* ── CHIFFRES STATS → SIGNAL/TIFFANY ────────────────────────────── */
.expertise__stat strong,
.hp-pipeline__stat,
.stat-number,
[class*="stat"] strong,
[class*="chiffre"] {
  color: var(--tiffany) !important;
}

/* ── ICÔNES / CHECKMARKS → SIGNAL ───────────────────────────────── */
.expertise__check,
.diag__check,
.feature-check,
.service__check,
[class*="check-icon"] {
  color: var(--signal) !important;
}

/* ── LABELS / EYEBROWS → SIGNAL ──────────────────────────────────── */
.section-eyebrow,
.eyebrow,
.label,
[class*="eyebrow"],
.diag__booking-eyebrow,
.quiz__step-label {
  color: var(--signal) !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 600;
}

/* ── GRADIENT TEXT HERO (reste sur fond sombre) ──────────────────── */
.hero__title span,
.gradient-text {
  background: linear-gradient(90deg, var(--tiffany), #7EECEA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── GARDE-FOU : spans dans les boutons → jamais de gradient text ─── */
.btn span, .btn strong {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}

/* ── TEXTE COURANT ───────────────────────────────────────────────── */
p { color: var(--muted); }
strong, b { color: var(--encre); }
a { color: var(--signal); }

/* ── CTA SECTION — conserve le sombre Canard ─────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--deep) 0%, #0c2523 60%, var(--deep) 100%) !important;
  border-top: 1px solid rgba(10,186,181,.15);
  border-bottom: 1px solid rgba(10,186,181,.15);
}
.cta-section,
.cta-section h1, .cta-section h2, .cta-section h3 { color: var(--ivory) !important; }
.cta-section p { color: rgba(242,238,227,.78) !important; }

/* ── FOOTER — sombre ─────────────────────────────────────────────── */
.footer { background: #071E1C !important; border-top: none !important; }
.footer, .footer p, .footer li, .footer a { color: rgba(242,238,227,.62) !important; }
.footer h4, .footer strong { color: var(--ivory) !important; }
.footer a:hover { color: var(--tiffany) !important; }
.footer__copy,
.footer .footer__copy p { color: rgba(242,238,227,.38) !important; }

/* ── SCROLL PROGRESS BAR ─────────────────────────────────────────── */
#sd-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--tiffany) 50%, var(--signal) 100%);
  background-size: 200% 100%;
  animation: progressFlow 3s linear infinite;
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
}
@keyframes progressFlow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── CURSOR CUSTOM — invisible par défaut, visible sur zones importantes ── */
.sd-cursor {
  position: fixed; left: 0; top: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(10,186,181,.95);
  pointer-events: none; z-index: 9997; will-change: transform;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.sd-cursor-ring {
  position: fixed; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(10,186,181,.5);
  pointer-events: none; z-index: 9996; will-change: transform;
  opacity: 0;
  transition: opacity 0.15s ease, width .2s, height .2s, border-color .2s;
}
body.sd-cursor--active .sd-cursor { opacity: 1; }
body.sd-cursor--active .sd-cursor-ring { opacity: 1; }
.sd-cursor-ring.hovered,
.sd-cursor-ring.is-hovered { width: 52px; height: 52px; border-color: rgba(10,186,181,.8); }

/* ── SCROLL REVEAL ANIMATIONS ────────────────────────────────────── */
.reveal-init {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(.32,.72,0,1), transform 0.65s cubic-bezier(.32,.72,0,1);
  will-change: opacity, transform;
}
.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── ANIMATION STATES (GSAP reset) ──────────────────────────────── */
[data-fx] { will-change: transform, opacity; }

/* ── CARD HOVERS ─────────────────────────────────────────────────── */
.service-card, .conseil-card, .step, .positioning__item, .hp-pipe__card {
  transition: transform .4s cubic-bezier(.32,.72,0,1), box-shadow .4s cubic-bezier(.32,.72,0,1), border-color .3s;
}
.service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 40px rgba(15,93,84,.12), 0 4px 12px rgba(0,0,0,.06) !important;
  border-left-color: var(--tiffany) !important;
}
.conseil-card:hover {
  transform: translateX(6px) !important;
  border-left-color: var(--tiffany) !important;
  box-shadow: 0 8px 24px rgba(15,93,84,.1) !important;
}
.step:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(15,93,84,.1) !important;
}

/* ── SECTION DIVIDERS GRADIENT ───────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--signal) 30%, var(--tiffany) 50%, var(--signal) 70%, transparent 100%);
  margin: 0; border: none;
}

/* ── DÉCORATIF — ligne signal sous les titres h2 ─────────────────── */
.section-title::after,
.section__title::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--signal), transparent);
  margin-top: 12px;
}

/* ── NAV UNDERLINE ───────────────────────────────────────────────── */
.nav__links li:not(.nav__dropdown):not(.nav__has-mega) > a:not(.nav__cta)::after {
  background: var(--signal);
}

/* ── SERVICE CARD — overflow visible pour le badge absolu ────────── */
.service-card { overflow: visible !important; }

/* ── BTN PRIMARY — texte blanc sur fond corail ───────────────────── */
.btn--primary,
.btn--primary span,
.btn--primary strong { color: #fff !important; }

/* ── HERO PROOF ITEMS — blanc sur fond sombre ────────────────────── */
.proof__item strong { color: var(--ivory) !important; }
.proof__item span   { color: rgba(242,238,227,.7) !important; }

/* ── HERO SUB — description lisible, typo propre ────────────────── */
.hero__sub {
  font-family: var(--font) !important;
  letter-spacing: 0.01em !important;
  color: rgba(242,238,227,.85) !important;
}

/* ── HP-PIPELINE & POURQUI — textes sur fond maintenant clair ───── */
.hp-pipeline__header h2,
.hp-pipe__step:hover .hp-pipe__label,
.hp-pipe__step--active .hp-pipe__label,
.hp-pipe__card-body h4 { color: var(--encre) !important; }
.hp-pipe__label { color: var(--muted) !important; }
.hp-pipe__sublabel { color: var(--dim) !important; }
.hp-pipeline__header p { color: var(--muted) !important; }
.hp-pipe__card-body p { color: var(--muted) !important; }
.hp-pipe__card-body h4 { color: var(--encre) !important; }

/* ── FORMULAIRES ─────────────────────────────────────────────────── */
input, textarea, select {
  background: var(--card-bg) !important;
  color: var(--encre) !important;
  border-color: rgba(15,93,84,.2) !important;
}
input::placeholder, textarea::placeholder { color: var(--dim) !important; }
input:focus, textarea:focus { border-color: var(--signal) !important; }

/* ══════════════════════════════════════════════════════════════════
   CORRECTIONS GLOBALES — textes hardcodés #fff sur fond clair
   ══════════════════════════════════════════════════════════════════ */

/* Articles */
.article-content h2,
.article-content h3,
.article-faq-item h3,
.article-section h2,
.article-section h3 { color: var(--encre) !important; }
.article-content p,
.article-content li,
.article-faq-item p { color: var(--muted) !important; }

/* Vision page */
.vision-section h2,
.vision-section h3 { color: var(--encre) !important; }
.vision-section p,
.vision-lead { color: var(--muted) !important; }
.vision-section strong,
.vision-section b { color: var(--encre) !important; }

/* Services pages */
.service-detail h2, .service-detail h3,
.service-hero h1, .service-hero h2,
.why-item h3, .why-us h3,
.process-step h3, .deliverable-item h3,
.offre-card h3, .offre-card h4 { color: var(--encre) !important; }
.service-detail p, .why-item p,
.process-step p, .deliverable-item p,
.offre-card p { color: var(--muted) !important; }

/* Contact */
.contact-info-card h3,
.contact-promise h3,
.contact-section h2,
.contact-section h3 { color: var(--encre) !important; }
.contact-info-card p,
.contact-promise p { color: var(--muted) !important; }

/* Auto-diagnostics */
.tool-section h2, .tool-section h3,
.diag-card h3, .quiz-section h2 { color: var(--encre) !important; }

/* Pourquoi Stratégika */
.pourquoi-section h2, .pourquoi-section h3,
.argument h3, .valeur h3 { color: var(--encre) !important; }
.pourquoi-section p, .argument p { color: var(--muted) !important; }

/* Conseils / Blog */
.blog-newsletter__inner h2,
.blog-post h2, .blog-post h3 { color: var(--encre) !important; }

/* Connected cards (ma-vision) */
.connected-card h3 { color: var(--encre) !important; }
.connected-card p  { color: var(--muted) !important; }
.connected-card__num { color: var(--signal) !important; }

/* Règle catch-all : tout h2/h3/p dans une section s-dark sur fond clair */
.s-dark h2, .s-dark h3 { color: var(--encre) !important; }
.s-dark p { color: var(--muted) !important; }

/* ══════════════════════════════════════════════════════════════════
   STRATEGIKA.HTML — Sections sur fond sombre (black=#071E1C)
   La règle générique h2{color:var(--encre)} écrase #fff hardcodé.
   On re-force le texte ivoire pour les sections qui gardent un fond sombre.
   ══════════════════════════════════════════════════════════════════ */

/* story--dark : fond var(--black)=#071E1C en thème clair → texte ivoire */
.story--dark h2,
.story--dark h3 { color: var(--ivory) !important; }
.story--dark p { color: rgba(242,238,227,.78) !important; }
.story--dark p strong { color: var(--ivory) !important; }
.story--dark p em { color: var(--tiffany) !important; }
.story--dark .story__pullquote { color: var(--ivory) !important; }
.story--dark .story__list li {
  color: rgba(242,238,227,.82) !important;
  background: rgba(25,133,145,.06) !important;
  border-color: rgba(82,197,200,.12) !important;
}
.story--dark .story__list li strong { color: var(--ivory) !important; }
.story--dark .story__list li span { color: rgba(242,238,227,.7) !important; }
.story--dark .story__link-back {
  color: rgba(242,238,227,.85) !important;
  background: rgba(25,133,145,.08) !important;
}

/* story--darker : fond var(--dark)=var(--page-bg)=#F2EEE3 → texte encre */
.story--darker h2,
.story--darker h3 { color: var(--encre) !important; }
.story--darker p { color: var(--muted) !important; }
.story--darker p strong { color: var(--encre) !important; }
.story--darker p em { color: var(--signal) !important; }
.story--darker .story__pullquote {
  color: var(--encre) !important;
  border-left-color: var(--signal) !important;
}
.story--darker .story__list li {
  color: var(--muted) !important;
  background: rgba(15,93,84,.06) !important;
  border-color: rgba(15,93,84,.12) !important;
}
.story--darker .story__list li strong { color: var(--encre) !important; }
.story--darker .story__list li span { color: var(--muted) !important; }
.story--darker .story__link-back {
  color: var(--encre) !important;
  background: rgba(15,93,84,.08) !important;
}

/* values section : fond var(--black)=#071E1C → header reste ivoire */
.values .section-header h2 { color: var(--ivory) !important; }
.values .section-header p { color: rgba(242,238,227,.75) !important; }

/* value-card : fond var(--dark2)=var(--card-bg)=#fff → texte encre */
.value-card h3 { color: var(--encre) !important; }
.value-card p { color: var(--muted) !important; }

/* ── MOBILE ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sd-cursor, .sd-cursor-ring { display: none; }
  .service-card:hover, .conseil-card:hover, .step:hover { transform: none !important; }
}
