/* ============================================
   NOVAMINDS - Version 3 - Design Oblique
   Refonte lumineuse avec éléments diagonaux
   Optimized for performance
   ============================================ */

/* ============================================
   @font-face — DM Sans (alternative proche de Graphik)
   Self-hosted pour performance
   ============================================ */
@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  src: url('../assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  src: url('../assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Couleurs principales */
  --primary: #5B5856;
  --primary-dark: #4A4846;
  --primary-light: #6E6C6A;

  /* Couleur accent */
  --accent: #FFD100;
  --accent-dark: #E6BC00;
  --accent-light: #FFE033;

  /* Couleurs secondaires */
  --secondary-blue: #0a73cd;

  /* Dégradé gold (issu de forme-logo-gold.svg) */
  --accent-gradient: linear-gradient(110deg, #9c6705 0%, #cbac41 25%, #e8d667 45%, #f4e776 55%, #e3cd63 75%, #d0ae4d 88%, #c0943a 100%);
  --secondary-red: #A21C3B;

  /* Couleurs de texte */
  --text-dark: #3D3B39;
  --text-gray: #5B5856;
  --text-light: #8A8785;

  /* Couleurs de fond */
  --bg-white: #FFFFFF;
  --bg-light: #F8F8F8;
  --bg-dark: #5B5856;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Rayons de bordure */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;

  /* Z-index */
  --z-header: 100;
  --z-overlay: 50;
  --z-content: 10;
  --z-scroll-top: 99;

  /* Angle des obliques */
  --skew-angle: -5deg;
  --skew-angle-reverse: 5deg;

  /* Transitions */
  --easing-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================
   Container
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  z-index: 100;
  background: rgba(51, 51, 51, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-slow) var(--easing-smooth);
}

/* Plus de pseudo-élément blanc au scroll — fond anthracite permanent */
.header::before {
  display: none;
}

.header.scrolled {
  background: #333333;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

/* Logo — 2 parties : logotype (icône oblique) + texte NOVAMINDS
   Au scroll : le texte glisse sous le logotype via un masque oblique
   Au hover (scrolled) : le texte se rouvre
   Au scroll-top : logo ouvert */
.logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logotype (partie gauche — forme oblique gold) */
.logo-icon {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Wrapper du texte — masque oblique qui se colle sous le logotype.
   Le bord gauche reproduit l'inclinaison de la barre droite du logo (~28°).
   Le wrapper chevauche le logotype pour que le texte semble glisser dessous. */
.logo-text-wrapper {
  overflow: hidden;
  flex-shrink: 0;
  margin-left: -30px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%);
}

/* Le texte a une taille fixe et se déplace via translateX */
.logo-text {
  height: 23px;
  width: auto;
  display: block;
  padding-left: 28px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

/* Au scroll : le texte glisse vers la gauche, disparaît sous le wrapper */
.header.scrolled .logo-text {
  transform: translateX(-100%);
}

/* Au hover quand scrollé : le texte revient à sa position */
.header.scrolled .logo:hover .logo-text {
  transform: translateX(0);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.nav-item {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bg-white);
  padding: 8px 0;
  transition: color var(--duration-normal);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
}

.nav-item:hover { color: var(--accent); }

/* Plus de changement de couleur au scroll — toujours blanc */

/* Masquer les chevrons des sous-menus */
.nav-item > svg {
  display: none;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 280px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--easing-smooth);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-gray);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: var(--accent-gradient);
  color: #fff;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  margin-left: auto; /* pousse vers la droite, à côté du bouton Contact */
  margin-right: 12px;
}

.lang-switcher-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 2px;
  transition: color var(--duration-normal);
}

.lang-switcher-link.active {
  color: var(--bg-white);
}

.lang-switcher-link:hover {
  color: var(--accent);
}

.lang-switcher-sep {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* Header CTA — masqué (Contact déplacé dans la nav) */
.header-cta {
  display: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--easing-smooth);
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--secondary-blue);
  color: var(--bg-white);
  border-color: var(--secondary-blue);
}

.btn-primary:hover {
  background: #085da6;
  border-color: #085da6;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(36, 84, 152, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--secondary-blue);
  border-color: var(--secondary-blue);
}

.btn-outline:hover {
  background: var(--secondary-blue);
  color: var(--bg-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: var(--bg-white);
  color: var(--text-dark);
}

.btn-header {
  background: var(--secondary-blue);
  color: var(--bg-white);
  border: 0.5px solid var(--bg-white);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-header:hover {
  background: var(--bg-white);
  color: var(--secondary-blue);
  border-color: var(--bg-white);
}

/* btn-header scrolled supprimé — header anthracite permanent */

.btn-lg { padding: 16px 32px; font-size: 13px; }

/* Boutons spécifiques au Hero (sur fond sombre/jaune) */
.hero .btn-primary {
  background: var(--secondary-blue);
  color: var(--bg-white);
  border: 0.5px solid var(--bg-white);
}

.hero .btn-primary:hover {
  background: var(--bg-white);
  color: var(--secondary-blue);
  border-color: var(--bg-white);
  transform: translateY(-3px);
}

.hero .btn-outline {
  background: transparent;
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn-outline:hover {
  background: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--bg-white);
}

/* ============================================
   Hero Section - Full height avec vidéo
   ============================================ */
.hero {
  position: relative;
  min-height: 80vh;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100%;
  min-width: 177.78vh; /* 100 / 9 * 16 */
  transform: translate(-50%, -50%);
  border: none;
  z-index: 0;
  pointer-events: none;
}

/* Overlay noir sur la vidéo — désactivé */
.hero-overlay {
  display: none;
}

/* Dégradé de la vidéo vers le noir à droite — désactivé */
.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 60px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-box {
  /* Pas de fond - texte directement sur la zone jaune */
  background: transparent;
  padding: 40px 0;
  max-width: 950px;
  text-align: center;
  margin-right: 0;
  animation: heroTextEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bg-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: heroTitleEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.hero-title .highlight {
  color: var(--bg-white);
  font-weight: 800;
}

.hero-slogan {
  font-size: 34px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-bottom: 36px;
  letter-spacing: 1px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  animation: heroTitleEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  animation: heroTitleEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: heroTitleEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards,
             bounce 2s 2s infinite;
}

.scroll-indicator svg { width: 32px; height: 32px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Hero entrance animations */
@keyframes heroObliqueEnter {
  0% {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    opacity: 0;
  }
  100% {
    clip-path: var(--oblique-clip, polygon(100% 0, 70% 0, 60% 100%, 100% 100%));
    opacity: 0.92;
  }
}

@keyframes heroBackdropEnter {
  0% {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    opacity: 0;
  }
  100% {
    clip-path: var(--oblique-clip, polygon(100% 0, 70% 0, 60% 100%, 100% 100%));
    opacity: 1;
  }
}

@keyframes heroTextEnter {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroTitleEnter {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Oblique jaune pleine hauteur à droite du hero
   Raccorde visuellement avec l'oblique de la section Présentation
   Clip-path recalculé par JS (--hero-oblique-clip) */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  clip-path: var(--hero-oblique-clip, polygon(100% 0%, 95% 0%, 70% 100%, 100% 100%));
  opacity: 0.8;
  z-index: 2;
  pointer-events: none;
  will-change: clip-path;
}

/* Flou derrière l'oblique jaune du hero */
.hero-blur-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  clip-path: var(--hero-oblique-clip, polygon(100% 0%, 95% 0%, 70% 100%, 100% 100%));
  z-index: 1;
  pointer-events: none;
  will-change: clip-path;
}

/* ============================================
   Section Base
   ============================================ */
.section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Header aligné à gauche pour section Values - rééquilibré */
.section-values .section-header {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  max-width: 600px;
}

/* Header aligné à gauche pour section News */
.section-news .section-header {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-blue);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.section-title .highlight {
  color: var(--secondary-blue);
  transition: color 0.3s ease;
}

.section-description {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.7;
  transition: color 0.3s ease;
}

/* ============================================
   Presentation Section - After Hero, before Values
   ============================================ */
.section-presentation {
  background: linear-gradient(135deg, #4a4846 0%, #5B5856 50%, #3D3B39 100%);
  padding: 65px 0;
}

/* Oblique blanc transparent par-dessus le fond anthracite */
.section-presentation::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  clip-path: var(--oblique-clip, polygon(100% 0, 70% 0, 60% 100%, 100% 100%));
  z-index: 0;
  pointer-events: none;
  will-change: clip-path, mask-image;

  /* Animation volet remplissage droite → gauche avec angle oblique.
     Fallback 0 = volet invisible au chargement, s'ouvre au scroll via JS. */
  -webkit-mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--presentation-fill-progress, 0) * 100%),
    transparent calc(var(--presentation-fill-progress, 0) * 100%)
  );
  mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--presentation-fill-progress, 0) * 100%),
    transparent calc(var(--presentation-fill-progress, 0) * 100%)
  );
}

/* Textes en blanc sur fond anthracite — spécificité élevée pour surcharger on-light/on-dark */
.section-presentation .section-label,
.section-presentation .section-label.on-light,
.section-presentation .section-label.on-dark {
  color: rgba(255, 255, 255, 0.7) !important;
}
.section-presentation .section-title,
.section-presentation .section-title.on-light,
.section-presentation .section-title.on-dark,
.section-presentation .section-title .highlight,
.section-presentation .section-title.on-light .highlight,
.section-presentation .section-title.on-dark .highlight {
  color: #fff !important;
}
.section-presentation .section-description,
.section-presentation .section-description.on-light,
.section-presentation .section-description.on-dark {
  color: rgba(255, 255, 255, 0.85) !important;
}
.section-presentation .presentation-raison-etre {
  color: rgba(255, 255, 255, 0.9);
  border-left-color: var(--accent);
}
.section-presentation .presentation-subheading {
  color: #fff;
}
.section-presentation .presentation-theme-label {
  color: #fff;
}
.section-presentation .btn-primary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.section-presentation .btn-primary:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}


/* Canvas réseau — arrière-plan sections */
.galaxy-canvas,
#constellation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

/* Constellation réseau section Présentation : visible uniquement dans l'oblique droite,
   masqué par le même volet que le ::after pour n'apparaître qu'au scroll */
#constellation-canvas {
  clip-path: var(--oblique-clip, polygon(100% 0, 70% 0, 60% 100%, 100% 100%));
  will-change: clip-path;
  -webkit-mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--presentation-fill-progress, 0) * 100%),
    transparent calc(var(--presentation-fill-progress, 0) * 100%)
  );
  mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--presentation-fill-progress, 0) * 100%),
    transparent calc(var(--presentation-fill-progress, 0) * 100%)
  );
}

/* Galaxie section Expertises : visible uniquement dans l'oblique gold,
   masquée par le même volet que le ::before pour n'apparaître qu'au scroll */
#galaxy-expertises-canvas {
  opacity: 0.4;
  clip-path: var(--oblique-clip, polygon(100% 0, 30% 0, 20% 100%, 100% 100%));
  will-change: clip-path;
  -webkit-mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--expertises-fill-progress, 0) * 100%),
    transparent calc(var(--expertises-fill-progress, 0) * 100%)
  );
  mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--expertises-fill-progress, 0) * 100%),
    transparent calc(var(--expertises-fill-progress, 0) * 100%)
  );
}

/* galaxy-cta-canvas supprimé — session 11 */

.section-presentation .container {
  position: relative;
  z-index: 1;
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.presentation-text {
  padding-left: 20px;
  text-align: left;
}

.presentation-text .section-label {
  display: inline-block;
}

.presentation-text .section-description {
  margin-bottom: 16px;
}

.presentation-subheading {
  font-size: 18px;
  font-weight: 900;
  color: var(--secondary-blue);
  margin-bottom: 90px;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
}

/* Raison d'être */
.presentation-raison-etre {
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: var(--secondary-blue);
  line-height: 1.6;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--secondary-blue);
}

.presentation-actions {
  margin-top: 40px;
}

/* Wrapper contenant le titre + schéma — aligné à droite pour rester dans le triangle jaune */
.presentation-themes-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 24px;
  margin-left: auto;
  margin-right: 0;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

/* Conteneur = référence pour le cercle et les icônes */
.presentation-themes {
  position: relative;
  width: 360px;
  height: 420px;
  margin: 0 auto;
}

/* Chaque thème est positionné sur la circonférence.
   margin-left centre horizontalement sans transform
   (translate serait écrasé par data-anim="slide-up-fade").
   top/bottom cible le centre de l'icône (80px → 40px offset). */
.presentation-theme {
  position: absolute;
  text-align: center;
  z-index: 1;
  width: 150px;
  margin-left: -75px; /* -width/2 pour centrer sur left */
}

/* Icône du haut — texte AU-DESSUS (column-reverse → icône en bas du flex) */
.presentation-theme:nth-child(1) {
  top: -55px;
  left: 180px;
  display: flex;
  flex-direction: column-reverse;
}
.presentation-theme:nth-child(1) .presentation-theme-icon {
  margin: 16px auto 0;
}

/* Icône bas-gauche — texte en dessous */
.presentation-theme:nth-child(2) {
  top: 260px;
  left: 45px;
}

/* Icône bas-droite — texte en dessous */
.presentation-theme:nth-child(3) {
  top: 260px;
  left: 315px;
}

/* Alvéoles hexagonales dorées */
.presentation-theme-icon {
  width: 96px;
  height: 96px;
  background: var(--accent-gradient);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: none;
}

.presentation-theme-icon svg {
  width: 42px;
  height: 42px;
  color: #fff;
}

.presentation-theme-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 170px;
  margin: 0 auto;
}

/* Cercle de fond — trait blanc sur fond anthracite */
.presentation-themes::before {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 310px;
  height: 310px;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
  border: 7px solid rgba(255, 255, 255, 0.6);
  background: none;
}

/* ============================================
   Couleurs dynamiques (calculées par JS)
   - Fond clair (blanc, jaune) → texte noir
   - Fond sombre (gris, noir) → texte blanc/jaune
   ============================================ */

/* Sur fond clair (blanc ou jaune) */
.section-label.on-light { color: var(--text-dark); }
.section-title.on-light { color: var(--secondary-blue); }
.section-title.on-light .highlight { color: var(--primary); } /* Gris anthracite */
.section-description.on-light { color: var(--text-gray); }

/* Sur fond sombre (gris ou noir) */
.section-label.on-dark { color: var(--accent); }
.section-title.on-dark { color: var(--bg-white); }
.section-title.on-dark .highlight { color: var(--accent); }
.section-description.on-dark { color: rgba(255, 255, 255, 0.85); }

/* ============================================
   SLASH CONTINU - Système d'angle constant

   Calculé dynamiquement par JavaScript (ObliqueSystem)
   L'angle est calculé pour aller de 60% à 0%

   Formule : tan(angle) = déplacement_total / hauteur_totale
             déplacement_section = hauteur_section × tan(angle)

   - Position de départ : 50% depuis la gauche (Hero)
   - Position finale : 0% (fin de Expertises)
   - L'angle s'adapte automatiquement à la hauteur du contenu
   - Recalcul automatique au resize et changement de contenu
   - Désactivé sur mobile (< 768px)

   Sections concernées :
   - Hero : bande jaune floue (80px blur, opacity 0.5)
   - Values : jaune sur fond blanc
   - Stats : INVERSÉ - sombre sur fond jaune
   - Expertises : jaune sur fond gris (termine à 0%)
   ============================================ */

/* ============================================
   Values Section - Slash continu (calculé par JS)
   ============================================ */
.section-values {
  background: #e2e2e2;
  position: relative;
}

.section-values::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  /* Fallback, sera recalculé par JS pour angle constant */
  clip-path: var(--oblique-clip, polygon(100% 0, 45% 0, 35% 100%, 100% 100%));
  z-index: 0;
  will-change: clip-path, mask-image;

  /* Animation volet remplissage droite → gauche avec angle oblique
     L'angle 270deg = vers la gauche, on ajoute l'angle pour orienter le bord vers la droite */
  -webkit-mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--fill-progress, 1) * 100%),
    transparent calc(var(--fill-progress, 1) * 100%)
  );
  mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--fill-progress, 1) * 100%),
    transparent calc(var(--fill-progress, 1) * 100%)
  );
}

.section-values .container {
  position: relative;
  z-index: 1;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: var(--shadow-md);
}

/* Dégradé noir en bas (état repos) */
.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* Volet blanc montant au hover */
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-radius: var(--radius-lg);
}

.value-card:hover::after {
  transform: translateY(0);
}

.value-card:hover::before {
  opacity: 0;
}

/* Filet dégradé gold animé au hover */
.value-card-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: var(--accent-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-card:hover .value-card-border {
  opacity: 1;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.value-card-content {
  position: relative;
  z-index: 3;
  padding: 40px;
  color: white;
  margin-top: auto;
  transition: transform 0.4s ease;
  transform: translateY(0);
}

/* Au hover : le contenu remonte pour se centrer visuellement dans la carte */
.value-card:hover .value-card-content {
  transform: translateY(-110px);
}

/* Features checklist — cachées par défaut (débordent sous la carte), visibles au hover */
.value-card-features {
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-card:hover .value-card-features {
  opacity: 1;
}

.value-card-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 8px;
}

.value-card-feature svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--secondary-blue);
  transition: color 0.4s ease;
}

.value-card:hover .value-card-feature svg {
  color: var(--secondary-blue);
}

.value-card:hover .value-card-feature span {
  color: var(--text-gray);
}

.value-card-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  margin-bottom: 20px;
}

.value-card-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: color 0.4s ease;
}

.value-card:hover .value-card-title {
  color: var(--text-dark);
}

.value-card-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  transition: color 0.4s ease;
}

.value-card:hover .value-card-description {
  color: var(--text-gray);
}

/* ============================================
   Section Expertises (Nos offres) — Surcharges cartes
   Au repos : titre + description centrés, checklist cachée
   Au hover : volet blanc, checklist apparaît, tout centré
   ============================================ */

/* Au repos : contenu en bas à gauche (comme avant), texte ferré à gauche */
.section-expertises .value-card {
  justify-content: flex-end;
}

.section-expertises .value-card-content {
  margin-top: auto;
  text-align: left;
}

/* Checklist cachée au repos (hauteur 0 + opacity 0 pour animer) */
.section-expertises .value-card-features {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

/* Au hover : tout remonte au centre + checklist apparaît */
.section-expertises .value-card:hover .value-card-content {
  transform: translateY(-55px);
}

.section-expertises .value-card:hover .value-card-features {
  max-height: 200px;
  opacity: 1;
  margin-top: 16px;
}

/* ============================================
   Stats Section - Effet fenêtre (trou dans la page)
   L'image est fixe derrière, la section la révèle au scroll
   L'oblique floue se déplace horizontalement pendant le scroll
   ============================================ */

/* Image de fond FIXE - reste immobile derrière toute la page */
.stats-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.55) 100%),
    url('../assets/images/PHOTO-2026-02-17-09-30-16.jpg') center center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* Section Stats - fond transparent = fenêtre vers l'image fixe */
.section-stats {
  position: relative;
  padding: 130px 0;
  background: transparent;
  overflow: hidden;
}

/* Zone oblique avec image floutée - clip-path animé via JS */
.section-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/PHOTO-2026-02-17-09-30-16.jpg') center center / cover no-repeat;
  background-attachment: fixed;
  filter: blur(8px);
  clip-path: var(--stats-oblique-clip, polygon(100% 0, 35% 0, 22% 100%, 100% 100%));
  z-index: 1;
  will-change: clip-path, mask-image;

  /* Animation volet remplissage droite → gauche */
  -webkit-mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--stats-fill-progress, 0) * 100%),
    transparent calc(var(--stats-fill-progress, 0) * 100%)
  );
  mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--stats-fill-progress, 0) * 100%),
    transparent calc(var(--stats-fill-progress, 0) * 100%)
  );
}

/* Overlay sombre sur la partie floutée pour le contraste */
.section-stats .stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 45, 45, 0.7);
  clip-path: var(--stats-oblique-clip, polygon(100% 0, 35% 0, 22% 100%, 100% 100%));
  z-index: 2;
  will-change: clip-path, mask-image;

  /* Même animation volet que le ::before */
  -webkit-mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--stats-fill-progress, 0) * 100%),
    transparent calc(var(--stats-fill-progress, 0) * 100%)
  );
  mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--stats-fill-progress, 0) * 100%),
    transparent calc(var(--stats-fill-progress, 0) * 100%)
  );
}

.section-stats .container {
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
}

.stat-number {
  font-size: 73px; /* +30% de 56px */
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: color 0.3s ease;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: color 0.3s ease;
}

/* Stats - dégradé blanc → jaune de gauche à droite */
.section-stats .stat-item {
  --stat-index: 0;
}
.section-stats .stat-item:nth-child(2) { --stat-index: 1; }
.section-stats .stat-item:nth-child(3) { --stat-index: 2; }
.section-stats .stat-item:nth-child(4) { --stat-index: 3; }

.section-stats .stat-number {
  color: #f4e776;
}

/* Dégradé continu blanc → jaune sur tous les chiffres via index */
.section-stats .stat-item:nth-child(1) .stat-number { color: #ffffff; }
.section-stats .stat-item:nth-child(2) .stat-number { color: color-mix(in srgb, #ffffff 66%, #f4e776); }
.section-stats .stat-item:nth-child(3) .stat-number { color: color-mix(in srgb, #ffffff 33%, #f4e776); }
.section-stats .stat-item:nth-child(4) .stat-number { color: #f4e776; }

.stat-item .stat-label {
  color: rgba(255, 255, 255, 0.9);
}


/* ============================================
   Expertises Section - Slash continu (calculé par JS)
   ============================================ */
.section-expertises {
  position: relative;
  padding: 80px 0;
  background: #e2e2e2;
  overflow: hidden;
}

.section-expertises::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  /* Fallback, sera recalculé par JS pour angle constant - termine à 20% */
  clip-path: var(--oblique-clip, polygon(100% 0, 30% 0, 20% 100%, 100% 100%));
  z-index: 0;
  will-change: clip-path, mask-image;

  /* Animation volet remplissage droite → gauche avec angle oblique */
  -webkit-mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--expertises-fill-progress, 1) * 100%),
    transparent calc(var(--expertises-fill-progress, 1) * 100%)
  );
  mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--expertises-fill-progress, 1) * 100%),
    transparent calc(var(--expertises-fill-progress, 1) * 100%)
  );
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.section-expertises .container {
  position: relative;
  z-index: 2;
}

.section-expertises .section-title {
  color: var(--secondary-blue);
}

.expertises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.expertise-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--easing-smooth);
  position: relative;
  overflow: hidden;
  border: none;
  text-align: center;
}

/* Filet dégradé gold autour des cartes */
.expertise-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: var(--accent-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s var(--easing-smooth);
}

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

/* Fond subtil qui apparaît au hover */
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 209, 0, 0.03) 0%, rgba(255, 209, 0, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--easing-smooth);
  z-index: 0;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(36, 84, 152, 0.15), var(--shadow-lg);
}

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

.expertise-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #085da6 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--easing-smooth);
}

.expertise-card:hover .expertise-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(36, 84, 152, 0.4);
}

.expertise-icon svg {
  width: 28px;
  height: 28px;
  color: var(--bg-white);
  transition: transform 0.4s var(--easing-smooth);
}

.expertise-card:hover .expertise-icon svg {
  transform: scale(1.1);
}

.expertise-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-card:hover .expertise-title {
  color: var(--primary-dark);
}

.expertise-description {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  min-height: 5.1em;
}

.expertise-features {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.expertise-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 10px;
  text-align: left;
}

.expertise-feature svg {
  width: 18px;
  height: 18px;
  color: var(--secondary-blue);
  flex-shrink: 0;
}

/* Bouton arrondi "En savoir plus" dans les cartes expertise */
.btn-expertise {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  border: 2px solid var(--secondary-blue);
  color: var(--secondary-blue);
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.btn-expertise:hover {
  background: var(--secondary-blue);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36, 84, 152, 0.3);
}

/* Aligner les boutons en bas des cartes */
.expertise-card {
  display: flex;
  flex-direction: column;
}

/* ============================================
   News Section - Fond doré uni avec oblique blanche
   ============================================ */
.section-news {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.section-news::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/logos/background-publications.svg') center/cover no-repeat;
  z-index: 0;
}

.section-news .container {
  position: relative;
  z-index: 60; /* Au-dessus de l'overlay du wrapper (z-index: 50) */
}

/* Section News - textes en blanc, label en jaune */
.section-news .section-label {
  color: var(--accent);
}
.section-news .section-title,
.section-news .section-title .highlight {
  color: var(--bg-white);
}

.section-news .section-description {
  color: rgba(255, 255, 255, 0.85);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content { padding: 28px; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-date {
  font-size: 12px;
  color: var(--text-light);
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.4;
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* CTA centré sous les grilles */
.expertises-cta,
.news-cta {
  text-align: center;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}

/* Bouton outline bleu sur fond jaune news */
.section-news .btn-outline {
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

.section-news .btn-outline:hover {
  background: var(--secondary-blue);
  color: var(--bg-white);
}

/* ============================================
   Wrapper Clients + CTA - Animation volet unique
   Le volet jaune couvre les deux sections et se vide de gauche à droite
   S'étend vers le haut pour couvrir aussi la forme "N" de News
   ============================================ */
.clients-cta-wrapper {
  position: relative;
}

/* Oblique gold permanente — reste visible après l'animation du volet */
.clients-cta-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  clip-path: var(--wrapper-oblique-clip, polygon(100% 0, 90% 0, 70% 100%, 100% 100%));
  z-index: 40;
  pointer-events: none;
}

/* Volet gold animé — désactivé */
.clients-cta-fill-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  z-index: 50;
  pointer-events: none;

  /* Animation volet gauche → droite avec angle oblique */
  -webkit-mask-image: linear-gradient(
    calc(90deg + var(--oblique-angle, 15deg)),
    transparent 0%,
    transparent calc(var(--clients-fill-progress, 0) * 100%),
    black calc(var(--clients-fill-progress, 0) * 100%),
    black 100%
  );
  mask-image: linear-gradient(
    calc(90deg + var(--oblique-angle, 15deg)),
    transparent 0%,
    transparent calc(var(--clients-fill-progress, 0) * 100%),
    black calc(var(--clients-fill-progress, 0) * 100%),
    black 100%
  );
}

/* ============================================
   Clients Section - Fond blanc avec oblique jaune
   ============================================ */
.section-clients {
  padding: 65px 0;
  background: transparent;
  position: relative;
}

/* Fond blanc avec découpe (calculée par JS pour angle constant) */
.section-clients::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  clip-path: var(--bg-clip, polygon(0 0, 90% 0, 85% 100%, 0 100%));
  z-index: 0;
}

/* Oblique individuelle masquée — remplacée par l'overlay continu du wrapper */
.section-clients::before {
  display: none;
}

.section-clients .container {
  position: relative;
  z-index: 5;
}

.clients-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 50px;
  z-index: 1;
}

.clients-track {
  display: flex;
  gap: 50px;
  animation: scroll-logos 35s linear infinite;
  width: max-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 100px;
  padding: 20px 30px;
  background: transparent;
  border-radius: 0;
  transition: all var(--duration-normal);
}

.client-logo:hover {
  transform: scale(1.1);
}

.client-logo img {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 1;
  transition: all var(--duration-normal);
}

/* Section CTA supprimée — session 11 */

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #5c5856;
  color: var(--bg-white);
  padding: 80px 0 32px;
  position: relative;
}

/* Ligne grise en haut */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #d0d0d0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand { max-width: 320px; }

.footer-logo { display: block; margin-bottom: 20px; }

.footer-logo-img {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social { display: flex; gap: 12px; }

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--bg-white);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--accent);
  color: var(--text-dark);
}

.social-link svg { width: 20px; height: 20px; }

.footer-column h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: var(--bg-white);
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

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

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credits {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credits a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-credits a:hover { color: var(--accent); }

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.footer-legal-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: var(--accent);
}

/* ============================================
   Mobile Menu Toggle
   ============================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bg-white);
  border-radius: 2px;
  transition: all var(--duration-normal);
}

/* menu-toggle toujours blanc — header anthracite permanent */

/* ============================================
   Forme Logo "N" - Décorations par section
   Collées aux bords de la fenêtre (bas gauche/droite)
   ============================================ */

/* Base commune */
.forme-n {
  position: absolute !important;
  width: 130px;
  height: 65px; /* Ratio du SVG: 116.7 x 58 ≈ 2:1 */
  background: url('../assets/logos/forme-logo.svg') no-repeat center bottom;
  background-size: 100% 100%;
  pointer-events: none;
  bottom: -2px !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0.15;
}

/* Gauche */
.forme-n.left {
  left: 0 !important;
  right: auto !important;
}

/* Droite */
.forme-n.right {
  right: 0 !important;
  left: auto !important;
}

/* Gris anthracite (pour fonds clairs) */
.forme-n.gray {
  opacity: 0.35;
}

/* Blanc (pour fonds sombres) */
.forme-n.white {
  filter: invert(1);
}

/* Jaune (couleur accent #FFD100) */
.forme-n.yellow {
  background-image: url('../assets/logos/forme-logo-yellow.svg');
  filter: none;
}

/* Gold (dégradé issu de forme-logo-gold.svg) */
.forme-n.gold {
  background-image: url('../assets/logos/forme-logo-gold.svg');
  filter: none;
}

/* Z-index et opacité par section */
.section-values .forme-n {
  z-index: 0; /* Derrière les éléments */
  opacity: 1;
  width: 488px; /* 325px × 1.5 = 488px */
  height: 244px; /* 162px × 1.5 = 244px */
  will-change: mask-image;

  /* Animation volet remplissage droite → gauche avec angle oblique (avec délai) */
  -webkit-mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--logo-fill-progress, 1) * 100%),
    transparent calc(var(--logo-fill-progress, 1) * 100%)
  );
  mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--logo-fill-progress, 1) * 100%),
    transparent calc(var(--logo-fill-progress, 1) * 100%)
  );
}
.section-stats .forme-n { z-index: 5; opacity: 1; }
.section-news .forme-n {
  z-index: 0; /* Derrière le contenu */
  opacity: 0.15;
  width: 520px; /* 130px × 4 = 520px */
  height: 260px; /* 65px × 4 = 260px */
  /* Pas de masque - c'est l'overlay du wrapper qui la couvre/révèle */
}
.section-clients .forme-n { z-index: 25; }
/* .section-cta supprimée */
.footer .forme-n { z-index: 1; opacity: 0.12; }

/* ============================================
   CTA Bands — Bandeaux gris foncé entre sections
   ============================================ */
.cta-band {
  background: #333333;
  padding: 40px 0;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

/* Oblique gris clair traversant les bandeaux — continuité avec les sections */
.cta-band::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  clip-path: var(--oblique-clip, polygon(100% 0, 50% 0, 40% 100%, 100% 100%));
  z-index: 0;
  pointer-events: none;
  will-change: clip-path, mask-image;

  /* Animation volet — invisible par défaut, s'ouvre au scroll */
  -webkit-mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--band-fill-progress, 0) * 100%),
    transparent calc(var(--band-fill-progress, 0) * 100%)
  );
  mask-image: linear-gradient(
    calc(270deg + var(--oblique-angle, 15deg)),
    black 0%,
    black calc(var(--band-fill-progress, 0) * 100%),
    transparent calc(var(--band-fill-progress, 0) * 100%)
  );
}

/* Bandeau projet : pas d'animation volet, oblique visible directement */
.cta-band--project::after {
  -webkit-mask-image: none;
  mask-image: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.cta-band-content {
  flex: 1;
}

.cta-band-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cta-band-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.cta-band .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================
   Scroll to Top
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 54px;
  height: 54px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal);
  box-shadow: var(--shadow-md);
}

.scroll-top:hover {
  background: #3d3b39;
  transform: translateY(-3px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* ============================================
   Animations
   ============================================ */
[data-anim] {
  --anim-progress: 0;
  --eased: calc(var(--anim-progress) * var(--anim-progress) * (3 - 2 * var(--anim-progress)));
  will-change: opacity, transform;
}

[data-anim="slide-up-fade"] {
  opacity: var(--eased);
  transform: translateY(calc(40px * (1 - var(--eased))));
}

[data-anim="slide-left-fade"] {
  opacity: var(--eased);
  transform: translateX(calc(-50px * (1 - var(--eased))));
}

[data-anim="slide-right-fade"] {
  opacity: var(--eased);
  transform: translateX(calc(50px * (1 - var(--eased))));
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    --anim-progress: 1 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero::after,
  .hero-blur-backdrop,
  .hero-box,
  .hero-title,
  .hero-slogan,
  .hero-actions,
  .scroll-indicator {
    animation: none !important;
    opacity: 1 !important;
    transform: translateX(-50%) !important;
  }

  .hero::after {
    opacity: 0.66 !important;
  }

  .scroll-indicator {
    animation: bounce 2s infinite !important;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
  .values-grid,
  .expertises-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .header { padding: 15px 20px; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal);
    z-index: 100;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    font-size: 18px;
    color: var(--text-dark);
  }

  .menu-toggle { display: flex; }
  .header-cta { display: none; }

  .lang-switcher {
    margin-right: 12px;
  }

  .lang-switcher-link {
    font-size: 12px;
  }

  .hero-content {
    justify-content: center;
    padding: 0 24px;
  }

  .hero-box {
    padding: 40px 20px;
    margin: 0;
    max-width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-title { font-size: 24px; }

  .hero-title,
  .hero-title .highlight {
    color: var(--bg-white);
  }

  .hero-slogan {
    color: rgba(255, 255, 255, 0.9);
  }

  .section { padding: 50px 0; }

  /* Reset section-values header sur mobile */
  .section-values .section-header {
    max-width: 700px;
    text-align: center;
    margin: 0 auto 60px;
  }

  /* Masquer le slash continu sur mobile */
  .hero::after,
  .hero-blur-backdrop,
  .section-presentation::after,
  .section-values::before,
  .section-stats::before,
  .section-expertises::before,
  .section-clients::before,
  .section-clients::after {
    display: none;
  }

  /* Désactiver l'animation de remplissage sur mobile */
  .section-presentation::after,
  .section-values::before,
  .section-values .forme-n {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Masquer les formes logo décoratives sur mobile */
  .forme-n {
    display: none !important;
  }

  /* Restaurer les fonds sur mobile */
  .section-clients {
    background: var(--bg-white);
  }

  /* .section-cta supprimée */

  /* Sur mobile, texte blanc sur image de fond stats */
  .section-stats .stat-number,
  .section-stats .stat-label,
  .section-stats .stat-item.on-light .stat-number,
  .section-stats .stat-item.on-light .stat-label,
  .section-stats .stat-item.on-dark .stat-number,
  .section-stats .stat-item.on-dark .stat-label {
    color: #fff !important;
  }

  /* Désactiver l'effet fenêtre sur mobile - fond classique */
  .stats-fixed-bg {
    display: none;
  }

  .section-stats {
    background:
      linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.55) 100%),
      url('../assets/images/PHOTO-2026-02-17-09-30-16.jpg') center center / cover no-repeat;
    padding: 80px 0;
  }

  /* CTA Bands responsive */
  .cta-band-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cta-band-text,
  .cta-band-title {
    font-size: 18px;
  }

  /* Logo scrolled on mobile — pas de rétraction */
  .header.scrolled .logo-text {
    transform: translateX(0);
  }

  .section-stats::before,
  .section-stats .stats-overlay {
    display: none;
  }

  .section-label,
  .section-label.on-light,
  .section-label.on-dark {
    color: var(--text-dark) !important;
  }

  /* Présentation garde les textes blancs sur fond anthracite même en mobile */
  .section-presentation .section-label {
    color: rgba(255, 255, 255, 0.7) !important;
  }
  .section-presentation .section-title,
  .section-presentation .section-title .highlight {
    color: #fff !important;
  }
  .section-presentation .section-description {
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .section-presentation .presentation-theme-label {
    color: #fff !important;
  }

  .section-title,
  .section-title.on-light,
  .section-title.on-dark {
    color: var(--secondary-blue) !important;
  }

  .section-title .highlight {
    color: var(--accent-dark) !important;
  }

  .section-description,
  .section-description.on-light,
  .section-description.on-dark {
    color: var(--text-gray) !important;
  }

  /* Galaxies masquées sur mobile */
  #constellation-canvas,
  .galaxy-canvas {
    display: none;
  }

  .presentation-grid {
    grid-template-columns: 1fr;
  }

  .presentation-text {
    padding-left: 0;
  }

  .presentation-themes {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }

  .presentation-themes::before {
    display: none;
  }

  .presentation-theme,
  .presentation-theme:nth-child(1),
  .presentation-theme:nth-child(2),
  .presentation-theme:nth-child(3) {
    position: static;
    display: block;
    width: auto;
    margin-left: 0;
    top: auto;
    bottom: auto;
  }

  .presentation-theme:nth-child(1) {
    flex-direction: column; /* reset column-reverse */
  }

  .presentation-theme:nth-child(1) .presentation-theme-icon {
    margin: 0 auto 16px;
  }

  .presentation-theme-label {
    max-width: none;
  }

  .values-grid,
  .expertises-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-item {
    flex: 0 0 45%;
    padding: 0 8px;
  }

  .stat-number { font-size: 62px; } /* +30% de 48px */

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: span 1; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Désactiver l'effet volet sur mobile */
  .clients-cta-fill-overlay {
    display: none;
  }

  /* Masque de la forme N sur mobile */
  .section-news .forme-n {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
