/* ═══════════════════════════════════════════════════════════════════
   ADRD v5 — Surcouche identité unifiée (pages intérieures)
   Chargée APRÈS landing.css. Aligne typo/couleurs sur la home v5
   + thème clair automatique (7h-19h) scopé html.light.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens alignés home v5 ── */
:root {
  --bg-primary: #060610;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.09);
  --text-primary: #f4f5fb;
  --text-secondary: #9599b3;
  --text-muted: #5b5f7a;
  --v5-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --v5-font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

/* ── Typo système (remplace Syne / Space Grotesk) ── */
body { font-family: var(--v5-font-body) !important; background: var(--bg-primary) !important; }
h1, h2, h3, h4, .hero-title, .section-title, .logo {
  font-family: var(--v5-font-display) !important;
  letter-spacing: -0.03em;
}
.hero-title { font-weight: 600; }

/* ── Header aligné home ── */
header { background: color-mix(in oklch, var(--bg-primary) 78%, transparent) !important; backdrop-filter: blur(18px) saturate(140%) !important; border-bottom: 1px solid var(--border-color) !important; }
.btn-header, .btn-primary { border-radius: 999px !important; }
.btn-header-outline, .btn-secondary { border-radius: 999px !important; }

/* ── Bouton toggle thème ── */
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: .2s; flex: none; }
.theme-toggle:hover { color: var(--text-primary); transform: rotate(15deg); }

/* ── Logos jour / nuit ── */
.logo-light { display: none !important; } .logo-dark { display: block !important; }
html.light .logo-light { display: block !important; } html.light .logo-dark { display: none !important; }

/* ═══ THÈME CLAIR (7h-19h auto) ═══ */
html.light {
  --bg-primary: #ffffff;
  --bg-card: #ffffff;
  --border-color: rgba(10, 15, 40, 0.12);
  --text-primary: #1d1d1f;
  --text-secondary: #54586c;
  --text-muted: #8a8fa3;
}
html.light body { background: #ffffff !important; color: var(--text-primary) !important; }
html.light header { background: rgba(255, 255, 255, 0.78) !important; }
html.light .mobile-nav { background: rgba(255, 255, 255, 0.98) !important; }
html.light .mobile-menu-btn span { background: var(--text-primary) !important; }
html.light #bg-canvas { opacity: .22; }
html.light .bg-gradient { opacity: .5; }
html.light .cookie-banner { background: #ffffff !important; color: var(--text-secondary); }
html.light .testimonial-card, html.light .service-card, html.light .counter-card,
html.light .timeline-content, html.light .faq-item, html.light .partner-card,
html.light .value-card, html.light .team-card {
  background: #ffffff !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 20px 60px -30px rgba(20, 25, 70, 0.15);
}
html.light .badge { background: rgba(99, 102, 241, 0.07) !important; }
html.light footer { background: #f5f5f7 !important; border-top: 1px solid var(--border-color); }
html.light .social-link { background: rgba(10, 15, 40, 0.05) !important; color: var(--text-secondary) !important; }
html.light input, html.light select, html.light textarea { background: #ffffff !important; color: var(--text-primary) !important; border-color: var(--border-color) !important; }

/* transition douce au basculement manuel */
html.theme-anim body, html.theme-anim header, html.theme-anim footer,
html.theme-anim .testimonial-card, html.theme-anim .service-card, html.theme-anim .counter-card {
  transition: background-color .7s ease, color .7s ease, border-color .7s ease;
}

/* ── Footer v5 unifié (pages intérieures) ── */
.pagefoot { padding: 56px 32px 32px; color: var(--text-secondary); font-size: 14px; border-top: 1px solid var(--border-color); background: transparent; position: relative; z-index: 10; }
.pagefoot .foot-inner { max-width: 1200px; margin: 0 auto; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 { font-size: 12px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0 0 14px; font-weight: 500; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { color: var(--text-secondary); font-size: 14px; transition: color .2s; text-decoration: none; }
.foot-col a:hover { color: var(--text-primary); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-muted); font-size: 12.5px; }
html.light .pagefoot { background: #f5f5f7 !important; }

/* ── Ambiance radiale v5 (remplace canvas particules) ── */
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 18% 8%, rgba(99,102,241,.14), transparent 60%),
              radial-gradient(50% 40% at 88% 22%, rgba(6,182,212,.10), transparent 60%); }
html.light body::before { opacity: .5; }

/* ── Fix 11/07 : avis + banding thème clair ── */
.testimonials-section { background: transparent !important; }
html.light .glow { display: none; }
html.light body::before { display: none; }
html.light .section-label { color: #6366f1; }
html.light .testimonial-quote, html.light .testimonial-author { color: var(--text-primary) !important; }
html.light .testimonial-role { color: var(--text-muted) !important; }

/* ── Kill scanlines hero (traits horizontaux, invisibles en dark, moches en light) ── */
.hero::after { display: none !important; }

/* ── Sélecteur de langue (homogène avec la home) ── */
.lang-selector { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-card, rgba(255,255,255,.04)); border: 1px solid var(--border-color, rgba(255,255,255,.12)); border-radius: 999px; color: var(--text-secondary, #a7abc4); padding: 7px 13px; font-size: 13px; cursor: pointer; font-family: inherit; }
.lang-btn svg { width: 15px; height: 15px; }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #10101f; border: 1px solid var(--border-color, rgba(255,255,255,.12)); border-radius: 14px; padding: 6px; display: none; min-width: 150px; box-shadow: 0 18px 50px rgba(0,0,0,.45); z-index: 60; }
.lang-dropdown.open { display: block; }
.lang-option { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--text-secondary, #a7abc4); padding: 9px 12px; border-radius: 9px; font-size: 14px; text-align: left; cursor: pointer; font-family: inherit; }
.lang-option:hover, .lang-option.active { background: rgba(255,255,255,.06); color: var(--text-primary, #fff); }
html.light .lang-dropdown { background: #ffffff; }
html.light .lang-option:hover, html.light .lang-option.active { background: rgba(10,10,30,.06); }
