/* =========================================================
   DRUIDE STUDIO — style.css
   Ordre : Variables → Reset → Base → Layout → Components →
           Sections → Utilitaires → Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. VARIABLES
   --------------------------------------------------------- */
:root {
  /* Couleurs */
  --c-primary:      #6843e1;
  --c-primary-dark: #5230c4;
  --c-secondary:    #56f5d9;
  --c-dark:         #0c203f;
  --c-dark-2:       #0c203f;
  --c-text:         #0c203f;
  --c-text-muted:   #8695ae;
  --c-border:          #e4e4ec;
  --c-sections-border: #283b61;
  --c-bg:           #ffffff;
  --c-bg-alt:       #f6f5f2;
  --c-bg-dark:      #0c203f;

  /* Typographie */
  --f-heading: 'Exo 2', sans-serif;
  --f-body:    'Inter', sans-serif;

  /* Tailles de police (clamp = responsive sans media query) */
  --fs-xs:   0.75rem;     /* 12px */
  --fs-sm:   0.875rem;    /* 14px */
  --fs-base: 1rem;        /* 16px */
  --fs-md:   1.125rem;    /* 18px */
  --fs-lg:   1.375rem;    /* 22px */
  --fs-xl:   clamp(1.75rem, 3vw, 2.5rem);
  --fs-2xl:  clamp(2.25rem, 5vw, 3.75rem);
  --fs-3xl:  clamp(2.75rem, 7vw, 5.5rem);

  /* Espacements */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);

  /* Misc */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 2px 16px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 8px 40px rgba(17, 17, 17, 0.12);
  --transition: 220ms ease;

  /* Header height (synced with JS) */
  --header-h: 125px;
}


/* ---------------------------------------------------------
   2. RESET & NORMALIZE
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font: inherit;
  background: none;
  border: none;
}

h1, h2, h3, h4 {
  font-family: var(--f-heading);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}


/* ---------------------------------------------------------
   3. SKIP LINK (accessibilité)
   --------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 9999;
  padding: var(--sp-3) var(--sp-6);
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--sp-4);
}


/* ---------------------------------------------------------
   4. FOCUS VISIBLE (accessibilité)
   --------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Supprime l'outline sur clic souris uniquement */
:focus:not(:focus-visible) {
  outline: none;
}


/* ---------------------------------------------------------
   5. CONTAINER
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}


/* ---------------------------------------------------------
   6. BOUTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 2.2rem;
  font-family: var(--f-body);
  font-size: 1.025rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform 80ms ease,
              box-shadow var(--transition);
  min-height: 44px; /* WCAG touch target */
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

/* Primary */
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
}

/* Ghost (outline) */
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-sections-border);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--c-text);
}

/* Secondary (pour fond sombre) */
.btn--secondary {
  background: var(--c-secondary);
  color: var(--c-dark);
  border-color: var(--c-secondary);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: #1fc9ab;
  border-color: #1fc9ab;
}

/* Large */
.btn--large {
  padding: 0.5rem 3rem;
  font-size: 1.15rem;
  min-height: 57px;
}


/* ---------------------------------------------------------
   7. HEADER & NAVIGATION
   --------------------------------------------------------- */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), height var(--transition);
}

.header.is-scrolled {
  height: 100px;
  background: var(--c-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}

/* Éléments nav blancs quand header transparent (sur hero sombre) */
.header:not(.is-scrolled) .nav__logo-img {
  filter: brightness(0) invert(1);
}
.header:not(.is-scrolled) .nav__link {
  color: rgba(255, 255, 255, 0.7);
}
.header:not(.is-scrolled) .nav__link:hover,
.header:not(.is-scrolled) .nav__link.is-active {
  color: #fff;
}
.header:not(.is-scrolled) .nav__link::after {
  background: #fff;
}
.header:not(.is-scrolled) .nav__bar {
  background: #fff;
}

.header .container {
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-8);
}

/* Logo */
.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-inline-end: auto;
}

.nav__logo-img {
  display: block;
  height: 46px;
  width: auto;
  transition: opacity var(--transition), filter var(--transition);
}

.header.is-scrolled .nav__logo-img {
  filter: brightness(0) invert(1);
}

.header.is-scrolled .nav__link {
  color: rgba(255, 255, 255, 0.7);
}

.header.is-scrolled .nav__link:hover,
.header.is-scrolled .nav__link.is-active {
  color: #fff;
}

.nav__logo:hover .nav__logo-img {
  opacity: 0.75;
}

/* Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  position: relative;
  padding-block: var(--sp-2);
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--c-dark);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

/* CTA */
.nav__cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--sp-2);
  margin-inline-start: auto;
}

.nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → croix quand ouvert */
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------------------------------------------------------
   8. HERO
   --------------------------------------------------------- */
.hero {
  height: 100svh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Conteneur flex — contenu centré verticalement, flèche en bas */
.hero__container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: calc(var(--header-h) + var(--sp-8)) var(--sp-16);
  position: relative;
  gap: var(--sp-6);
  width: 100%;
}

/* Badge "disponible" */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(40, 231, 197, 0.05);
  border: 1px solid rgba(40, 231, 197, 0.35);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-block-end: 2rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #24be53;
  border-radius: 50%;
}

/* Bloc titre + texte + CTAs */
.hero__body {
  display: flex;
  flex-direction: column;
}

/* Titre */
.hero__title {
  font-size: clamp(2rem, 6vw, 5.3rem);
  line-height: 1.05;
  color: #fff;
  max-width: 74%;
}

.hero__title em {
  font-style: normal;
  color: var(--c-secondary);
}

/* Paragraphe */
.hero__text {
  font-size: var(--fs-base);
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 50%;
  margin-block: 2rem 4rem;
}

/* CTAs */
.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Ghost button sur fond sombre */
.hero .btn--ghost {
  color: rgba(255, 255, 255, 0.85);
  border-color: var(--c-text-muted);
  border-width: 1px;
}
.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* Flèche scroll */
.hero__scroll {
  position: absolute;
  bottom: calc(var(--sp-6) + 30px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 55%);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  animation: scroll-bounce 2.4s ease-in-out infinite;
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

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

/* Éléments décoratifs */
.hero__deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero__deco--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(104, 67, 225, 0.2) 0%, transparent 65%);
  inset-block-start: 10%;
  inset-inline-end: -100px;
}

.hero__deco--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(40, 231, 197, 0.15) 0%, transparent 70%);
  inset-block-end: 15%;
  inset-inline-start: -60px;
}


/* ---------------------------------------------------------
   9. STATS
   --------------------------------------------------------- */
.stats {
  padding-block: var(--sp-16);
}

.stats__title {
  font-family: var(--f-heading);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  margin-block-end: var(--sp-12);
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-12) var(--sp-8);
  min-height: 160px;
  position: relative;
  border-right: 1px solid var(--c-sections-border);
  border-bottom: 1px solid var(--c-sections-border);
  text-align: center;
}

.stats__item:not(.stats__item--empty)::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-secondary);
}

/* Bordure haute : première ligne (cases 1–4) */
.stats__item:nth-child(-n+4) {
  border-top: 1px solid var(--c-sections-border);
}

/* Bordure gauche : première colonne (cases 1 et 5) */
.stats__item:nth-child(4n+1) {
  border-left: 1px solid var(--c-sections-border);
}

/* Case 3 (ligne 1, col 3) : pas de bordure haute */
.stats__item:nth-child(3) {
  border-top: none;
}

/* Case 5 (ligne 2, col 1) : pas de bordure gauche ni basse */
.stats__item:nth-child(5) {
  border-left: none;
  border-bottom: none;
}

/* Case 8 (ligne 2, col 4) : pas de bordure basse ni droite */
.stats__item:nth-child(8) {
  border-bottom: none;
  border-right: none;
}

.stats__item--empty {
  background: transparent;
}

.stats__item--grid {
  overflow: hidden;
}

.stats__grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.stats__abstract {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: brightness(0) invert(1);
  z-index: 1;
  pointer-events: none;
}

.stats__number {
  font-family: var(--f-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 600;
  color: var(--c-secondary);
  line-height: 1;
}

.stats__suffix {
  font-size: 0.8em;
  color: #fff;
  vertical-align: baseline;
  position: relative;
  bottom: 5px;
  left: 4px;
}

.stats__label {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  text-transform: uppercase;
}


/* ---------------------------------------------------------
   10. SERVICES
   --------------------------------------------------------- */
.services {
  padding-block: var(--sp-32);
}

.services .section-title {
  color: #fff;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-block-start: var(--sp-16);
}

.service-card {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  padding: var(--sp-16) var(--sp-16);
  border-radius: 0;
  background: transparent;
  border-right: 1px solid var( --c-sections-border);
  border-bottom: 1px solid var( --c-sections-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  transition: background var(--transition);
}

/* Bordure haute — première ligne */
.service-card:nth-child(-n+3) {
  border-top: 1px solid var( --c-sections-border);
}

/* Bordure gauche — première colonne */
.service-card:nth-child(3n+1) {
  border-left: 1px solid var( --c-sections-border);
}

/* Case décorative — pas de dot */
.service-card--deco::after {
  display: none;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-secondary);
}

.service-card:hover {
  background: #12294c;
}

.service-card__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var( --c-sections-border);
  stroke-width: 0.3;
  overflow: visible;
  rotate: -90deg;
}

.service-card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-block-end: var(--sp-4);
}

.service-card__icon {
  flex-shrink: 0;
  color: #fff;
  width: 18px;
  height: 18px;
}

.service-card__title {
  font-size: 1.30rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-block-end: 0;
  text-transform: none;
}

.service-card__text {
  font-size: var(--fs-base);
  color: #8695ae;
  line-height: 1.6;
}



/* ---------------------------------------------------------
   11. PORTFOLIO
   --------------------------------------------------------- */
.portfolio {
  padding-block: var(--sp-32) 0;
}

.portfolio .section-title,
.portfolio .section-desc {
  color: #fff;
}

.portfolio .section-desc {
  opacity: 0.5;
}

/* Grid — même système que services (gap 0, bordures directionnelles) */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-block-start: var(--sp-16);
}

/* ---- Flip card structure ---- */
.project-card {
  position: relative;
  aspect-ratio: 79 / 67;
  min-width: 0;
  perspective: 900px;
  border-right: 1px solid var(--c-sections-border);
  border-bottom: 1px solid var(--c-sections-border);
  cursor: pointer;
}

/* First row: top border */
.project-card:nth-child(-n+3) {
  border-top: 1px solid var(--c-sections-border);
}

/* First column: left border */
.project-card:nth-child(3n+1) {
  border-left: 1px solid var(--c-sections-border);
}

/* Secondary dot */
.project-card:not(.project-card--deco)::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-secondary);
  z-index: 2;
  pointer-events: none;
}

/* Inner wrapper — the flipping element */
.project-card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card__inner {
  transform: rotateY(180deg);
}

/* Face commune */
.project-card__front,
.project-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Face avant */
.project-card__front {
  background: var(--c-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-12) var(--sp-8);
  transition: background var(--transition);
}

.project-card:hover .project-card__front {
  background: #243550;
}

.project-card__content {
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  flex-direction: column;
  gap: var(--sp-3);
}

.project-card__tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-secondary);
}

.project-card__title {
  font-size: 1.65rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  text-transform: none;
  text-align: center;
  margin: 0;
}

.project-card__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition);
}

.project-card__hint svg {
    stroke-color: var(--c-secondary);
    position: relative;
    top: 12px;
    width: 20px;
    height: 20px;
  }

.project-card:hover .project-card__hint {
  color: rgba(255, 255, 255, 0.7);
}

/* Face arrière — image projet */
.project-card__back {
  transform: rotateY(180deg);
  overflow: hidden;
  background: #12294c;
}

.project-card__back .placeholder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Decorative cards ---- */
.project-card--deco {
  cursor: default;
  overflow: hidden;
}

.project-card--deco .project-card__inner {
  /* no flip on deco */
  pointer-events: none;
}

.project-card--deco:hover .project-card__inner {
  transform: none;
}

/* Deco front fills the card */
.project-card--deco .project-card__front {
  background: transparent;
}

.project-card--deco:hover .project-card__front {
  background: transparent;
}

/* Secondary background variant */
.project-card--secondary .project-card__front {
  background: rgba(86, 245, 217, 0.06);
}

.project-card--secondary:hover .project-card__front {
  background: rgba(86, 245, 217, 0.1);
}

/* Arc SVG — same as service cards */
.project-card__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--c-sections-border);
  stroke-width: 0.3;
  overflow: visible;
  pointer-events: none;
}

/* ---- Overrides par position ---- */

/* Card 4 (1re de la 2e rangée) : arc SVG pivoté 90deg */
.project-card:nth-child(4) .project-card__arc {
  transform: rotate(90deg);
  transform-origin: center;
}

/* Card 8 (2e de la 3e rangée) : pas de bordure basse */
.project-card:nth-child(8) {
  border-bottom: none;
}

/* Cards 1 et 6 : background sombre marqué */
.project-card:nth-child(1) .project-card__front,
.project-card:nth-child(6) .project-card__front {
  background: #12294c;
}

.project-card:nth-child(1):hover .project-card__front,
.project-card:nth-child(6):hover .project-card__front {
  background: #12294c;
}

/* ---- CTA below grid ---- */
.portfolio__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-16);
}

.portfolio__cta .btn--ghost {
  color: #fff;
  background: transparent;
  border-color: var(--c-sections-border);
  border-width: 1px;
  gap: 10px;
}

.portfolio__cta .btn--ghost:hover,
.portfolio__cta .btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
}


/* ---------------------------------------------------------
   12. ABOUT
   --------------------------------------------------------- */
.about {
  padding-block: var(--sp-32);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: start;
}

.about__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  margin-block-end: var(--sp-8);
}

.about__credentials-title {
  font-size: var(--fs-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-block: var(--sp-12) var(--sp-6);
}

.about__credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin-block-start: var(--sp-6);
}

.about__credential {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--sp-6) var(--sp-6);
  border: 1px solid var(--c-sections-border);
  margin-block-start: -1px;
}

.about__credential::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-secondary);
  z-index: 1;
}

.about__credential:nth-child(1)::after {
  right: auto;
  left: -4px;
}


.about__credential-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-secondary);
  padding-block-start: 2px;
}

.about__credential-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.about__credential-school {
  font-size: var(--fs-base);
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.about__credential-program {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.about__tools {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.about__content .section-title {
  margin-block: var(--sp-1) var(--sp-8);
  color: #fff;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-block-end: var(--sp-10, 2.5rem);
  
  font-size: var(var(--fs-base));
}

.about__text p {
  font-size: var(--fs-md);
  color: #b3bed2;
  line-height: 1.65;
  letter-spacing: 0.1;
}

.about__cta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}


/* ---------------------------------------------------------
   13. CONTACT CTA
   --------------------------------------------------------- */
.contact-cta {
  background: #041631;
  padding-block: var(--sp-32);
  overflow: hidden;
  position: relative;
}

.contact-cta__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.contact-cta__title {
  font-size: 4rem;
  color: #fff;
  margin-block: var(--sp-4) var(--sp-6);
}

.contact-cta__accent {
  color: var(--c-secondary);
}

.contact-cta__text {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-block-end: var(--sp-10, 2.5rem);
}


/* ---------------------------------------------------------
   14. FOOTER
   --------------------------------------------------------- */
.footer {
  background: #041631;
  padding-block: var(--sp-16);
  color: rgba(255, 255, 255, 0.55);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-8);
  padding-block-end: var(--sp-12);
  border-block-end: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  display: inline-block;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: #fff;
  margin-block-end: var(--sp-3);
}

.footer__tagline {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.footer__nav-title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-block-end: var(--sp-4);
}

.footer__nav ul,
.footer__social ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__nav a,
.footer__social a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer__nav a:hover,
.footer__social a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-block-start: var(--sp-8);
  font-size: var(--fs-xs);
}


/* ---------------------------------------------------------
   15. COMPOSANTS RÉUTILISABLES
   --------------------------------------------------------- */

/* Section header */
.section-header {
  max-width: 780px;
  margin-block-end: var(--sp-16);
  color: #fff
}

.section-label {
  display: inline-block;
  font-size: var(--fs-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-secondary);
  margin-block-end: var(--sp-4);
}

.section-label--light {
  color: var(--c-secondary);
}

.section-title {
  font-size: clamp(2.6rem, 5.75vw, 4.3rem);
}

.section-desc {
  margin-block-start: var(--sp-6);
  font-size: var(--fs-md);
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 56ch;
}

/* Tag pill */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(104, 67, 225, 0.08);
  color: var(--c-primary);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Tag list (inline) */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.tag-list li {
  padding: 3px 10px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* Tools list */
.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block-start: var(--sp-3);
}

.tools-list li {
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-text);
}


/* ---------------------------------------------------------
   16. PLACEHOLDERS (à remplacer par de vraies images)
   --------------------------------------------------------- */
.placeholder-img {
  position: relative;
  background: linear-gradient(135deg, #ede9f8 0%, #e8f8f5 100%);
  border-radius: 0;
  border: 1px solid var(--c-sections-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(104, 67, 225, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 67, 225, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.placeholder-img--portrait {
  aspect-ratio: 4 / 5;
}

.placeholder-img--landscape {
  aspect-ratio: 16 / 9;
}

.placeholder-label {
  position: relative;
  z-index: 1;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(104, 67, 225, 0.4);
  pointer-events: none;
  user-select: none;
}

/* Annule les aspect-ratio des placeholders dans les cartes projet
   qui ont leur propre hauteur définie */
.project-card--featured .placeholder-img--landscape {
  aspect-ratio: unset;
  height: 320px;
}


/* ---------------------------------------------------------
   16b. CLIENTS MARQUEE
   --------------------------------------------------------- */
.clients {
  background: var(--c-dark);
  padding-block: var(--sp-6) var(--sp-24);
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-block-start: var(--sp-24);
}

.clients__intro {
  font-size: 1.3rem;
  color: var(--c-text-muted);
  text-align: center;
  font-style: normal;
  max-width: 600px;
  margin-inline: auto;
  margin-block-end: 4.6rem;
  padding-inline: var(--container-pad);
  line-height: 1.5;
  font-style: italic;
}

/* Wrapper avec masques de fondu sur les bords */
.clients__marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* Track : contient les 2 séries côte à côte */
.clients__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
}

/* Chaque série de logos */
.clients__set {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  flex-shrink: 0;
}

.clients__logo {
  display: block;
  height: 50px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1) opacity(0.55);
  transition: filter 0.2s ease;
}

.clients__marquee:hover .clients__logo {
  filter: brightness(0) invert(1) opacity(0.65);
}

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

/* Pause au survol */
.clients__marquee:hover .clients__track {
  animation-play-state: paused;
}

/* Respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .clients__track {
    animation: none;
  }
  .clients__set + .clients__set {
    display: none;
  }
  .clients__marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
  .clients__set {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
}


/* ---------------------------------------------------------
   16c. PAGE LOADER & ANIMATIONS D'ENTRÉE
   --------------------------------------------------------- */

/* Loader plein écran */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--c-dark);
  transform: translateY(0);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.page-loader.is-out {
  transform: translateY(-100%);
}

/* État initial des éléments à révéler */
.reveal,
.reveal-nav {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}

/* Transitions après chargement */
body.is-loaded .reveal,
body.is-loaded .reveal-nav {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger — hero (démarre après que le loader soit à mi-chemin) */
body.is-loaded .reveal--0 { transition-delay: 0.05s; } /* visuel hero */
body.is-loaded .reveal--1 { transition-delay: 0.15s; } /* badge */
body.is-loaded .reveal--2 { transition-delay: 0.28s; } /* titre */
body.is-loaded .reveal--3 { transition-delay: 0.44s; } /* texte */
body.is-loaded .reveal--4 { transition-delay: 0.58s; } /* CTAs */

/* Stagger — nav */
body.is-loaded .reveal-nav--1 { transition-delay: 0.05s; } /* logo */
body.is-loaded .reveal-nav--2 { transition-delay: 0.1s;  } /* hamburger */
body.is-loaded .reveal-nav--3 { transition-delay: 0.18s; } /* lien 1 */
body.is-loaded .reveal-nav--4 { transition-delay: 0.24s; } /* lien 2 */
body.is-loaded .reveal-nav--5 { transition-delay: 0.30s; } /* lien 3 */
body.is-loaded .reveal-nav--6 { transition-delay: 0.38s; } /* cta */

/* Respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll { animation: none; }
  .page-loader { display: none; }
  .reveal, .reveal-nav {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------
   SCROLL REVEAL — desktop uniquement (≥ 769px)
   --------------------------------------------------------- */
@media (min-width: 769px) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
  }

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

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


/* ---------------------------------------------------------
   17. RESPONSIVE
   --------------------------------------------------------- */

/* Tablet : ≤ 1024px */
@media (max-width: 1024px) {
  .hero__bottom {
    grid-template-columns: 1fr 2fr;
  }

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


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

  .about__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--sp-12);
  }

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

  .footer__brand {
    grid-column: span 2;
  }
}

/* Mobile : ≤ 768px */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }


  /* Nav mobile */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-block-end: 1px solid var(--c-border);
    padding: var(--sp-4);
    box-shadow: var(--shadow-lg);

    /* Masqué par défaut */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 300ms ease, visibility 300ms ease, padding 300ms ease;
  }

  .nav__menu.is-open {
    max-height: 400px;
    visibility: visible;
    padding: var(--sp-6) var(--sp-4);
  }

  .nav__menu li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: var(--sp-4) var(--sp-2);
    font-size: var(--fs-base);
    border-block-end: 1px solid var(--c-border);
    width: 100%;
  }

  .nav__link::after { display: none; }

  .nav__cta {
    display: none; /* affiché dans le menu mobile à la place */
  }

  /* Hero mobile */
  .hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    max-width: 100%;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__container {
    gap: var(--sp-4);
  }

  /* Espacement des sections */
  .services,
  .about {
    padding-block: var(--sp-16);
  }

  .portfolio {
    padding-block: var(--sp-16) 0;
  }

  .stats {
    padding-block: var(--sp-10);
  }

  .section-header {
    margin-block-end: var(--sp-8);
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card--deco {
    display: none;
  }

  .service-card {
    border: 1px solid var(--c-sections-border) !important;
    margin-block-start: -1px;
    aspect-ratio: unset;
  }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .project-card--deco {
    display: none;
  }

  .project-card {
    border: 1px solid var(--c-sections-border) !important;
    margin-block-start: -1px;
    aspect-ratio: unset;
    height: 250px;
  }

  /* Stats */
  .stats__item {
    border: 1px solid var(--c-sections-border) !important;
    margin-block-start: -1px;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__content {
    order: -1;
  }

  .about__image {
    max-width: 320px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Stats */
  .stats__item--empty {
    display: none;
  }

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

  .stats__item {
    padding: var(--sp-8) var(--sp-6);
    min-height: unset;
    border: 1px solid var(--c-sections-border) !important;
    margin-block-start: -1px;
  }
}

/* Small mobile : ≤ 480px */
@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

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

  .about__cta {
    flex-direction: column;
  }

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


/* ---------------------------------------------------------
   18. PRINT
   --------------------------------------------------------- */
@media print {
  .header,
  .nav__toggle,
  .hero__actions,
  .contact-cta,
  .footer { display: none; }

  body { color: #1d2b40; background: #fff; }
}
