/* Design « formation-02 » — moderne, e-learning, coins arrondis et degrades vifs.
   Tokens injectes au build : #0F2A5F / #FB923C. */

:root {
  --primary: #0F2A5F;
  --primary-soft: color-mix(in srgb, #0F2A5F 84%, #fff);
  --primary-dark: color-mix(in srgb, #0F2A5F 82%, #000);
  --primary-pale: color-mix(in srgb, #0F2A5F 6%, #fff);
  --accent: #FB923C;
  --accent-pale: color-mix(in srgb, #FB923C 12%, #fff);
  /* assez fonce pour servir de couleur de texte sur fond clair (>= 4,5:1) */
  --accent-deep: color-mix(in srgb, #FB923C 58%, #000);
  --surface: #FFFFFF;
  --grey-bg: #F5F6FA;
  --grey-line: #E7E9F2;
  --text: #14172B;
  --text-mid: #4E5468;
  --text-light: #6A7183;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 34px rgba(20, 23, 43, .08);
  --shadow-lg: 0 26px 60px rgba(20, 23, 43, .16);
  --degrade: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%,
              color-mix(in srgb, var(--accent) 32%, var(--primary-dark)) 100%);
}

body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-mid);
  background: var(--surface);
  line-height: 1.75;
}

h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--text); font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.45rem); }
h3 { font-size: 1.25rem; }

a { color: var(--primary); text-decoration-color: color-mix(in srgb, var(--primary) 30%, #fff); }
a:hover { color: var(--accent-deep); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-pale);
  padding: .38rem .9rem; border-radius: 999px;
}
.eyebrow-light { color: #fff; background: rgba(255,255,255,.16); }

.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-grey { background: var(--grey-bg); }
.section-sub { color: var(--text-mid); font-size: 1.07rem; max-width: 46rem; }

/* ---------------------------------------------------------------- boutons */
.btn-gold, .btn-ghost, .btn-primary-solid, .btn-outline-ink {
  border-radius: 999px; font-weight: 700; font-size: .95rem; font-family: 'Outfit', sans-serif;
  padding: .9rem 1.9rem; display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; border: 2px solid transparent; transition: transform .18s, background .2s, color .2s;
}
.btn-gold { background: var(--accent); color: var(--primary-dark); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn-gold:hover { background: var(--primary); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-primary-solid { background: var(--primary); color: #fff; }
.btn-primary-solid:hover { background: var(--primary-dark); color: #fff; }
.btn-outline-ink { border-color: var(--grey-line); color: var(--primary); background: #fff; }
.btn-outline-ink:hover { border-color: var(--primary); color: var(--primary); }

/* ----------------------------------------------------------------- header */
.site-header { background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-line); position: sticky; top: 0; z-index: 1030; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; background: var(--degrade); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; flex: 0 0 auto;
  font-family: 'Outfit', sans-serif;
}
.brand-name { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--text); font-size: 1.08rem; line-height: 1.15; }
.brand-city { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-light); }
.site-header .nav-link { font-weight: 600; color: var(--text-mid); padding: .45rem .85rem; border-radius: 999px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--primary); background: var(--primary-pale); }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; background: var(--degrade); color: #fff; overflow: hidden; isolation: isolate; }
.hero-pattern {
  position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 60%);
  filter: blur(10px);
}
.hero-home { padding: 6rem 0 6.5rem; }
.hero h1, .hero h2 { color: #fff; }
.hero-desc { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 34rem; }
.hero-checks { list-style: none; padding: 0; margin: 1.7rem 0 2.1rem; display: grid; gap: .65rem; }
.hero-checks li { display: flex; align-items: flex-start; gap: .65rem; color: rgba(255,255,255,.92); font-weight: 500; }
.check-icon {
  width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: var(--primary-dark);
  display: grid; place-items: center; font-size: .74rem; flex: 0 0 auto; margin-top: .2rem; font-weight: 800;
}
.hero-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-card img { width: 100%; height: 250px; object-fit: cover; display: block; }
.hero-card-body { padding: 1.5rem 1.6rem 1.7rem; }
.hero-card-eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.hero-card-title { font-family: 'Outfit', sans-serif; color: var(--text); font-weight: 700; font-size: 1.18rem; margin: .4rem 0 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: 0 1.6rem 1.6rem; }
.hero-stat { background: var(--grey-bg); border-radius: var(--radius-sm); padding: .85rem .5rem; text-align: center; }
.hero-stat-num { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.hero-stat-label { font-size: .72rem; color: var(--text-light); font-weight: 600; }

/* page-hero */
.page-hero { position: relative; background: var(--degrade); color: #fff; padding: 3.8rem 0 4rem; overflow: hidden; isolation: isolate; }
.page-hero.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2;
  background-image: var(--hero-img); background-size: cover; background-position: center;
}
.page-hero h1 { color: #fff; max-width: 24ch; }
.page-hero .lead { color: rgba(255,255,255,.88); max-width: 44rem; font-size: 1.08rem; }
.breadcrumb-bar { font-size: .82rem; color: rgba(255,255,255,.72); margin-bottom: 1rem; }
.breadcrumb-bar a { color: rgba(255,255,255,.88); text-decoration: none; }
.breadcrumb-bar a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ cards */
.card-tile {
  background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.9rem 1.7rem; height: 100%; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s;
}
a.card-tile:hover { box-shadow: var(--shadow-lg); color: inherit; }
.tile-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--accent-pale); color: var(--accent-deep);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1.1rem;
}
.card-tile h3 { margin-bottom: .55rem; }
.card-tile p { color: var(--text-mid); font-size: .95rem; margin-bottom: 1rem; }
.tile-link { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--accent-deep); font-family: 'Outfit', sans-serif; }

.card-media {
  background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: box-shadow .2s;
}
a.card-media:hover { box-shadow: var(--shadow-lg); color: inherit; }
.card-media img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-media-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-media-body h3 { font-size: 1.1rem; }
.card-media-body p { font-size: .93rem; color: var(--text-mid); }

/* --------------------------------------------------------------- contenus */
.prose { font-size: 1.05rem; color: var(--text-mid); }
.prose h2 { margin: 2.8rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .7rem; color: var(--primary); }
.prose p { margin-bottom: 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.2rem; }
.prose li { margin-bottom: .55rem; }
.prose strong { color: var(--text); }
.prose blockquote {
  border: 0; background: var(--primary-pale); border-radius: var(--radius-sm);
  margin: 1.8rem 0; padding: 1.3rem 1.5rem; color: var(--text);
}
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6rem 0; font-size: .95rem;
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.prose th, .prose td { border-bottom: 1px solid var(--grey-line); padding: .8rem .95rem; text-align: left; }
.prose th { background: var(--primary-pale); color: var(--text); font-weight: 700; }

.callout { background: var(--primary-pale); border: 0; border-radius: var(--radius); padding: 1.6rem 1.7rem; margin: 2rem 0; }
.callout h3 { margin-top: 0; }

/* -------------------------------------------------------------------- FAQ */
.faq-item {
  border: 0; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow);
  padding: 1.15rem 1.4rem; margin-bottom: .85rem;
}
.faq-item[open] { box-shadow: var(--shadow-lg); }
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--text); list-style: none; font-family: 'Outfit', sans-serif;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--accent-deep); font-size: 1.3rem; font-weight: 700; line-height: 1;
  background: var(--accent-pale); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: .9rem 0 0; color: var(--text-mid); }

/* ------------------------------------------------------------- bandes CTA */
.stats-band { background: var(--degrade); color: #fff; padding: 3.4rem 0; }
.stats-band .stat-num { font-family: 'Outfit', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stats-band .stat-label { color: rgba(255,255,255,.85); font-weight: 600; font-size: .92rem; }

.cta-band { background: var(--degrade); color: #fff; border-radius: var(--radius); padding: 3rem 2.6rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); margin-bottom: 0; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--text); color: rgba(255,255,255,.72); padding: 4rem 0 0; font-size: .94rem; }
.site-footer h4 { color: #fff; font-family: 'Outfit', sans-serif; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand { color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.8rem; padding: 1.4rem 0; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { background: rgba(255,255,255,.06); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .85rem; }

/* -------------------------------------------------- messages de formulaire */
.form-message { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.5rem;
  background: var(--primary-pale); color: var(--text); }
.form-message-erreur { background: color-mix(in srgb, #C0392B 8%, #fff); }
.form-message[hidden] { display: none; }
.card-tile .form-control, .card-tile .form-select {
  border-color: var(--grey-line); border-radius: 12px; padding: .7rem .9rem; background: var(--grey-bg);
}
.card-tile .form-control:focus, .card-tile .form-select:focus {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent) 26%, transparent);
}
.card-tile .form-label { color: var(--text); font-size: .9rem; }

@media (max-width: 991.98px) {
  .section { padding: 3.6rem 0; }
  .hero-home { padding: 3.6rem 0 4rem; }
  .site-header .nav-link { padding: .5rem .2rem; }
  .cta-band { padding: 2.2rem 1.6rem; }
}

/* ---------------------------------------------------------------- partenaires */
.partners { padding-bottom: 4.5rem; }
.partners-head { max-width: 640px; margin-bottom: 2rem; }
.partners-intro { color: var(--text-mid); margin: 0; }
.partners-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .partners-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .partners-grid { grid-template-columns: 1fr; } }
.partner-card { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; height: 100%; }
.partner-name { font-weight: 700; line-height: 1.3; }
.partner-line { font-size: .88rem; line-height: 1.45; color: var(--text-light); }

/* arrondi genereux, sans bordure, pastille en degrade */
.partners { background: var(--grey-bg); }
.partner-card {
  padding: 1.35rem 1.3rem 1.25rem; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  position: relative; padding-top: 2.4rem;
  transition: box-shadow .2s ease, background .2s ease;
}
.partner-card::before {
  content: ""; position: absolute; top: 1.3rem; left: 1.3rem;
  width: 26px; height: 5px; border-radius: 999px; background: var(--degrade);
}
.partner-card .partner-name { color: var(--text); font-size: 1.02rem;
  font-family: 'Outfit', system-ui, sans-serif; }
.partner-card:hover, .partner-card:focus-visible { box-shadow: var(--shadow-lg); }
.partner-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
