/* Page d'accueil institutionnelle — bleu nuit, bleu profond et turquoise. Aucune dépendance externe. */
:root {
  --hp-night: #041029;
  --hp-navy: #061633;
  --hp-deep: #0b2a5c;
  --hp-blue: #1d7cf2;
  --hp-cyan: #22d3ee;
  --hp-cyan-2: #1fc8ec;
  --hp-text: #f3f7ff;
  --hp-soft: #c4d3ee;
  --hp-line: rgba(140, 190, 255, .28);
  --hp-glass: rgba(24, 60, 128, .38);
  --hp-header-h: 94px;
  --hp-font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body.hp { margin: 0; background: var(--hp-navy); color: var(--hp-text); font: 16px/1.55 var(--hp-font); overflow-x: hidden; }
a { color: inherit; }
img, svg, video { display: block; }
:focus-visible { outline: 3px solid var(--hp-cyan); outline-offset: 3px; border-radius: 6px; }
.hp-noscript { padding: 24px; text-align: center; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-ic { width: 22px; height: 22px; flex: none; }

/* ------------------------------------------------------------------ en-tête */
.hp-header { position: fixed; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid rgba(120, 180, 255, .22); background: linear-gradient(180deg, rgba(4, 16, 41, .78), rgba(4, 16, 41, .35)); backdrop-filter: blur(6px); transition: background .25s ease; }
.hp-header.is-scrolled { background: rgba(4, 16, 41, .94); }
.hp-header-inner { min-height: var(--hp-header-h); display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 2.8vw, 56px); }
.hp-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 650; font-size: clamp(17px, 1.45vw, 25px); line-height: 1.12; letter-spacing: -.005em; }
.hp-logo { width: clamp(64px, 5.8vw, 98px); height: auto; }
.hp-nav { display: flex; align-items: stretch; gap: clamp(18px, 4.4vw, 84px); margin: 0 auto; align-self: stretch; }
.hp-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 6px; text-decoration: none; font-size: clamp(15px, 1.15vw, 19px); color: #e6eeff; }
.hp-nav a .hp-ic { width: 26px; height: 26px; }
.hp-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--hp-cyan); transform: scaleX(0); transition: transform .2s ease; }
.hp-nav a:hover::after, .hp-nav a.is-active::after { transform: scaleX(1); }
.hp-nav a.is-active { color: var(--hp-cyan); font-weight: 600; }
.hp-account { position: relative; display: flex; align-items: center; padding-left: 28px; border-left: 1px solid rgba(200, 220, 255, .45); min-height: 44px; }
.hp-login { border: 1.5px solid rgba(255, 255, 255, .8); background: transparent; color: #fff; border-radius: 999px; padding: 9px 20px; font: 600 15px var(--hp-font); cursor: pointer; white-space: nowrap; }
.hp-login:hover { background: rgba(255, 255, 255, .1); }
.hp-user { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.hp-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--hp-cyan), var(--hp-blue)); display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; }
.hp-user-menu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; background: #0a2350; border: 1px solid var(--hp-line); border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.hp-user-menu p { margin: 4px 8px 10px; display: grid; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.hp-user-menu p span { color: var(--hp-soft); font-size: 13px; }
.hp-user-menu a, .hp-user-menu button { display: block; width: 100%; text-align: left; padding: 10px 8px; border-radius: 8px; background: none; border: 0; color: #fff; font: 14px var(--hp-font); text-decoration: none; cursor: pointer; }
.hp-user-menu a:hover, .hp-user-menu button:hover { background: rgba(255, 255, 255, .08); }

/* ------------------------------------------------------------------ bandeau principal */
.hp-hero { position: relative; min-height: max(100vh, 720px); min-height: max(100svh, 720px); display: flex; flex-direction: column; padding: calc(var(--hp-header-h) + clamp(48px, 15vh, 170px)) clamp(16px, 4vw, 66px) 24px; isolation: isolate; overflow: hidden; }
.hp-media { position: absolute; inset: 0; z-index: -1; background: var(--hp-night); }
.hp-poster, .hp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hp-video { opacity: 0; transition: opacity .8s ease; }
.hp-video.is-ready { opacity: 1; }
.hp-overlay { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(4, 16, 41, .86) 0%, rgba(4, 16, 41, .6) 28%, rgba(6, 22, 51, .12) 55%, rgba(6, 22, 51, 0) 100%),
  linear-gradient(180deg, rgba(4, 16, 41, .35) 0%, rgba(4, 16, 41, 0) 18%, rgba(4, 16, 41, 0) 68%, rgba(4, 16, 41, .62) 100%); }
.hp-hero-content { max-width: 1040px; }
@media (min-width: 768px) { .hp-l1 { display: block; } }
.hp-hero h1 { margin: 0; font-size: clamp(32px, 3.65vw, 66px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
.hp-accent { color: var(--hp-cyan); }
.hp-rule { display: block; width: 82px; height: 3px; background: var(--hp-cyan); margin: clamp(18px, 2.4vh, 26px) 0; border-radius: 2px; }
.hp-rule-sm { width: 70px; }
.hp-lead { margin: 0; max-width: 640px; font-size: clamp(17px, 1.4vw, 23px); line-height: 1.45; color: #eef3ff; }
.hp-actions { display: flex; flex-wrap: wrap; gap: clamp(14px, 1.8vw, 30px); margin-top: clamp(22px, 3.2vh, 40px); }
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 30px; border-radius: 999px; font: 650 clamp(15px, 1.05vw, 18px) var(--hp-font); text-decoration: none; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-align: center; }
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn-primary { background: linear-gradient(180deg, #2ee1f5, var(--hp-cyan-2)); color: #04213f; box-shadow: 0 10px 28px rgba(34, 211, 238, .35); }
.hp-btn-primary:hover { box-shadow: 0 12px 34px rgba(34, 211, 238, .5); }
.hp-btn-outline { background: rgba(4, 16, 41, .25); color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); }
.hp-btn-outline:hover { background: rgba(255, 255, 255, .1); }
.hp-btn-outline .hp-ic { width: 28px; height: 28px; }

.hp-cards { margin-top: auto; padding-top: clamp(40px, 7vh, 90px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 50px); width: 100%; }
.hp-card { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); min-height: 104px; padding: 18px clamp(16px, 1.5vw, 24px); border-radius: 14px; text-decoration: none; background: linear-gradient(135deg, rgba(40, 90, 170, .42), rgba(14, 40, 90, .32)); border: 1px solid rgba(150, 195, 255, .45); backdrop-filter: blur(9px) saturate(120%); -webkit-backdrop-filter: blur(9px) saturate(120%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 34px rgba(0, 0, 0, .25); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.hp-card:hover, .hp-card:focus-visible { transform: translateY(-3px); border-color: rgba(34, 211, 238, .8); background: linear-gradient(135deg, rgba(40, 100, 190, .55), rgba(14, 48, 104, .45)); }
.hp-card-icon { width: clamp(52px, 4.4vw, 74px); color: var(--hp-cyan); flex: none; }
.hp-card-icon svg { width: 100%; height: auto; filter: drop-shadow(0 0 10px rgba(34, 211, 238, .35)); }
.hp-card-text { display: grid; gap: 6px; min-width: 0; }
.hp-card-text strong { font-size: clamp(18px, 1.3vw, 22px); font-weight: 650; }
.hp-card-text span { font-size: clamp(14px, .95vw, 16px); color: #e2ebff; }
.hp-card-arrow { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1.6px solid rgba(255, 255, 255, .85); display: grid; place-items: center; flex: none; }
.hp-scroll { align-self: center; margin-top: clamp(22px, 4vh, 36px); display: grid; justify-items: center; gap: 4px; color: #fff; text-decoration: none; opacity: .9; }
.hp-mouse { width: 26px; height: 42px; border: 2px solid #fff; border-radius: 14px; position: relative; }
.hp-mouse::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hp-wheel 1.8s ease-in-out infinite; }
@keyframes hp-wheel { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* ------------------------------------------------------------------ sections */
.hp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.hp-section { padding: clamp(64px, 9vw, 120px) 0; background: radial-gradient(1200px 500px at 85% 0%, rgba(29, 124, 242, .16), transparent 60%), var(--hp-navy); scroll-margin-top: var(--hp-header-h); }
.hp-section-alt { background: linear-gradient(180deg, #071c40, var(--hp-night)); }
.hp-section-head { max-width: 820px; margin-bottom: clamp(32px, 5vw, 56px); }
.hp-eyebrow { margin: 0 0 10px; color: var(--hp-cyan); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.hp-section h2 { margin: 0 0 14px; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.hp-section-head p, .hp-muted { color: var(--hp-soft); margin: 0; }
.hp-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hp-pillar { display: flex; flex-direction: column; padding: 26px; border-radius: 16px; background: var(--hp-glass); border: 1px solid var(--hp-line); }
.hp-pillar-icon { width: 54px; color: var(--hp-cyan); margin-bottom: 14px; }
.hp-pillar h3 { margin: 0 0 12px; font-size: 21px; }
.hp-pillar ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.hp-pillar li { display: flex; gap: 10px; color: #dfe8fa; font-size: 15px; }
.hp-pillar li .hp-ic { width: 18px; height: 18px; color: var(--hp-cyan); margin-top: 3px; }
.hp-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--hp-cyan); font-weight: 600; text-decoration: none; }
.hp-link .hp-ic { width: 18px; height: 18px; }
.hp-link:hover { text-decoration: underline; }
.hp-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: clamp(40px, 6vw, 70px); }
.hp-principles article { border-top: 2px solid var(--hp-cyan); padding-top: 16px; }
.hp-principles h3 { margin: 0 0 8px; font-size: 17px; }
.hp-principles p { margin: 0; color: var(--hp-soft); font-size: 15px; }
.hp-faq { margin-top: clamp(40px, 6vw, 70px); display: grid; gap: 10px; max-width: 900px; }
.hp-faq details { border: 1px solid var(--hp-line); border-radius: 12px; background: rgba(10, 35, 80, .45); }
.hp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; font-weight: 600; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary .hp-ic { transition: transform .2s ease; }
.hp-faq details[open] summary .hp-ic { transform: rotate(180deg); }
.hp-faq details p { margin: 0; padding: 0 18px 16px; color: var(--hp-soft); }
#contact { min-height: calc(100vh - var(--hp-header-h) - 76px); }
.hp-contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.hp-contact-info p { color: var(--hp-soft); }
.hp-contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.hp-contact-list li { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.hp-contact-list .hp-ic { color: var(--hp-cyan); }
.hp-contact-list a { color: #fff; }
.hp-access { padding: 28px; border-radius: 16px; background: var(--hp-glass); border: 1px solid var(--hp-line); }
.hp-access-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(34, 211, 238, .14); color: var(--hp-cyan); }
.hp-access h3 { margin: 14px 0 8px; font-size: 20px; }
.hp-access p { color: var(--hp-soft); margin: 0 0 20px; }
.hp-footer { padding: 26px 0; background: var(--hp-night); border-top: 1px solid rgba(120, 180, 255, .16); color: var(--hp-soft); font-size: 14px; }
.hp-footer .hp-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* ------------------------------------------------------------------ connexion */
.hp-dialog { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--hp-line); border-radius: 16px; padding: 28px; background: #0a2350; color: var(--hp-text); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.hp-dialog::backdrop { background: rgba(2, 8, 22, .7); backdrop-filter: blur(3px); }
.hp-dialog h2 { margin: 0 0 6px; font-size: 22px; }
.hp-dialog-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.hp-icon-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 8px; }
.hp-form { display: grid; gap: 14px; margin-top: 18px; }
.hp-form label { display: grid; gap: 6px; font-size: 14px; color: var(--hp-soft); }
.hp-form input { height: 46px; border-radius: 10px; border: 1px solid rgba(160, 200, 255, .4); background: rgba(4, 16, 41, .6); color: #fff; padding: 0 14px; font: 16px var(--hp-font); }
.hp-form input:focus { outline: 2px solid var(--hp-cyan); border-color: transparent; }
.hp-form .hp-btn { min-height: 48px; width: 100%; }
.hp-hint { margin: 0; color: var(--hp-soft); font-size: 13px; }
.hp-feedback { margin: 12px 0 0; min-height: 1.2em; font-size: 14px; }
.hp-feedback[data-kind="error"] { color: #ffb4b4; }

/* ------------------------------------------------------------------ adaptatif */
@media (max-width: 1279px) {
  .hp-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-nav a { gap: 8px; }
}
@media (max-width: 1023px) {
  :root { --hp-header-h: 76px; }
  .hp-nav a span { font-size: 15px; }
  .hp-account { padding-left: 16px; }
  .hp-cards { grid-template-columns: minmax(0, 1fr); max-width: 640px; align-self: flex-start; }
  .hp-card { min-height: 88px; }
  .hp-pillars { grid-template-columns: minmax(0, 1fr); }
  .hp-overlay { background: linear-gradient(90deg, rgba(4, 16, 41, .9), rgba(4, 16, 41, .6) 60%, rgba(4, 16, 41, .4)), linear-gradient(180deg, rgba(4, 16, 41, .4), rgba(4, 16, 41, .1) 30%, rgba(4, 16, 41, .8)); }
}
@media (max-width: 767px) {
  :root { --hp-header-h: 112px; }
  .hp-header-inner { flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; padding-bottom: 0; min-height: 0; }
  .hp-brand { font-size: 16px; gap: 10px; }
  .hp-logo { width: 56px; }
  .hp-account { margin-left: auto; border-left: 0; padding-left: 0; min-height: 0; }
  .hp-avatar { width: 38px; height: 38px; font-size: 14px; }
  .hp-login { padding: 7px 14px; font-size: 14px; }
  .hp-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 4px; border-top: 1px solid rgba(120, 180, 255, .18); }
  .hp-nav a { padding: 10px 4px 12px; font-size: 14px; gap: 6px; }
  .hp-nav a .hp-ic { width: 20px; height: 20px; }
  .hp-hero { min-height: auto; padding: calc(var(--hp-header-h) + 40px) 16px 20px; }
  .hp-poster, .hp-video { object-position: center; }
  .hp-overlay { background: linear-gradient(180deg, rgba(4, 16, 41, .78) 0%, rgba(4, 16, 41, .62) 45%, rgba(4, 16, 41, .88) 100%); }
  .hp-actions { flex-direction: column; align-items: stretch; }
  .hp-btn { width: 100%; padding: 0 20px; }
  .hp-cards { padding-top: 34px; gap: 12px; }
  .hp-card-arrow { width: 38px; height: 38px; }
  .hp-principles { grid-template-columns: minmax(0, 1fr); }
  .hp-contact { grid-template-columns: minmax(0, 1fr); }
  .hp-scroll { display: none; }
}
@media (max-width: 380px) {
  .hp-nav a { font-size: 13px; gap: 4px; }
  .hp-nav a .hp-ic { width: 18px; height: 18px; }
  .hp-brand { font-size: 15px; }
}

/* ------------------------------------------------------------------ mentions légales */
.hp-footer a { color: var(--hp-soft); }
.hp-legal-head { padding: 18px 0; background: var(--hp-night); border-bottom: 1px solid rgba(120, 180, 255, .16); }
.hp-legal-head a { color: var(--hp-cyan); text-decoration: none; font-weight: 600; }
.hp-legal h1 { margin: 0 0 18px; font-size: clamp(28px, 3vw, 40px); }
.hp-legal h2 { margin: 36px 0 12px; font-size: 21px; }
.hp-legal p { color: var(--hp-soft); max-width: 820px; }
.hp-legal-table { border-collapse: collapse; width: 100%; max-width: 820px; }
.hp-legal-table th, .hp-legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hp-line); vertical-align: top; overflow-wrap: anywhere; }
.hp-legal-table th { width: 38%; color: var(--hp-soft); font-weight: 600; }
.hp-missing { color: #ffcf8a; }
.hp-notice { padding: 12px 16px; border-left: 3px solid #ffcf8a; background: rgba(255, 207, 138, .08); }
@media (max-width: 560px) { .hp-legal-table th { width: auto; display: block; border-bottom: 0; padding-bottom: 2px; } .hp-legal-table td { display: block; padding-top: 2px; } }
