/*
Theme Name: Akra Theme V3
Theme URI: https://amineakra.com
Author: Amine Akra
Author URI: https://amineakra.com
Description: Thème premium consultant marketing digital — signature "salle de pilotage", dark mode natif + light mode, SEO/GEO-ready, Gutenberg-compatible.
Version: 3.0.0
Requires PHP: 8.0
Requires at least: 6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akra-theme-v3
*/

/* ============================================================
   FONTS — variables, self-hosted (aucune requête externe)
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-vf.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-vf.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-vf.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   Deux thèmes : dark (défaut) et light via [data-theme="light"]
   ============================================================ */

:root {
  /* Élévations — du plus profond au plus élevé */
  --bg-0:      #07080c;
  --bg-1:      #0a0b0f;   /* fond de page */
  --bg-2:      #11131a;   /* surface */
  --bg-3:      #171a24;   /* carte élevée */
  --bg-4:      #1e2230;   /* hover */

  /* Accent — duo discipliné bleu + cyan. C'est tout. */
  --blue:        #3b82f6;
  --blue-light:  #60a5fa;
  --blue-deep:   #1d4ed8;
  --cyan:        #22d3ee;

  /* Sémantiques (réservées : métriques positives / erreurs) */
  --positive:    #34d399;
  --negative:    #f87171;

  /* Encre */
  --ink:       #f2f5f9;
  --ink-2:     #c3cbd8;
  --ink-3:     #8b96a8;
  --ink-4:     #5f6b80;

  /* Bordures & lignes techniques */
  --border:        rgba(148, 163, 184, 0.10);
  --border-strong: rgba(148, 163, 184, 0.22);
  --grid-line:     rgba(148, 163, 184, 0.05);

  /* Verre */
  --glass:      rgba(17, 19, 26, 0.66);
  --blur:       saturate(140%) blur(18px);

  /* Gradients */
  --grad-accent: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-card:   linear-gradient(165deg, rgba(59,130,246,0.07) 0%, rgba(34,211,238,0.03) 60%, transparent 100%);

  /* Glows — basse opacité, la profondeur sans le sapin de Noël */
  --glow-blue: radial-gradient(closest-side, rgba(59,130,246,0.16), transparent);
  --glow-cyan: radial-gradient(closest-side, rgba(34,211,238,0.10), transparent);

  /* Ombres */
  --shadow-sm:  0 2px 10px rgba(2, 4, 10, 0.30);
  --shadow-md:  0 10px 32px rgba(2, 4, 10, 0.38);
  --shadow-lg:  0 24px 64px rgba(2, 4, 10, 0.46);
  --shadow-cta: 0 8px 28px rgba(59, 130, 246, 0.28);

  /* Typographie */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Échelle fluide */
  --text-display: clamp(2.5rem, 1.2rem + 5.2vw, 4.4rem);
  --text-h1:      clamp(2.2rem, 1.4rem + 3.2vw, 3.4rem);
  --text-h2:      clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --text-h3:      clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
  --text-h4:      1.125rem;
  --text-lead:    clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --text-body:    1rem;
  --text-sm:      0.875rem;
  --text-caption: 0.8125rem;
  --text-micro:   0.72rem;

  /* Rayons */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-xl: 22px;  --r-full: 999px;

  /* Mouvements */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 160ms;  --t-med: 320ms;  --t-slow: 560ms;

  /* Layout */
  --container: 1180px;
  --header-h: 72px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg-0: #eef1f6;
  --bg-1: #f7f9fc;
  --bg-2: #ffffff;
  --bg-3: #ffffff;
  --bg-4: #eef2f8;

  --ink:   #0e1420;
  --ink-2: #333d4f;
  --ink-3: #5e6a7f;
  --ink-4: #8a94a6;

  --border:        rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.20);
  --grid-line:     rgba(15, 23, 42, 0.045);

  --glass: rgba(255, 255, 255, 0.72);

  --grad-card: linear-gradient(165deg, rgba(59,130,246,0.06) 0%, rgba(34,211,238,0.03) 60%, transparent 100%);
  --glow-blue: radial-gradient(closest-side, rgba(59,130,246,0.10), transparent);
  --glow-cyan: radial-gradient(closest-side, rgba(34,211,238,0.07), transparent);

  --shadow-sm:  0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md:  0 10px 32px rgba(15, 23, 42, 0.09);
  --shadow-lg:  0 24px 64px rgba(15, 23, 42, 0.12);
  --shadow-cta: 0 8px 28px rgba(59, 130, 246, 0.24);

  color-scheme: light;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg-1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}

img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; }

/* Icônes du thème — dimensions par défaut, sécurité contre l'étirement */
svg.icon { width: 17px; height: 17px; flex-shrink: 0; }
.breadcrumb ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

::selection { background: rgba(59, 130, 246, 0.35); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow { max-width: 820px; }
.container-wide   { max-width: 1320px; }

.section    { padding-block: clamp(72px, 10vw, 128px); }
.section-sm { padding-block: clamp(48px, 6vw, 72px); }

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

/* ============================================================
   UTILITAIRES TYPO — langage "console"
   ============================================================ */

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.mono-label--accent { color: var(--blue-light); }

.accent-gradient {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead { font-size: var(--text-lead); color: var(--ink-2); line-height: 1.75; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-light);
  margin-bottom: 18px;
}

.section-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--grad-accent);
}

.section-head--center .section-eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--grad-accent);
}

.section-title { font-size: var(--text-h2); margin-bottom: 16px; }

.section-sub { font-size: var(--text-lead); color: var(--ink-3); line-height: 1.7; }

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out),
              background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.btn .icon { width: 17px; height: 17px; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, #2f9fe0);
  color: #fff;
  box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(59,130,246,0.36), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover { border-color: var(--blue); color: var(--ink); background: rgba(59,130,246,0.06); }

.btn-ghost {
  padding: 0;
  border-radius: 0;
  color: var(--blue-light);
  font-weight: 600;
  gap: 8px;
}

.btn-lg { padding: 17px 34px; font-size: 1.03rem; border-radius: var(--r-lg); }
.btn-sm { padding: 10px 18px; font-size: var(--text-sm); }

/* ============================================================
   CARTES
   ============================================================ */

.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med), box-shadow var(--t-med);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}

.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--ink-2);
  background: var(--bg-2);
}

.badge--available { border-color: rgba(52, 211, 153, 0.3); color: var(--positive); background: rgba(52, 211, 153, 0.07); }

.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--positive); flex-shrink: 0; }
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--positive);
  animation: pulse-ring 2.2s var(--ease-out) infinite;
}

/* ============================================================
   DATA — chiffres façon cockpit
   ============================================================ */

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.stat-value--accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-caption {
  font-size: var(--text-caption);
  color: var(--ink-3);
  margin-top: 8px;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-2);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--t-med);
}

.faq-item.is-open { border-color: rgba(59, 130, 246, 0.45); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
  transition: color var(--t-fast);
}

.faq-question:hover { color: var(--blue-light); }

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  transition: transform var(--t-med) var(--ease-out), color var(--t-fast);
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--blue-light); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease-out);
}

.faq-answer > div {
  overflow: hidden;
  padding-inline: 24px;
  color: var(--ink-3);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > div { padding-bottom: 22px; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 30px; width: auto; }
[data-theme="light"] .logo-dark-only { display: none; }
.logo-light-only { display: none; }
[data-theme="light"] .logo-light-only { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}

.nav-link:hover, .nav-link[aria-current="page"], .nav-link.active { color: var(--ink); background: rgba(148,163,184,0.08); }

.nav-link .chevron { width: 13px; height: 13px; transition: transform var(--t-fast); }
.has-dropdown.is-open > .nav-link .chevron, .has-dropdown:hover > .nav-link .chevron { transform: rotate(180deg); }

/* Dropdown Services — accessible clavier ET souris */
.has-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 8px;
  width: 560px;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease-out), translate var(--t-fast) var(--ease-out), visibility var(--t-fast);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
}

.dropdown-menu--sectors {
  width: 580px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  transition: background-color var(--t-fast);
}

.dropdown-item:hover { background: var(--bg-4); }

.dropdown-item .icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(59, 130, 246, 0.10);
  color: var(--blue-light);
}
.dropdown-item .icon svg { width: 17px; height: 17px; }

.dropdown-item-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.dropdown-item-desc { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-3); margin-top: 3px; letter-spacing: 0.02em; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  border: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--border); background: var(--bg-2); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.availability-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* Burger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast), width var(--t-med) var(--ease-out);
}

.menu-toggle span:nth-child(2) { width: 70%; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav — passage plus tôt pour éviter le wrap sur les items à 2 mots */
@media (max-width: 1180px) {
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 32px;
    translate: 0 -12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med) var(--ease-out), translate var(--t-med) var(--ease-out), visibility var(--t-med);
  }

  .nav-menu.is-open { opacity: 1; visibility: visible; translate: 0 0; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 14px 10px; font-size: 1.05rem; border-radius: var(--r-md); justify-content: space-between; }

  .dropdown-menu {
    position: static;
    translate: none;
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 12px;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .has-dropdown.is-open .dropdown-menu { display: grid; translate: none; }

  .menu-toggle { display: flex; }
  .availability-chip { display: none; }
}

@media (max-width: 640px) {
  .hide-mobile-inline { display: none !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding-top: clamp(56px, 8vw, 88px);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  translate: -50%;
  width: 900px; height: 400px;
  background: var(--glow-blue);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-link-strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-light) !important;
  font-weight: 600;
}
.footer-link-strong::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--positive);
}

.footer-tagline { color: var(--ink-3); font-size: 0.95rem; max-width: 300px; margin-top: 16px; line-height: 1.7; }

.footer-socials { display: flex; gap: 10px; margin-top: 24px; }

.social-link {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--ink-3);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.social-link:hover { color: var(--blue-light); border-color: var(--blue); transform: translateY(-2px); }
.social-link svg { width: 17px; height: 17px; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 11px; }
.footer-links a {
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--blue-light); }

.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink-2); font-size: 0.92rem; }
.footer-contact-item svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }
.footer-contact-item a:hover { color: var(--blue-light); }

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom, .footer-bottom a { font-size: var(--text-caption); color: var(--ink-4); }
.footer-bottom a:hover { color: var(--ink-2); }
.footer-legal-links { display: flex; gap: 20px; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes pulse-ring {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reveals au scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   WHATSAPP — discret, coin bas droit
   ============================================================ */

.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--r-full);
  background: #14b866;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-med);
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 24px; height: 24px; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 86px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity var(--t-med), translate var(--t-med) var(--ease-out), visibility var(--t-med);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
.back-to-top svg { width: 16px; height: 16px; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -72px; left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ============================================================
   EFFETS PREMIUM v3.1 — spotlight, dot pattern, view transitions
   ============================================================ */

/* ── SPOTLIGHT sur les cartes services ────────────────────
   La carte suit la souris avec un halo radial, à la Vercel/Linear.
   Activé sur .card via variables CSS --mx --my mises à jour en JS. */

.card.card-spotlight {
  position: relative;
  isolation: isolate;
}
.card.card-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(59, 130, 246, 0.14),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
  z-index: 0;
}
.card.card-spotlight:hover::after { opacity: 1; }
.card.card-spotlight > * { position: relative; z-index: 1; }

/* ── DOT PATTERN animé subtil pour les backgrounds ────────
   Utilisable via .dot-pattern sur n'importe quel container.
   Points qui pulsent doucement — pas de bruit visuel. */

.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border-strong) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 30%, transparent 80%);
  opacity: 0.5;
  animation: dot-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.4; background-size: 26px 26px; }
  50%      { opacity: 0.7; background-size: 27px 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot-pattern { animation: none; }
}

/* ── CURSEUR MAGNÉTIQUE — état visuel du CTA "aimanté" ───
   Le déplacement du curseur est géré en JS ; le CSS s'occupe
   de l'attraction visuelle du bouton lui-même. */

.btn.is-magnetic {
  transition: transform 240ms var(--ease-spring), box-shadow var(--t-med);
  will-change: transform;
}

/* ── VIEW TRANSITIONS API — nomme les éléments partagés ──
   Le hero H1 morphe entre pages, les logos aussi. */

@supports (view-transition-name: none) {
  .site-logo-vt { view-transition-name: site-logo; }
  .hero-title-vt { view-transition-name: hero-title; }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 320ms;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  ::view-transition-old(root) { animation-name: vt-fade-out; }
  ::view-transition-new(root) { animation-name: vt-fade-in; }

  @keyframes vt-fade-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-fade-in  { from { opacity: 0; transform: translateY(8px); } }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
