:root {
  --blue-900: #10243e;
  --blue-700: #1c3f66;
  --blue-600: #2a5788;
  --blue-500: #3b74ac;
  --blue-100: #eaf2fa;
  --ink: #1c2530;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --line: #dde5ee;
  --accent: #d97a2b;
  --accent-dark: #b8621e;
  --radius: 10px;
  --maxw: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.25;
}
h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; padding-top: .3rem; border-top: 1px solid var(--line); }
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; color: var(--blue-700); clear: both; }

p { margin: 0 0 1rem; color: var(--ink); }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: .35rem; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--blue-900);
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .2px;
}
.brand img { height: 2.4rem; width: auto; display: block; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: #dce6f2;
  padding: .5rem .8rem;
  border-radius: 6px;
  font-size: .95rem;
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 6px;
  padding: .4rem .6rem;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: #fff;
  padding: 3rem 0;
}
.hero h1 { color: #fff; }
.hero p.lead { color: #dce6f2; max-width: 46em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.badge {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; margin-bottom: 1.25rem; }
.btn {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.btn-outline-dark { background: transparent; border-color: var(--blue-500); color: var(--blue-700); }
.btn-outline-dark:hover { background: var(--blue-100); text-decoration: none; }

.contact-form { max-width: 480px; margin: 1.8rem 0; }
.contact-form .form-row { margin-bottom: 1.1rem; }
.contact-form label { display: block; font-weight: 600; color: var(--blue-700); margin-bottom: .35rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.contact-form textarea { resize: vertical; }

/* Main content layout */
main { padding: 2.5rem 0 4rem; }
.page-title { margin-bottom: .3rem; }
.page-kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: .4rem;
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.side-nav {
  position: sticky;
  top: 5.2rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.side-nav h4 { margin: 0 0 .6rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 0 0 .35rem; }
.side-nav li.side-nav-sub { margin-left: .9rem; font-size: .87rem; }
.side-nav a { display: block; padding: .3rem .4rem; border-radius: 6px; font-size: .93rem; color: var(--blue-700); }
.side-nav a:hover { background: var(--blue-100); text-decoration: none; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: var(--paper-soft);
}
.card h3 { margin-top: 0; }

/* Feature list — for non-clickable highlights, visually distinct from .card-grid so it's not mistaken for clickable links */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; padding: 0; }
.feature-list li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; padding-left: 1.7rem; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: .15rem; color: var(--accent); font-weight: 700; }
.feature-list strong { flex: 0 0 180px; color: var(--blue-700); }
.feature-list li > *:not(strong) { flex: 1 1 300px; }

.callout {
  border-left: 4px solid var(--blue-500);
  background: var(--blue-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}
.callout.warn {
  border-left-color: var(--accent);
  background: #fdf1e6;
}
.callout p:last-child { margin-bottom: 0; }

.brief {
  border-left: 4px solid var(--accent);
  background: var(--paper-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}
.brief-label {
  display: block;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: .5rem;
}
.brief p {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
th { background: var(--blue-100); color: var(--blue-900); }
tr:nth-child(even) td { background: #fafcfe; }

.tag { display: inline-block; background: var(--blue-100); color: var(--blue-700); border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; margin: 0 .3rem .3rem 0; }

.container.narrow { max-width: 760px; }

blockquote {
  margin: 1.2rem 0;
  padding: .9rem 1.2rem;
  border-left: 4px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: .96rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p:last-child { margin-bottom: 0; }

.footnotes {
  font-size: .85rem;
  color: var(--ink-soft);
  border-left: 4px solid var(--line);
  background: var(--paper-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.2rem;
  margin: 1.4rem 0;
}
.footnotes p { margin-bottom: .4rem; }
.footnotes p:last-child { margin-bottom: 0; }
p.footnotes { margin-top: -.6rem; border: none; background: none; padding: 0; border-radius: 0; }

.figure { margin: 1.6rem 0; }
.figure img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 auto;
}
.figure figcaption {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-top: .5rem;
  line-height: 1.5;
}

.humor {
  float: right;
  max-width: 200px;
  margin: 0 0 1rem 1.4rem;
  text-align: center;
}
.humor img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(16,36,62,.08);
}
.humor figcaption {
  font-size: .78rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: .4rem;
}
@media (max-width: 640px) {
  .humor { float: none; max-width: 260px; margin: 1rem auto; }
}

.link-check { border-bottom: 2px dashed var(--accent); text-decoration: none; }
.link-check:hover { text-decoration: none; border-bottom-style: solid; }
.link-check-flag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: #fdf1e6;
  border-radius: 999px;
  padding: 0 .4rem;
  margin-left: .3rem;
  vertical-align: middle;
}

footer.site-footer {
  background: var(--blue-900);
  color: #b9c8db;
  padding: 2.2rem 0;
  margin-top: 3rem;
  font-size: .92rem;
}
footer.site-footer a { color: #dce6f2; }
footer.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
footer.site-footer .ai-credit { display: block; font-size: 0.82em; opacity: 0.7; margin-top: 0.2rem; }

video, iframe.video { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); border: 1px solid var(--line); }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  nav.main-nav { display: none; width: 100%; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; }
  .nav-toggle { display: inline-block; }
  .site-header .container { flex-wrap: wrap; }
}

/* --- TEST : menu principal en colonne à gauche (pages d'essai uniquement pour l'instant) --- */
.site-shell { display: flex; align-items: stretch; min-height: 100vh; }
.site-shell .site-header {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 230px;
  flex: 0 0 230px;
  height: 100vh;
  overflow-y: auto;
  border-bottom: none;
  border-right: 3px solid var(--accent);
}
.site-shell .site-header .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  padding: 1.5rem 1.2rem;
}
.site-shell nav.main-nav { display: block; width: 100%; margin-top: 1.8rem; }
.site-shell nav.main-nav ul { flex-direction: column; width: 100%; gap: .15rem; }
.site-shell nav.main-nav a { display: block; }
.site-shell .nav-toggle { display: none; }
.site-shell .site-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.site-shell .site-main main { flex: 1 0 auto; }
.site-shell footer.site-footer { margin-top: auto; }

@media (max-width: 820px) {
  .site-shell { display: block; min-height: 0; }
  .site-shell .site-header {
    position: sticky;
    width: auto;
    flex: initial;
    height: auto;
    overflow-y: visible;
    border-right: none;
    border-bottom: 3px solid var(--accent);
  }
  .site-shell .site-header .container { flex-direction: row; align-items: center; height: auto; padding: .75rem 1.5rem; }
  .site-shell nav.main-nav { display: none; margin-top: 0; }
  .site-shell nav.main-nav.open { display: block; }
  .site-shell .nav-toggle { display: inline-block; }
}
