/* =============================================================================
   Zitouna Takaful — Landing page
   Design tokens + components. Mobile-first; breakpoints go up from 480px.

   Colours, spacing and type scale were measured from the approved desktop
   mockup (1440px artboard). Section max-widths differ on purpose — the mockup
   uses a wider grid for "Compétences" and narrower ones for FAQ/vidéos.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */
/* Figtree — SIL Open Font License 1.1. Variable file covers weights 300–900.
   NOTE: the mockup uses a licensed geometric sans (Gilroy family). Figtree is
   the closest metrically-similar open substitute. To switch to the licensed
   face, drop its .woff2 files in this folder and edit these two @font-face
   blocks — nothing else in the stylesheet needs to change. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --teal-900:  #014A55;   /* headings, dark sections, form card */
  --teal-800:  #025A63;
  --teal-700:  #0A6C74;
  --teal-600:  #14808A;
  --green-600: #2FA847;
  --green-500: #41C557;   /* accent word colour */
  --green-400: #5FD26F;
  --lime-500:  #7AE345;   /* check marks */
  --lime-400:  #91FF3D;   /* CTA gradient end */
  --emerald:   #00E275;   /* CTA gradient start */

  /* Neutrals */
  --white:     #FFFFFF;
  --bg:        #FFFFFF;
  --bg-alt:    #E7EEF0;   /* grey section bands */
  --bg-soft:   #EFF3F0;   /* pale green-grey band */
  --line:      #DCE5E8;
  --ink:       #014A55;   /* primary text */
  --ink-soft:  #4C6B72;   /* secondary text */
  --ink-mute:  #7A9096;   /* captions, placeholders */

  /* On dark */
  --on-dark:        #FFFFFF;
  --on-dark-soft:   rgba(255, 255, 255, .78);
  --on-dark-mute:   rgba(255, 255, 255, .58);
  --field-dark:     rgba(255, 255, 255, .07);
  --field-dark-bd:  rgba(255, 255, 255, .16);

  /* Gradients */
  --grad-cta:  linear-gradient(96deg, var(--emerald) 0%, var(--lime-400) 100%);
  --grad-dark: linear-gradient(135deg, #014A55 0%, #01565A 55%, #0A6B5F 100%);
  --grad-hero: radial-gradient(1100px 620px at 100% 0%, #E6FCF4 0%, rgba(230,252,244,0) 62%),
               radial-gradient(760px 520px at 0% 42%, #F2FCF6 0%, rgba(242,252,246,0) 70%);

  /* Radii */
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm:  0 2px 8px rgba(1, 74, 85, .05);
  --sh-md:  0 8px 24px rgba(1, 74, 85, .07);
  --sh-lg:  0 18px 46px rgba(1, 74, 85, .10);
  --sh-cta: 0 10px 26px rgba(0, 200, 110, .32);

  /* Cartes : un seul jeu de valeurs pour tous les blocs de contenu. */
  --card-radius:       var(--r-lg);
  --card-pad:          clamp(22px, 2.4vw, 30px);
  --card-border:       1px solid var(--line);
  --card-shadow:       var(--sh-sm);
  --card-shadow-hover: var(--sh-md);
  --card-lift:         -4px;

  /* Pastilles d'icône : trois tailles, pas davantage. */
  --badge-sm: 56px;
  --badge-md: 68px;
  --badge-lg: 88px;

  /* Layout */
  --container:        1246px;
  --container-wide:   1366px;
  --container-hero:   1308px;
  --container-narrow: 1040px;
  --gutter:           20px;

  /* Vertical rhythm — fluid between mobile and desktop */
  --section-y: clamp(56px, 7vw, 96px);

  /* Type scale (fluid) */
  --fs-h1:      clamp(30px, 4.6vw, 48px);
  --fs-h2:      clamp(26px, 3.4vw, 38px);
  --fs-h3:      clamp(19px, 1.6vw, 22px);
  --fs-card-t:  clamp(17px, 1.4vw, 20px);
  --fs-lead:    clamp(15px, 1.25vw, 17px);
  --fs-body:    clamp(14.5px, 1.1vw, 15.5px);
  --fs-stat:    clamp(34px, 3.6vw, 46px);
  --fs-small:   13.5px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors land below the sticky header. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }
/* The UA stylesheet gives blockquote a 40px side margin, which collapses it
   inside flex layouts. */
blockquote, figure { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Only show the ring for keyboard users. */
:focus:not(:focus-visible) { outline: none; }

/* Screen-reader-only, still focusable. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--teal-900); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm); font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide   { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--hero   { max-width: calc(var(--container-hero) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--alt  { background: var(--bg-alt); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--teal-900); color: var(--on-dark-soft); }
.section--dark .section__head h2,
.section--dark .section__head h3 { color: var(--on-dark); }

.section__head { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head p { max-width: 62ch; margin-inline: auto; color: var(--ink-soft); }
.section--dark .section__head p { color: var(--on-dark-soft); }

h2.section__title {
  font-size: var(--fs-h2);
  letter-spacing: -.01em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.section__title + p { font-size: var(--fs-lead); }

/* Small pill above a section title */
.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 7px 18px; border-radius: var(--r-pill); margin-bottom: 16px;
}
.eyebrow--light { background: #D8FBE4; color: var(--teal-900); }
.eyebrow--dark  { background: var(--teal-900); color: #fff; }

.text-accent { color: var(--green-500); }

/* Decorative dot grid used at several section edges in the mockup. */
.dots {
  position: absolute; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--green-500) 1.5px, transparent 1.6px);
  background-size: 17px 17px;
  opacity: .22;
}
.dots--left  { left: 0;  top: 12%; width: 120px; height: 220px; }
.dots--right { right: 0; top: 22%; width: 120px; height: 260px; }
@media (max-width: 1100px) { .dots { display: none; } }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--grad-cta);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border: 0; border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--teal-900);
  font-size: 15.5px; font-weight: 800; letter-spacing: .01em;
  cursor: pointer; text-align: center; text-decoration: none;
  box-shadow: var(--sh-cta);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,200,110,.4); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .icon { width: 18px; height: 18px; }

.btn--block { width: 100%; }
.btn--lg { padding: 17px 40px; font-size: 16.5px; }
.btn--light {
  background: #fff; color: var(--teal-900);
  border: 1.5px solid var(--line); box-shadow: var(--sh-sm);
}
.btn--light:hover { background: #fff; border-color: var(--green-500); box-shadow: var(--sh-md); }

.btn--ghost {
  background: transparent; color: var(--teal-900);
  border: 2px solid var(--teal-900); box-shadow: none;
}
.btn--ghost:hover { background: var(--teal-900); color: #fff; box-shadow: none; }

/* Busy state — swaps the label for a spinner without changing the width. */
.btn.is-loading { pointer-events: none; position: relative; color: transparent; }
.btn.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(1,74,85,.28); border-top-color: var(--teal-900);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   6. Icons
   -------------------------------------------------------------------------- */
.icon { width: 22px; height: 22px; flex: none; }
/* Exported artwork carries its own colours, so it is sized but never tinted. */
img.icon--art { object-fit: contain; width: 22px; height: 22px; }
.icon-badge img.icon--art { width: 27px; height: 27px; }
.icon-badge--dark img.icon--art,
.icon-badge--lg img.icon--art { width: 32px; height: 32px; }

.icon-badge {
  display: grid; place-items: center;
  width: var(--badge-sm); height: var(--badge-sm); border-radius: 50%;
  background: var(--bg-alt); color: var(--green-500);
  flex: none;
}
.icon-badge .icon { width: 27px; height: 27px; }
.icon-badge--dark { background: var(--grad-dark); color: #fff; width: var(--badge-md); height: var(--badge-md); }
.icon-badge--dark .icon { width: 32px; height: 32px; }
.icon-badge--white { background: #fff; color: var(--green-500); }
/* Artwork that already contains its own coloured disc: no CSS circle behind it. */
.icon-badge--bare { background: none; width: var(--badge-lg); height: var(--badge-lg); }
.icon-badge--bare img.icon--art { width: 100%; height: 100%; }
.icon-badge--lg { width: var(--badge-md); height: var(--badge-md); }
.icon-badge--lg .icon { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   7. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .22s var(--ease), border-color .22s var(--ease),
              background .22s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px rgba(1, 74, 85, .07);
}

/* Trois zones : logo, navigation centrée, action. Les liens restent au milieu
   quel que soit leur nombre, ce qui évite le déséquilibre du bandeau. */
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 74px;
  transition: min-height .22s var(--ease);
}
@media (min-width: 1024px) {
  .site-header.is-stuck .site-header__inner { min-height: 64px; }
  .site-nav { flex: 1; }
  .site-nav__inner { flex: 1; }
  /* Les liens se centrent entre le logo et le bouton. */
  .site-nav__list { margin-inline: auto; }
}

.site-logo { display: block; flex: none; }
.site-logo img {
  width: clamp(124px, 14vw, 156px); height: auto;
  transition: width .22s var(--ease);
}
.site-header.is-stuck .site-logo img { width: clamp(112px, 12vw, 136px); }

/* ---------- Navigation ---------- */
.site-nav { display: flex; align-items: center; }
.site-nav__inner { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.site-nav__list { display: flex; align-items: center; gap: 4px; }

/* Pastille au survol, dans la même langue visuelle que les étiquettes
   de section, plutôt qu'un soulignement dégradé. */
.site-nav__link {
  display: inline-block;
  padding: 9px 15px; border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-size: 14.5px; font-weight: 700; line-height: 1.3;
  text-decoration: none; white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.site-nav__link:hover { color: var(--teal-900); background: var(--bg-alt); text-decoration: none; }
.site-nav__link.is-active { color: var(--green-600); background: #E8F7EC; }

.site-nav__cta { flex: none; padding: 11px 22px; font-size: 14.5px; }
.site-nav__cta .icon { width: 16px; height: 16px; }
.site-nav__cta-wrap { position: relative; display: inline-flex; flex: none; }

/* ---------- Infobulle ---------- */
.tooltip {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
  width: max-content; max-width: 260px;
  background: var(--teal-900); color: #fff;
  font-size: 12.5px; font-weight: 600; line-height: 1.45;
  padding: 10px 13px; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(1, 74, 85, .25);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  pointer-events: none;
}
.tooltip::before {
  content: ''; position: absolute; bottom: 100%; right: 26px;
  border: 6px solid transparent; border-bottom-color: var(--teal-900);
}
.site-nav__cta-wrap:hover .tooltip,
.site-nav__cta:focus-visible + .tooltip { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Bouton menu ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex: none;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--green-500); }
.nav-toggle__bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px;
  background: var(--teal-900);
  transition: transform .26s var(--ease), opacity .18s var(--ease), top .26s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5.75px; }
.nav-toggle__bars span:nth-child(3) { top: 11.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5.75px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 5.75px; transform: rotate(-45deg); }

.site-nav__backdrop {
  position: fixed; inset: 0; z-index: -1;
  background: rgba(1, 74, 85, .38);
  opacity: 0; transition: opacity .26s var(--ease);
}

/* ---------- Sous le point de rupture ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(1, 74, 85, .12);
    padding: 10px clamp(16px, 5vw, 28px) 22px;
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--ease), visibility .3s;
    visibility: hidden;
  }
  .site-nav__inner {
    overflow: hidden; min-height: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
  }
  .site-header.nav-open .site-nav { grid-template-rows: 1fr; visibility: visible; }
  .site-header.nav-open .site-nav__backdrop { opacity: 1; z-index: -1; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav__link { display: block; padding: 14px 16px; font-size: 16px; white-space: normal; }
  .site-nav__cta { margin-top: 16px; width: 100%; padding: 14px 24px; font-size: 15.5px; }
  .site-nav__cta-wrap { display: flex; flex-direction: column; align-items: stretch; }
  /* Sur mobile, l'infobulle devient une mention sous le bouton. */
  .tooltip {
    position: static; opacity: 1; visibility: visible; transform: none;
    width: auto; max-width: none; margin-top: 10px;
    background: none; color: var(--ink-mute); box-shadow: none;
    padding: 0; font-weight: 500; text-align: center;
  }
  .tooltip::before { display: none; }
}

body.nav-is-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-hero), var(--white);
  padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 76px);
  overflow: hidden;
}
.hero__grid {
  display: grid; gap: clamp(32px, 4vw, 48px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); gap: clamp(32px, 4vw, 60px); align-items: center; }
}

/* Pastille d'accroche au-dessus du titre. */
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--teal-900); font-size: 13px; font-weight: 700; line-height: 1.3;
  box-shadow: var(--sh-sm);
}
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); flex: none; }

.hero__title {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 20px; max-width: 14ch;
}
.hero__text {
  font-size: clamp(15px, 1.3vw, 17px); line-height: 1.68;
  color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero__actions .btn { padding: 15px 28px; }

.hero__note {
  display: flex; align-items: center; gap: 9px;
  color: var(--ink-mute); font-size: 13.5px; margin: 0;
}
.hero__note .icon { width: 16px; height: 16px; flex: none; }

.hero__media { position: relative; }


/* Video frame — 16:9, click-to-load so no third-party script runs before consent. */
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); overflow: hidden;
  background: #202638; box-shadow: var(--sh-md);
  border: 0; padding: 0; cursor: pointer; display: block;
}
.video-frame img, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video-frame__play {
  position: absolute; inset: 0; margin: auto;
  width: 74px; height: 74px; border-radius: 50%;
  background: #fff; color: var(--green-500);
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.28);
  transition: transform .22s var(--ease);
}
.video-frame__play .icon { width: 26px; height: 26px; margin-left: 3px; }
.video-frame:hover .video-frame__play { transform: scale(1.08); }
.video-frame--hero {
  aspect-ratio: 4 / 3;
  background: var(--grad-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px;
}
.video-frame--hero .video-frame__play {
  position: static; width: 86px; height: 86px; box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.video-frame--hero .video-frame__play .icon { width: 30px; height: 30px; }
/* Verbatim d'agent, calé en bas du cadre. */
.hero__quote {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px clamp(20px, 2.4vw, 28px);
  color: var(--on-dark-soft); font-size: 13px; line-height: 1.55;
  font-style: italic; text-align: left; margin: 0;
}
.video-frame--hero img { position: absolute; inset: 0; }

.video-frame--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: var(--on-dark-mute); cursor: default;
}
/* In the empty state the play button sits in the flow so the hint stays readable. */
.video-frame--empty .video-frame__play { position: static; width: 62px; height: 62px; opacity: .85; }
.video-frame--empty .video-frame__hint { font-size: 13.5px; padding: 0 24px; text-align: center; max-width: 34ch; }

/* --------------------------------------------------------------------------
   9. Application form (dark card)
   -------------------------------------------------------------------------- */
.apply-card {
  background: var(--grad-dark);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.2vw, 42px);
  box-shadow: var(--sh-lg);
  color: var(--on-dark-soft);
  position: relative; overflow: hidden;
}
.apply-card__title {
  color: #fff; font-size: clamp(22px, 2.4vw, 31px);
  margin-bottom: clamp(18px, 2vw, 26px);
}
.form-grid { display: grid; gap: 13px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { position: relative; }
.field__label { display: block; font-size: 13px; font-weight: 600; color: var(--on-dark-mute); margin-bottom: 6px; }

/* The icon sits inside the control; padding-left on the input reserves its space. */
.field__icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 21px; height: 21px; color: var(--on-dark-mute); pointer-events: none; z-index: 1;
}
.field__control {
  width: 100%;
  padding: 17px 18px 17px 52px;
  background: var(--field-dark);
  border: 1.5px solid var(--field-dark-bd);
  border-radius: var(--r-md);
  color: #fff; font-size: 15.5px; font-weight: 500;
  transition: border-color .16s var(--ease), background .16s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field__control::placeholder { color: var(--on-dark-mute); opacity: 1; }
.field__control:hover { border-color: rgba(255,255,255,.26); }
.field__control:focus {
  outline: none;
  border-color: var(--green-500);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 3px rgba(65,197,87,.18);
}
select.field__control { padding-right: 46px; cursor: pointer; }
select.field__control option { background: var(--teal-900); color: #fff; }
/* Placeholder-coloured text until a real option is chosen. */
select.field__control:invalid, select.field__control[data-empty="1"] { color: var(--on-dark-mute); }
.field__chevron {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--on-dark-mute); pointer-events: none;
}
/* Date inputs render their own indicator; make it visible on a dark field. */
input[type="date"].field__control::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(.55); cursor: pointer;
}

.field.has-error .field__control { border-color: #FF8A8A; background: rgba(255,90,90,.10); }
.field__error {
  display: none; align-items: center; gap: 6px;
  color: #FFC2C2; font-size: 13px; font-weight: 600; margin-top: 7px;
}
.field.has-error .field__error { display: flex; }
.field__error .icon { width: 15px; height: 15px; }

/* CV drop zone */
.dropzone {
  border: 1.6px dashed rgba(120, 235, 150, .55);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  padding: 30px 20px; text-align: center; cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease);
  display: grid; place-items: center; gap: 8px;
}
.dropzone:hover, .dropzone.is-dragover { background: rgba(65,197,87,.12); border-color: var(--green-500); }
.dropzone__label { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; }
.dropzone__label .icon { color: var(--green-500); }
.dropzone__hint { font-size: 12.5px; color: var(--on-dark-mute); }
.dropzone input[type="file"] { position: absolute; width: .1px; height: .1px; opacity: 0; }
.dropzone.has-file { border-style: solid; border-color: var(--green-500); background: rgba(65,197,87,.13); }
.dropzone__file { display: none; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 14px; word-break: break-all; }
.dropzone.has-file .dropzone__file { display: flex; }
.dropzone.has-file .dropzone__label, .dropzone.has-file .dropzone__hint { display: none; }
.dropzone__clear {
  background: rgba(255,255,255,.16); border: 0; color: #fff; cursor: pointer;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none;
}
.dropzone__clear .icon { width: 13px; height: 13px; }

/* Consent checkboxes */
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--on-dark-mute); }
.consent input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--green-500); flex: none; cursor: pointer; }
.consent a { color: #9FEFB4; text-decoration: underline; }

.form-actions { margin-top: 22px; text-align: center; }

/* Inline result banners */
.form-note {
  border-radius: var(--r-md); padding: 15px 18px; margin-top: 16px;
  font-size: 14px; font-weight: 600; display: flex; gap: 11px; align-items: flex-start;
}
.form-note--ok    { background: rgba(65,197,87,.16); color: #C8F7D4; border: 1px solid rgba(65,197,87,.42); }
.form-note--error { background: rgba(255,90,90,.13); color: #FFC9C9; border: 1px solid rgba(255,120,120,.42); }
.form-note .icon { width: 19px; height: 19px; flex: none; margin-top: 1px; }

/* Success panel replaces the form after a submission. */
.apply-success { text-align: center; padding: clamp(18px, 3vw, 40px) 4px; }
.apply-success .icon-badge { margin: 0 auto 20px; background: rgba(65,197,87,.18); color: var(--green-400); }
.apply-success h3 { color: #fff; font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 10px; }
.apply-success p { color: var(--on-dark-soft); max-width: 40ch; margin-inline: auto; }
.apply-success__ref {
  display: inline-block; margin-top: 18px; padding: 9px 18px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   10. Benefits strip
   -------------------------------------------------------------------------- */
.benefits { background: var(--bg-alt); padding-block: clamp(26px, 3vw, 40px); }
.benefits__list {
  display: grid; gap: 14px 44px;
  grid-template-columns: 1fr;
  max-width: 1060px; margin-inline: auto;
}
@media (min-width: 760px) {
  .benefits__list {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
  }
}
.benefits__item {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--ink); font-weight: 600; font-size: clamp(14.5px, 1.15vw, 16px);
}
.benefits__item .icon { color: var(--lime-500); width: 21px; height: 21px; margin-top: 2px; }


/* --------------------------------------------------------------------------
   Socle commun des cartes
   Un seul rayon, un seul padding, une seule ombre et un seul survol, pour que
   les blocs des différentes sections se lisent comme un même composant.
   -------------------------------------------------------------------------- */
.profile-card,
.step-card,
.implique-card,
.faq-item {
  background: #fff;
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.profile-card:hover,
.step-card:hover,
.implique-card:hover {
  transform: translateY(var(--card-lift));
  box-shadow: var(--card-shadow-hover);
}
.profile-card,
.step-card,
.implique-card { padding: var(--card-pad); }

/* --------------------------------------------------------------------------
   11. Profil recherché (dark)
   -------------------------------------------------------------------------- */
.profiles__grid {
  display: grid; gap: clamp(18px, 2vw, 26px);
  grid-template-columns: 1fr;
  max-width: 1100px; margin-inline: auto;
}
@media (min-width: 860px) { .profiles__grid { grid-template-columns: 1fr 1fr; } }

.profile-card {
  display: flex; gap: clamp(16px, 2vw, 24px); align-items: flex-start;
}
@media (max-width: 480px) { .profile-card { flex-direction: column; } }
.profile-card h3 { font-size: var(--fs-h3); margin-bottom: 14px; }
.profile-card li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-soft); margin-bottom: 10px; line-height: 1.55;
}
.profile-card li:last-child { margin-bottom: 0; }
.profile-card li .icon { color: var(--lime-500); width: 19px; height: 19px; margin-top: 3px; flex: none; }

/* --------------------------------------------------------------------------
   11 bis. Clarification du statut (comparatif salarié / agent indépendant)

   Tableau aligné plutôt que deux cartes côte à côte : les textes des deux
   situations n'ont pas la même longueur, et seul un alignement ligne à ligne
   rend la comparaison lisible. Sur mobile, chaque ligne devient un bloc qui
   conserve les deux réponses l'une sous l'autre.
   -------------------------------------------------------------------------- */

.compare {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--r-xl);
  padding: clamp(6px, 1vw, 10px);
  overflow: hidden;
}
.compare__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
/* Répartition fixe : l'intitulé reste compact, la colonne du programme domine. */
.compare__table th:first-child { width: 15%; }
.compare__table th:nth-child(2) { width: 32%; }
.compare__table th:nth-child(3) { width: 53%; }
@media (max-width: 767px) { .compare__table { table-layout: auto; } }

.compare__head {
  text-align: left; vertical-align: bottom;
  padding: 18px clamp(14px, 1.6vw, 20px) 16px;
  color: var(--on-dark-soft);
  font-size: clamp(14px, 1.3vw, 16px); font-weight: 700; line-height: 1.3;
}
/* La colonne du programme est signalée par un bandeau clair continu. */
.compare__head--agent {
  background: #fff; color: var(--ink);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.compare__tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-500); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: 10px;
}
.compare__tag .icon { width: 13px; height: 13px; }
.compare__head-label { display: block; }

.compare__label {
  text-align: left; vertical-align: top;
  padding: 18px clamp(10px, 1.4vw, 18px);
  color: var(--on-dark-mute);
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap;
}
.compare__cell {
  vertical-align: top;
  padding: 18px clamp(14px, 1.6vw, 20px);
  color: var(--on-dark-soft);
  font-size: 14.5px; line-height: 1.6;
}
.compare__cell--agent { background: #fff; color: var(--ink); font-weight: 600; }

.compare__table tbody tr + tr .compare__label,
.compare__table tbody tr + tr .compare__cell { border-top: 1px solid rgba(255, 255, 255, .10); }
.compare__table tbody tr + tr .compare__cell--agent { border-top-color: var(--line); }
.compare__table tbody tr:last-child .compare__cell--agent { border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ---------- Mobile : une ligne du tableau devient un bloc ---------- */
@media (max-width: 767px) {
  .compare { background: none; border: 0; padding: 0; }
  .compare__table, .compare__table tbody, .compare__table tr { display: block; width: 100%; }
  .compare__table thead { display: none; }

  .compare__table tbody tr {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--r-lg);
    padding: 16px;
    margin-bottom: 14px;
  }
  .compare__label {
    display: block; padding: 0 0 12px; white-space: normal;
    color: #fff; font-size: 12px;
  }
  .compare__cell {
    display: block; padding: 12px 14px; border-radius: var(--r-md);
    background: rgba(255, 255, 255, .05);
    color: var(--on-dark-soft);
  }
  /* La cellule du programme reste sur fond clair, sinon son texte foncé
     deviendrait illisible sur le fond sombre de la section. */
  .compare__cell--agent { background: #fff; color: var(--ink); }
  .compare__cell + .compare__cell { margin-top: 8px; }
  /* Le nom de la colonne réapparaît au-dessus de chaque valeur. */
  .compare__cell::before {
    content: attr(data-label);
    display: block; margin-bottom: 5px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--on-dark-mute);
  }
  .compare__cell--agent::before { color: var(--green-600); }
  .compare__table tbody tr + tr .compare__label,
  .compare__table tbody tr + tr .compare__cell { border-top: 0; }
  .compare__table tbody tr:last-child .compare__cell--agent { border-radius: var(--r-md); }
}

.status__note {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 760px; margin: clamp(24px, 3vw, 34px) 0 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .05);
  border-left: 3px solid var(--on-dark-mute);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--on-dark-soft); font-size: 14.5px; line-height: 1.6;
}
.status__note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* Le formulaire occupe désormais une section dédiée en bas de page. */
.container--form { max-width: calc(820px + var(--gutter) * 2); }
.section--soft .apply-card { margin-inline: auto; }

/* --------------------------------------------------------------------------
   12. Étapes du parcours et section « ce que le lancement implique »
   -------------------------------------------------------------------------- */

/* ---------- Parcours : 6 étapes en grille ---------- */
.steps {
  display: grid; gap: clamp(16px, 1.8vw, 24px);
  grid-template-columns: 1fr;
  counter-reset: none;
}
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  position: relative;
  display: flex; flex-direction: column;
}

.step-card__num {
  position: absolute; top: 18px; right: 20px;
  font-size: 30px; font-weight: 800; line-height: 1;
  color: var(--teal-900); opacity: .12;
}
.step-card__icon {
  display: grid; place-items: center;
  width: var(--badge-sm); height: var(--badge-sm); border-radius: 50%;
  background: var(--bg-alt); color: var(--green-500);
  margin-bottom: 18px;
}
.step-card__icon .icon,
.step-card__icon img.icon--art { width: 27px; height: 27px; }

.step-card__title { font-size: var(--fs-card-t); line-height: 1.3; margin-bottom: 10px; }
.step-card__text  { color: var(--ink-mute); font-size: 14.5px; margin: 0; }

.step-card__badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: 16px; padding: 8px 14px;
  background: #E8F7EC; border-radius: var(--r-pill);
  color: var(--green-600); font-size: 13px; font-weight: 700;
}
.step-card__badge .icon,
.step-card__badge img.icon--art { width: 16px; height: 16px; }

/* ---------- Ce que le lancement implique : 6 cartes ---------- */
.implique__grid {
  display: grid; gap: clamp(16px, 1.8vw, 24px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .implique__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .implique__grid { grid-template-columns: repeat(3, 1fr); } }

.implique-card {
}
.implique-card .icon-badge { margin-bottom: 18px; }
.implique-card h3 { font-size: var(--fs-card-t); line-height: 1.3; margin-bottom: 12px; }
.implique-card p  { color: var(--ink-mute); font-size: 14.5px; margin: 0; }

/* Bandeau sombre partagé (FAQ, et réutilisable ailleurs). */
.banner {
  position: relative; overflow: hidden;
  background: var(--grad-dark); color: var(--on-dark-soft);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 3.4vw, 48px);
  box-shadow: var(--sh-md);
}
.banner::after {
  content: ''; position: absolute; right: -60px; bottom: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(120,235,150,.20), rgba(120,235,150,0) 68%);
  pointer-events: none;
}
.banner > * { position: relative; z-index: 1; }
.banner--split {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 34px);
  flex-wrap: wrap; justify-content: center; text-align: center;
}
@media (min-width: 900px) { .banner--split { flex-wrap: nowrap; text-align: left; justify-content: flex-start; } }
.banner--split .icon-badge { background: #fff; color: var(--green-500); width: var(--badge-md); height: var(--badge-md); }
.banner--split .icon-badge .icon,
.banner--split .icon-badge img.icon--art { width: 32px; height: 32px; }
.banner__lead { color: #fff; font-weight: 700; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.35; }
.banner__body { flex: 1 1 260px; }
.banner__body p { margin-bottom: 4px; }
.banner--split .btn { flex: none; }

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq__list { max-width: 1040px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { overflow: hidden; }
.faq-item__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.2vw, 30px);
  text-align: left; color: var(--ink); font-weight: 800;
  font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.35;
}
.faq-item__q .icon { color: var(--teal-900); transition: transform .24s var(--ease); }
.faq-item__q[aria-expanded="true"] .icon { transform: rotate(180deg); }
/* Height animation via grid-template-rows keeps it smooth without JS measuring. */
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); background: var(--bg-alt); }
.faq-item__q[aria-expanded="true"] + .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p {
  padding: clamp(16px, 1.8vw, 22px) clamp(20px, 2.2vw, 30px);
  color: var(--ink-soft); white-space: pre-line;
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--grad-dark); color: var(--on-dark-soft);
  padding-block: clamp(44px, 5vw, 64px) 0;
  position: relative; overflow: hidden;
}
.site-footer::after {
  content: ''; position: absolute; right: -80px; bottom: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(120,235,150,.14), rgba(120,235,150,0) 70%);
  pointer-events: none;
}
.site-footer__grid {
  display: grid; gap: clamp(30px, 4vw, 48px);
  grid-template-columns: 1fr;
  position: relative; z-index: 1;
}
@media (min-width: 780px)  { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .site-footer__grid { grid-template-columns: 300px 1fr 300px; } }

.site-footer__logo img { width: 220px; }
.site-footer h3 { color: var(--green-400); font-size: 20px; margin-bottom: 12px; }
.footer-headline {
  color: #fff; font-weight: 800; font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.35; margin-bottom: 22px;
}
.footer-contact li { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 15px; }
.footer-contact .icon { color: var(--green-500); margin-top: 3px; width: 19px; height: 19px; }
.footer-contact img.icon--art { width: 20px; height: 20px; }
.footer-contact a { color: var(--on-dark-soft); }
.footer-contact a:hover { color: #fff; }
.footer-contact address { font-style: normal; white-space: pre-line; }

.socials { display: flex; gap: 11px; align-items: center; margin-top: 26px; }
.socials__label { font-size: 14px; color: var(--on-dark-mute); margin-right: 4px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.12);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.socials a:hover { background: var(--green-500); transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }

.newsletter p { font-size: 14px; color: var(--on-dark-soft); margin-bottom: 16px; }
.newsletter__form { display: grid; gap: 12px; }
.newsletter__input {
  width: 100%; padding: 14px 18px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--r-md); color: #fff; font-size: 15px;
}
.newsletter__input::placeholder { color: var(--on-dark-mute); }
.newsletter__input:focus { outline: none; border-color: var(--green-500); background: rgba(255,255,255,.14); }
.newsletter .btn { justify-self: start; padding: 13px 30px; }
.newsletter__msg { font-size: 13.5px; font-weight: 600; min-height: 1.2em; }
.newsletter__msg.is-ok    { color: #9FEFB4; }
.newsletter__msg.is-error { color: #FFC2C2; }

.site-footer__bottom {
  margin-top: clamp(34px, 4vw, 48px); padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  text-align: center; font-size: 13.5px; color: var(--on-dark-mute);
  position: relative; z-index: 1;
}
.site-footer__bottom a { color: var(--on-dark-mute); text-decoration: underline; }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__links { display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   20. Cookie consent banner
   -------------------------------------------------------------------------- */
.cookie-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 130%);
  z-index: 120; width: min(1080px, calc(100% - 28px));
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 18px 60px rgba(1,74,85,.25);
  border: 1px solid var(--line);
  padding: 20px clamp(20px, 2.4vw, 28px);
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  transition: transform .38s var(--ease);
}
.cookie-bar.is-visible { transform: translate(-50%, 0); }
.cookie-bar__text { flex: 1 1 320px; font-size: 14px; color: var(--ink-soft); }
.cookie-bar__text strong { color: var(--ink); display: block; margin-bottom: 3px; font-size: 15px; }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar .btn { padding: 12px 24px; font-size: 14.5px; }

/* --------------------------------------------------------------------------
   21. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   22. Preferences & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cookie-bar, .video-carousel, .btn { display: none !important; }
  body { color: #000; }
  .section { padding-block: 16px; }
}
