/**
 * Custom Theme - Main Stylesheet
 *
 * CSS vanilla avec custom properties.
 * Pas de framework, pas de build nécessaire.
 *
 * @package Custom_Theme
 * @since 1.0.0
 */

/* ==========================================================================
   RESET MINIMAL
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--fg1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--fg1);
}

p { line-height: var(--lh-body); }

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

img, video, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

table { border-collapse: collapse; }

/* Masquer les titres WordPress par défaut */

/* Skip link accessibilité */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--bg-brand);
  color: var(--fg-inverse);
  padding: 8px 16px;
  z-index: 99999;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   DESIGN SYSTEM — Variables neutres (surchargées par le thème enfant)
   ========================================================================== */

:root {
  /* Police unique — surchargée par le thème enfant */
  --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Typographie fluide (mobile min ↔ desktop max) */
  --text-hero: clamp(44px, 6vw, 72px);
  --text-h1: clamp(36px, 5.6vw, 68px);
  --text-h2: clamp(28px, 5vw, 56px);
  --text-h3: clamp(18px, 2.5vw, 24px);
  --text-h4: clamp(14px, 1.8vw, 18px);
  --text-lead: clamp(17px, 2vw, 20px);
  --text-body: clamp(15px, 1.6vw, 17px);
  --text-sm: clamp(13px, 1.4vw, 15px);
  --text-xs: clamp(11px, 1.2vw, 13px);

  /* Graisses */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* Letter-spacing */
  --ls-display: -0.02em;
  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-button: 0.04em;
  --ls-eyebrow: 0.12em;

  /* Line-height */
  --lh-tight: 1;
  --lh-display: 1.1;
  --lh-heading: 1.2;
  --lh-lead: 1.5;
  --lh-body: 1.6;

  /* Spacing fluide (mobile min ↔ desktop max) */
  --space-xs: clamp(4px, 0.5vw, 8px);
  --space-sm: clamp(8px, 1vw, 12px);
  --space-md: clamp(12px, 1.5vw, 16px);
  --space-lg: clamp(16px, 2vw, 24px);
  --space-xl: clamp(24px, 3vw, 32px);
  --space-2xl: clamp(32px, 4vw, 48px);
  --space-3xl: clamp(48px, 6vw, 64px);
  --space-section: clamp(48px, 8vw, 80px);

  /* Couleurs neutres — surchargées par le thème enfant */
  --bg: #FFFFFF;
  --bg-muted: #F1F1F1;
  --bg-inverse: #181818;
  --bg-brand: #000000;
  --bg-accent: #000000;
  --fg1: #181818;
  --fg2: #3A3A3A;
  --fg3: #6B6B6B;
  --fg-inverse: #FFFFFF;
  --fg-brand: #000000;
  --border: #D8D8D8;
  --border-brand: #000000;
  --radius: 8px;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

/* Lead text */
.lead {
  font-size: var(--text-lead);
  line-height: var(--lh-lead);
  color: var(--fg2);
  max-width: 65ch;
}

/* Eyebrow (sur-titre) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-main);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--fg-brand);
  margin-bottom: var(--space-md);
}

/* Small text */
small, .text-sm {
  font-size: var(--text-sm);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Sections */
.section {
  padding: var(--space-section) clamp(22px, 5vw, 4rem);
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-main);
  font-size: var(--text-body);
  font-weight: var(--fw-semi);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-button);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--bg-brand);
  color: var(--fg-inverse);
  border: 2px solid var(--bg-brand);
}

.btn-primary:hover {
  background-color: var(--fg2);
  border-color: var(--fg2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text, var(--fg1));
  border: 2px solid var(--color-border, var(--border));
}

.btn-secondary:hover {
  background-color: var(--color-surface-muted, var(--bg-muted));
  border-color: var(--color-text, var(--fg1));
}


/* Cards */
.card {
  background-color: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}


/* Hero */

/* Navigation */


/* Forms */




/* WordPress blocks */
.wp-block-image img {
  border-radius: var(--radius);
}

.wp-block-quote {
  border-left: 4px solid var(--border-brand);
  padding-left: 24px;
  font-style: italic;
  color: var(--fg2);
}

/* ==========================================================================
   THEME SYSTEM — Couleurs contextuelles
   ========================================================================== */

/* Variables sémantiques par défaut (fond clair)
   Déclinaison basée sur opacité de la couleur principale */
:root {
  --color-text: var(--fg1);
  --color-text-muted: rgba(24, 24, 24, 0.7);
  --color-text-subtle: rgba(24, 24, 24, 0.5);
  --color-accent: var(--bg-accent);
  --color-border: rgba(24, 24, 24, 0.15);
  --color-surface: var(--bg);
  --color-surface-muted: rgba(24, 24, 24, 0.05);
}

/* Thème sombre — inverse automatiquement les couleurs */
.theme-dark,
[data-theme="dark"] {
  --color-text: var(--fg-inverse);
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-subtle: rgba(255, 255, 255, 0.5);
  --color-accent: rgba(255, 255, 255, 0.5);
  --color-border: rgba(255, 255, 255, 0.15);
  --color-surface: var(--bg-inverse);
  --color-surface-muted: rgba(255, 255, 255, 0.05);
}

/* Thème clair explicite (pour reset dans un contexte dark) */
.theme-light,
[data-theme="light"] {
  --color-text: var(--fg1);
  --color-text-muted: rgba(24, 24, 24, 0.7);
  --color-text-subtle: rgba(24, 24, 24, 0.5);
  --color-accent: var(--bg-accent);
  --color-border: rgba(24, 24, 24, 0.15);
  --color-surface: var(--bg);
  --color-surface-muted: rgba(24, 24, 24, 0.05);
}

/* ==========================================================================
   UTILITIES — Eyebrow
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-main);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--fg-brand);
  margin-bottom: var(--space-md);
}

.eyebrow--center {
  display: block;
  text-align: center;
}

/* ==========================================================================
   UTILITIES — Icon Box
   ========================================================================== */

/* Base icon box */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

/* Size variants */




/* Light variant (for light backgrounds) */
.icon-box--light {
  background: var(--bg-muted);
}

.icon-box--light svg {
  color: var(--fg-brand);
}

/* Dark variant (for dark backgrounds) */


/* Brand variant (accent background) */


/* ==========================================================================
   UTILITIES — Animation
   ========================================================================== */


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   WORDPRESS MENU STYLES
   ========================================================================== */

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  position: relative;
}

.menu a {
  display: block;
  padding: 8px 0;
  color: currentColor;
  text-decoration: none;
}

/* Mobile menu */
#mobile-menu.is-active {
  display: block;
}

/* ==========================================================================
   UTILITIES — Layout (Tailwind-like)
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(22px, 5vw, 4rem);
  padding-right: clamp(22px, 5vw, 4rem);
}


/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex */

/* Grid */

/* Gap */

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Sizing */

/* Overflow */

/* ==========================================================================
   UTILITIES — Spacing
   ========================================================================== */

/* Padding */



/* Margin */


/* ==========================================================================
   UTILITIES — Colors (gray scale + semantic)
   ========================================================================== */

/* Text colors */

/* Background colors */

/* Gradient */

/* ==========================================================================
   UTILITIES — Borders
   ========================================================================== */


.border { border-width: 1px; }

/* ==========================================================================
   UTILITIES — Effects
   ========================================================================== */

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }


/* ==========================================================================
   UTILITIES — Transitions
   ========================================================================== */

.transition { transition-property: all; transition-timing-function: ease; transition-duration: 150ms; }

/* ==========================================================================
   UTILITIES — Interactivity
   ========================================================================== */

.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-gray-100:hover { background-color: #F3F4F6; }
.hover\:text-accent:hover { color: var(--bg-accent); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* ==========================================================================
   UTILITIES — Prose (basic typography for content)
   ========================================================================== */

.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose h2, .prose h3, .prose h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose ul, .prose ol {
  list-style: revert;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose a {
  color: var(--fg-brand);
  text-decoration: underline;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* ==========================================================================
   RESPONSIVE — Medium screens (md: 768px+)
   ========================================================================== */

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:mt-0 { margin-top: 0; }
}

/* ==========================================================================
   SECTION CTAs — Réutilisable pour toutes les sections
   ========================================================================== */

.section__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.section__ctas .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .section__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .section__ctas .btn {
    width: auto;
  }
}

/* Variante centrée */
.section__ctas--center {
  justify-content: center;
}

/* Variante pour fond sombre */
.section__ctas--dark .btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.section__ctas--dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay gradient: left dark to transparent */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/* Content container */
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: var(--space-3xl) 0;
}

.hero__inner {
  max-width: 100%;
}

/* Eyebrow */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin-bottom: var(--space-lg);
}


@keyframes heroPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--bg-accent);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px transparent;
  }
}

.hero__eyebrow-text {
  font-family: var(--font-main);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--fg-inverse);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}

/* Title */
.hero__title {
  font-family: var(--font-main);
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--fg-inverse);
  margin-bottom: var(--space-lg);
}

.hero__title em {
  color: var(--bg-accent);
  font-style: normal;
}

/* Intro text */
.hero__intro {
  font-family: var(--font-main);
  font-size: var(--text-lead);
  font-weight: var(--fw-regular);
  line-height: var(--lh-lead);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

/* CTAs */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero__btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--fg-inverse);
}

.hero__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Metrics inline */
.hero__metrics {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.hero__metric-value {
  font-family: var(--font-main);
  font-size: var(--text-h3);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--fg-inverse);
}

.hero__metric-label {
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.7);
}

.hero__metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}


.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  animation: heroScroll 1.5s ease-in-out infinite;
}

@keyframes heroScroll {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.1% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Hero Logos */
.hero__logos {
  margin-top: var(--space-2xl);
}


.hero__logos-label {
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .hero__logos-label {
    display: block;
  }
}

.hero__logos-label span {
  font-family: var(--font-main);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}



.hero__logos-marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero__logos-track {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  width: max-content;
  animation: logos-scroll 20s linear infinite;
}

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

.hero__logos-item {
  flex-shrink: 0;
  height: 28px;
  width: auto;
  filter: grayscale(100%) brightness(2);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.hero__logos-item:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

@media (min-width: 768px) {
  .hero__logos-item {
    height: 36px;
  }
}

/* Hero Grid (2 colonnes) */
.hero__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.hero__col {
  display: block;
  width: 100%;
}

/* Mobile/Tablette : visuel en premier (au-dessus du contenu) */
.hero__col--visual {
  order: -1;
}

.hero__col--content {
  order: 1;
}

@media (min-width: 1024px) {
  .hero__grid {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .hero__col--content {
    order: 0;
    width: 58%;
    flex: none;
  }

  .hero__col--visual {
    order: 0;
    width: 38%;
    flex: none;
  }
}

/* ==========================================================================
   HERO VISUAL
   ========================================================================== */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
}

/* Portrait container */
.hero-visual__portrait {
  position: relative;
  width: 200px;
  height: 200px;
}

@media (min-width: 768px) {
  .hero-visual__portrait {
    width: 240px;
    height: 240px;
  }
}

@media (min-width: 1024px) {
  .hero-visual__portrait {
    width: 280px;
    height: 280px;
  }
}

@media (min-width: 1280px) {
  .hero-visual__portrait {
    width: 340px;
    height: 340px;
  }
}

/* Bordure gradient animée */
.hero-visual__border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(
    from 0deg,
    var(--bg-brand),
    var(--bg-accent),
    var(--bg-violet, var(--bg-accent)),
    var(--bg-brand)
  );
  animation: heroVisualRotate 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes heroVisualRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Image wrapper */
.hero-visual__image-wrapper {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-inverse);
}

.hero-visual__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges */
.hero-visual__badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: heroVisualBadgeFadeIn 0.6s ease-out both, heroVisualBadgeFloat 3s ease-in-out infinite;
}

.hero-visual__badge--top-left {
  top: 5%;
  left: -10%;
  animation-delay: 0.3s, 0s;
}

.hero-visual__badge--bottom-right {
  bottom: 10%;
  right: -15%;
  animation-delay: 0.5s, 1.5s;
}

@media (min-width: 1024px) {
  .hero-visual__badge--top-left {
    top: 10%;
    left: -15%;
  }

  .hero-visual__badge--bottom-right {
    bottom: 15%;
    right: -20%;
  }
}

@keyframes heroVisualBadgeFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVisualBadgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-visual__badge-icon {
  width: 20px;
  height: 20px;
  color: var(--bg-accent);
  flex-shrink: 0;
}

.hero-visual__badge-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-visual__badge-number {
  font-family: var(--font-main);
  font-size: var(--text-body);
  font-weight: var(--fw-bold);
  color: var(--fg-inverse);
  line-height: var(--lh-tight);
}

.hero-visual__badge-label {
  font-family: var(--font-main);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--lh-tight);
}

/* ==========================================================================
   HERO — Tablet (768px - 1023px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .hero .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }

  .hero__title {
    font-size: clamp(36px, 6vw, 52px);
  }

  .hero__intro {
    font-size: var(--text-lead);
    max-width: 100%;
  }

  .hero__metrics {
    width: 100%;
    gap: 0;
  }

  .hero__metric {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .hero__metric-divider {
    flex: 0 0 1px;
  }
}

/* ==========================================================================
   HERO — Mobile (< 768px)
   ========================================================================== */

@media (max-width: 767px) {
  .hero .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }

  .hero__overlay {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.75) 100%
    );
  }

  .hero__content {
    padding: var(--space-lg) 0 var(--space-2xl);
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .hero__intro {
    font-size: var(--text-body);
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__metrics {
    width: 100%;
    gap: 0;
  }

  .hero__metric {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .hero__metric-divider {
    flex: 0 0 1px;
    height: 30px;
  }

  .hero__metric-value {
    font-size: var(--text-h4);
  }

  
  .hero__logos-label {
    display: block;
  }

  
  /* Hero — supprimer contrainte 100vh sur mobile */
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: var(--space-xl);
  }

  /* Hero metrics — garder en ligne sur mobile */
  .hero__metrics {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero__metric-divider {
    display: none;
  }

  /* Hero service/about — visuel en dessous sur mobile */
  .hero--service,
  .hero--about {
    padding-top: 80px;
    padding-bottom: var(--space-xl);
  }

  .hero--service .hero__grid,
  .hero--about .hero__grid {
    flex-direction: column;
  }

  .hero--service .hero__col--content,
  .hero--service .hero__col--visual,
  .hero--about .hero__col--content,
  .hero--about .hero__col--visual {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .hero--service .hero__col--visual,
  .hero--about .hero__col--visual {
    display: flex;
    order: 2;
    margin-top: var(--space-xl);
    justify-content: center;
  }

  .hero--service .hero__col--content,
  .hero--about .hero__col--content {
    order: 1;
  }

  .hero--service .hero__inner,
  .hero--about .hero__inner {
    text-align: center;
  }

  .hero--service .hero__ctas,
  .hero--about .hero__ctas,
  .hero--about .hero__metrics {
    justify-content: center;
  }

  .hero--service .hero__logos-inner {
    justify-content: center;
  }
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta {
  background: var(--bg);
}

.cta__inner {
  background: var(--bg-inverse);
  --color-text: var(--fg-inverse);
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-accent: rgba(255, 255, 255, 0.5);
  --color-border: rgba(255, 255, 255, 0.3);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: 24px;
}

.cta__title {
  font-family: var(--font-main);
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.cta__title em {
  color: var(--color-accent);
  font-style: normal;
}

.cta__text {
  font-family: var(--font-main);
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}



@media (max-width: 767px) {
  .cta__buttons {
    flex-direction: column;
  }

  .cta__buttons .btn {
    width: 100%;
  }
}

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */







/* Problem Grid */



/* Problem Card */

.problem__card-number {
  display: block;
  font-family: var(--font-main);
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}



/* ==========================================================================
   SOLUTION SECTION
   ========================================================================== */

.solution {
  background: var(--bg);
}



/* Grid Layout */


/* Content Column */







/* List Column */







/* ==========================================================================
   CASES SECTION (Marquee)
   ========================================================================== */









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










/* ==========================================================================
   REVIEWS SECTION (Slider)
   ========================================================================== */

.reviews {
  background: var(--bg);
}

.reviews__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}


.reviews__title {
  font-family: var(--font-main);
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.reviews__title em {
  color: var(--color-accent);
  font-style: normal;
}

.reviews__subtitle {
  font-family: var(--font-main);
  font-size: var(--text-body);
  color: var(--color-text-subtle);
}

.reviews__slider {
  position: relative;
}


.reviews__track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.5s ease;
}

.reviews__card {
  flex-shrink: 0;
  width: 100%;
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .reviews__card {
    width: calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .reviews__card {
    width: calc(33.333% - 16px);
  }
}


.reviews__stars {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.reviews__star {
  width: 18px;
  height: 18px;
  color: var(--color-text-subtle);
}

.reviews__star--filled {
  color: #FBBF24;
}

.reviews__text {
  font-family: var(--font-main);
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: var(--lh-body);
  margin-bottom: var(--space-lg);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}




.reviews__name {
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--color-text);
}

.reviews__source {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-main);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}


/* Navigation arrows */



.reviews__nav--prev {
  left: -22px;
}

.reviews__nav--next {
  right: -22px;
}

@media (max-width: 1023px) {
  .reviews__nav--prev {
    left: var(--space-sm);
  }
  .reviews__nav--next {
    right: var(--space-sm);
  }
}

/* Dots pagination */

.reviews__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reviews__dot:hover {
  background: var(--fg3);
}

.reviews__dot--active {
  background: var(--bg-accent);
  transform: scale(1.2);
}

/* ==========================================================================
   LOGOS SECTION (Marquee)
   ========================================================================== */

.logos {
  background: var(--bg-muted);
  padding: var(--space-lg) 0;
  overflow: hidden;
}










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




/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb {
  padding: var(--space-md) 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-main);
  font-size: var(--text-sm);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  color: var(--fg3);
}

.breadcrumb__link {
  color: var(--fg2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--fg-brand);
}

.breadcrumb__current {
  color: var(--fg1);
  font-weight: var(--fw-medium);
}

/* ==========================================================================
   CONTENT PAGE
   ========================================================================== */

.content-page__header {
  margin-bottom: var(--space-xl);
}

.content-page__title {
  font-family: var(--font-main);
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--fg1);
}

.content-page__body {
  max-width: 800px;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination a {
  color: var(--fg2);
  background: var(--bg);
  border: 1px solid var(--border);
}

.pagination a:hover {
  color: var(--fg-brand);
  border-color: var(--fg-brand);
}

.pagination .current {
  color: var(--fg-inverse);
  background: var(--fg-brand);
  border: 1px solid var(--fg-brand);
}

.pagination .prev,
.pagination .next {
  gap: var(--space-sm);
}

.pagination .prev svg,
.pagination .next svg {
  width: 16px;
  height: 16px;
}

.pagination .dots {
  color: var(--fg3);
  background: none;
  border: none;
}

/* ==========================================================================
   ERROR 404
   ========================================================================== */

.error-404__inner {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: var(--space-section) 0;
}

.error-404__code {
  display: block;
  font-family: var(--font-main);
  font-size: clamp(80px, 20vw, 160px);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--bg-muted);
  margin-bottom: var(--space-md);
}

.error-404__title {
  font-family: var(--font-main);
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-display);
  color: var(--fg1);
  margin-bottom: var(--space-md);
}

.error-404__text {
  font-family: var(--font-main);
  font-size: var(--text-body);
  color: var(--fg2);
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   NO RESULTS
   ========================================================================== */

.no-results {
  text-align: center;
  padding: var(--space-3xl) 0;
  color: var(--fg2);
}

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

.footer {
  position: relative;
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding: var(--space-3xl) 0;
  padding-bottom: calc(var(--space-3xl) + 60px);
}

/* Grid 4 colonnes */
.footer__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer__grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer__col {
    width: calc(50% - var(--space-lg));
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    flex-wrap: nowrap;
  }

  .footer__col {
    width: 25%;
  }
}

/* Titres de colonne */
.footer__title {
  font-family: var(--font-main);
  font-size: var(--text-h4);
  font-weight: var(--fw-bold);
  color: var(--fg-inverse);
  margin-bottom: var(--space-lg);
}

/* Col 1 : Brand */
.footer__logo {
  margin-bottom: var(--space-md);
}

.footer__logo img {
  max-height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__logo-text {
  display: block;
  font-family: var(--font-main);
  font-size: var(--text-h3);
  font-weight: var(--fw-bold);
  color: var(--fg-inverse);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer__baseline {
  font-family: var(--font-main);
  font-size: var(--text-body);
  font-weight: var(--fw-semi);
  color: var(--fg-inverse);
  margin-bottom: var(--space-sm);
}


/* Réseaux sociaux */
.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--fg-inverse);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer__social:hover {
  background: var(--bg-accent);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

/* Col 2 : Navigation */
.footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__menu li a {
  font-family: var(--font-main);
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__menu li a:hover {
  color: var(--fg-inverse);
}

/* Col 3 : Contact */
.footer__address {
  font-style: normal;
  margin-bottom: var(--space-lg);
}

.footer__address p {
  font-family: var(--font-main);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--lh-body);
  margin-bottom: var(--space-sm);
}

.footer__address a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__address a:hover {
  color: var(--fg-inverse);
}

.footer__cta {
  margin-top: var(--space-md);
}

/* Col 4 : Map */
.footer__map {
  border-radius: var(--radius);
  overflow: hidden;
}

.footer__map iframe {
  display: block;
  width: 100%;
  height: 200px;
}

/* Barre légale */
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
}

.footer__legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__legal-links a {
  font-family: var(--font-main);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal-links a:hover {
  color: var(--fg-inverse);
}

.footer__legal-sep {
  color: rgba(255, 255, 255, 0.3);
}

/* Copyright */
.footer__copyright {
  position: absolute;
  bottom: var(--space-lg);
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-main);
  font-size: var(--text-xs);
  color: var(--fg3);
}

/* ==========================================================================
   CAS CLIENT (Single)
   ========================================================================== */




/* Reuse hero eyebrow animation - adapt for light background */
.cas-hero .hero__eyebrow {
  margin-bottom: var(--space-md);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}


.cas-hero .hero__eyebrow-text {
  color: var(--fg3);
}








/* Metrics - reuse hero__metrics styles but adapt colors for light bg */
.cas-hero .hero__metrics {
  margin-top: var(--space-xl);
}

.cas-hero .hero__metric-value {
  color: var(--fg-brand);
}

.cas-hero .hero__metric-label {
  color: var(--fg3);
}

.cas-hero .hero__metric-divider {
  background: var(--border);
}






































.cas-realisation .eyebrow {
  color: rgba(255, 255, 255, 0.5);
}






























/* ==========================================================================
   CERTIFICATIONS SECTION
   Bandeau avec animation marquee pour formations, certifications et partenariats.
   ========================================================================== */











/* Marquee animation */
@keyframes certifications-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* ==========================================================================
   PROTECTED CONTACT (Anti-spam email/phone)
   ========================================================================== */

.protected-contact {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  text-decoration: none;
  cursor: pointer;
}

.protected-contact__placeholder {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35em 0.75em;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg2);
  transition: all 0.2s ease;
}

.protected-contact__placeholder::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.protected-contact:hover .protected-contact__placeholder {
  background: var(--bg);
  border-color: var(--fg-brand);
  color: var(--fg-brand);
}

.protected-contact__value {
  display: block;
  font-family: var(--font-main);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--fg-brand);
  transition: color 0.2s ease;
}

.protected-contact.is-revealed {
  gap: var(--space-sm);
}

.protected-contact.is-revealed .protected-contact__placeholder {
  opacity: 0.6;
  pointer-events: none;
  font-size: var(--text-xs);
  padding: 0.2em 0.5em;
}

.protected-contact:hover .protected-contact__value {
  color: var(--fg1);
}

/* Button variant - replace placeholder with value */
.protected-contact.btn .protected-contact__value {
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}

/* Inline variant (no button style) */
.protected-contact--inline .protected-contact__placeholder {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

.protected-contact--inline .protected-contact__placeholder::before {
  display: none;
}

.protected-contact--inline:hover .protected-contact__placeholder {
  background: transparent;
  border: none;
  color: var(--fg-brand);
}

/* CTA button variant */
.cta__buttons .protected-contact.btn {
  flex-direction: row;
}

.cta__buttons .protected-contact.btn .protected-contact__placeholder {
  padding: 0;
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
}

.cta__buttons .protected-contact.btn .protected-contact__placeholder::before {
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}

.cta__buttons .protected-contact.btn .protected-contact__value {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   Cas Client Services (cas-services.php)
   Card design with hero image from service pages
   ========================================================================== */




.cas-services__header .lead {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}







