/* Tailwind v3 — utilitaires seulement, sans preflight (preserves argos.css) */
@tailwind utilities;

/*
  Initialisation manuelle des variables CSS Tailwind.
  Sans @tailwind base, ces propriétés sont "unset" ce qui invalide
  toute la chaîne de variables (gradient, shadow, transform, etc.)
  et les rend invisibles. On les initialise à vide (≠ unset).
*/
*, ::before, ::after {
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
}

/* Animations personnalisées */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

.animate-fade-in-delay {
  animation: fade-in 0.6s ease-out 0.2s both;
}

/* Gradient radial pour le background */
.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Transitions douces pour les éléments interactifs */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Fix backdrop-blur */
.backdrop-blur-fallback {
  background-color: rgba(29, 32, 77, 0.95);
}

@supports (backdrop-filter: blur(12px)) {
  .backdrop-blur-fallback {
    background-color: rgba(29, 32, 77, 0.8);
    backdrop-filter: blur(12px);
  }
}
/* ===================================
   ARGOS Construction - Design Premium Clair
   Charte graphique officielle : #0863AE / #1D204D / #21407B / #9B9B9B
   =================================== */

/* Variables */
:root {
    /* Fonds - Palette Claire (teinte bleue renforcée) */
    --bg-primary: #e6ecf5;
    --bg-secondary: #dde4f1;
    --bg-card: #f2f5fb;
    --bg-card-hover: #edf1f9;
    --bg-elevated: #f4f7fc;
    --bg-dark: #d5dced;
    --bg-dark-lighter: #e1e7f3;
    --bg-footer: #1D204D;

    /* Couleurs texte — charte officielle */
    --text-primary: #1D204D;      /* navy foncé Argos */
    --text-secondary: #21407B;    /* navy intermédiaire */
    --text-muted: rgba(29, 32, 77, 0.45);
    --text-light: #ffffff;
    --text-light-secondary: rgba(255, 255, 255, 0.65);

    /* Accents — charte officielle Argos */
    --accent-primary: #1D204D;    /* navy foncé Argos — accent principal */
    --accent-light: #21407B;      /* navy intermédiaire */
    --accent-pale: #0863AE;       /* bleu moyen Argos (charte) */
    --accent-subtle: rgba(29, 32, 77, 0.08);

    /* Gris charte */
    --silver-light: #c8c8c8;

    /* Bordures */
    --border-color: rgba(29, 32, 77, 0.1);
    --border-hover: rgba(29, 32, 77, 0.35);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0863AE 0%, #1D204D 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(29, 32, 77, 0.06) 0%, rgba(29, 32, 77, 0.03) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 100%);

    /* Boutons */
    --btn-solid-hover: #1a3a7a;

    /* Sections à fond sombre (header, menu) */
    --header-scrolled-bg: rgba(29, 32, 77, 0.97);
    --menu-band-bg: rgba(29, 32, 77, 0.97);

    /* Décoratif — lignes, ombres, glows */
    --line-decorative: rgba(29, 32, 77, 0.12);
    --glow-decorative: rgba(29, 32, 77, 0.15);
    --shadow-soft: rgba(29, 32, 77, 0.12);
    --shadow-strong: rgba(29, 32, 77, 0.3);

    /* Scroll buttons (sections) */
    --scroll-btn-border: rgba(29, 32, 77, 0.22);
    --scroll-btn-color: rgba(29, 32, 77, 0.4);
    --scroll-btn-hover-border: rgba(29, 32, 77, 0.6);
    --scroll-btn-hover-color: #21407B;

    /* Card / expertise */
    --card-bg-subtle: rgba(255, 255, 255, 0.05);
    --card-hover-border: rgba(29, 32, 77, 0.25);
    --card-hover-shadow: rgba(29, 32, 77, 0.12);
    --icon-bg: rgba(29, 32, 77, 0.14);
    --icon-bg-hover: rgba(29, 32, 77, 0.22);

    /* Fond de section accent (key-numbers, cta-box) */
    --section-accent-bg: #1D204D;

    --filigrane-brightness: 10;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    --space-5xl: 12rem;

    /* Typographie */
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.5rem;
    --font-size-5xl: 5rem;
    --font-size-6xl: 7rem;
    --font-size-hero: clamp(3rem, 12vw, 9rem);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --transition-fast: 0.3s var(--ease-out-expo);
    --transition-base: 0.5s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
    --transition-slower: 1.2s var(--ease-out-expo);

    /* Max width */
    --max-width: 1400px;
}

/* ===================================
   DARK NAVY THEME
   =================================== */
html.dark {
    --bg-primary: #0c1024;
    --bg-secondary: #111631;
    --bg-card: #161b38;
    --bg-card-hover: #1a2040;
    --bg-elevated: #1a2040;
    --bg-dark: #0a0e1e;
    --bg-dark-lighter: #121730;
    --bg-footer: #080c18;

    --text-primary: #e8ecf4;
    --text-secondary: #a0b4d0;
    --text-muted: rgba(232, 236, 244, 0.35);
    --text-light: #dce6f0;
    --text-light-secondary: rgba(220, 230, 240, 0.65);

    --accent-primary: #4a6d94;
    --accent-light: #6889ae;
    --accent-pale: #88a5c4;
    --accent-subtle: rgba(74, 109, 148, 0.10);

    --silver-light: #a0b0c4;

    --border-color: rgba(160, 180, 208, 0.10);
    --border-hover: rgba(160, 180, 208, 0.25);

    --gradient-primary: linear-gradient(135deg, #6889ae 0%, #0c1024 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(74, 109, 148, 0.08) 0%, rgba(74, 109, 148, 0.03) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(22, 27, 56, 0.95) 0%, rgba(26, 32, 64, 0.85) 100%);

    --btn-solid-hover: #5a7da4;

    --header-scrolled-bg: rgba(12, 16, 36, 0.97);
    --menu-band-bg: rgba(12, 16, 36, 0.97);

    --line-decorative: rgba(160, 180, 208, 0.08);
    --glow-decorative: rgba(74, 109, 148, 0.15);
    --shadow-soft: rgba(0, 0, 0, 0.2);
    --shadow-strong: rgba(0, 0, 0, 0.4);

    --scroll-btn-border: rgba(160, 180, 208, 0.2);
    --scroll-btn-color: rgba(160, 180, 208, 0.4);
    --scroll-btn-hover-border: rgba(160, 180, 208, 0.6);
    --scroll-btn-hover-color: #6889ae;

    --card-bg-subtle: rgba(74, 109, 148, 0.05);
    --card-hover-border: rgba(74, 109, 148, 0.30);
    --card-hover-shadow: rgba(0, 0, 0, 0.3);
    --icon-bg: rgba(74, 109, 148, 0.12);
    --icon-bg-hover: rgba(74, 109, 148, 0.22);

    --section-accent-bg: #0d1e3a;

    --filigrane-brightness: 2;
}

/* ===================================
   DARK NAVY — Overrides classes Tailwind hardcodées
   =================================== */

/* Fonds clairs → fonds sombres */
html.dark .bg-white                   { background-color: var(--bg-card) !important; }
html.dark .bg-gray-50                 { background-color: var(--bg-secondary) !important; }
html.dark .bg-gray-100                { background-color: var(--bg-dark-lighter) !important; }
html.dark .bg-gray-200                { background-color: var(--bg-dark) !important; }
html.dark .bg-\[\#f2f5fb\]           { background-color: var(--bg-elevated) !important; }
html.dark .bg-\[\#1d204d\]           { background-color: var(--section-accent-bg) !important; }
html.dark .bg-\[\#21407b\]           { background-color: var(--accent-primary) !important; }

/* Fonds semi-transparents blancs → bleus */
html.dark .bg-white\/10              { background-color: rgba(74, 109, 148, 0.10) !important; }
html.dark .bg-white\/30              { background-color: rgba(74, 109, 148, 0.20) !important; }
html.dark .bg-white\/50              { background-color: rgba(74, 109, 148, 0.30) !important; }

/* Texte navy → texte clair */
html.dark .text-\[\#1d204d\]         { color: var(--text-primary) !important; }
html.dark .text-\[\#1d204d\]\/70     { color: rgba(232, 236, 244, 0.70) !important; }
html.dark .text-\[\#1d204d\]\/60     { color: rgba(232, 236, 244, 0.60) !important; }
html.dark .text-\[\#1d204d\]\/55     { color: rgba(232, 236, 244, 0.55) !important; }
html.dark .text-\[\#1d204d\]\/50     { color: rgba(232, 236, 244, 0.50) !important; }
html.dark .text-\[\#1d204d\]\/40     { color: rgba(232, 236, 244, 0.40) !important; }
html.dark .text-\[\#1d204d\]\/30     { color: rgba(232, 236, 244, 0.30) !important; }
html.dark .text-\[\#1d204d\]\/20     { color: rgba(232, 236, 244, 0.20) !important; }
html.dark .text-\[\#1d204d\]\/5      { color: rgba(232, 236, 244, 0.05) !important; }
html.dark .text-\[\#21407b\]         { color: var(--accent-light) !important; }
html.dark .text-\[\#21407b\]\/60     { color: rgba(104, 137, 174, 0.60) !important; }
html.dark .text-\[\#21407b\]\/50     { color: rgba(104, 137, 174, 0.50) !important; }

/* Texte gris → gris clairs */
html.dark .text-gray-900             { color: var(--text-primary) !important; }
html.dark .text-gray-700             { color: var(--text-secondary) !important; }
html.dark .text-gray-600             { color: var(--text-secondary) !important; }
html.dark .text-gray-500             { color: rgba(160, 180, 208, 0.75) !important; }
html.dark .text-gray-400             { color: rgba(160, 180, 208, 0.55) !important; }
html.dark .text-gray-300             { color: rgba(160, 180, 208, 0.40) !important; }

/* Bordures navy → bleu-gris */
html.dark .border-\[\#1d204d\]       { border-color: var(--accent-primary) !important; }
html.dark .border-\[\#1d204d\]\/40   { border-color: rgba(74, 109, 148, 0.40) !important; }
html.dark .border-\[\#1d204d\]\/30   { border-color: rgba(74, 109, 148, 0.30) !important; }
html.dark .border-\[\#1d204d\]\/20   { border-color: rgba(74, 109, 148, 0.20) !important; }
html.dark .border-\[\#1d204d\]\/10   { border-color: rgba(74, 109, 148, 0.10) !important; }
html.dark .border-\[\#1d204d\]\/5    { border-color: rgba(74, 109, 148, 0.05) !important; }
html.dark .border-\[\#21407b\]       { border-color: var(--accent-light) !important; }
html.dark .border-gray-200           { border-color: var(--border-color) !important; }
html.dark .border-gray-100           { border-color: rgba(160, 180, 208, 0.07) !important; }
html.dark .border-gray-300           { border-color: var(--border-hover) !important; }

/* Hover states */
html.dark .hover\:bg-\[\#1d204d\]:hover    { background-color: var(--accent-primary) !important; }
html.dark .hover\:bg-\[\#21407b\]:hover    { background-color: var(--btn-solid-hover) !important; }
html.dark .hover\:bg-white:hover           { background-color: var(--bg-elevated) !important; }
html.dark .hover\:bg-gray-50:hover         { background-color: var(--bg-elevated) !important; }
html.dark .hover\:bg-gray-100:hover        { background-color: var(--bg-dark-lighter) !important; }
html.dark .hover\:bg-white\/10:hover       { background-color: rgba(74, 109, 148, 0.15) !important; }
html.dark .hover\:text-\[\#1d204d\]:hover  { color: var(--text-primary) !important; }
html.dark .hover\:text-\[\#21407b\]:hover  { color: var(--accent-light) !important; }
html.dark .hover\:text-gray-600:hover      { color: var(--text-secondary) !important; }
html.dark .hover\:text-gray-700:hover      { color: var(--text-secondary) !important; }
html.dark .hover\:border-\[\#1d204d\]:hover       { border-color: var(--accent-primary) !important; }
html.dark .hover\:border-\[\#21407b\]:hover       { border-color: var(--accent-light) !important; }
html.dark .hover\:border-\[\#1d204d\]\/30:hover   { border-color: rgba(74, 109, 148, 0.30) !important; }
html.dark .hover\:border-\[\#1d204d\]\/40:hover   { border-color: rgba(74, 109, 148, 0.40) !important; }
html.dark .hover\:border-white\/50:hover          { border-color: rgba(74, 109, 148, 0.50) !important; }

/* ===================================
   DARK NAVY — Pastilles, bandeaux, UI spécifiques
   =================================== */

/* Pastilles / pills opacité navy */
html.dark .bg-\[\#1d204d\]\/10  { background-color: rgba(74, 109, 148, 0.12) !important; }
html.dark .bg-\[\#1d204d\]\/5   { background-color: rgba(74, 109, 148, 0.06) !important; }
html.dark .bg-\[\#21407b\]\/10  { background-color: rgba(104, 137, 174, 0.12) !important; }
html.dark .bg-\[\#21407b\]\/60  { background-color: rgba(104, 137, 174, 0.50) !important; }
html.dark .bg-\[\#1d204d\]\/60  { background-color: rgba(6, 10, 24, 0.82) !important; }

/* Barre de progression des valeurs */
html.dark #value-progress-bar { background-color: var(--accent-light) !important; }

/* Value tabs — état inactif (fond blanc par défaut des <button>) */
html.dark .value-tab {
    background: transparent !important;
    color: rgba(160, 180, 208, 0.45) !important;
    border-color: rgba(74, 109, 148, 0.20) !important;
}

/* Value tabs — état actif (classe ajoutée par le JS) */
html.dark .value-tab--active {
    background: rgba(74, 109, 148, 0.55) !important;
    color: var(--text-primary) !important;
    border-color: transparent !important;
}

/* Boutons navigation services (prev/next) — natif browser sans preflight Tailwind */
html.dark .bg-\[\#f2f5fb\] button {
    background-color: rgba(74, 109, 148, 0.08);
    border-color: rgba(160, 180, 208, 0.18) !important;
    color: rgba(220, 230, 240, 0.7);
}
html.dark .bg-\[\#f2f5fb\] button:hover {
    background-color: rgba(74, 109, 148, 0.20) !important;
    border-color: rgba(160, 180, 208, 0.40) !important;
    box-shadow: none !important;
}

/* Boutons filtre références */
html.dark .refs-filter-btn {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}
html.dark .refs-filter-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
html.dark .refs-filter-btn--active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
html.dark .refs-filter-btn--expertise.refs-filter-btn--active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}
html.dark .refs-filter-btn--sector.refs-filter-btn--active {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

/* Gradients bandeaux page-header (from-[#1d204d] via-[#2a2d6e] to-[#1d204d]) */
html.dark .from-\[\#1d204d\] {
    --tw-gradient-from: var(--bg-dark) var(--tw-gradient-from-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
html.dark .via-\[\#2a2d6e\] {
    --tw-gradient-stops: var(--tw-gradient-from), var(--bg-secondary) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
html.dark .to-\[\#1d204d\] {
    --tw-gradient-to: var(--bg-dark) var(--tw-gradient-to-position);
}

/* Gradients clair→blanc (section services) */
html.dark .from-\[\#e6ecf5\] {
    --tw-gradient-from: var(--bg-secondary) var(--tw-gradient-from-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
html.dark .to-white {
    --tw-gradient-to: var(--bg-primary) var(--tw-gradient-to-position);
}

/* Badges statut — contact form, divers */
html.dark .bg-blue-50   { background-color: rgba(74, 109, 148, 0.12) !important; }
html.dark .bg-green-50  { background-color: rgba(34, 197, 94, 0.10) !important; }
html.dark .bg-red-50    { background-color: rgba(239, 68, 68, 0.10) !important; }
html.dark .text-blue-700 { color: var(--accent-pale) !important; }
html.dark .text-green-700, html.dark .text-green-600, html.dark .text-green-800 { color: #4ade80 !important; }
html.dark .text-red-700, html.dark .text-red-600, html.dark .text-red-500 { color: #f87171 !important; }
html.dark .border-blue-100  { border-color: rgba(74, 109, 148, 0.20) !important; }
html.dark .border-green-200 { border-color: rgba(34, 197, 94, 0.20) !important; }
html.dark .border-red-200   { border-color: rgba(239, 68, 68, 0.20) !important; }

/* Ombres — plus prononcées sur fond sombre */
html.dark .shadow-sm  { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important; }
html.dark .shadow-md  { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.40) !important; }
html.dark .hover\:shadow-md:hover  { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important; }
html.dark .hover\:shadow-xl:hover  { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.50) !important; }

/* ===================================
   DARK NAVY — Blancs hardcodés → blanc cassé (#dce6f0)
   =================================== */

/* Header navigation */
html.dark .menu-toggle                         { color: #dce6f0; }
html.dark .menu-toggle:hover                   { color: rgba(220, 230, 240, 0.7); }
html.dark .lang-link                           { color: rgba(220, 230, 240, 0.5); }
html.dark .lang-link.active                    { color: #dce6f0; }
html.dark .lang-link:hover                     { color: rgba(220, 230, 240, 0.8); }
html.dark .lang-separator                      { color: rgba(220, 230, 240, 0.5); }
html.dark .contact-btn                         { color: #dce6f0; border-color: rgba(220, 230, 240, 0.3); }
html.dark .contact-btn:hover                   { color: #dce6f0; border-color: rgba(220, 230, 240, 0.6); background: rgba(220, 230, 240, 0.08); }
html.dark .header.scrolled .contact-btn,
html.dark .header.scrolled .linkedin-link      { color: #dce6f0; }
html.dark .header.scrolled .contact-btn        { border-color: rgba(220, 230, 240, 0.3); }
html.dark .header.scrolled .contact-btn:hover  { border-color: rgba(220, 230, 240, 0.6); background: rgba(220, 230, 240, 0.08); }
html.dark .linkedin-link                       { color: rgba(220, 230, 240, 0.5); }
html.dark .linkedin-link:hover                 { color: #dce6f0; }

/* Menu band */
html.dark .menu-band-link:hover                { color: #dce6f0; background: rgba(220, 230, 240, 0.06); border-color: rgba(220, 230, 240, 0.1); }
html.dark .menu-band-link.active               { color: #dce6f0; background: rgba(220, 230, 240, 0.1); border-color: rgba(220, 230, 240, 0.18); }

/* Boutons scroll (hero & sections) */
html.dark .hero-scroll-btn                     { border-color: rgba(220, 230, 240, 0.5); color: rgba(220, 230, 240, 0.8); }
html.dark .hero-scroll-btn:hover               { border-color: rgba(220, 230, 240, 0.9); color: #dce6f0; }
html.dark .section-scroll-btn--light           { border-color: rgba(220, 230, 240, 0.25); color: rgba(220, 230, 240, 0.5); }
html.dark .section-scroll-btn--light:hover     { border-color: rgba(220, 230, 240, 0.8); color: rgba(220, 230, 240, 0.95); }

/* Key numbers — chiffre stat */
html.dark .number-value                        { color: #dce6f0; }


/* Footer */
html.dark .footer-brand a                      { color: #dce6f0; }
html.dark .footer-brand p                      { color: rgba(220, 230, 240, 0.6); }
html.dark .footer-contact p,
html.dark .footer-contact a                    { color: rgba(220, 230, 240, 0.6); }
html.dark .footer-contact a:hover              { color: #dce6f0; }
html.dark .footer-bottom p                     { color: rgba(220, 230, 240, 0.45); }
html.dark .footer-bottom a                     { color: rgba(220, 230, 240, 0.6); }
html.dark .footer-bottom a:hover               { color: #dce6f0; }


/* ===================================
   BASE STYLES
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) var(--bg-secondary);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--bg-secondary); }
html::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

::selection {
    background: var(--accent-primary);
    color: #FFFFFF;
}

a { color: var(--accent-light); text-decoration: none; }
button { text-decoration: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===================================
   CUSTOM CURSOR (home only)
   =================================== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s var(--ease-out-expo),
                opacity 0.3s ease,
                border-color 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    border-color: var(--accent-light);
    background: var(--accent-subtle);
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Filigrane Argos - Logo watermark */
.filigrane {
    position: absolute;
    right: 2%;
    top: 10%;
    width: 60%;
    height: 80%;
    opacity: 0.03;
    animation: filigraneFloat 30s ease-in-out infinite;
}

.filigrane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(var(--filigrane-brightness));
}

@keyframes filigraneFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 10px) rotate(1deg); }
}

/* Arc decoratif - Motif charte */
.arc-decoratif {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 80%;
    height: 120%;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    animation: arcPulse 20s ease-in-out infinite;
}

.arc-decoratif-2 {
    position: absolute;
    top: -15%;
    right: -8%;
    width: 75%;
    height: 115%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    animation: arcPulse 20s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes arcPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.7; }
}

/* Gradient overlay for subpages */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top right, var(--accent-subtle) 0%, transparent 60%);
}

/* Light particles */
.light-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0;
    animation: lightFloat 18s linear infinite;
}

.light-particle:nth-child(2) { left: 15%; animation-delay: 0s; }
.light-particle:nth-child(3) { left: 35%; animation-delay: -4s; }
.light-particle:nth-child(4) { left: 55%; animation-delay: -8s; }
.light-particle:nth-child(5) { left: 75%; animation-delay: -12s; }
.light-particle:nth-child(6) { left: 90%; animation-delay: -14s; }

@keyframes lightFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* Grid pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0;
    animation: lightFloat 18s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; }
.particle:nth-child(3) { left: 35%; animation-delay: -4s; }
.particle:nth-child(4) { left: 50%; animation-delay: -6s; }
.particle:nth-child(5) { left: 65%; animation-delay: -8s; }
.particle:nth-child(6) { left: 80%; animation-delay: -10s; }
.particle:nth-child(7) { left: 90%; animation-delay: -12s; }

/* Animated lines */
.animated-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--line-decorative) 50%,
        transparent 100%);
    opacity: 0.5;
    animation: lineSlide 12s linear infinite;
}

.animated-line:nth-child(8) { top: 20%; width: 200px; animation-delay: 0s; }
.animated-line:nth-child(9) { top: 40%; width: 300px; animation-delay: -2s; }
.animated-line:nth-child(10) { top: 60%; width: 150px; animation-delay: -4s; }
.animated-line:nth-child(11) { top: 80%; width: 250px; animation-delay: -6s; }

/* Gradient orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-decorative) 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-decorative) 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -7s;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 99, 174, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(30px, -50px) scale(1.1); opacity: 0.6; }
    50% { transform: translate(-40px, 20px) scale(0.9); opacity: 0.4; }
    75% { transform: translate(20px, 40px) scale(1.05); opacity: 0.55; }
}

/* ===================================
   LOGO STYLES
   =================================== */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    filter: brightness(1.8) contrast(1.1);
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.logo-link:hover .logo-img {
    filter: brightness(2.2) contrast(1.1);
    transform: scale(1.03);
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    transition: all var(--transition-base);
}

/* Centre le logo de facon absolue dans le header home */
.header > .logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity var(--transition-fast);
}

/* Cache le logo nav tant que le header n'est pas scrollé (hero déjà visible) */
.header:not(.scrolled) > .logo-link {
    opacity: 0;
    pointer-events: none;
}

.header.scrolled {
    background: var(--header-scrolled-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-sm) var(--space-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.header.scrolled .menu-toggle,
.header.scrolled .lang-link,
.header.scrolled .lang-link.active,
.header.scrolled .lang-separator,
.header.scrolled .contact-btn,
.header.scrolled .linkedin-link {
    color: #ffffff;
}

.header.scrolled .contact-btn {
    border-color: rgba(255, 255, 255, 0.3);
}

.header.scrolled .contact-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .logo-img {
    height: 44px;
    filter: brightness(10) contrast(1.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-out-expo);
    padding: 0;
}

.menu-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
}

.menu-toggle.active {
    color: var(--accent-light);
}

.menu-toggle-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
    transition: all 0.4s var(--ease-out-expo);
}

.menu-toggle.active .menu-toggle-lines {
    gap: 0;
}

.menu-toggle-line {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: all 0.4s var(--ease-out-expo);
}

.menu-toggle.active .menu-toggle-line:first-child {
    transform: rotate(45deg) translateY(0.5px);
}

.menu-toggle.active .menu-toggle-line:last-child {
    transform: rotate(-45deg) translateY(-0.5px);
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.lang-link {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all var(--transition-fast);
}

.lang-link.active {
    color: #ffffff;
}

.lang-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-xs);
}

/* Contact Button */
.contact-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1.4rem;
    cursor: pointer;
    border-radius: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.5s var(--ease-out-expo);
}

.contact-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.contact-btn-icon {
    display: none;
}

/* LinkedIn */
.linkedin-link {
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.linkedin-link:hover {
    color: #ffffff;
}

/* ===================================
   MENU BAND
   =================================== */
.menu-band {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    background: var(--menu-band-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(124, 154, 184, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.6s var(--ease-out-expo), opacity 0.4s ease;
    pointer-events: none;
}

.menu-band.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-band-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.4rem 2rem;
}

.menu-band-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(124, 154, 184, 0.3);
    flex-shrink: 0;
}

.menu-band-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(200, 215, 230, 0.7);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s var(--ease-out-expo), background 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
    position: relative;
    padding: 0.4rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.menu-band-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.menu-band-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
    font-weight: 500;
}

/* ===================================
   CONTACT OVERLAY
   =================================== */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-popup {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 90%;
    position: relative;
    transform: translateY(30px);
    transition: transform var(--transition-base);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.contact-overlay.active .contact-popup {
    transform: translateY(0);
}

.close-contact {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.close-contact:hover {
    color: var(--accent-light);
}

.contact-popup h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.contact-quick-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: var(--font-size-sm);
}

.contact-item a:hover {
    color: var(--accent-light);
}

.btn-contact-full {
    display: block;
    text-align: center;
    background: #1d204d;
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 0;
    border: 2px solid #1d204d;
}

.btn-contact-full:hover {
    background: #21407b;
    border-color: #21407b;
}

/* ===================================
   HERO SECTION
   =================================== */
/* Hero Scroll Button */
.hero-scroll-btn {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.3s forwards;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-out-expo);
}

.hero-scroll-btn:hover {
    border-color: rgba(255, 255, 255, 0.95);
    color: #fff;
    transform: translateX(-50%) translateY(4px);
}

/* Section scroll button — partagé entre toutes les sections */
.section-scroll-btn {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--scroll-btn-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--scroll-btn-color);
    text-decoration: none;
    z-index: 2;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

.section-scroll-btn:hover {
    border-color: var(--scroll-btn-hover-border);
    color: var(--scroll-btn-hover-color);
    transform: translateX(-50%) translateY(5px);
}

/* Variante sur fond sombre (key-numbers, cta-section) */
.section-scroll-btn--light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.section-scroll-btn--light:hover {
    border-color: rgba(255, 255, 255, 0.85);
    color: rgba(255, 255, 255, 0.95);
}


/* Hero Logo */
.hero-logo-title {
    margin: 0;
    line-height: 1;
}

.hero-logo-link {
    display: inline-block;
    text-decoration: none;
}

.hero-logo-img {
    height: clamp(100px, 20vw, 220px);
    width: auto;
    display: block;
    opacity: 0;
    animation: heroLogoSequence 1.3s cubic-bezier(0.25, 0.1, 0.25, 1) 0.4s both;
}

/*
  Séquence en deux temps :
  - 0 → 28%  : l'icône monte et s'ancre (fade + slide-up)
  - 28 → 26% : pause — l'icône respire
  - 26 → 100% : le texte se dévoile en sweep vers la droite (clip-path)
*/
@keyframes heroLogoSequence {
    0% {
        opacity: 0;
        clip-path: inset(0 58.5% 0 0);
        transform: translateY(18px) scale(0.94);
        filter: blur(4px);
    }
    28% {
        opacity: 1;
        clip-path: inset(0 58.5% 0 0);
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    30% {
        opacity: 1;
        clip-path: inset(0 58.5% 0 0);
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0% 0 0);
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.hero-logo-link:hover .hero-logo-img {
    opacity: 0.88;
    transition: opacity 0.3s ease;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateX(-50%) translateY(30px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* ===================================
   SCROLL REVEAL SYSTEM
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.reveal[data-delay="1"], .reveal-left[data-delay="1"], .reveal-right[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"], .reveal-left[data-delay="2"], .reveal-right[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"], .reveal-left[data-delay="3"], .reveal-right[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"], .reveal-left[data-delay="4"], .reveal-right[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"], .reveal-left[data-delay="5"], .reveal-right[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"], .reveal-left[data-delay="6"], .reveal-right[data-delay="6"] { transition-delay: 0.6s; }

/* ===================================
   SECTION STYLES
   =================================== */
.section-header {
    margin-bottom: var(--space-3xl);
}

/* ===================================
   EXPERTISE / WHAT WE DO SECTION
   =================================== */
.expertise-card {
    background: linear-gradient(145deg, var(--card-bg-subtle) 0%, transparent 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--ease-out-expo);
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Gradient border glow on hover */
.expertise-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(29, 32, 77, 0.5) 40%,
        rgba(33, 64, 123, 0.3) 60%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out-expo);
    pointer-events: none;
}

/* Shine sweep on hover */
.expertise-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 60%,
        transparent 100%
    );
    transition: left 0.9s var(--ease-out-expo);
    z-index: 0;
    pointer-events: none;
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-card:hover::after {
    left: 150%;
}

.expertise-card:hover {
    background: #1d204d;
    border-color: #1d204d;
    transform: translateY(-6px);
    box-shadow:
        0 25px 60px var(--card-hover-shadow),
        0 0 50px var(--accent-subtle);
}

/* Icon container with gradient background */
.expertise-icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--icon-bg) 0%, var(--accent-subtle) 100%);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.5s var(--ease-out-expo);
}

.expertise-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-light);
    transition: all 0.5s var(--ease-out-expo);
}

.expertise-card:hover .expertise-icon {
    background: linear-gradient(145deg, var(--icon-bg-hover) 0%, var(--accent-subtle) 100%);
    border-color: var(--card-hover-border);
    box-shadow: 0 0 30px var(--glow-decorative);
    transform: scale(1.05);
}

.expertise-card:hover .expertise-icon svg {
    color: var(--accent-light);
    filter: drop-shadow(0 0 8px var(--shadow-strong));
}

.expertise-card h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    transition: color 0.4s var(--ease-out-expo);
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.expertise-card:hover h3 {
    color: #ffffff;
}

.expertise-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.expertise-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--silver-light);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    z-index: 1;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.expertise-link:hover {
    color: var(--text-light);
    gap: var(--space-sm);
}

.expertise-link svg {
    transition: transform 0.4s var(--ease-out-expo);
}

.expertise-link:hover svg {
    transform: translateX(6px);
}

/* ===================================
   KEY NUMBERS SECTION
   =================================== */
.number-item {
    text-align: center;
    padding: var(--space-xl);
    position: relative;
}

.number-value-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
}

.number-value {
    font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-6xl));
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    display: inline-block;
    position: relative;
}

.number-suffix {
    font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-3xl));
    font-weight: 700;
    color: var(--accent-pale);
    line-height: 1;
}

.number-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-light-secondary);
    margin-top: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.number-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.number-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-pale);
    transition: width 1.5s var(--ease-out-expo);
}

.reveal.visible .number-bar::after {
    width: 100%;
}

/* ===================================
   SECTORS SECTION
   =================================== */
.sectors-carousel {
    /* layout handled by Tailwind flex classes in HTML */
}

/* Sectors carousel — scroll right button */
.sectors-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #1d204d33;
    color: #1d204d;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, opacity 0.4s;
    animation: sectors-hint-bounce 1.4s ease-in-out infinite;
}

.sectors-scroll-btn:hover {
    border-color: #1d204d;
}

.sectors-scroll-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes sectors-hint-bounce {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(5px); }
}

.sectors-scroll-btn--left {
    animation-name: sectors-hint-bounce-left;
}

@keyframes sectors-hint-bounce-left {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(-5px); }
}

/* Carousel dots — mobile */
.sectors-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1d204d33;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.sectors-dot.is-active {
    background: #1d204d;
    transform: scale(1.4);
}

.sector-item {
    background: var(--gradient-glass);
    border: 1px solid var(--border-color);
    padding: var(--space-xl);
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sector-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-subtle);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-slow);
}

.sector-item:hover::before {
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.06);
}

.sector-item:hover {
    background: #1d204d;
    border-color: #1d204d;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-soft);
}

.section-cta {
    text-align: center;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-footer);
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

/* Footer logo */
.footer .logo-link {
    margin-bottom: var(--space-sm);
}

.footer .logo-img {
    height: 44px;
}

.footer-contact {
    text-align: right;
}

.footer-contact p, .footer-contact a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--font-size-xs);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .header {
        padding: var(--space-sm) var(--space-md);
    }

    .header > .logo-link {
        position: relative;
        left: auto;
        transform: none;
    }

    .header-left,
    .header-right {
        flex: 1;
    }

    .header-right {
        justify-content: flex-end;
        gap: var(--space-sm);
    }

    .header.scrolled .logo-img {
        height: 36px;
    }

    .contact-btn-text {
        display: none;
    }

    .contact-btn-icon {
        display: block;
        width: 26px;
        height: 26px;
    }

    .contact-btn {
        padding: 0;
        line-height: 0;
        border: none;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: rgba(255, 255, 255, 0.5);
    }

    .contact-btn:hover {
        border: none;
        background: none;
        box-shadow: none;
        transform: none;
        color: #ffffff;
    }

    .lang-switch {
        display: none;
    }

    .hero-logo-img {
        height: clamp(100px, 30vw, 160px);
    }


    .footer .logo-link {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: var(--space-xs);
        padding-top: var(--space-sm);
    }


    .menu-band-nav {
        flex-direction: column;
        gap: 0;
        padding: 0.25rem 0;
    }

    .menu-band-dot {
        display: none;
    }

    .menu-band-link {
        padding: 0 1.75rem;
        width: 100%;
        text-align: left;
        font-size: 0.85rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-left: 3px solid transparent;
        min-height: 44px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    .menu-band-link:hover {
        background: rgba(255, 255, 255, 0.05);
        border-left-color: rgba(124, 154, 184, 0.5);
    }

    .menu-band-link.active {
        background: rgba(124, 154, 184, 0.1);
        border-left: 3px solid #7c9ab8;
        color: #fff;
        font-weight: 600;
    }

    .menu-band-link:last-of-type {
        border-bottom: none;
    }


    .expertise-card {
        border-radius: 16px;
        padding: var(--space-xl) var(--space-lg) var(--space-lg);
    }


    .cursor, .cursor-dot {
        display: none;
    }

}

@media (max-width: 480px) {
    :root {
        --space-5xl: 6rem;
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }

}

/* ===================================
   REDUCED MOTION
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }


    .gradient-orb,
    .particle,
    .animated-line,
    .filigrane,
    .light-particle {
        animation: none;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .animated-bg,
    .cursor,
    .cursor-dot,
    .header,
    .menu-band,
    .contact-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .footer {
        background: white;
        color: black;
    }

    .number-value {
        color: black;
    }
}

/* Smooth transitions for dark mode */
body,
body *:not(script):not(style):not(img):not(video):not(svg *) {
    transition: background-color 0.5s ease,
                color 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

/* Exclude animations from dark mode transition */
.animated-bg,
.gradient-orb,
[class*="carousel"] {
    transition: none !important;
}

/* ============================================================
   PAGE RÉFÉRENCES
   ============================================================ */

/* Boutons de filtre */
.refs-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    background: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.refs-filter-btn:hover {
    border-color: #1d204d;
    color: #1d204d;
    background: #f8f9fc;
}

.refs-filter-btn--active {
    background: #1d204d;
    color: #fff;
    border-color: #1d204d;
}

.refs-filter-btn--expertise.refs-filter-btn--active {
    background: #1d204d;
    border-color: #1d204d;
}

.refs-filter-btn--sector.refs-filter-btn--active {
    background: #21407b;
    border-color: #21407b;
}

/* Cartes références */
.refs-card {
    display: flex;
    flex-direction: column;
}

.refs-card > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Details/summary pour le détail de la mission */
.refs-details summary::-webkit-details-marker {
    display: none;
}

.refs-details[open] summary svg {
    transform: rotate(90deg);
}

/* Contenu storytelling — supprime les marges par défaut des <p> de simple_format */
.refs-storytelling-content p {
    font-size: 0.75rem;
    color: rgba(29, 32, 77, 0.6);
    line-height: 1.6;
    margin: 0 0 0.4rem 0;
}
.refs-storytelling-content p:last-child {
    margin-bottom: 0;
}

/* Filter tracks — mobile: label + scroll horizontal */
.refs-filter-track {
    display: flex;
    align-items: center;
}

.refs-filter-label {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0 0.6rem 0 1rem;
    white-space: nowrap;
}

.refs-filter-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.2rem 2rem 0.2rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, black 88%, transparent 100%);
}

.refs-filter-scroll::-webkit-scrollbar {
    display: none;
}

/* Responsive filtres */
@media (min-width: 768px) {
    .refs-filter-label {
        display: none;
    }
    .refs-filter-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .refs-filter-track {
        display: block;
    }
}

@media (max-width: 768px) {
    .refs-filter-btn {
        font-size: 0.68rem;
        padding: 0.3rem 0.7rem;
    }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
