/* =================================================================
   2KPI - Feuille de style unique (design system léger)
   Palette dérivée du logo officiel : navy (savoir/donnée), corail
   (innovation), vert (territoire/durabilité), crème (lumière/idée).
   ================================================================= */

:root {
  --navy: #16324a;
  --navy-dark: #0d2032;
  --navy-soft: #2e4f6b;
  --coral: #ef6a52;
  --coral-dark: #d6553f;
  --green: #5c7a3a;
  --green-dark: #48602d;
  --cream: #f7e6b8;

  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-navy-10: #eef2f5;
  --text: #1c2b36;
  --text-soft: #51616c;
  --text-inverse: #eef3f6;
  --border: #e2e8ec;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(15, 35, 55, 0.06);
  --shadow: 0 14px 34px rgba(15, 35, 55, 0.10);
  --container: 1180px;

  --ff-heading: "Montserrat", "Segoe UI", sans-serif;
  --ff-body: "Jost", "Segoe UI", sans-serif;

  --dur: 0.25s;
}

/* ---------- Reset ---------- */
[hidden] { display: none !important; } /* l'attribut hidden prime sur display: grid / flex */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-soft); }
.lead { font-size: 1.15rem; color: var(--text-soft); }
strong { color: var(--navy); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral);
  display: inline-block;
}
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: var(--text-inverse); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c4d2dc; }
.section-head { max-width: 640px; margin: 0 0 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Boutons : sobres (coins légèrement arrondis, sans ombre portée ni saut au survol) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform var(--dur) ease; }
.btn:hover svg { transform: translateX(2px); }
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: var(--ff-heading); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.brand-name span { color: var(--coral); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-family: var(--ff-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 100px;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-navy-10); color: var(--navy); }
.nav-links a.active { color: var(--coral-dark); }
.nav-cta { margin-left: 8px; border-radius: var(--radius-sm) !important; padding: 9px 16px !important; } /* bouton sobre, comme les autres */

/* ---------- Menus déroulants ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-parent {
  font-family: var(--ff-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.nav-parent .caret { width: 13px; height: 13px; transition: transform var(--dur) ease; }
.nav-parent:hover,
.nav-item.open .nav-parent,
.nav-item.is-active .nav-parent { background: var(--bg-navy-10); color: var(--navy); }
.nav-item.is-active .nav-parent { color: var(--coral-dark); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 214px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) ease, transform var(--dur) ease, visibility var(--dur);
  z-index: 120;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item:hover .nav-parent .caret,
.nav-item.open .nav-parent .caret { transform: rotate(180deg); }
.nav-dropdown a { font-size: 0.86rem; padding: 9px 14px; border-radius: 10px; white-space: nowrap; }
/* pont invisible pour ne pas perdre le survol entre le titre et le menu */
.nav-item::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 82% -10%, #ffe9d8 0%, rgba(255,255,255,0) 55%),
              radial-gradient(circle at -5% 110%, #e7f0e2 0%, rgba(255,255,255,0) 45%),
              #ffffff;
  padding: 90px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--green-dark); }
.hero-copy h1 .dot { color: var(--coral); }
.hero-copy .lead { max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats div { border-left: 3px solid var(--coral); padding-left: 14px; }
.hero-stats strong { display: block; font-family: var(--ff-heading); font-size: 1.5rem; color: var(--navy); }
.hero-stats span { font-size: 0.82rem; color: var(--text-soft); }

/* Hero plein écran avec image de fond (accueil) */
.hero--full {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 72px 0;
  background: url(../assets/img/banners/accueil_.webp) center/cover no-repeat;
}
.hero--full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    100deg,
    rgba(9, 20, 30, 0.92) 0%,
    rgba(9, 20, 30, 0.78) 38%,
    rgba(9, 20, 30, 0.42) 68%,
    rgba(9, 20, 30, 0.15) 100%
  );
}
.hero--full .container { position: relative; z-index: 1; }
.hero--full .hero-copy { max-width: 640px; }
.hero--full .hero-copy .eyebrow { color: #ffd9cf; }
.hero--full .hero-copy h1 { color: #fff; }
.hero--full .hero-copy .lead { color: rgba(255, 255, 255, 0.92); max-width: 560px; }
.hero--full .hero-stats strong { color: #fff; }
.hero--full .hero-stats span { color: rgba(255, 255, 255, 0.82); }
.hero--full .btn-outline-navy { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.hero--full .btn-outline-navy:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; height: 100%; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--bg-navy-10), #fff 85%);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero .lead { max-width: 640px; margin: 0 auto; }

/* Bannière image derrière le titre de page */
.page-hero--banner {
  position: relative;
  isolation: isolate;
  padding: 96px 0 84px;
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  color: #fff;
}
.page-hero--banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 32, 50, 0.68), rgba(13, 32, 50, 0.86));
}
.page-hero--banner .eyebrow { color: #ffd9cf; }
.page-hero--banner h1 { color: #fff; }
.page-hero--banner .lead { color: rgba(255, 255, 255, 0.92); }

/* ---------- Cartes formation ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-navy-10);
  color: var(--navy);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card.accent .card-icon { background: rgba(239,106,82,0.12); color: var(--coral-dark); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.card ul li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--text-soft); align-items: flex-start; }
.card ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--green); }

/* ---------- Split section (image/texte) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-visual { order: 2; }
.split-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-visual svg { width: 72%; height: 72%; }
.split-list { display: flex; flex-direction: column; gap: 16px; margin: 1.6rem 0; }
.split-list li { display: flex; gap: 14px; align-items: flex-start; }
.split-list .num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-navy-10);
  color: var(--navy);
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Valeurs / pictos ---------- */
.value-item { text-align: center; }
.value-item .card-icon { margin: 0 auto 16px; }

/* ---------- Bandeau stat / CTA ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy) 0%, #1f4260 60%, var(--green-dark) 130%);
  color: #fff;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: #cfdbe3; margin: 0; }

/* ---------- Timeline (académie) ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px dashed var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-tag { font-family: var(--ff-heading); font-weight: 700; color: var(--coral-dark); font-size: 0.9rem; }

/* ---------- Public cible tags ---------- */
.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 100px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}
.tag svg { width: 16px; height: 16px; color: var(--coral-dark); }

/* ---------- Réalisations ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 3rem; }
.stat-card { text-align: center; padding: 26px 12px; border-radius: var(--radius); background: var(--bg-soft); }
.stat-card strong { display: block; font-family: var(--ff-heading); font-size: 2rem; color: var(--coral-dark); }
.stat-card span { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Photos réelles ---------- */
.split-visual.photo { background: none; }
.split-visual.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 2.4rem;
}
.photo-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur) ease; }
.photo-grid figure:hover img { transform: scale(1.06); }
.photo-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  font-family: var(--ff-heading); font-weight: 600; font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(13,32,50,0.82), rgba(13,32,50,0));
}

/* ---------- Équipe / gouvernance ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px;
}
.team-card .team-role { font-family: var(--ff-heading); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral-dark); margin-bottom: 6px; }
.team-card h3 { margin-bottom: 10px; }
.team-card ul { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.team-card ul li { font-size: 0.9rem; color: var(--text-soft); display: flex; gap: 8px; }
.team-card ul li::before { content: "—"; color: var(--coral); flex-shrink: 0; }

/* ---------- WebSIG demo callout ---------- */
.demo-callout {
  border-radius: var(--radius-lg);
  border: 1px dashed var(--coral);
  background: rgba(239,106,82,0.06);
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 22px;
}
.demo-callout p { margin: 0; color: var(--navy); font-weight: 500; }

@media (max-width: 860px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Catalogue & sessions : grille de cartes ---------- */
.sessions-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sessions-count { margin: 0; font-family: var(--ff-heading); font-weight: 600; color: var(--navy); }
.sessions-empty { grid-column: 1 / -1; text-align: center; color: var(--text-soft); padding: 32px 0; margin: 0; }

.session-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.session-row {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--dur) ease, border-color var(--dur) ease;
  animation: session-in 0.45s ease both;
}
.session-row:hover { box-shadow: var(--shadow-sm); border-color: #d3dce3; }
@keyframes session-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-in { animation: session-in 0.45s ease both; }
@media (prefers-reduced-motion: reduce) { .session-row, .card-in { animation: none; } }

/* Bandeau de date en tête de carte */
.session-date {
  display: flex; align-items: baseline; gap: 8px; padding: 13px 20px;
  background: var(--bg-navy-10); color: var(--navy); font-family: var(--ff-heading); line-height: 1.1;
}
.session-date-jour { font-size: 1.45rem; font-weight: 800; }
.session-date-mois { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--coral-dark); }
.session-date-an { font-size: 0.8rem; font-weight: 600; color: var(--text-soft); }
.session-date--texte { align-items: center; font-size: 0.85rem; font-weight: 700; }
.session-date--texte svg { width: 17px; height: 17px; color: var(--coral-dark); flex-shrink: 0; }
.session-date--attente { background: var(--bg-soft); color: var(--text-soft); }
.session-date--attente svg { color: var(--text-soft); }

.session-body { padding: 18px 20px 4px; flex: 1; }
.session-body .badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.session-body h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; }
.session-desc { margin: 0; color: var(--text-soft); font-size: 0.9rem; }
.session-facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.session-facts li { display: flex; align-items: center; gap: 7px; font-size: 0.86rem; color: var(--text-soft); }
.session-facts svg { width: 15px; height: 15px; color: var(--coral-dark); flex-shrink: 0; }

/* Pied de carte : état, prix, places, bouton */
.session-aside { margin-top: 14px; padding: 14px 20px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.session-price { font-family: var(--ff-heading); font-weight: 800; color: var(--navy); font-size: 1.1rem; margin: 0; }
.session-places { margin: 0; font-size: 0.85rem; color: var(--text-soft); }
.session-places strong { color: var(--green-dark); }
.session-places--peu strong { color: var(--coral-dark); }
.session-places--complet { font-weight: 700; color: var(--coral-dark); }
.seats-bar { height: 5px; border-radius: 100px; background: var(--bg-navy-10); overflow: hidden; }
.seats-bar-fill { height: 100%; background: var(--green); border-radius: 100px; }
.seats-bar-fill.low { background: var(--coral); }
.session-aside .btn { margin-top: 6px; width: 100%; }
.session-row.is-full .session-body, .session-row.is-full .session-date { opacity: 0.6; }

/* État de la formation, formations à venir, liste d'intérêt */
.session-etat { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.session-etat--ouverte { color: var(--green-dark); }
/* Session en cours : mise en valeur sobre (bandeau navy, pastille, avancement) */
.session-row.is-en-cours { border-color: rgba(92, 122, 58, 0.45); box-shadow: 0 0 0 1px rgba(92, 122, 58, 0.14), var(--shadow-sm); }
.session-row.is-en-cours:hover { border-color: rgba(92, 122, 58, 0.7); box-shadow: 0 0 0 1px rgba(92, 122, 58, 0.22), var(--shadow); }
.session-date--encours {
  position: relative; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 14px 20px 17px;
  background: linear-gradient(120deg, var(--navy) 0%, #1f4260 62%, var(--green-dark) 140%); color: #fff;
}
.encours-pastille { width: 8px; height: 8px; border-radius: 50%; background: #a6d47a; flex-shrink: 0; animation: encours-pouls 2.4s ease-out infinite; }
.encours-libelle { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.encours-semaine { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.encours-progression { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.14); }
.encours-progression > span { display: block; height: 100%; background: var(--cream); border-radius: 0 3px 3px 0; }
.session-etat--encours { color: var(--green-dark); }
.encours-dates { margin: 0; font-size: 0.86rem; color: var(--text-soft); }
.encours-effectif { margin: 0; font-size: 0.85rem; color: var(--text-soft); }
.encours-effectif strong { color: var(--navy); }
@keyframes encours-pouls {
  0% { box-shadow: 0 0 0 0 rgba(166, 212, 122, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(166, 212, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(166, 212, 122, 0); }
}
@media (prefers-reduced-motion: reduce) { .encours-pastille { animation: none; } }
.sessions-separateur { grid-column: 1 / -1; font-size: 1.05rem; color: var(--text-soft); margin: 14px 0 0; font-weight: 700; }
.interet-form { padding: 16px 20px 20px; border-top: 1px solid var(--border); background: var(--bg-soft); display: flex; flex-direction: column; gap: 12px; }
.interet-form .form-row { grid-template-columns: 1fr; gap: 12px; margin: 0; }
.interet-form .field { margin: 0; }
.interet-intro { margin: 0; color: var(--text-soft); font-size: 0.88rem; }
.interet-profil { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.interet-profil legend { float: left; margin-right: 12px; font-family: var(--ff-heading); font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.interet-profil label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; }
.interet-erreur { margin: 0; color: var(--coral-dark); font-size: 0.88rem; }
.interet-merci { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(92,122,58,0.12); color: var(--green-dark); font-size: 0.92rem; }
.interet-form > .btn { width: 100%; }

.session-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.session-filters button {
  font-family: var(--ff-heading); font-size: 0.84rem; font-weight: 600;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border);
  background: #fff; color: var(--text-soft); cursor: pointer; transition: all var(--dur) ease;
  display: inline-flex; align-items: center; gap: 7px;
}
.session-filters button:hover { border-color: var(--navy); color: var(--navy); }
.session-filters button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-count { font-size: 0.74rem; min-width: 20px; padding: 1px 6px; border-radius: 100px; background: var(--bg-navy-10); color: var(--navy); }
.session-filters button.active .filter-count { background: rgba(255,255,255,0.18); color: #fff; }

.session-summary {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 28px;
}
.session-summary h3 { margin-bottom: 10px; }
.compte-cta {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px dashed var(--navy); background: #fff;
}
.compte-cta h3 { margin-bottom: 8px; font-size: 1.05rem; }
.compte-cta p { font-size: 0.9rem; color: var(--text-soft); margin: 0 0 14px; }
.compte-cta .btn { display: inline-flex; align-items: center; gap: 8px; }
.compte-cta .btn svg { width: 16px; height: 16px; }

.form-status {
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px;
  font-size: 0.94rem; display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: rgba(92,122,58,0.12); color: var(--green-dark); border: 1px solid rgba(92,122,58,0.3); }
.form-status.error { background: rgba(239,106,82,0.12); color: var(--coral-dark); border: 1px solid rgba(239,106,82,0.3); }


.project-card { display: flex; flex-direction: column; height: 100%; }
.badge {
  display: inline-flex;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(92,122,58,0.14); color: var(--green-dark);
}
.badge.coral { background: rgba(239,106,82,0.14); color: var(--coral-dark); }
.project-card .badge { align-self: flex-start; margin-bottom: 14px; }

/* ---------- Réalisations : grille de cartes, détail dépliable dans la carte ---------- */
#realisation-filters { margin-bottom: 1.6rem; }
.projets-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.projet {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  scroll-margin-top: 96px; transition: box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.projet:hover, .projet.is-open { box-shadow: var(--shadow-sm); border-color: #d3dce3; }
.projet-repere { padding: 20px 22px 0; }
.projet-numero { font-family: var(--ff-heading); font-weight: 800; font-size: 1.25rem; color: var(--coral); letter-spacing: -0.02em; line-height: 1; }
.projet-corps { padding: 10px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.projet-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; }
.projet-annee { font-size: 0.82rem; font-weight: 600; color: var(--text-soft); }
.projet h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; }
.projet-resume { margin: 0 0 18px; color: var(--text-soft); font-size: 0.92rem; }

/* Dépliage animé : grid-template-rows 0fr → 1fr, sans hauteur fixe */
.projet-detail { display: grid; grid-template-rows: 0fr; width: 100%; transition: grid-template-rows 0.4s ease, opacity 0.3s ease; opacity: 0; }
.projet.is-open .projet-detail { grid-template-rows: 1fr; opacity: 1; }
.projet-detail-interieur { overflow: hidden; }
.projet-detail p { margin: 0 0 12px; font-size: 0.92rem; line-height: 1.7; }
.projet-detail-interieur > :last-child { margin-bottom: 18px; }
.projet-chiffres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.projet-chiffre { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); border-left: 3px solid var(--coral); }
.projet-chiffre strong { font-family: var(--ff-heading); font-size: 1.35rem; color: var(--coral-dark); line-height: 1; }
.projet-chiffre span { font-size: 0.85rem; color: var(--text-soft); }

/* Le bouton se cale en bas de carte : les boutons restent alignés d'une carte à l'autre */
.projet-toggle, .projet-action { margin-top: auto; }
.projet-action { align-self: stretch; }
.projet-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
  font-family: var(--ff-heading); font-weight: 600; font-size: 0.88rem; color: var(--navy); cursor: pointer;
}
.projet-toggle:hover .projet-toggle-texte { text-decoration: underline; text-underline-offset: 4px; }
.projet-toggle:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 4px; }
.projet-chevron { width: 17px; height: 17px; color: var(--coral); transition: transform 0.3s ease; }
.projet.is-open .projet-chevron { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) { .projet-detail, .projet-chevron { transition: none; } }

/* ---------- Formulaire contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}
.info-card h3 { color: #fff; }
.info-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-line svg { width: 20px; height: 20px; color: var(--coral); flex-shrink: 0; margin-top: 2px; }
.info-line a, .info-line span { color: #dce6ec; font-size: 0.95rem; }
.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) ease, transform var(--dur) ease;
}
.social-row a:hover { background: var(--coral); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; color: #fff; }
/* Bloc « Nos coordonnées » : contenu centré dans la carte */
.info-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.info-lines { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; margin-top: 8px; }
.info-card .info-line { align-items: center; }
.info-card .info-line svg { margin-top: 0; }
.info-card .social-row { justify-content: center; }
.info-card p { max-width: 380px; margin-left: auto; margin-right: auto; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-family: var(--ff-heading); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: var(--ff-body);
  font-size: 0.96rem;
  color: var(--text);
  transition: border-color var(--dur) ease, background var(--dur) ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--coral); background: #fff;
}
.form-note { font-size: 0.82rem; color: var(--text-soft); margin-top: 10px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 40px; }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c8d3; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 42px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: #94a7b3; max-width: 320px; }
.footer h4 { color: #fff; font-family: var(--ff-heading); font-size: 0.95rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; font-size: 0.92rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--coral); flex-shrink: 0; margin-top: 3px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 0.82rem; color: #7f93a0; flex-wrap: wrap; gap: 10px;
}
.back-to-top { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.back-to-top svg { width: 16px; height: 16px; }
.back-to-top:hover { background: var(--coral); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero--full { min-height: auto; padding: 52px 0; }
  .hero--full::before {
    background: linear-gradient(180deg, rgba(9, 20, 30, 0.84), rgba(9, 20, 30, 0.8));
  }
}
@media (max-width: 980px) {
  .hero-grid, .split, .split.reverse .split-visual, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
/* Menu repliable dès que la barre complète ne tient plus (≈ 1080 px avec « Espace apprenant ») */
@media (max-width: 1080px) {
  .nav-links { position: fixed; inset: 64px 16px auto 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--border); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .nav-cta { margin: 6px 0 0; }
  /* Déroulants en mode accordéon sur mobile */
  .nav-item { display: block; }
  .nav-parent { width: 100%; justify-content: space-between; padding: 14px 16px; }
  .nav-item::after { display: none; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; min-width: 0;
    padding: 0 0 6px 14px; display: none;
  }
  .nav-item.open .nav-dropdown { display: flex; }
  .nav-espace-item { margin: 6px 0 0; }
  .nav-parent.nav-espace { justify-content: center; }
  .nav-espace-item .nav-dropdown { padding: 6px 0 0; }
  .nav-espace-item .nav-dropdown a { text-align: center; }
}
@media (max-width: 720px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 36px; flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* Accès à la plateforme d'apprentissage (learn.2kpinnov.org) */
/* Bouton « Espace apprenant » : menu Se connecter / Créer mon compte, à l'allure d'un bouton contour */
@media (min-width: 1081px) { .nav-espace-item { margin-left: 8px; } }
.nav-parent.nav-espace { border: 1px solid var(--navy); border-radius: var(--radius-sm); color: var(--navy); padding: 8px 14px; gap: 6px; }
.nav-parent.nav-espace svg { width: 16px; height: 16px; }
.nav-parent.nav-espace .caret { width: 13px; height: 13px; }
.nav-espace-item:hover .nav-espace,
.nav-espace-item.open .nav-espace { background: var(--navy); color: #fff; }
.nav-espace-item .nav-dropdown { left: auto; right: 0; min-width: 200px; }
.nav-dropdown a.nav-creer { color: var(--coral-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Finitions (inspection visuelle) */
@media (min-width: 761px) { .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; } }
.footer-brand img { height: 56px; padding: 6px 10px; border-radius: 10px; background: #fff; box-sizing: content-box; }
.timeline-tag { white-space: nowrap; }
.timeline-item { grid-template-columns: 120px 1fr; }
@media (max-width: 760px) {
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .page-hero .eyebrow, .section-head .eyebrow { flex-wrap: wrap; justify-content: center; text-align: center; }
}
.card--bandeau { display: flex; align-items: center; gap: 20px; }
.card--bandeau .card-icon { margin: 0; flex-shrink: 0; }
.card-bandeau-texte { flex: 1; }
.card-bandeau-texte h3 { margin-top: 0; }
.card-bandeau-texte p { margin-bottom: 0; }
@media (max-width: 760px) { .card--bandeau { flex-direction: column; align-items: flex-start; } }
.social-row a.social-bientot { cursor: default; opacity: 0.85; }
.social-row a.social-bientot:hover { background: rgba(255,255,255,0.12); transform: none; }
