/* =========================================================
   DELTAFORM — formation-elus.fr
   Feuille de style principale
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --navy:      #08003D;
  --navy-2:    #183059;
  --navy-3:    #05051C;
  --blue:      #0099FF;
  --blue-soft: #2eb0ff;
  --orange:    #E8531A;
  --orange-2:  #ff7a3d;
  --bg:        #FFFFFF;
  --bg-alt:    #EDF4F6;
  --bg-soft:   #FAFAFA;
  --gray:      #6b7280;
  --gray-light:#9aa3b2;
  --text:      #0d1026;
  --line:      #e6eaf0;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 40px rgba(8, 0, 61, .10);
  --shadow-lg: 0 24px 70px rgba(8, 0, 61, .18);
  --maxw:      1180px;
  --header-h:  72px;

  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--ff);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--blue-soft); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
h2.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--gray); max-width: 60ch; }
.section--navy .lead { color: rgba(255,255,255,.8); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(0,153,255,.35); }
.btn--primary:hover { background: var(--blue-soft); box-shadow: 0 12px 30px rgba(0,153,255,.45); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 8px 24px rgba(232,83,26,.35); }
.btn--orange:hover { background: var(--orange-2); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(8,0,61,.07); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: grid; place-items: center; color: #fff; font-weight: 800;
  clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 6px;
}
.brand__name { font-size: 1.18rem; color: var(--navy); }
.brand__name b { color: var(--blue); }
.brand__logo { height: 46px; width: auto; display: block; }
.brand--footer { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.brand--footer .brand__logo { height: 56px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .94rem; color: var(--navy-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg-alt); }
.nav a.is-active { color: var(--blue); background: rgba(0,153,255,.10); }
.nav__cta { margin-left: 8px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; }
.burger span { display:block; width: 22px; height: 2px; background: var(--navy); margin: 4px auto; border-radius: 2px; transition: .3s; }
.burger.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity: 0; }
.burger.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, #123 0, transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0a1a3a 100%);
  padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 120px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 380px at 15% 110%, rgba(232,83,26,.22), transparent 60%);
}
/* Accueil : photo en arrière-plan, dégradé bleu conservé par-dessus */
.hero--home {
  background-image:
    linear-gradient(105deg, rgba(8,0,61,.94) 0%, rgba(8,0,61,.82) 36%, rgba(16,32,70,.58) 66%, rgba(16,32,70,.42) 100%),
    linear-gradient(to top, rgba(8,0,61,.55), transparent 55%),
    url('../img/elu-hero.webp');
  background-size: cover, cover, cover;
  background-position: center, center, center 22%;
  background-repeat: no-repeat;
}
@media (max-width: 820px) {
  .hero--home {
    background-image:
      linear-gradient(160deg, rgba(8,0,61,.92) 0%, rgba(24,48,89,.82) 60%, rgba(10,26,58,.9) 100%),
      url('../img/elu-hero.webp');
    background-size: cover, cover;
    background-position: center, center 20%;
  }
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin-bottom: 22px; }
.hero h1 .hl { color: var(--blue-soft); }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.86); max-width: 60ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 46px; }
.hero__badge { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: rgba(255,255,255,.82); }
.hero__badge b { color: #fff; }

/* ---------- Offer cards (accueil) ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.offer {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease; overflow: hidden;
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.offer::before { content:""; position:absolute; inset: 0 0 auto 0; height: 5px; }
.offer--paris::before { background: linear-gradient(90deg, var(--blue), var(--navy)); }
.offer--commune::before { background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.offer__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; font-size: 26px; }
.offer--paris .offer__icon { background: rgba(0,153,255,.12); }
.offer--commune .offer__icon { background: rgba(232,83,26,.12); }
.offer h3 { font-size: 1.45rem; margin-bottom: 8px; }
.offer .offer__sub { font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.offer--commune .offer__sub { color: var(--orange); }
.offer p { color: var(--gray); margin-bottom: 22px; }

/* ---------- Feature grid (vision) ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pillar__num {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); margin-bottom: 16px;
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pillar p { color: var(--gray); }
.team-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center top;
  margin-bottom: 16px; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(8,0,61,.18);
}

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.stat .stat__num { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; color: var(--blue-soft); line-height: 1; }
.stat p { color: rgba(255,255,255,.78); margin-top: 8px; }

/* ---------- Formations ---------- */
.formations-layout { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.catalog-side {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-lg);
}
.catalog-side h2 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.catalog-side .note {
  font-size: .92rem; color: rgba(255,255,255,.82); background: rgba(255,255,255,.08);
  border-left: 3px solid var(--orange); padding: 12px 14px; border-radius: 8px; margin: 18px 0 24px;
}
.catalog-side ul.facts { display: grid; gap: 12px; margin-bottom: 26px; }
.catalog-side ul.facts li { display: flex; gap: 10px; font-size: .94rem; color: rgba(255,255,255,.85); }
.catalog-side ul.facts li::before { content: "✓"; color: var(--blue-soft); font-weight: 800; }

.formations-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 6px; }
.filters { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 5px; gap: 4px; }
.filters button {
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--navy-2);
  transition: background .2s, color .2s;
}
.filters button.is-active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(8,0,61,.1); }

.course-list { display: grid; gap: 16px; margin-top: 26px; }
.course {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  overflow: hidden; transition: box-shadow .3s, border-color .3s;
}
.course:hover { box-shadow: var(--shadow); border-color: #d6deea; }
.course__head {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; width: 100%; text-align: left;
}
.course__index {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy));
}
.course--commune-only .course__index { background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
.course__title { flex: 1; }
.course__title h3 { font-size: 1.08rem; }
.course__title .desc { font-size: .92rem; color: var(--gray); font-weight: 400; }
.course__chev { flex: none; transition: transform .3s; color: var(--gray-light); }
.course.is-open .course__chev { transform: rotate(180deg); }
.course__body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.course__inner { padding: 0 22px 22px 78px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: rgba(0,153,255,.10); color: var(--blue);
}
.tag--commune { background: rgba(232,83,26,.12); color: var(--orange); }
.fiche-block h4 { font-size: .95rem; color: var(--navy); margin: 14px 0 6px; }
.fiche-block ul { display: grid; gap: 6px; }
.fiche-block ul li { position: relative; padding-left: 18px; color: #374151; font-size: .94rem; }
.fiche-block ul li::before { content: "—"; position: absolute; left: 0; color: var(--blue); }
.fiche-block p { color: #374151; font-size: .94rem; margin: 6px 0; }
.fiche-actions { margin-top: 16px; }

.archive-title { margin-top: 54px; }
.archive-title h3 { font-size: 1.15rem; color: var(--navy-2); }
.archive-title p { color: var(--gray); font-size: .94rem; }

/* ---------- Financement ---------- */
.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fin-card { border-radius: var(--radius); padding: 38px 34px; color: #fff; box-shadow: var(--shadow-lg); }
.fin-card--blue { background: linear-gradient(165deg, var(--navy), var(--navy-2)); }
.fin-card--orange { background: linear-gradient(165deg, #b8420f, var(--orange)); }
.fin-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.fin-card .amount { font-size: 2.2rem; font-weight: 800; margin: 6px 0 14px; }
.fin-card ul { display: grid; gap: 12px; margin: 18px 0 26px; }
.fin-card ul li { display: flex; gap: 10px; color: rgba(255,255,255,.9); }
.fin-card ul li::before { content: "→"; color: rgba(255,255,255,.7); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--bg-alt); display: grid; place-items: center; font-size: 20px; }
.info-row .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); font-weight: 700; }
.info-row .val { font-weight: 600; color: var(--navy); }
.info-row .val a:hover { color: var(--blue); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: .98rem; color: var(--text); background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,153,255,.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; }

/* ---------- Inscription bicolore ---------- */
.bicolor { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.bicolor__half { padding: 50px 44px; color: #fff; }
.bicolor__half--blue { background: linear-gradient(165deg, var(--navy), var(--navy-2)); }
.bicolor__half--orange { background: linear-gradient(165deg, #b8420f, var(--orange)); }
.bicolor__half h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.bicolor__half .step { display: flex; gap: 14px; margin: 16px 0; }
.bicolor__half .step .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.bicolor__half .step p { color: rgba(255,255,255,.9); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--navy)); color: #fff; border-radius: var(--radius); padding: 54px 44px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 56ch; margin: 0 auto 26px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer a:hover { color: var(--blue-soft); }
.footer ul li { margin-bottom: 9px; font-size: .94rem; }
.footer .brand__name { color: #fff; }
.footer__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: var(--gray-light); }
.footer__refs { font-size: .88rem; color: rgba(255,255,255,.7); }
.footer__refs b { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .formations-layout { grid-template-columns: 1fr; }
  .catalog-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px; gap: 6px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(8,0,61,.12); transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 14px; }
  .nav__cta { margin: 6px 0 0; text-align: center; }
  .burger { display: block; }
  .offers, .pillars, .fin-grid, .stat-band, .bicolor { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 0; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .course__inner { padding-left: 22px; }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .filters, .burger, .course__chev, .cta-band, .hero__actions, .fiche-actions { display: none !important; }
  .course__body { max-height: none !important; }
  .course__inner { padding-left: 22px !important; }
  body { color: #000; }
  .section { padding: 16px 0; }
  a { color: #000; }
}
