/* Claude AC — feuille de style unique. Mobile-first, zéro dépendance.
 * Palette : bleu froid profond + cyan, fond glacé très clair. */

:root {
  --encre: #0d2b3e;
  --encre-2: #1f4258;
  --texte: #24313a;
  --texte-doux: #586b78;
  --fond: #f4f9fb;
  --carte: #ffffff;
  --bord: #d8e6ee;
  --accent: #0b7fa3;
  --accent-fonce: #086481;
  --accent-clair: #e3f3f8;
  --lien: #0d6291;
  --ok: #1c7a4a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
}

.conteneur { max-width: 60rem; margin: 0 auto; padding: 0 1.1rem; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--encre); line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 1.2rem 0 0.8rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.3rem 0 0.4rem; }

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

p { margin: 0.7rem 0; }
ul { margin: 0.6rem 0 0.9rem; padding-left: 1.3rem; }
li { margin: 0.3rem 0; }

.chapo { font-size: 1.12rem; color: var(--encre-2); }
.note { font-size: 0.92rem; color: var(--texte-doux); }
.budget { background: var(--accent-clair); border-left: 4px solid var(--accent); padding: 0.55rem 0.9rem; border-radius: 0 6px 6px 0; }
.voir-aussi { font-size: 0.95rem; color: var(--texte-doux); margin-top: 1.6rem; border-top: 1px solid var(--bord); padding-top: 0.9rem; }
.prec-suiv { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; margin-top: 1.4rem; }

/* --- En-tête --- */
.entete { background: var(--encre); }
.entete-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.logo { font-family: Georgia, serif; font-size: 1.35rem; color: #fff; text-decoration: none; }
.logo span { color: #56d0e8; }
.nav-principale { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.nav-principale a { color: #c8dde9; text-decoration: none; font-size: 0.95rem; }
.nav-principale a:hover { color: #fff; }
.lien-langue { border: 1px solid #3f6379; border-radius: 4px; padding: 0.05rem 0.45rem; }

/* --- Fil d'Ariane --- */
.fil-ariane { font-size: 0.85rem; color: var(--texte-doux); padding: 0.6rem 0 0; }
.fil-ariane a { color: var(--texte-doux); }
.fil-ariane span { color: var(--encre-2); }

/* --- Héros --- */
.hero { background: linear-gradient(180deg, var(--encre) 0%, #14425c 100%); color: #e5f0f6; padding: 2.6rem 0 2.8rem; }
.hero h1 { color: #fff; font-size: 2.1rem; margin: 0 0 0.6rem; }
.hero .chapo { color: #bcd6e4; max-width: 44rem; }

/* --- Cartes --- */
.grille-cartes { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin: 1rem 0 1.6rem; }
.carte { display: block; background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 1rem 1.1rem; text-decoration: none; color: var(--texte); transition: border-color 0.15s, transform 0.15s; }
.carte:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--texte); }
.carte-icone svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.carte-titre { display: block; font-family: Georgia, serif; font-size: 1.08rem; color: var(--encre); margin: 0.35rem 0 0.25rem; }
.carte-texte { display: block; font-size: 0.9rem; color: var(--texte-doux); }

/* --- Listes de liens (hubs, index) --- */
.grille-liens { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.35rem 1rem; }
.grille-liens li { margin: 0; }
.grille-liens a { display: block; padding: 0.3rem 0.5rem; border-radius: 6px; text-decoration: none; }
.grille-liens a:hover { background: var(--accent-clair); }
.liste-guides { list-style: none; padding: 0; }
.liste-guides li { padding: 0.35rem 0; border-bottom: 1px solid var(--bord); }
.liste-guides a { text-decoration: none; }

/* --- Tableaux --- */
.defile { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 0.8rem 0; background: var(--carte); font-size: 0.95rem; }
th, td { border: 1px solid var(--bord); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
thead th { background: var(--encre); color: #fff; font-weight: 600; }
.fiche { max-width: 34rem; }
.fiche th { width: 10.5rem; background: #e9f2f7; color: var(--encre); }
.comparatif { min-width: 52rem; }
tbody tr:nth-child(even) { background: #f8fcfd; }

/* --- Encart lead --- */
.encart-lead { background: var(--carte); border: 1px solid var(--bord); border-top: 4px solid var(--accent); border-radius: 10px; padding: 1.1rem 1.2rem 1.2rem; margin: 2.2rem 0 1.6rem; }
.encart-lead h2 { margin-top: 0.2rem; }
.lead-ligne { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.55rem 0; }
.lead-ligne input { flex: 1 1 11rem; padding: 0.6rem 0.7rem; border: 1px solid var(--bord); border-radius: 7px; font-size: 1rem; }
.lead-ligne input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.lead-ligne button { flex: 1 1 12rem; background: var(--accent); color: #fff; border: 0; border-radius: 7px; padding: 0.65rem 1rem; font-size: 1rem; font-weight: 600; cursor: pointer; }
.lead-ligne button:hover { background: var(--accent-fonce); }
.lead-ligne button:disabled { opacity: 0.6; cursor: wait; }
.lead-consentement { display: block; font-size: 0.85rem; color: var(--texte-doux); margin-top: 0.5rem; }
.lead-consentement input { margin-right: 0.35rem; }
.lead-erreur { color: #b3261e; font-size: 0.9rem; }
.lead-merci { color: var(--ok); font-weight: 600; }

/* --- Sources --- */
.sources { font-size: 0.92rem; color: var(--texte-doux); margin-top: 1.8rem; }
.sources h2 { font-size: 1.05rem; }

/* --- Pied --- */
.pied { background: var(--encre); color: #93aebd; margin-top: 3rem; padding: 1.6rem 0 2rem; font-size: 0.88rem; }
.pied a { color: #c8dde9; }
.pied-sections { color: #c8dde9; }

/* --- 404 --- */
.page-404 { text-align: center; padding: 3rem 0; }

/* --- Écrans larges --- */
@media (min-width: 640px) {
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.6rem; }
  .grille-cartes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grille-cartes { grid-template-columns: repeat(3, 1fr); }
}

/* --- Impression --- */
@media print {
  .entete, .pied, .encart-lead { display: none; }
}
