:root {
  /* Turquoise : assez soutenu pour un bon contraste sur fond clair (≈ 5:1 sur blanc) */
  --accent: #0e7490;
  --accent-hover: #0b5d75;
  --accent-soft: #e1f1f6;
  --accent-line: #b3d9e6;
  /* Fuchsia du titre principal (≈ 4:1 sur blanc, suffisant pour un grand titre) */
  --title: #e0359a;

  --bg: #fbfcfc;
  --surface: #ffffff;
  --text: #1d2a2e;
  --muted: #5a6b70;
  --border: #e3e9ea;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 45, .04), 0 4px 16px rgba(16, 40, 45, .06);
  --max: 1080px;
  --footer-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Police système : aucun téléchargement, rendu natif sur chaque appareil */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; color: var(--title); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
.box h3 a { color: inherit; }
.box h3 a:hover { color: var(--accent); text-decoration: none; }
p  { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700; font-size: 1.2rem; color: var(--text);
  display: flex; align-items: center; gap: .5rem;
}
.logo:hover { color: var(--text); text-decoration: none; }
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}
.nav { display: flex; gap: 1.75rem; flex: 1; }
.nav a[href="/a-propos.html"] { margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--accent-line); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(800px 360px at 85% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .3rem .75rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--accent); }
.logo-titre { margin: 0; line-height: 0; }
.logo-titre img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }
.lead { font-size: 1.15rem; font-style: italic; color: var(--muted); margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 1rem;
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
/* Bloc encadré réutilisable */
.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.box + .box { margin-top: 24px; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: .6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.placeholder {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), #f4f8fa);
  border: 1px solid var(--accent-line);
  overflow: hidden;
}
/* L'image remplit le cadre, centrée, sans déformation */
.placeholder img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Variante carrée (photo de la page À propos) */
.placeholder.square { aspect-ratio: 1 / 1; }
/* Image sans modale : pas de curseur loupe */
.placeholder.no-zoom img { cursor: default; }

blockquote {
  margin: 0; padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem;
}
blockquote cite { display: block; margin-top: .75rem; font-size: .9rem; font-style: normal; color: var(--muted); }

/* ---------- Mise en page à deux colonnes ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-bottom: 80px;
}
.layout .container { max-width: none; padding: 0; }
.layout .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- Colonne latérale (même style que le témoignage) ---------- */
.sidebar { display: flex; flex-direction: column; }
.side-block {
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  flex: 1;
}
.side-block h2 { font-size: 1.1rem; margin-bottom: .75rem; }
.categories { list-style: none; padding: 0; margin: 0; }
.categories li + li { border-top: 1px solid var(--accent-line); }
.categories a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; color: var(--text); font-weight: 500;
}
.categories a:hover, .categories a[aria-current="page"] { color: var(--accent); text-decoration: none; }
.categories span { color: var(--muted); font-size: .9rem; font-weight: 400; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 56px 24px;
}
.cta p { color: rgba(255, 255, 255, .85); max-width: 50ch; margin: 0 auto 1.75rem; }
.cta .btn { background: #fff; color: var(--accent); }
.cta .btn:hover { background: var(--accent-soft); color: var(--accent-hover); }

/* ---------- Pied de page ---------- */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  height: var(--footer-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: .9rem;
}
/* Réserve la place du footer fixe pour ne pas masquer la fin du contenu */
body { padding-bottom: var(--footer-h); }
.site-footer .container { width: 100%; text-align: center; }

/* ---------- Métadonnées d'article (date, catégorie) ---------- */
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  margin: -.25rem 0 1rem;
  font-size: .9rem; color: var(--muted);
}
.tag {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .2rem .6rem; border-radius: 999px;
}

/* Encart « Consigne » en haut d'un article d'écriture */
.consigne {
  margin: 0 0 1.5rem; padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.consigne p:last-child { margin-bottom: 0; }
.consigne-titre {
  margin-bottom: .4rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}

/* Transcription d'un texte manuscrit, en fin d'article */
.transcription {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Lien « Voir l'article » en bas d'un bloc */
.read-more { margin-top: 1rem; }

/* ---------- Article : images larges ---------- */
.figure { margin: 2rem 0; }
.figure .placeholder { aspect-ratio: 3 / 2; }
.figure figcaption {
  margin-top: .6rem;
  font-size: .9rem; color: var(--muted); text-align: center;
}

/* ---------- Modale d'image (lightbox.js) ---------- */
.placeholder img { cursor: zoom-in; }
.lightbox {
  border: 0; padding: 0; margin: auto;
  max-width: 95vw; max-height: 95vh;
  background: transparent;
  cursor: zoom-out;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 20, 25, .85); }
.lightbox img {
  display: block;
  max-width: 95vw; max-height: calc(95vh - 3rem);
  width: auto; height: auto;
  border-radius: var(--radius);
}
.lightbox-caption {
  margin: .75rem 0 0; text-align: center;
  color: #fff; font-size: .95rem;
}
.lightbox-close {
  position: fixed; top: 12px; right: 16px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff;
  font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ---------- Utilitaires ---------- */
.italic { font-style: italic; }
.bold { font-weight: 700; }

/* ---------- Menu sandwich (mobile, voir menu.js) ---------- */
.menu-toggle, .menu-mobile { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: 56px; }
  .sidebar { padding: 0; }

  /* Le menu du haut et la colonne de droite passent dans le menu sandwich */
  .menu-js .nav, .menu-js .sidebar { display: none; }
  .menu-js .site-header .container { justify-content: flex-end; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
    background: none; border: 0; border-radius: 8px; cursor: pointer;
  }
  .menu-toggle span {
    display: block; height: 2px; border-radius: 2px; background: var(--text);
    transition: transform .2s, opacity .2s;
  }
  .menu-toggle:hover span { background: var(--accent); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .menu-mobile:not([hidden]) {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - 64px - var(--footer-h));
    overflow-y: auto;
    padding: 4px 20px 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(16, 40, 45, .12);
  }
  .menu-mobile-liens { display: flex; flex-direction: column; }
  .menu-mobile-liens a {
    padding: .75rem 0; color: var(--text); font-weight: 500;
  }
  .menu-mobile-liens a + a { border-top: 1px solid var(--border); }
  .menu-mobile-liens a:hover, .menu-mobile-liens a[aria-current="page"] { color: var(--accent); text-decoration: none; }
}
@media (max-width: 760px) {
  .box { padding: 20px; }
  .nav { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0 32px; }
  section { padding: 56px 0; }
}
