/* ==========================================================================
   JHC — design system du site public & espace privé (2026)
   ========================================================================== */
:root {
  --navy: #00023b;
  --navy-2: #1a1f5c;
  --red: #C7123F;
  --red-dark: #a40e33;
  --ink: #12142b;
  --muted: #5d6178;
  --line: #e6e7ef;
  --bg: #ffffff;
  --bg-soft: #f6f6fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 2, 59, .05), 0 8px 24px rgba(0, 2, 59, .06);
  --shadow-lg: 0 2px 6px rgba(0, 2, 59, .06), 0 24px 48px rgba(0, 2, 59, .12);
  --wrap: 1160px;
  --header-h: 76px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 40px 0; }

/* Eyebrow + titres de section */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.35rem;
  border-radius: 999px; font: 600 .95rem/1 var(--font); text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(199, 18, 63, .28); }
.btn--primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } html { scroll-behavior: auto; } }

/* Cartes */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid--2 { grid-template-columns: 1fr; } }

.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(199, 18, 63, .09); color: var(--red); margin-bottom: 1rem;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0, 2, 59, .06); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header__brand { display: flex; align-items: center; flex: none; }
.site-header__brand img { height: 52px; width: auto; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  position: relative; display: block; padding: .55rem .9rem; border-radius: 999px; color: var(--ink);
  font-weight: 600; font-size: .94rem; text-decoration: none; transition: background .15s, color .15s;
}
.site-nav__link:hover { background: var(--bg-soft); color: var(--navy); }
.site-nav__link[aria-current="page"] { color: var(--red); }
.site-nav__link[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red);
}
.site-nav__cta { margin-left: 10px; }
.site-header__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); align-items: center; justify-content: center; cursor: pointer;
}
.site-header__toggle svg { width: 22px; height: 22px; }
.site-header__toggle .i-close { display: none; }
@media (max-width: 860px) {
  .site-header__brand img { height: 44px; }
  .site-header__toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px 16px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 2, 59, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__link { padding: .85rem 1rem; border-radius: 12px; font-size: 1.02rem; }
  .site-nav__link[aria-current="page"] { background: rgba(199, 18, 63, .07); }
  .site-nav__link[aria-current="page"]::after { display: none; }
  .site-nav__cta { margin: 6px 0 0; }
  .site-nav__cta .btn { width: 100%; padding: .95rem; }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header__toggle .i-open { display: none; }
  .nav-open .site-header__toggle .i-close { display: block; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); margin-top: 0; position: relative; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--red), #e8456b 50%, var(--red)); }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding: 64px 0 48px; }
.site-footer__logo { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.site-footer__tagline { font-size: .95rem; max-width: 300px; }
.site-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.site-footer__contact li { line-height: 1.45; }
.site-footer__contact strong { display: block; color: #fff; font-weight: 600; }
.site-footer__partners { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer__partners a { background: #fff; border-radius: 10px; padding: 10px 14px; display: grid; place-items: center; height: 56px; }
.site-footer__partners a:hover { text-decoration: none; opacity: .9; }
.site-footer__partners img { width: 104px; height: 34px; object-fit: contain; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 28px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: .86rem; color: rgba(255, 255, 255, .55);
}
@media (max-width: 960px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }

/* ==========================================================================
   Hero (accueil) & bandeaux de page
   ========================================================================== */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 30%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0, 2, 59, .92) 0%, rgba(0, 2, 59, .72) 45%, rgba(0, 2, 59, .25) 100%);
}
.hero__inner { padding: clamp(72px, 12vw, 140px) 0 clamp(110px, 14vw, 170px); max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { color: rgba(255, 255, 255, .86); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 600px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); margin-bottom: 1.4rem;
}
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d79; box-shadow: 0 0 0 4px rgba(255, 77, 121, .25); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.people { margin-top: -72px; position: relative; z-index: 2; }
.people .card { display: flex; gap: 1rem; align-items: center; padding: 1.4rem 1.6rem; box-shadow: var(--shadow-lg); }
.people .icon-badge { margin: 0; }
.people__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.people__names { font-size: 1.12rem; font-weight: 700; color: var(--navy); }

.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 18, 63, .55), transparent 65%); pointer-events: none;
}
.page-hero__inner { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0; font-size: 1.08rem; }
.page-hero .eyebrow { color: #ff8aa6; }
.page-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   Contenus
   ========================================================================== */
.prose { max-width: 760px; }
.prose p, .prose li { color: #2c2f45; }
.prose strong { color: var(--navy); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.highlight h3 { margin-bottom: .4rem; }
.highlight p { color: var(--muted); margin: 0; font-size: .96rem; }

.callout {
  border-radius: calc(var(--radius) + 4px); padding: clamp(28px, 5vw, 48px); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--red) 0%, #8f0c2e 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.callout h2 { color: #fff; margin-bottom: .25em; }
.callout p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 560px; }
.callout .btn--ghost { border-color: rgba(255, 255, 255, .6); }

.programme-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; max-width: 380px; justify-self: center; transform: rotate(1.5deg); }
.programme-visual img { display: block; width: 100%; }

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.logo-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 120px; display: grid; place-items: center;
  padding: 20px 28px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.logo-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.logo-tile img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }

.contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .icon-badge { margin: 0; }
.contact-card h3 { margin-bottom: .2rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.contact-card a { font-weight: 600; }

/* Formulaire de connexion */
.auth { min-height: calc(100vh - var(--header-h) - 260px); display: grid; place-items: center; padding: 64px 16px; background: var(--bg-soft); }
.auth .card { width: 100%; max-width: 420px; padding: 2.25rem; }
.auth h1 { font-size: 1.6rem; margin-bottom: .3rem; }
.auth p { color: var(--muted); }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field input {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 2, 59, .08); }
.alert { padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; margin-bottom: 1.2rem; }
.alert--error { background: #fdecef; color: #8f0c2e; border: 1px solid #f7c9d4; }

/* Animation d'apparition douce */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
