/* Solaire Guide — feuille unique, sans dépendance ni police distante. */

:root {
  --fond: #fdfcfa;
  --fond-doux: #f4f1ec;
  --carte: #ffffff;
  --encre: #1d2126;
  --encre-douce: #5a636e;
  --trait: #e3ded5;
  --accent: #d97706;
  --accent-fonce: #a85c04;
  --accent-voile: #fdf3e3;
  --ombre: 0 1px 2px rgba(23, 25, 28, .06), 0 8px 24px rgba(23, 25, 28, .05);
  --rayon: 12px;
  --large: 1160px;
  --lecture: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #14171a;
    --fond-doux: #1b1f23;
    --carte: #1e2226;
    --encre: #e8e6e3;
    --encre-douce: #a2aab4;
    --trait: #2e343a;
    --accent: #f0a029;
    --accent-fonce: #f7b955;
    --accent-voile: #2a2118;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 17px/1.7 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-fonce); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.cadre { max-width: var(--large); margin: 0 auto; padding: 0 24px; }
.etroit { max-width: var(--lecture); }

.sr, .saut:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saut:focus {
  position: fixed; top: 12px; left: 12px; z-index: 50; width: auto; height: auto;
  clip: auto; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 8px;
}

/* ------------------------------------------------------------------ entête */

.entete {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--trait);
}
.entete-ligne { display: flex; align-items: center; gap: 20px; min-height: 64px; }

.marque {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 19px; letter-spacing: -.02em; color: var(--encre); text-decoration: none;
  margin-right: auto;
}
.marque-nom strong { color: var(--accent); font-weight: 700; }
.marque-icone {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 42%, transparent 43%),
              conic-gradient(from 0deg, var(--accent) 0 8%, transparent 8% 12.5%,
                var(--accent) 12.5% 20.5%, transparent 20.5% 25%,
                var(--accent) 25% 33%, transparent 33% 37.5%,
                var(--accent) 37.5% 45.5%, transparent 45.5% 50%,
                var(--accent) 50% 58%, transparent 58% 62.5%,
                var(--accent) 62.5% 70.5%, transparent 70.5% 75%,
                var(--accent) 75% 83%, transparent 83% 87.5%,
                var(--accent) 87.5% 95.5%, transparent 95.5%);
}

.menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14.5px;
  color: var(--encre-douce);
}
.menu a:hover { background: var(--fond-doux); color: var(--encre); }

.menu-bascule, .menu-bouton { display: none; }

@media (max-width: 900px) {
  .menu-bouton {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px; cursor: pointer;
    border: 1px solid var(--trait); border-radius: 8px;
  }
  .menu-bouton span:not(.sr) { display: block; height: 2px; background: var(--encre); border-radius: 2px; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--carte); border-bottom: 1px solid var(--trait); box-shadow: var(--ombre);
  }
  .menu-bascule:checked ~ .menu { display: block; }
  .menu ul { flex-direction: column; padding: 8px 16px 16px; }
  .menu a { padding: 12px 8px; font-size: 16px; }
}

/* ----------------------------------------------------------------- accueil */

.bandeau {
  background:
    radial-gradient(900px 340px at 78% -10%, var(--accent-voile), transparent 70%),
    var(--fond-doux);
  border-bottom: 1px solid var(--trait);
  padding: clamp(48px, 8vw, 92px) 0;
}
.bandeau h1 {
  margin: 0 0 16px; max-width: 16ch;
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.02em;
}
.chapo { margin: 0; max-width: 60ch; font-size: clamp(17px, 2vw, 20px); color: var(--encre-douce); }
.bandeau-actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

.bouton {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.bouton:hover { background: var(--accent-fonce); color: #fff; transform: translateY(-1px); }
.bouton.creux { background: transparent; color: var(--encre); border-color: var(--trait); }
.bouton.creux:hover { background: var(--carte); color: var(--encre); border-color: var(--accent); }

.rubrique { padding: clamp(40px, 6vw, 68px) 0 0; }
.rubrique:last-of-type { padding-bottom: clamp(48px, 7vw, 88px); }
.rubrique h2 {
  margin: 0 0 24px; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.015em;
  padding-bottom: 12px; border-bottom: 2px solid var(--trait);
}

.cartes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.carte a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  text-decoration: none; color: inherit; box-shadow: var(--ombre);
  transition: transform .18s ease, border-color .18s ease;
}
.carte a:hover { transform: translateY(-3px); border-color: var(--accent); }
.carte-image { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--fond-doux); }
.carte-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carte-image.vide {
  background: linear-gradient(135deg, var(--accent-voile), var(--fond-doux));
}
.carte-texte { display: block; padding: 16px 18px 20px; }
.carte-titre {
  display: block; font-size: 17.5px; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 8px;
}
.carte a:hover .carte-titre { color: var(--accent-fonce); }
.carte-resume {
  display: block; font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px; line-height: 1.55; color: var(--encre-douce);
}

/* ---------------------------------------------------------------- article */

.article { padding: 36px 0 clamp(48px, 7vw, 80px); }

.fil {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px; color: var(--encre-douce); margin-bottom: 20px;
}
.fil a { color: var(--encre-douce); }
.fil span { margin: 0 6px; }
.fil span:last-child { margin: 0; }

.article h1 {
  margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.14; letter-spacing: -.02em;
}
.signature {
  margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--trait);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px; color: var(--encre-douce);
}

.prose { font-size: 17.5px; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.35em; }
.prose h2 {
  margin: 2.2em 0 .7em; font-size: clamp(23px, 3vw, 30px); line-height: 1.22; letter-spacing: -.015em;
}
.prose h3 { margin: 1.9em 0 .6em; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.3; }
.prose h4 { margin: 1.7em 0 .5em; font-size: 19px; }
.prose h5 { margin: 1.6em 0 .5em; font-size: 17.5px; }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.5em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose sup, .prose sub { line-height: 0; }

.prose figure {
  margin: 2em 0; padding: 0;
  background: var(--fond-doux); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden;
}
.prose figure img { display: block; width: 100%; }
.prose figcaption {
  padding: 12px 16px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px; line-height: 1.5; color: var(--encre-douce);
}
.prose > img, .prose p > img { border-radius: var(--rayon); margin: 1.5em 0; }

.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent); color: var(--encre-douce); font-style: italic;
}

.encart {
  margin: 1.9em 0; padding: 18px 22px;
  border-radius: var(--rayon); border-left: 4px solid var(--accent);
  background: var(--accent-voile);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15.5px; line-height: 1.65;
}
.encart.avertissement { border-left-color: #c2410c; }
.encart.reussite { border-left-color: #15803d; }
.encart p:last-child { margin-bottom: 0; }

.tableau { margin: 1.9em 0; overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon); }
.tableau table {
  width: 100%; border-collapse: collapse;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px;
}
.tableau th, .tableau td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau thead th { background: var(--fond-doux); font-weight: 600; white-space: nowrap; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau caption { padding: 12px 14px; text-align: left; font-size: 14px; color: var(--encre-douce); }

.suite {
  margin-top: 56px; padding: 24px 26px;
  background: var(--fond-doux); border: 1px solid var(--trait); border-radius: var(--rayon);
}
.suite h2 { margin: 0 0 14px; font-size: 19px; letter-spacing: -.01em; }
.suite ul { margin: 0; padding-left: 1.2em; }
.suite li { margin-bottom: .45em; }
.suite li::marker { color: var(--accent); }

.vide-404 { padding: clamp(64px, 12vw, 130px) 24px; text-align: center; }
.vide-404 h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.vide-404 p { color: var(--encre-douce); }
.vide-404 .bouton { color: #fff; margin-top: 12px; }

/* -------------------------------------------------------------------- pied */

.pied { margin-top: 0; background: var(--fond-doux); border-top: 1px solid var(--trait); }
.accueil .pied { margin-top: 0; }
.pied-grille {
  display: grid; gap: 32px; padding-top: 52px; padding-bottom: 40px;
  grid-template-columns: 1.6fr repeat(3, 1fr);
}
@media (max-width: 900px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied-grille { grid-template-columns: 1fr; } }
.pied h2 {
  margin: 0 0 14px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--encre-douce);
}
.pied p { margin: 0; font-size: 15.5px; color: var(--encre-douce); }
.pied-liens { list-style: none; margin: 0; padding: 0; }
.pied-liens li { margin-bottom: 9px; }
.pied-liens a {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14.5px;
  color: var(--encre-douce); text-decoration: none; line-height: 1.4;
}
.pied-liens a:hover { color: var(--accent); text-decoration: underline; }
.pied-bas {
  padding: 18px 24px 26px; border-top: 1px solid var(--trait);
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline;
  justify-content: space-between;
}
.pied-bas p {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px; color: var(--encre-douce);
}
.pied-bas a { color: var(--encre-douce); text-decoration: none; }
.pied-bas a:hover { color: var(--accent); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
