/**
 * Styles principaux — Défi Sans Frontières Maroc 2026
 * Mobile-first · breakpoints 480 / 768 / 1024 / 1440
 */

/* ------------------------------------------------------------------------- Reset minimal */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.dsf-landing {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(1200px 600px at 10% -10%, rgba(101, 192, 221, 0.12), transparent),
    radial-gradient(900px 500px at 90% 0%, rgba(0, 99, 174, 0.08), transparent);
  background-attachment: fixed;
}

body.dsf-landing :focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.dsf-skip {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-button);
}

.dsf-skip:focus {
  left: 0.75rem;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
  padding: 0;
  margin: -1px;
}

.dsf-container {
  width: min(100% - 2rem, var(--maxwidth-content));
  margin-inline: auto;
}

.dsf-container--narrow {
  width: min(100% - 2rem, var(--maxwidth-narrow));
}

/* ------------------------------------------------------------------------- Header */
.dsf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.62), rgba(14, 27, 44, 0.22));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, padding 0.2s ease-out;
}

/* Empêche toute marge UA qui pourrait créer un espace au-dessus du header */
html,
body {
  margin: 0;
  padding: 0;
}

.dsf-header.is-scrolled {
  background: rgba(255, 255, 246, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.dsf-header.is-scrolled .dsf-header__logo {
  filter: none;
  opacity: 1;
}

.dsf-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dsf-header__logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.dsf-header__cta {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hot));
  color: var(--color-dark);
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dsf-header__cta:hover,
.dsf-header__cta:focus-visible {
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------------- Hero */
.dsf-hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Centré verticalement : marge haute pour ne pas passer sous le header sticky */
  padding-top: calc(var(--header-offset) + env(safe-area-inset-top, 0px) + clamp(0.5rem, 2vw, 1rem));
  padding-right: clamp(1rem, 4vw, 2rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  padding-left: clamp(1rem, 4vw, 2rem);
  color: var(--color-white);
  isolation: isolate;
  overflow: hidden;
}

.dsf-hero::before,
.dsf-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
  border-radius: 50%;
  filter: blur(48px);
}

.dsf-hero::before {
  width: min(42vw, 480px);
  height: min(42vw, 480px);
  top: -12%;
  right: -8%;
  background: rgba(110, 231, 255, 0.18);
}

.dsf-hero::after {
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  bottom: -18%;
  left: -6%;
  background: rgba(240, 160, 70, 0.15);
}

.dsf-hero__layer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  border-radius: 999px;
  opacity: 0.38;
  mix-blend-mode: screen;
}

.dsf-hero__layer--one {
  width: min(44vw, 520px);
  height: min(44vw, 520px);
  right: -10%;
  top: 18%;
  background: radial-gradient(circle, rgba(143, 180, 199, 0.9), rgba(143, 180, 199, 0) 66%);
}

.dsf-hero__layer--two {
  width: min(32vw, 360px);
  height: min(32vw, 360px);
  left: -8%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(244, 169, 76, 0.85), rgba(244, 169, 76, 0) 65%);
}

/**
 * Fond hero (grande « section d’en-tête » sous la barre sticky).
 * Image : remplace assets/img/hero-header-bg.png par ta photo finale (même nom de fichier).
 * Le point d’ancrage à droite garde silhouettes + soleil visibles sur mobile et bureau.
 */
.dsf-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-bg);
  background-image: linear-gradient(
      120deg,
      rgba(14, 27, 44, 0.82) 0%,
      rgba(14, 27, 44, 0.38) 45%,
      rgba(14, 27, 44, 0.15) 70%,
      rgba(14, 27, 44, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(14, 27, 44, 0.55) 0%,
      rgba(14, 27, 44, 0.12) 42%,
      rgba(14, 27, 44, 0.55) 100%
    ),
    url("../img/hero-header-bg.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Voile : fond lisible derrière la carte vitrée centrée */
.dsf-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, rgba(8, 10, 16, 0.5) 0%, transparent 62%),
    linear-gradient(
      90deg,
      rgba(10, 14, 22, 0.75) 0%,
      rgba(14, 27, 44, 0.35) 50%,
      rgba(14, 27, 44, 0.2) 72%,
      transparent 92%
    ),
    linear-gradient(180deg, rgba(8, 10, 16, 0.5) 0%, transparent 45%, rgba(8, 10, 16, 0.7) 100%);
}

.dsf-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(100%, 31rem);
  margin-inline: auto;
  padding-inline: 0.5rem;
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  justify-content: center;
}

/* Carte glassmorphism (version de référence) */
.dsf-hero__card {
  width: 100%;
  text-align: center;
  padding: clamp(1.75rem, 4.5vw, 2.75rem) clamp(1.35rem, 3.5vw, 2rem);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 18, 28, 0.42);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .dsf-hero__card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.dsf-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1.1rem;
}

.dsf-hero__chip {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.dsf-hero__cta {
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.dsf-hero__top {
  position: absolute;
  top: calc(-1 * var(--spacing-section) + 1rem);
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1rem;
}

.dsf-hero__badge {
  align-self: flex-end;
  margin-top: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-sand-light);
  border: 1px solid var(--color-accent);
}

.dsf-hero__h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.06;
  font-size: clamp(2rem, 7vw, 2.85rem);
  margin: 0 0 1.1rem;
  max-width: 100%;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.dsf-hero__h1-line {
  display: block;
}

.dsf-hero__h1-line + .dsf-hero__h1-line {
  margin-top: 0.18em;
}

.dsf-hero__baseline {
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.dsf-hero__baseline-pill {
  display: inline-block;
  position: relative;
  z-index: 0;
  overflow: hidden;
  max-width: 100%;
  text-align: center;
  background: linear-gradient(
    125deg,
    var(--color-accent) 0%,
    var(--color-accent-hot) 38%,
    #ffd24a 52%,
    var(--color-accent-hot) 65%,
    var(--color-accent) 100%
  );
  background-size: 240% 240%;
  background-position: 12% 50%;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-cta);
}

.dsf-hero__baseline-pill-text {
  position: relative;
  z-index: 1;
}

.dsf-hero__baseline-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.2) 52%,
    transparent 78%
  );
  transform: translateX(-120%) skewX(-14deg);
  opacity: 0;
  pointer-events: none;
}

.dsf-hero__story {
  margin: 0;
  max-width: 100%;
  width: 100%;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.65;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.dsf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dsf-btn--primary {
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: var(--shadow-cta);
}

.dsf-btn--primary:hover,
.dsf-btn--primary:focus-visible {
  transform: translateY(-2px);
}

.dsf-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-120%);
}

@media (prefers-reduced-motion: no-preference) {
  .dsf-btn--primary:hover::after,
  .dsf-btn--primary:focus-visible::after {
    animation: dsf-shine 0.7s ease forwards;
  }
}

@keyframes dsf-shine {
  to {
    transform: translateX(120%);
  }
}

.dsf-btn--outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-sand-light);
  border: 1px solid var(--color-border);
}

.dsf-btn--outline:hover,
.dsf-btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.dsf-hero__meta {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Entrée visuelle hero (désactivée si reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .dsf-hero__eyebrow {
    opacity: 0;
    transform: translateY(16px);
    animation: dsf-hero-in 0.72s ease 0.12s forwards;
  }

  .dsf-hero__h1 {
    opacity: 0;
    transform: translateY(22px);
    animation: dsf-hero-in 0.78s ease 0.18s forwards;
  }

  .dsf-hero__baseline {
    opacity: 0;
    transform: translateY(16px);
    animation: dsf-hero-in 0.72s ease 0.3s forwards;
  }

  .dsf-hero__story {
    opacity: 0;
    transform: translateY(14px);
    animation: dsf-hero-in 0.72s ease 0.42s forwards;
  }

  .dsf-hero__cta {
    opacity: 0;
    transform: translateY(12px);
    animation: dsf-hero-in 0.68s ease 0.54s forwards;
  }

  .dsf-hero__meta {
    opacity: 0;
    transform: translateY(10px);
    animation: dsf-hero-in 0.65s ease 0.66s forwards;
  }
}

@keyframes dsf-hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dsf-hero__baseline-pill {
    animation: dsf-baseline-pill-living 5.2s ease-in-out infinite;
    animation-delay: 0.85s;
  }

  .dsf-hero__baseline-pill::before {
    animation: dsf-baseline-pill-shine 7.5s ease-in-out infinite;
    animation-delay: 1.8s;
  }
}

@keyframes dsf-baseline-pill-living {
  0%,
  100% {
    background-position: 12% 50%;
    box-shadow: var(--shadow-cta);
    transform: scale(1);
  }
  40% {
    background-position: 88% 50%;
    box-shadow:
      0 6px 32px rgba(255, 203, 27, 0.48),
      0 0 26px rgba(255, 183, 50, 0.32);
    transform: scale(1.02);
  }
  55% {
    background-position: 70% 50%;
    transform: scale(1.01);
  }
}

@keyframes dsf-baseline-pill-shine {
  0%,
  58% {
    opacity: 0;
    transform: translateX(-120%) skewX(-14deg);
  }
  62% {
    opacity: 0.85;
  }
  70% {
    opacity: 0;
    transform: translateX(120%) skewX(-14deg);
  }
  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-14deg);
  }
}

/* ------------------------------------------------------------------------- Sections génériques */
.dsf-section {
  padding: var(--spacing-section) 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --section-image: none;
  --section-image-opacity: 0;
  --section-image-position: center center;
}

/* Fondu global entre TOUTES les sections (pleine largeur, sans "carreau") */
.dsf-section + .dsf-section {
  margin-top: -1px;
}

.dsf-section--alt {
  background: var(--color-bg-alt);
}

.dsf-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--section-image);
  background-size: cover;
  background-position: var(--section-image-position);
  opacity: var(--section-image-opacity);
  transform: scale(1.03);
}

.dsf-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.58), rgba(14, 27, 44, 0.7));
}

.dsf-section--alt::after {
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.7), rgba(14, 27, 44, 0.84));
}

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

/* Image de fond par section (remplaçable dans assets/img/) */
#video.dsf-section {
  --section-image: url("../img/video-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  --section-image-opacity: 0.3;
  --section-image-position: center 25%;
}

/*
 * Concept + Parcours : une seule image sur `.dsf-concept-parcours-wrap` (HTML)
 * → une couche, un scale `cover`, aucune couture entre les deux sections.
 * Fichier : concept-parcours-bg.jpg — idéal 1920 × 2160 (ou 16∶9 double bande).
 */
.dsf-concept-parcours-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Évite qu’un sub-pixel entre sections laisse voir une autre couleur (bande « bleue ») */
  background-color: var(--color-bg-alt);
}

/* Coller la transition vidéo -> concept */
#video.dsf-section + .dsf-concept-parcours-wrap {
  margin-top: -1px;
}

.dsf-concept-parcours-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/concept-parcours-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.42;
}

/*
 * Un seul voile « bleu » sur tout le bloc (même rendu que .dsf-section--alt::after) :
 * identique sur Le concept et Le parcours, sans cumul ni couture.
 */
.dsf-concept-parcours-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.7), rgba(14, 27, 44, 0.84));
}

/* Pas de recollement -1px entre concept et parcours : ça créait parfois une ligne visible */
.dsf-concept-parcours-wrap .dsf-section + .dsf-section {
  margin-top: 0;
}

.dsf-concept-parcours-wrap > .dsf-section {
  position: relative;
  z-index: 2;
  background: transparent;
}

.dsf-concept-parcours-wrap > .dsf-section.dsf-section--alt {
  background: transparent;
}

.dsf-concept-parcours-wrap #concept.dsf-section,
.dsf-concept-parcours-wrap #parcours.dsf-section {
  --section-image: none;
}

.dsf-concept-parcours-wrap #concept.dsf-section::before,
.dsf-concept-parcours-wrap #parcours.dsf-section::before {
  display: none;
}

/* Voiles par section désactivés : le filtre est sur .dsf-concept-parcours-wrap::after */
.dsf-concept-parcours-wrap #concept.dsf-section::after,
.dsf-concept-parcours-wrap #parcours.dsf-section::after {
  display: none;
}

#concept.dsf-section {
  padding-bottom: calc(var(--spacing-section) * 0.55);
}

/* Rapprocher les deux blocs sans chevauchement négatif (évite ligne / flash au pixel près) */
#concept.dsf-section + #parcours.dsf-section {
  margin-top: 0;
  padding-top: var(--spacing-section);
}

/* Après le wrapper : « Pourquoi » n’est plus adjacent à #parcours — recoller le fondu haut */
.dsf-concept-parcours-wrap + #pourquoi.dsf-section::after {
  background:
    linear-gradient(180deg, rgba(18, 21, 31, 0.82) 0, rgba(18, 21, 31, 0) clamp(2.3rem, 7vw, 6rem)),
    linear-gradient(180deg, rgba(14, 27, 44, 0.66), rgba(14, 27, 44, 0.82));
}

/*
 * Pourquoi + Inclus : même logique que Concept + Parcours
 * (une seule image de fond continue pour deux sections).
 */
.dsf-pourquoi-inclus-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  margin-top: -1px;
}

.dsf-pourquoi-inclus-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/pourquoi-inclus-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.4;
}

.dsf-pourquoi-inclus-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.7), rgba(14, 27, 44, 0.84));
}

.dsf-pourquoi-inclus-wrap > .dsf-section {
  position: relative;
  z-index: 2;
  background: transparent;
}

.dsf-pourquoi-inclus-wrap > .dsf-section.dsf-section--alt {
  background: transparent;
}

.dsf-pourquoi-inclus-wrap .dsf-section + .dsf-section {
  margin-top: 0;
}

.dsf-pourquoi-inclus-wrap #pourquoi.dsf-section,
.dsf-pourquoi-inclus-wrap #inclus.dsf-section {
  --section-image: none;
}

.dsf-pourquoi-inclus-wrap #pourquoi.dsf-section::before,
.dsf-pourquoi-inclus-wrap #inclus.dsf-section::before,
.dsf-pourquoi-inclus-wrap #pourquoi.dsf-section::after,
.dsf-pourquoi-inclus-wrap #inclus.dsf-section::after {
  display: none;
}

/* Top fade appliqué uniformément sur chaque section qui suit une autre section */
.dsf-section + .dsf-section::after {
  background:
    linear-gradient(180deg, rgba(18, 21, 31, 0.72) 0, rgba(18, 21, 31, 0) clamp(2.3rem, 7vw, 6rem)),
    linear-gradient(180deg, rgba(14, 27, 44, 0.6), rgba(14, 27, 44, 0.74));
}

.dsf-section--alt + .dsf-section::after,
.dsf-section + .dsf-section--alt::after {
  background:
    linear-gradient(180deg, rgba(18, 21, 31, 0.82) 0, rgba(18, 21, 31, 0) clamp(2.3rem, 7vw, 6rem)),
    linear-gradient(180deg, rgba(14, 27, 44, 0.66), rgba(14, 27, 44, 0.82));
}

#pourquoi.dsf-section {
  --section-image: url("../img/pourquoi-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  --section-image-opacity: 0.32;
  --section-image-position: center 35%;
}

#inclus.dsf-section {
  --section-image: url("../img/inclus-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  --section-image-opacity: 0.3;
  --section-image-position: center 60%;
}

#filtres.dsf-section {
  --section-image: url("../img/filtres-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  --section-image-opacity: 0.28;
  --section-image-position: center 42%;
}

#postuler.dsf-section {
  --section-image: url("../img/postuler-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  --section-image-opacity: 0.28;
  --section-image-position: center 48%;
}

#stephane.dsf-section {
  --section-image: url("../img/stephane-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  --section-image-opacity: 0.34;
  --section-image-position: center 40%;
}

#fondation.dsf-section {
  --section-image: url("../img/fondation-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  --section-image-opacity: 0.32;
  --section-image-position: center 58%;
}

#faq.dsf-section {
  --section-image: url("../img/faq-bg.jpg"), url("../img/hero-desert-placeholder.svg");
  --section-image-opacity: 0.3;
  --section-image-position: center 30%;
}

.dsf-section--alt .dsf-section__title {
  color: var(--color-text-on-dark);
}

.dsf-section--alt .dsf-section__lead,
.dsf-section--alt .dsf-video__caption {
  color: var(--color-muted-on-dark);
}

.dsf-section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
}

.dsf-section__title::after {
  content: "";
  display: block;
  width: 86px;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.dsf-section__lead {
  margin: 0 0 2rem;
  color: var(--color-muted-on-dark);
  max-width: 52ch;
}

/* Reveal progressif au scroll (piloté par design-motion.js) */
@media (prefers-reduced-motion: no-preference) {
  .dsf-reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* ------------------------------------------------------------------------- Vidéo */
.dsf-video {
  max-width: 960px;
  margin: 0 auto;
}

.dsf-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 2px solid rgba(101, 192, 221, 0.65);
  box-shadow: var(--shadow-card);
  background: #000;
}

.dsf-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dsf-video__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.dsf-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dsf-video__cover:hover .dsf-video__thumb,
.dsf-video__cover:focus-visible .dsf-video__thumb {
  transform: scale(1.03);
  opacity: 1;
}

.dsf-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.dsf-video__cover:hover .dsf-video__play,
.dsf-video__cover:focus-visible .dsf-video__play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(0, 0, 0, 0.75);
}

.dsf-video__caption {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-muted-on-dark);
}

/* ------------------------------------------------------------------------- Cards grid */
.dsf-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .dsf-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

.dsf-card {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.dsf-section--alt .dsf-card {
  background: var(--color-card-dark);
  border-color: var(--color-border-dark);
}

.dsf-section--alt .dsf-card__title {
  color: var(--color-text-on-dark);
}

.dsf-section--alt .dsf-card p {
  color: var(--color-muted-on-dark);
}

.dsf-card:hover,
.dsf-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(253, 201, 27, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.dsf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(101, 192, 221, 0.16), transparent 45%, rgba(253, 201, 27, 0.14));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dsf-card:hover::before,
.dsf-card:focus-within::before {
  opacity: 1;
}

/* Icônes SVG des cartes — halo, tracé animé, survol */
.dsf-card__icon-wrap {
  --icon-delay: 0s;
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  background: linear-gradient(145deg, rgba(110, 231, 255, 0.14), rgba(255, 203, 27, 0.07));
  border: 1px solid rgba(110, 231, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 4px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.dsf-section--alt .dsf-card__icon-wrap {
  color: var(--color-primary);
  background: linear-gradient(145deg, rgba(110, 231, 255, 0.1), rgba(255, 203, 27, 0.09));
  border-color: rgba(110, 231, 255, 0.22);
}

.dsf-card__icon-wrap::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(255, 203, 27, 0.2) 52%,
    transparent 64%
  );
  opacity: 0;
  transform: translateX(-55%) rotate(11deg);
  pointer-events: none;
  z-index: 1;
}

.dsf-icon-svg {
  position: relative;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  overflow: visible;
}

.dsf-icon-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dsf-icon-fill {
  fill: currentColor;
  stroke: none;
}

.dsf-icon-path--draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

@media (prefers-reduced-motion: no-preference) {
  .dsf-card__icon-wrap::after {
    animation: dsf-icon-shimmer 6s ease-in-out infinite;
    animation-delay: calc(var(--icon-delay) + 0.4s);
  }

  .dsf-icon-svg {
    animation: dsf-icon-wow 5.4s ease-in-out infinite;
    animation-delay: var(--icon-delay);
    filter: drop-shadow(0 0 10px rgba(110, 231, 255, 0.28));
  }

  .dsf-icon-path--draw {
    animation: dsf-icon-draw-loop 5.5s ease-in-out infinite;
    animation-delay: calc(var(--icon-delay) + 0.15s);
  }

  .dsf-card:hover .dsf-card__icon-wrap,
  .dsf-card:focus-within .dsf-card__icon-wrap {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 203, 27, 0.55);
    box-shadow:
      0 0 0 1px rgba(255, 203, 27, 0.15) inset,
      0 10px 36px rgba(0, 0, 0, 0.35),
      0 0 28px rgba(110, 231, 255, 0.22),
      0 0 40px rgba(255, 203, 27, 0.12);
  }

  .dsf-card:hover .dsf-icon-svg,
  .dsf-card:focus-within .dsf-icon-svg {
    animation-duration: 3.1s;
    filter: drop-shadow(0 0 16px rgba(255, 203, 27, 0.45));
  }

  .dsf-card:hover .dsf-icon-path--draw,
  .dsf-card:focus-within .dsf-icon-path--draw {
    animation-duration: 3.1s;
  }

  #concept .dsf-grid--3 .dsf-card:nth-child(1) .dsf-card__icon-wrap {
    --icon-delay: 0s;
  }

  #concept .dsf-grid--3 .dsf-card:nth-child(2) .dsf-card__icon-wrap {
    --icon-delay: 0.18s;
  }

  #concept .dsf-grid--3 .dsf-card:nth-child(3) .dsf-card__icon-wrap {
    --icon-delay: 0.36s;
  }

  #pourquoi .dsf-grid--2 .dsf-card:nth-child(1) .dsf-card__icon-wrap {
    --icon-delay: 0s;
  }

  #pourquoi .dsf-grid--2 .dsf-card:nth-child(2) .dsf-card__icon-wrap {
    --icon-delay: 0.14s;
  }

  #pourquoi .dsf-grid--2 .dsf-card:nth-child(3) .dsf-card__icon-wrap {
    --icon-delay: 0.28s;
  }

  #pourquoi .dsf-grid--2 .dsf-card:nth-child(4) .dsf-card__icon-wrap {
    --icon-delay: 0.42s;
  }
}

@keyframes dsf-icon-wow {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  22% {
    transform: translateY(-4px) scale(1.06) rotate(-2.5deg);
  }
  48% {
    transform: translateY(-2px) scale(1.08) rotate(2deg);
  }
  72% {
    transform: translateY(-5px) scale(1.04) rotate(-1.2deg);
  }
}

@keyframes dsf-icon-shimmer {
  0%,
  72% {
    opacity: 0;
    transform: translateX(-55%) rotate(11deg);
  }
  78% {
    opacity: 1;
  }
  88% {
    opacity: 0;
    transform: translateX(55%) rotate(11deg);
  }
  100% {
    opacity: 0;
  }
}

@keyframes dsf-icon-draw-loop {
  0%,
  12% {
    stroke-dashoffset: 100;
    opacity: 0.65;
  }
  42%,
  58% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  88%,
  100% {
    stroke-dashoffset: 100;
    opacity: 0.65;
  }
}

.dsf-card__title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dsf-card p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------------------- Timeline */
.dsf-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  padding-left: 1.25rem;
}

.dsf-timeline--dynamic::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.1rem;
  bottom: 0.1rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(101, 192, 221, 0.85), rgba(101, 192, 221, 0.08));
}

.dsf-timeline--dynamic::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.1rem;
  width: 3px;
  height: calc(100% / 7);
  max-height: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-accent), rgba(253, 201, 27, 0.05));
  box-shadow: 0 0 24px rgba(253, 201, 27, 0.42);
}

@media (min-width: 1024px) {
  .dsf-timeline {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    padding-left: 0;
    padding-top: 2rem;
  }

  .dsf-timeline--dynamic::before {
    content: "";
    position: absolute;
    left: 2%;
    right: 2%;
    top: 0.55rem;
    height: 3px;
    background: linear-gradient(90deg, rgba(101, 192, 221, 0.85), rgba(101, 192, 221, 0.08));
    border-radius: 999px;
    z-index: 0;
  }

  .dsf-timeline--dynamic::after {
    left: 2%;
    top: 0.55rem;
    width: calc((100% - 4%) / 7);
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), rgba(253, 201, 27, 0.05));
    box-shadow: 0 0 22px rgba(253, 201, 27, 0.42);
  }
}

.dsf-phase {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius-card);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.dsf-section--alt .dsf-phase {
  background: var(--color-card-dark);
  border-color: var(--color-border-dark);
}

.dsf-phase:hover {
  transform: translateY(-4px);
  border-color: rgba(101, 192, 221, 0.75);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.dsf-phase__dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  margin-bottom: 0.55rem;
  border: 2px solid var(--color-sky);
  background: transparent;
  position: relative;
  margin-left: -1.42rem;
  box-shadow: 0 0 0 5px rgba(14, 27, 44, 0.88);
}

.dsf-phase--done .dsf-phase__dot {
  background: var(--color-success);
  border-color: var(--color-success);
}

.dsf-phase--current .dsf-phase__dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 5px rgba(14, 27, 44, 0.88), 0 0 0 10px rgba(253, 201, 27, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .dsf-phase--current .dsf-phase__dot {
    animation: dsf-pulse 2s ease-in-out infinite;
  }

  .dsf-timeline--dynamic::after {
    animation: dsf-flow 2.8s ease-in-out infinite;
  }
}

@keyframes dsf-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(253, 201, 27, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(253, 201, 27, 0);
  }
}

@keyframes dsf-flow {
  0%,
  100% {
    filter: brightness(1);
    opacity: 0.85;
  }
  50% {
    filter: brightness(1.12);
    opacity: 1;
  }
}

@media (min-width: 1024px) {
  .dsf-phase {
    padding-top: 1.35rem;
  }

  .dsf-phase__dot {
    margin-left: 0;
    margin-top: -2rem;
    box-shadow: 0 0 0 6px rgba(11, 13, 18, 0.95);
  }
}

.dsf-phase__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sky);
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.dsf-phase h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.dsf-section--alt .dsf-phase h3 {
  color: var(--color-text-on-dark);
}

.dsf-phase p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.dsf-section--alt .dsf-phase p {
  color: var(--color-muted-on-dark);
}

.dsf-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(125, 211, 160, 0.15);
  color: var(--color-success);
}

.dsf-tag--live {
  background: rgba(240, 160, 70, 0.2);
  color: var(--color-accent);
}

/* ------------------------------------------------------------------------- Inclus / non inclus */
.dsf-split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .dsf-split {
    grid-template-columns: 1fr 1fr;
  }
}

.dsf-box {
  padding: 1.25rem;
  border-radius: var(--radius-card);
  background: var(--color-card);
  border: 1px solid var(--color-border);
}

.dsf-box--ok {
  border: 2px solid var(--color-success);
}

.dsf-box--no {
  border: 2px solid var(--color-error);
}

.dsf-inclus-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dsf-inclus-head h3 {
  margin: 0;
  flex: 1;
}

.dsf-box h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  color: var(--color-primary);
}

.dsf-inclus-icon-wrap {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.dsf-inclus-icon-wrap--ok {
  color: var(--color-success);
  background: linear-gradient(145deg, rgba(125, 211, 160, 0.18), rgba(110, 231, 255, 0.08));
  border: 1px solid rgba(125, 211, 160, 0.45);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.2);
}

.dsf-inclus-icon-wrap--no {
  color: var(--color-error);
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.14), rgba(253, 201, 27, 0.06));
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.2);
}

.dsf-inclus-icon-wrap::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: linear-gradient(
    105deg,
    transparent 28%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 68%
  );
  transform: translateX(-100%) skewX(-12deg);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.dsf-inclus-svg {
  position: relative;
  z-index: 1;
  width: 1.9rem;
  height: 1.9rem;
}

.dsf-inclus-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dsf-inclus-path--ring {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0.95;
}

.dsf-inclus-path--check {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.dsf-inclus-path--cross-a,
.dsf-inclus-path--cross-b {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

@media (prefers-reduced-motion: no-preference) {
  .dsf-inclus-icon-wrap {
    animation: dsf-inclus-float 4.8s ease-in-out infinite;
  }

  .dsf-inclus-icon-wrap--ok {
    animation-delay: 0s;
  }

  .dsf-inclus-icon-wrap--no {
    animation-delay: 0.35s;
  }

  .dsf-inclus-icon-wrap::after {
    animation: dsf-inclus-shimmer 7s ease-in-out infinite;
  }

  .dsf-inclus-icon-wrap--no::after {
    animation-delay: 1.2s;
  }

  .dsf-inclus-svg {
    animation: dsf-inclus-breathe 5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px currentColor);
  }

  .dsf-inclus-icon-wrap--no .dsf-inclus-svg {
    animation-delay: 0.35s;
  }

  .dsf-inclus-path--ring {
    animation: dsf-inclus-draw 3.2s ease-in-out infinite;
  }

  .dsf-inclus-path--check {
    animation: dsf-inclus-draw 3.2s ease-in-out 0.35s infinite;
  }

  .dsf-inclus-path--cross-a {
    animation: dsf-inclus-draw 2.8s ease-in-out 0.2s infinite;
  }

  .dsf-inclus-path--cross-b {
    animation: dsf-inclus-draw 2.8s ease-in-out 0.45s infinite;
  }

  .dsf-box--ok:hover .dsf-inclus-icon-wrap--ok {
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.35),
      0 0 24px rgba(125, 211, 160, 0.35);
    border-color: rgba(125, 211, 160, 0.75);
  }

  .dsf-box--no:hover .dsf-inclus-icon-wrap--no {
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.35),
      0 0 22px rgba(248, 113, 113, 0.3);
    border-color: rgba(248, 113, 113, 0.65);
  }
}

@keyframes dsf-inclus-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes dsf-inclus-shimmer {
  0%,
  65% {
    opacity: 0;
    transform: translateX(-100%) skewX(-12deg);
  }
  72% {
    opacity: 0.9;
  }
  80% {
    opacity: 0;
    transform: translateX(100%) skewX(-12deg);
  }
  100% {
    opacity: 0;
  }
}

@keyframes dsf-inclus-breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  45% {
    transform: scale(1.06) rotate(-1.5deg);
  }
  70% {
    transform: scale(1.04) rotate(1.5deg);
  }
}

@keyframes dsf-inclus-draw {
  0%,
  18% {
    stroke-dashoffset: 100;
    opacity: 0.55;
  }
  42%,
  58% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  82%,
  100% {
    stroke-dashoffset: 100;
    opacity: 0.55;
  }
}

.dsf-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------------------- Filtres + formulaire */
#filtres.dsf-section {
  scroll-margin-top: var(--header-offset);
}

.dsf-filters {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow-card);
}

.dsf-filters__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.dsf-filters__legend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 1rem;
  padding: 0;
}

.dsf-filters__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dsf-check {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.dsf-check input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  margin-top: 0.15rem;
  accent-color: var(--color-accent);
}

.dsf-check label {
  cursor: pointer;
  font-size: 0.98rem;
}

.dsf-filter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.dsf-badge-count {
  font-family: var(--font-heading);
  background: rgba(110, 231, 255, 0.18);
  color: var(--color-primary);
  border: 1px solid rgba(110, 231, 255, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.dsf-filter-msg {
  font-weight: 600;
}

.dsf-filter-msg--err {
  color: #fca5a5;
}

.dsf-filter-msg--ok {
  color: var(--color-success);
}

.dsf-unlock-icon {
  font-size: 1.25rem;
}

/* Zone formulaire */
#postuler.dsf-section {
  scroll-margin-top: var(--header-offset);
}

.dsf-form-wrap {
  position: relative;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

html.dsf-enhanced .dsf-form-wrap.dsf-form-locked {
  filter: blur(4px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.dsf-form {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .dsf-form__row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.dsf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dsf-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.dsf-field .hint {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.dsf-field input,
.dsf-field textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--color-text);
}

.dsf-field input.dsf-input-invalid,
.dsf-field textarea.dsf-input-invalid {
  border-color: var(--color-error);
}

.dsf-field-error {
  font-size: 0.85rem;
  color: var(--color-error);
  min-height: 1.1em;
}

.dsf-char {
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.dsf-form__actions {
  margin-top: 0.5rem;
}

.dsf-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.dsf-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: dsf-spin 0.7s linear infinite;
  display: none;
}

.dsf-btn.is-loading .dsf-spinner {
  display: inline-block;
}

@keyframes dsf-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Page merci (après soumission FormSubmit) */
.dsf-merci-page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  min-height: min(70vh, 820px);
  background: var(--color-bg);
}

.dsf-merci-page__card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-card);
  border: 1px solid rgba(125, 211, 160, 0.45);
  background: rgba(125, 211, 160, 0.08);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.dsf-merci-page__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.25;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.dsf-merci-page__prenom {
  font-weight: 800;
  color: var(--color-sand-light);
}

.dsf-merci-page__emoji {
  font-weight: 400;
  margin-left: 0.15em;
}

.dsf-merci-page__card p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  max-width: 62ch;
}

.dsf-merci-page__card a:not(.dsf-btn) {
  color: var(--color-primary);
  font-weight: 600;
  text-underline-offset: 3px;
}

.dsf-merci-page__lead {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text) !important;
  margin-top: 1.25rem !important;
}

.dsf-merci-page__list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  max-width: 62ch;
}

.dsf-merci-page__list li {
  margin-bottom: 0.75rem;
}

.dsf-merci-page__list li:last-child {
  margin-bottom: 0;
}

.dsf-merci-page__signoff {
  margin-top: 1.5rem !important;
  color: var(--color-text) !important;
}

.dsf-merci-page__back {
  margin-top: 1.75rem !important;
  margin-bottom: 0 !important;
}

.dsf-footer--merci {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.dsf-header__brand-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

/* ------------------------------------------------------------------------- Ambassadeur */
.dsf-amb {
  background: var(--color-surface-elevated);
  color: var(--color-text);
}

.dsf-amb__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .dsf-amb__grid {
    grid-template-columns: 220px 1fr;
  }
}

.dsf-amb__photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 3px solid var(--color-accent);
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--color-sand-deep), #1a3a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
}

.dsf-amb__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dsf-amb h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.dsf-amb p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------------------- FSO */
.dsf-fso-sign {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(110, 231, 255, 0.12);
  color: var(--color-sand-light);
  border: 1px solid rgba(110, 231, 255, 0.35);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-button);
}

/* ------------------------------------------------------------------------- FAQ */
.dsf-faq-group {
  margin-top: 1.5rem;
}

.dsf-faq-group:first-of-type {
  margin-top: 0;
}

.dsf-faq-group__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-sand-light);
  margin: 0 0 0.65rem;
  padding: 0;
  opacity: 0.92;
}

.dsf-faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 0.65rem;
  background: var(--color-card);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dsf-faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 160, 70, 0.45);
}

.dsf-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.dsf-faq-item summary::-webkit-details-marker {
  display: none;
}

.dsf-faq-chevron {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.dsf-faq-item[open] .dsf-faq-chevron {
  transform: rotate(225deg);
}

.dsf-faq-item__body {
  padding: 0 1.1rem 1rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.dsf-faq-item__body p {
  margin: 0.75rem 0 0;
}

/* ------------------------------------------------------------------------- Footer */
.dsf-footer {
  background: var(--color-footer-bg);
  color: var(--color-text);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--color-border);
}

.dsf-footer a {
  color: var(--color-sand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dsf-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .dsf-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.dsf-footer__logo {
  height: 52px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.dsf-footer__social {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dsf-footer__bar {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------------------- noscript */
.dsf-noscript {
  display: none;
  padding: 1rem;
  background: rgba(240, 160, 70, 0.12);
  color: var(--color-sand-light);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  font-weight: 600;
}

html.no-js .dsf-noscript {
  display: block;
}

/* ------------------------------------------------------------------------- Breakpoints finition typo */
@media (min-width: 480px) {
  .dsf-header__logo {
    height: 44px;
  }
}

@media (max-width: 767px) {
  .dsf-header {
    min-height: 60px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .dsf-header__logo {
    height: 32px;
  }

  .dsf-header__cta {
    display: none;
  }

  .dsf-hero {
    min-height: 90vh;
  }

  .dsf-hero__top {
    position: static;
    margin-bottom: 1rem;
  }

  .dsf-hero__badge {
    margin-top: 0;
  }

  .dsf-hero__layer {
    opacity: 0.2;
  }

  .dsf-hero__story {
    line-height: 1.7;
  }
}

@media (min-width: 480px) {
  .dsf-hero__inner {
    max-width: min(100%, 35rem);
  }
}

/* Bureau / tablette : carte plus large + titre plus grand */
@media (min-width: 768px) {
  .dsf-hero__inner {
    max-width: min(100%, 42.5rem);
  }

  .dsf-hero__h1 {
    font-size: clamp(2.55rem, 3.4vw, 3.85rem);
    margin-bottom: 1.2rem;
  }
}

@media (min-width: 1024px) {
  .dsf-hero__inner {
    max-width: min(100%, 46rem);
  }

  .dsf-hero__h1 {
    font-size: clamp(2.75rem, 3.1vw, 4.15rem);
  }
}

@media (min-width: 1440px) {
  .dsf-container {
    width: min(100% - 4rem, var(--maxwidth-content));
  }
}
