:root {
  --navy-950: #03142f;
  --navy-900: #061d42;
  --navy-800: #09295a;
  --blue-700: #0b62c4;
  --blue-600: #087fe8;
  --cyan-400: #20c5e8;
  --cyan-100: #e9faff;
  --ink: #132238;
  --muted: #5b6d84;
  --paper: #f7faff;
  --white: #ffffff;
  --line: #dbe5f0;
  --success: #167a5b;
  --shadow: 0 20px 60px rgba(3, 20, 47, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 4px; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--white); color: var(--navy-950); padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(219,229,240,.8); backdrop-filter: blur(14px); }
.navbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; letter-spacing: -.03em; color: var(--navy-950); }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand strong { font-size: 1.05rem; }
.brand span { display: block; color: var(--blue-700); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); color: var(--navy-900); border-radius: 10px; padding: .55rem .7rem; }
.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; padding: .55rem .75rem; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue-700); background: var(--cyan-100); }
.nav-cta { margin-left: .35rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; border-radius: 999px; padding: .82rem 1.15rem; text-decoration: none; font-weight: 760; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: 0 10px 24px rgba(8,127,232,.24); }
.btn-primary:hover { background: var(--blue-700); }
.btn-dark { background: var(--navy-950); color: var(--white); }
.btn-don { background: var(--success); color: var(--white); box-shadow: 0 10px 24px rgba(22,122,91,.26); }
.btn-don:hover { background: #0f6449; }
.nav-don { margin-left: .35rem; }

/* Liens de menu neutres, sans couleur de bouton */
.nav-links .nav-cta a,
.nav-links .nav-don a {
  border-radius: 10px;
  padding: .55rem .75rem;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: .9rem;
  font-weight: 650;
}
.nav-links .nav-cta a:hover,
.nav-links .nav-don a:hover,
.nav-links .nav-cta a[aria-current="page"],
.nav-links .nav-don a[aria-current="page"] {
  background: transparent;
  color: var(--blue-700);
}

/* Bandeau d'appel au don */
.don-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid #bfe6d8;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #eafaf3 0%, #e3f3fd 100%);
  box-shadow: 0 16px 36px rgba(3, 20, 47, .08);
}
.don-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.don-cta p { color: var(--muted); max-width: 560px; margin-top: .4rem; }
.don-cta .btn { white-space: nowrap; }
@media (max-width: 680px) {
  .don-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .don-cta p { margin-inline: auto; }
}
.btn-light { background: var(--white); color: var(--navy-900); border: 1px solid var(--line); }
.btn-ghost { color: var(--blue-700); padding-inline: .3rem; }
.btn-small { padding: .6rem .85rem; font-size: .86rem; }

.hero { position: relative; overflow: hidden; background: var(--navy-950); color: var(--white); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .42; background: radial-gradient(circle at 75% 15%, rgba(32,197,232,.3), transparent 35%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(4.5rem, 10vw, 8rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--cyan-400); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { max-width: 700px; margin: 1rem 0 1.25rem; font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.08; letter-spacing: -.04em; }
.hero h1 em { color: var(--cyan-400); font-style: normal; }
.hero-lead { max-width: 640px; margin: 0; color: #d5e6fa; font-size: clamp(1.05rem, 2vw, 1.26rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; color: #9eb6d7; font-size: .86rem; }
.hero-card { position: relative; padding: 1rem; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); background: rgba(255,255,255,.08); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius-lg) - 8px); }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-sm { padding-block: 3rem; }
.section-heading { max-width: 720px; margin-bottom: 2.4rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-kicker { color: var(--blue-700); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: .55rem 0 1rem; color: var(--navy-950); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.055em; }
h3 { margin: 0 0 .55rem; color: var(--navy-950); line-height: 1.15; letter-spacing: -.025em; }
.lead { color: var(--muted); font-size: 1.05rem; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.stat { padding: 1.5rem; background: var(--white); }
.stat strong { display: block; color: var(--blue-700); font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.06em; }
.stat span { color: var(--muted); font-size: .9rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: 0 10px 35px rgba(3,20,47,.045); }
.card:hover { border-color: #b9d4ef; }
.card-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 1rem; border-radius: 13px; background: var(--cyan-100); color: var(--blue-700); font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.card-link { display: inline-flex; margin-top: 1rem; color: var(--blue-700); font-weight: 750; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.media-frame { overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-900); box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.list-check { display: grid; gap: .8rem; list-style: none; margin: 1.35rem 0 0; padding: 0; }
.list-check li { position: relative; padding-left: 2rem; color: var(--muted); }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: .05rem; display: grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; background: var(--cyan-100); color: var(--blue-700); font-size: .8rem; font-weight: 900; }

.band { background: var(--navy-900); color: var(--white); }
.band h2, .band h3 { color: var(--white); }
.band .lead, .band .text-muted { color: #bdd1ea; }
.band .section-kicker { color: var(--cyan-400); }

.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .35rem .65rem; background: var(--cyan-100); color: var(--blue-700); font-size: .75rem; font-weight: 800; }
.pill-dark { background: rgba(32,197,232,.14); color: var(--cyan-400); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }

.page-hero { padding-block: 4.2rem 3.2rem; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: var(--white); }
.page-hero h1 { max-width: 800px; margin: .7rem 0 1rem; color: var(--white); font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.page-hero p { max-width: 720px; margin: 0; color: #c7dbf3; font-size: 1.1rem; }
.breadcrumb { color: #9eb6d7; font-size: .85rem; }
.breadcrumb a { color: inherit; text-decoration: none; }

.value-card { height: 100%; }
.value-card .value-word { display: block; margin-bottom: .7rem; color: var(--blue-700); font-weight: 900; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }

.academy-filter { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; }
.filter-btn { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .8rem; background: var(--white); color: var(--muted); font-weight: 700; }
.filter-btn[aria-pressed="true"], .filter-btn:hover { border-color: var(--blue-600); background: var(--blue-600); color: var(--white); }
.filter-status { margin: .2rem 0 1.2rem; color: var(--muted); font-size: .92rem; font-weight: 650; }
.module-list { display: grid; gap: .9rem; }
.module { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.module:not([hidden]) { animation: module-in .35s ease; }
@keyframes module-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.module[hidden] { display: none; }
.module summary { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 1.35rem; cursor: pointer; list-style: none; }
.module summary::-webkit-details-marker { display: none; }
.module summary:hover { background: #fbfdff; }
.module-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--navy-950); color: var(--cyan-400); font-weight: 900; }
.module-title { color: var(--navy-950); font-weight: 800; }
.module-meta { display: block; color: var(--muted); font-size: .82rem; font-weight: 500; }
.module-chevron { color: var(--blue-700); font-size: 1.25rem; }
.module-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 0 1.35rem 1.4rem 4.8rem; }
.module-body h4 { margin: 1rem 0 .4rem; color: var(--navy-900); font-size: .95rem; }
.module-body ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.module-body p { margin: 0; color: var(--muted); }
.notice { border-left: 4px solid var(--cyan-400); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem; background: var(--cyan-100); color: var(--navy-900); }

.quiz { margin-top: .4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; background: #fbfdff; }
.quiz-question { margin: 0 0 .8rem; color: var(--navy-900); font-weight: 750; }
.quiz-options { display: grid; gap: .5rem; }
.quiz-options button { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; background: var(--white); color: var(--ink); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.quiz-options button:hover:not(:disabled) { border-color: var(--blue-600); }
.quiz-options button:disabled { cursor: default; opacity: .7; }
.quiz-options button.is-correct { border-color: var(--success); background: #e8f6f0; color: var(--success); font-weight: 750; opacity: 1; }
.quiz-options button.is-wrong { border-color: #b23b2e; background: #fbeae8; color: #8f2f24; opacity: 1; }
.quiz-feedback { margin: .8rem 0 0; color: var(--muted); font-size: .92rem; }
.quiz-feedback::before { content: "→ "; color: var(--blue-700); font-weight: 800; }

.timeline { position: relative; display: grid; gap: 1rem; }
.timeline::before { content: ""; position: absolute; top: .7rem; bottom: .7rem; left: 18px; width: 2px; background: #c5d9ed; }
.timeline-item { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 1rem; }
.timeline-dot { z-index: 1; width: 38px; height: 38px; border: 7px solid var(--paper); border-radius: 50%; background: var(--blue-600); }
.timeline-content { padding: 0 0 1.5rem; }
.timeline-content p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.gallery figure { min-height: 180px; margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--navy-900); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: -9999px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: start; }
.contact-list { display: grid; gap: .8rem; margin-top: 1.4rem; }
.contact-item { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.contact-item strong { display: block; color: var(--navy-950); }
.contact-item span { color: var(--muted); font-size: .9rem; }
.form-card { padding: clamp(1.4rem, 4vw, 2.3rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { color: var(--navy-900); font-size: .88rem; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .8rem; background: var(--white); color: var(--ink); }
.field textarea { min-height: 135px; resize: vertical; }
.field small { color: var(--muted); }
.form-status { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; min-height: 1.4rem; margin-top: .8rem; color: var(--success); font-weight: 700; }

.site-footer { padding-block: 3rem 1.4rem; background: var(--navy-950); color: #aac1de; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand span { color: var(--cyan-400); }
.site-footer h3 { color: var(--white); font-size: .9rem; }
.footer-links { display: grid; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: #aac1de; font-size: .9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.13); font-size: .8rem; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 2.8rem; font-size: 2rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.25rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.3rem; }

/* Conseil du jour (accueil, ruban en haut du héros) */
.hero-tip-wrap { padding-top: clamp(1.2rem, 3vw, 2.2rem); }
.hero-tip-wrap + .hero-grid { padding-top: clamp(2.2rem, 5vw, 4rem); }
.daily-tip { position: relative; display: flex; gap: .85rem; align-items: flex-start; max-width: 760px; margin-inline: auto; overflow: hidden; padding: .95rem 1.3rem 1.05rem; border-radius: 20px; background: linear-gradient(115deg, var(--cyan-400), #7fe6f8 60%, var(--cyan-400)); color: var(--navy-950); box-shadow: 0 14px 34px rgba(32,197,232,.38); animation: tip-pop .5s ease, tip-float 5s ease-in-out .6s infinite; }
@keyframes tip-pop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes tip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.daily-tip::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: tip-shine 4.5s ease-in-out infinite; }
@keyframes tip-shine { 0% { transform: translateX(-130%) skewX(-18deg); } 60%, 100% { transform: translateX(260%) skewX(-18deg); } }
.daily-tip-icon { flex: 0 0 auto; font-size: 1.6rem; line-height: 1.2; filter: drop-shadow(0 2px 3px rgba(3,20,47,.25)); }
.daily-tip-label { display: inline-flex; margin-bottom: .3rem; padding: .18rem .65rem; border-radius: 999px; background: var(--navy-950); color: var(--cyan-400); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.daily-tip p { margin: 0; font-size: clamp(1rem, 2.2vw, 1.12rem); font-weight: 650; line-height: 1.4; }

/* Flux cyberveille (vulnérabilités) */
.cve-toolbar { margin-bottom: 1.2rem; }
.cve-status-loading { color: var(--muted); }
.cve-list { display: grid; gap: .8rem; }
.cve-item { border: 1px solid var(--line); border-left: 4px solid var(--blue-600); border-radius: var(--radius-sm); padding: 1rem 1.15rem; background: var(--white); animation: module-in .35s ease; }
.cve-item[hidden] { display: none; }
.cve-item h3 { margin: 0 0 .3rem; font-size: 1rem; }
.cve-item p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.cve-meta { font-size: .8rem; color: var(--blue-700); font-weight: 750; }
.cve-advice { border-top: 1px dashed var(--line); padding-top: .55rem; }
.badge-alert { display: inline-flex; margin-left: .4rem; padding: .12rem .5rem; border-radius: 999px; background: #fbeae8; color: #8f2f24; font-size: .72rem; font-weight: 800; vertical-align: middle; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 20px; right: 20px; top: 70px; display: none; flex-direction: column; align-items: stretch; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .75rem; }
  .nav-cta { margin: 0; }
  .hero-grid, .split, .split.reverse, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .brand strong { font-size: .95rem; }
  .brand img { width: 42px; height: 42px; }
  .stats, .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .stat { padding: 1.1rem; }
  .hero-grid { padding-block: 3.4rem 4rem; }
  .hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-card { transform: none; }
  .page-hero { padding-block: 3rem 2.4rem; }
  .module summary { padding: 1rem; gap: .7rem; }
  .module-body { grid-template-columns: 1fr; padding-left: 1.35rem; }
  .module summary { grid-template-columns: auto 1fr; }
  .module-chevron { grid-column: 2; grid-row: 1; justify-self: end; }
  .quiz-options button { padding: .7rem .8rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 1; }
  .contact-item { flex-wrap: wrap; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; display: grid; gap: .5rem; }
}
@media (max-width: 420px) {
  .filter-btn { flex: 1 1 calc(50% - .55rem); text-align: center; justify-content: center; }
  .academy-filter { gap: .45rem; }
}
html, body { overflow-x: clip; }
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }
.footer-bottom a, .contact-item strong { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
