/* ============================================================
   CNCCG — Feuille de style principale
   Palette : navy profond + teal (emblème lauré)
   ============================================================ */

:root {
  --navy:        #0b1547;
  --navy-deep:   #070d33;
  --navy-soft:   #182262;
  --teal:        #35bfb2;
  --teal-dark:   #2aa79b;
  --teal-light:  #6fd6cb;

  --heading:     #17205a;
  --text:        #4c5170;
  --text-soft:   #6d7291;
  --line:        #e6e8f0;
  --bg:          #ffffff;
  --bg-alt:      #f4f5f9;
  --placeholder: #e4e6ea;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 18px 40px -18px rgba(13, 20, 60, .28);
  --shadow-sm:   0 8px 24px -12px rgba(13, 20, 60, .25);

  --maxw:        1140px;
  --font-head:   "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body:   "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset léger ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .2px;
  padding: .8em 1.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(53, 191, 178, .8);
}
.btn--primary:hover { background: var(--teal-dark); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn--outline:hover { background: var(--teal); color: #fff; }

.btn--pill { padding: .65em 1.4em; font-size: .9rem; }
.btn--lg   { padding: .95em 2.4em; font-size: 1rem; font-weight: 600; }
.btn--sm   { padding: .55em 1.1em; font-size: .85rem; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 24px;
}
.nav-shell { max-width: var(--maxw); margin: 0 auto; }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; object-fit: contain; }
.brand__logo { height: 32px; width: auto; display: block; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: var(--heading);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .93rem;
  color: var(--heading);
  transition: color .15s ease;
}
.nav-links a:not(.btn):hover { color: var(--teal-dark); }
.nav-links__cta a { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 190px 24px 130px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 90% at 78% 22%, #1c8f8b 0%, rgba(28,143,139,0) 46%),
    linear-gradient(135deg, #0a1147 0%, #0d1a52 42%, #12406a 78%, #1a6f80 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__glow {
  position: absolute;
  top: -25%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 720px; max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,214,203,.55) 0%, rgba(53,191,178,.18) 40%, rgba(53,191,178,0) 70%);
  filter: blur(6px);
}
/* facettes géométriques discrètes */
.hero__facets {
  position: absolute; inset: 0;
  opacity: .5;
  background:
    linear-gradient(115deg, transparent 55%, rgba(255,255,255,.05) 55%, rgba(255,255,255,.05) 62%, transparent 62%),
    linear-gradient(200deg, rgba(0,0,0,.18) 0%, transparent 40%),
    conic-gradient(from 220deg at 12% 88%, rgba(255,255,255,.06), transparent 30%);
}
.hero__content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero__emblem { width: 118px; height: auto; margin: 0 auto 30px; }
.hero__title {
  color: #fff;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.45;
  margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ============================================================
   PARTENAIRES
   ============================================================ */
.partners { padding: 0 24px; margin-top: -42px; position: relative; z-index: 5; }
.partners__card {
  max-width: var(--maxw);
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 40px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.partners__label {
  font-style: italic;
  font-weight: 600;
  color: var(--heading);
  margin: 0;
  white-space: nowrap;
  font-size: 1.02rem;
}
.partners__logos { height: 68px; width: auto; max-width: 100%; object-fit: contain; }

/* ============================================================
   TITRES DE SECTION
   ============================================================ */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 46px; height: 3px;
  border-radius: 3px;
  background: var(--teal);
}
.section-title--left { text-align: left; }
.section-title--left::after { left: 0; transform: none; }
.section-title--onDark { color: #fff; }

/* ============================================================
   À PROPOS
   ============================================================ */
.about { padding: 90px 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.about__body .section-title { margin-bottom: 22px; }
.about__body p { margin: 0 0 16px; }
.about__body .btn { margin-top: 12px; }

/* ============================================================
   DÉROULEMENT
   ============================================================ */
.steps {
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #e9ecf7;
}
.steps__watermark {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 460px;
  opacity: .04;
  pointer-events: none;
}
.steps .section-title { margin-bottom: 54px; }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  text-align: center;
}
.step__icon {
  display: inline-flex;
  color: var(--teal);
  margin-bottom: 18px;
}
.step__icon svg { width: 46px; height: 46px; }
.step__title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.step__text { color: #b9c0dd; font-size: .92rem; margin: 0; }
.step__text a { color: var(--teal-light); text-decoration: underline; }
.steps__cta { text-align: center; margin-top: 54px; }

/* ============================================================
   TESTEZ VOTRE ÉLIGIBILITÉ
   ============================================================ */
.eligibility { padding: 84px 0; }
.eligibility .section-title { margin-bottom: 46px; }
.eligibility__panel {
  background: var(--placeholder);
  border-radius: var(--radius);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eligibility__placeholder { text-align: center; color: var(--text-soft); }
.eligibility__placeholder svg { width: 48px; height: 48px; margin: 0 auto 14px; color: #b7bac4; }
.eligibility__placeholder p {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  color: #6b6f7d;
  margin: 0;
}
.eligibility__hint { display: block; max-width: 460px; margin: 6px auto 0; font-size: .85rem; color: #9a9dab; }
.eligibility__cta { margin-top: 22px; }

/* ============================================================
   FAQ / UNE QUESTION
   ============================================================ */
.faq { padding: 40px 0 90px; }
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.faq__body .section-title { margin-bottom: 22px; }
.faq__body p { margin: 0 0 16px; }
.faq__body .btn { margin-top: 12px; }
.faq__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ============================================================
   CANDIDATURE / COMPTE À REBOURS
   ============================================================ */
.deadline { padding: 72px 0 90px; }
.deadline__card {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.deadline__label {
  color: #aab2d6;
  font-style: italic;
  font-size: .95rem;
  margin: 0 0 6px;
}
.deadline__timer {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: #cdd4ee;
  margin: 0;
  letter-spacing: .5px;
}
.deadline__sep { color: var(--teal); margin: 0 .1em; }
.deadline__date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.1;
  color: var(--teal-light);
  margin: 0 0 6px;
}

/* -- Compte à rebours : bloc d'unités (fond sombre) -- */
.dl-timer { display: inline-flex; gap: 10px; }
.dl-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
}
.dl-unit b {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1;
  color: #fff;
}
.dl-unit small {
  margin-top: 5px;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #aab2d6;
}

/* -- Bannière date limite (page candidature) -- */
.cand-deadline { padding: 34px 0 0; }
.deadline-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.deadline-banner__label { color: #aab2d6; font-style: italic; font-size: .95rem; margin: 0 0 6px; }
.deadline-banner__date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--teal-light);
  margin: 0;
}
.deadline-banner__timer { display: flex; gap: 10px; }

/* -- Compte à rebours de la section « Fermeture » (méthodologie) -- */
.metho-close__timer { justify-content: center; margin: 0 0 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #c7cde6;
}
.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 46px;
  padding-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__mark { width: 58px; height: 58px; object-fit: contain; }
.footer__logo { height: 42px; width: auto; display: block; }
.footer__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #fff;
}
.footer__tagline { display: block; font-size: .82rem; color: #9aa2c6; line-height: 1.5; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a {
  color: #c7cde6;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s ease;
}
.footer__nav a:hover { color: var(--teal-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.footer__bottom p { margin: 0; font-size: .82rem; color: #8a92b8; }
.footer__bottom a { color: #8a92b8; }
.footer__bottom a:hover { color: var(--teal-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about__grid,
  .faq__grid { grid-template-columns: 1fr; gap: 34px; }
  .about__media { order: -1; }
  .steps__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .partners__card { padding: 22px 26px; }
  .partners__logos { height: 48px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 90px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    transform-origin: top;
    transform: scaleY(.6);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
  }
  .navbar { position: relative; }
  .nav-links.is-open { transform: scaleY(1); opacity: 1; visibility: visible; }
  .nav-links a { padding: 10px 14px; border-radius: 8px; }
  .nav-links a:not(.btn):hover { background: var(--bg-alt); }
  .nav-links__cta { margin-top: 6px; }
  .nav-links__cta a { justify-content: center; }

  .hero { padding: 150px 22px 100px; }
  .partners__label { white-space: normal; text-align: center; }
  .steps__grid { grid-template-columns: 1fr; }
  .deadline__card { flex-direction: column; text-align: center; align-items: center; }
  .footer__grid { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}

/* ============================================================
   PAGE CANDIDATURE
   ============================================================ */
.container--narrow { max-width: 900px; }

/* -- En-tête de page -- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 24px 70px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 100% at 80% 10%, #1c8f8b 0%, rgba(28,143,139,0) 50%),
    linear-gradient(135deg, #0a1147 0%, #0d1a52 55%, #14486e 100%);
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 12px;
}
.page-hero p { color: #cdd4ee; margin: 0; font-size: 1.05rem; }

/* -- Page 404 -- */
.error-hero { min-height: 78vh; display: flex; align-items: center; }
.error-hero__content { max-width: 620px; margin: 0 auto; }
.error-hero .error-hero__code {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #4ebbb9 0%, #7fd6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #4ebbb9;
}
.error-hero__content h1 { margin-bottom: 14px; }
.error-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 30px 0 22px;
}
.error-hero .error-hero__help { font-size: .95rem; color: #9fa8cf; }
.error-hero__help a { color: #cdd4ee; text-decoration: underline; }
.error-hero__help a:hover { color: #fff; }

/* -- Page légale (mentions légales, confidentialité) -- */
.legal-page { padding: 56px 0 90px; }
.legal-page__updated { color: var(--text-soft); font-size: .9rem; margin: 0 0 32px; }
.legal-block { margin-bottom: 34px; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block h2 {
  font-size: 1.2rem;
  color: var(--heading);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(53,191,178,.4);
}
.legal-block p { color: var(--text); line-height: 1.7; margin: 0 0 12px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block strong { color: var(--heading); }
.legal-block a { color: var(--teal-dark); }
.legal-block a:hover { text-decoration: underline; }
.legal-block address { font-style: normal; color: var(--text); line-height: 1.8; }

/* -- Intro candidature : vidéo + dossier d'exemple -- */
.cand-intro { padding: 50px 0 6px; }
.cand-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cand-intro__text h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 14px;
}
.cand-intro__text p { color: var(--text); line-height: 1.7; margin: 0 0 22px; }

/* -- Vidéo de présentation (accueil) : chevauche le fond navy à mi-hauteur -- */
.home-video {
  padding: 6px 0 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 50%, var(--navy) 50%, var(--navy) 100%);
}
.home-video__frame { max-width: 820px; margin: 0 auto; }

@media (max-width: 760px) {
  .cand-intro { padding: 34px 0 4px; }
  .cand-intro__grid { grid-template-columns: 1fr; gap: 26px; }
}

/* -- Stepper -- */
.candidature { padding: 46px 0 90px; }
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 40px;
  position: relative;
}
.stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  position: relative;
}
.stepper__item::before {
  content: "";
  position: absolute;
  top: 17px; left: -50%;
  width: 100%; height: 2px;
  background: var(--line);
  z-index: 0;
}
.stepper__item:first-child::before { display: none; }
.stepper__item.is-active ~ .stepper__item::before,
.stepper__item.is-active::before { background: var(--line); }
.stepper__item.is-done::before,
.stepper__item.is-active::before { background: var(--teal); }
.stepper__dot {
  position: relative;
  z-index: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
}
.stepper__item.is-active .stepper__dot { border-color: var(--teal); color: #fff; background: var(--teal); }
.stepper__item.is-done .stepper__dot { border-color: var(--teal); color: var(--teal); }
.stepper__label {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-soft);
}
.stepper__item.is-active .stepper__label { color: var(--heading); }

/* -- Carte formulaire -- */
.cand-form { background: transparent; }
.step-panel {
  border: 0;
  margin: 0;
  padding: 34px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.step-panel[hidden] { display: none; }
.step-panel__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--heading);
  padding: 0;
  margin: 0 0 22px;
}
.step-panel__intro,
.step-panel__title + .step-panel__intro { color: var(--text); margin: -8px 0 24px; font-size: .95rem; }

/* -- Champs -- */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 500;
  color: var(--heading);
}
.field .req { color: #e5484d; }
.field .opt { color: var(--text-soft); font-weight: 400; font-size: .82rem; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--heading);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(53,191,178,.15);
}
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229,72,77,.12);
}

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact-page { padding: 60px 0 90px; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: start;
}

/* Colonne d'infos */
.contact-partners { margin: 0 0 26px; }
.contact-info__text { color: var(--text); line-height: 1.75; margin: 0 0 8px; }

/* Carte formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form__submit { width: 100%; margin-top: 2px; }
.contact-form__note {
  font-size: .85rem;
  color: var(--text-soft);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}
.contact-form__note a { color: var(--teal-dark); }

/* Champ piège anti-spam : masqué à l'œil et aux lecteurs d'écran */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Écran de succès */
.contact-success {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.contact-success__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(53,191,178,.12);
  color: var(--teal-dark);
  font-size: 1.9rem;
  line-height: 62px;
  font-weight: 700;
}
.contact-success h2 { color: var(--heading); margin: 0 0 10px; }
.contact-success p { color: var(--text); margin: 0 0 22px; line-height: 1.65; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-page { padding: 44px 0 70px; }
}

/* -- Navigation d'étape -- */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.step-nav .btn { min-width: 150px; }

/* -- Calculateur de score -- */
.score-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 28px;
  align-items: start;
}
.score-block { margin-bottom: 26px; }
.score-block:last-child { margin-bottom: 0; }
.score-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.score-block__head h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0;
}
.score-block__sub {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal-dark);
  white-space: nowrap;
}
.score-block__sub.is-capped::after { content: " · plafonné"; font-weight: 500; opacity: .8; }
.score-block__note { font-size: .85rem; color: var(--text-soft); margin: 0 0 10px; font-style: italic; }
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.score-row__label { font-size: .92rem; color: var(--text); line-height: 1.4; }
.score-row__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.score-row__badge {
  font-size: .72rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.score-input {
  width: 68px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  text-align: center;
  color: var(--heading);
}
.score-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(53,191,178,.15); }
.score-row__value {
  min-width: 26px;
  text-align: right;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--teal-dark);
}
/* Case à cocher personnalisée */
.score-toggle { position: relative; display: inline-flex; cursor: pointer; }
.score-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.score-toggle__box {
  width: 24px; height: 24px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: #fff;
  transition: all .15s ease;
  position: relative;
}
.score-toggle input:checked + .score-toggle__box {
  background: var(--teal);
  border-color: var(--teal);
}
.score-toggle input:checked + .score-toggle__box::after {
  content: "";
  position: absolute;
  left: 8px; top: 4px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.score-toggle input:focus-visible + .score-toggle__box { box-shadow: 0 0 0 3px rgba(53,191,178,.2); }

/* Panneau récap du score (sticky) */
.score-summary {
  position: sticky;
  top: 110px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.score-summary__label { font-size: .8rem; letter-spacing: .5px; text-transform: uppercase; color: #a9b1d8; margin: 0 0 6px; }
.score-summary__value { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: #fff; margin: 0 0 14px; line-height: 1; }
.score-summary__value small { font-size: 1rem; font-weight: 500; color: var(--teal-light); }
.score-summary__track { position: relative; height: 9px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
.score-summary__bar { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width .3s ease; }
.score-summary__threshold { position: absolute; top: -2px; bottom: -2px; left: 83.3333%; width: 2px; background: #fff; opacity: .85; }
.score-summary__thresholdlabel { font-size: .7rem; color: #98a0c6; margin: 6px 0 0; text-align: right; }
.score-summary__verdict {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.35;
  margin: 14px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
}
.score-summary__verdict.is-ok { background: rgba(53,191,178,.18); color: var(--teal-light); border: 1px solid rgba(53,191,178,.5); }
.score-summary__verdict.is-ko { background: rgba(255,255,255,.06); color: #f0c36b; border: 1px solid rgba(240,195,107,.35); }
.score-summary__hint { font-size: .76rem; color: #98a0c6; margin: 12px 0 0; }

.recap__verdict { margin-top: 12px; padding: 12px 16px; border-radius: 10px; font-size: .9rem; font-weight: 500; }
.recap__verdict.is-ok { background: rgba(53,191,178,.12); color: var(--teal-dark); border-left: 4px solid var(--teal); }
.recap__verdict.is-ko { background: #fff5f5; color: #c0392b; border-left: 4px solid #e5484d; }

/* -- Récapitulatif final -- */
.recap__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin: 22px 0 10px;
}
.recap__title:first-child { margin-top: 0; }
.recap__list {
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr;
  gap: 6px 18px;
  margin: 0;
}
.recap__list dt { color: var(--text-soft); font-size: .9rem; }
.recap__list dd { color: var(--heading); font-size: .92rem; margin: 0; font-weight: 500; }
.recap__score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: 12px;
  border-left: 4px solid var(--teal);
}
.recap__score span { font-family: var(--font-head); font-weight: 500; color: var(--heading); }
.recap__score strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--teal-dark); }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  font-size: .88rem;
  color: var(--text);
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal); flex-shrink: 0; }
.consent.is-invalid { color: #c0392b; }
.consent.is-invalid input { outline: 2px solid #e5484d; outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: #fff5f5;
  border-left: 4px solid #e5484d;
  border-radius: 8px;
  color: #c0392b;
  font-size: .9rem;
}
.form-error[hidden] { display: none; }

/* -- Confirmation -- */
.cand-done {
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 54px 34px;
}
.cand-done__icon { color: var(--teal); margin-bottom: 16px; }
.cand-done__icon svg { width: 64px; height: 64px; }
.cand-done h2 { font-size: 1.6rem; margin: 0 0 10px; }
.cand-done p { color: var(--text); margin: 0 0 24px; }

@media (max-width: 780px) {
  .field-grid { grid-template-columns: 1fr; }
  .score-layout { grid-template-columns: 1fr; }
  .score-summary { position: static; }
  .stepper__label { display: none; }
  .step-panel { padding: 24px 20px; }
  .step-nav .btn { min-width: 0; flex: 1; }
}

/* ============================================================
   PAGE FAQ — Accordéon
   ============================================================ */
.faq-page { padding: 54px 0 90px; }
.accordion {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__heading { margin: 0; }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
  transition: color .15s ease, background .15s ease;
}
.accordion__trigger:hover { background: var(--bg-alt); }
.accordion__trigger:hover .accordion__q { color: var(--teal-dark); }
.accordion__trigger[aria-expanded="true"] .accordion__q { color: var(--teal-dark); }
.accordion__q { flex: 1; line-height: 1.4; }

/* Icône +/- */
.accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 2.5px;
  border-radius: 2px;
  background: var(--teal);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, background .2s ease;
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion__panel[hidden] { display: none; }
.accordion__body {
  padding: 2px 24px 24px 62px;
  color: var(--text);
  font-size: .96rem;
}
.accordion__body p { margin: 0 0 12px; }
.accordion__body p:last-child { margin-bottom: 0; }
.accordion__body a { color: var(--teal-dark); text-decoration: underline; }
.accordion__body a:hover { color: var(--teal); }

/* Bloc d'aide sous la FAQ */
.faq-help {
  text-align: center;
  margin-top: 34px;
  padding: 34px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.faq-help p {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 16px;
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  .accordion__trigger { padding: 16px 18px; font-size: .94rem; gap: 12px; }
  .accordion__body { padding: 2px 18px 20px 48px; }
}

/* ============================================================
   PAGE MÉTHODOLOGIE
   ============================================================ */
.metho-intro { padding: 56px 0 20px; }
.metho-intro .lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 40px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.criteria-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
  box-shadow: var(--shadow-sm);
}
.criteria-card--accent { border-top: 4px solid var(--teal); }
.criteria-card__title {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 16px;
}
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: .96rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.precand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
  padding: 26px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: center;
}
.precand p { margin: 0; font-family: var(--font-head); font-weight: 500; color: var(--heading); }

/* Étapes zig-zag */
.metho-steps { padding: 40px 0 20px; }
.metho-step {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}
.metho-step + .metho-step { border-top: 1px solid var(--line); }
.metho-step--reverse .metho-step__text { order: 2; }
.metho-step--reverse .metho-step__icon { order: 1; }
.metho-step__text h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 14px;
}
.metho-step__text p { margin: 0 0 14px; color: var(--text); }
.metho-step__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.metho-step__icon {
  width: 150px; height: 150px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(53,191,178,.12), rgba(53,191,178,.04));
  color: var(--teal);
}
.metho-step__icon svg { width: 66px; height: 66px; }

/* Fermeture des candidatures */
.metho-close {
  margin-top: 30px;
  padding: 64px 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.metho-close__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  margin: 0 0 6px;
}
.metho-close__date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--teal-light);
  margin: 0 0 16px;
}

@media (max-width: 780px) {
  .criteria-grid { grid-template-columns: 1fr; }
  .metho-step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 24px;
  }
  .metho-step__text { order: 2 !important; }
  .metho-step__icon { order: 1 !important; width: 110px; height: 110px; }
  .metho-step__icon svg { width: 50px; height: 50px; }
  .metho-step__actions { justify-content: center; }
}

/* ============================================================
   DROITS D'INSCRIPTION (page candidature)
   ============================================================ */
.payment { padding: 10px 0 90px; }
.payment__card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}
.payment__title { font-size: 1.3rem; font-weight: 600; color: var(--heading); margin: 0 0 12px; }
.payment__intro { color: var(--text); margin: 0 0 26px; }
.payment__methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 4px;
}
.payment__method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.payment__method-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--teal-dark);
}

/* ============================================================
   MODALE
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(9, 14, 45, .58);
  backdrop-filter: blur(3px);
  animation: modalFade .2s ease;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(9,14,45,.5);
  padding: 40px 36px 32px;
  text-align: center;
  animation: modalPop .25s cubic-bezier(.2,.9,.3,1.2);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: #e9ebf2; color: var(--heading); }
.modal__close svg { width: 18px; height: 18px; }
.modal__icon {
  width: 66px; height: 66px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(53,191,178,.14);
  color: var(--teal);
}
.modal__icon svg { width: 38px; height: 38px; }
.modal__dialog h2 { font-size: 1.5rem; margin: 0 0 10px; color: var(--heading); }
.modal__lead { color: var(--text); margin: 0 0 22px; }

.modal__payment {
  text-align: left;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.modal__payment-title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 8px;
}
.modal__payment p { color: var(--text); font-size: .92rem; margin: 0 0 14px; }
.modal__pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.modal__pay-methods > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
}
.modal__payment address {
  font-style: normal;
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.5;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.modal__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .payment__methods,
  .modal__pay-methods { grid-template-columns: 1fr; }
  .modal__dialog { padding: 34px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal__overlay, .modal__dialog { animation: none; }
}

/* ============================================================
   PAGE CERTIFIÉS
   ============================================================ */
.certified { padding: 56px 0 90px; }

.certified__toolbar { margin-bottom: 34px; }
.certified__search { position: relative; max-width: 460px; }
.certified__search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-soft);
  pointer-events: none;
}
.certified__search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--heading);
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.certified__search input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(53,191,178,.15);
}

.certified__block { margin-bottom: 52px; }
.certified__block:last-child { margin-bottom: 0; }
.certified__title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.certified__count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(53,191,178,.12);
  padding: 2px 10px;
  border-radius: 999px;
}

/* Tableau */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.cert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
}
.cert-table[hidden] { display: none; }
.cert-table thead th {
  text-align: left;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--bg-alt);
  padding: 14px 18px;
  white-space: nowrap;
  border-bottom: 2px solid rgba(53,191,178,.4);
}
.cert-table tbody td {
  padding: 13px 18px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cert-table tbody tr:last-child td { border-bottom: 0; }
.cert-table tbody tr:hover td { background: rgba(53,191,178,.05); }
/* 1re colonne (souvent l'année ou le nom) mise en avant */
.cert-table tbody td:first-child { color: var(--heading); font-weight: 600; }

.cert-status {
  margin: 16px 2px 0;
  color: var(--text-soft);
  font-size: .95rem;
}
.cert-status[hidden] { display: none; }

@media (max-width: 640px) {
  .certified { padding: 40px 0 70px; }
  .cert-table { font-size: .9rem; }
  .cert-table thead th,
  .cert-table tbody td { padding: 11px 13px; }
}

