:root {
  --bleu: #0c1f5b;
  --bleu-fonce: #071440;
  --bleu-clair: #1d3a8a;
  --orange: #ff5a1f;
  --orange-fonce: #e04a12;
  --or: #ffb422;
  --or-clair: #ffd27a;
  --blanc: #ffffff;
  --fond: #f6f8ff;
  --encre: #17204a;
  --gris: #4a5378;
  --bordure: #dfe5f5;
  --rayon: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre);
  background: var(--blanc);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); }
.conteneur { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 68px 0; }
h1, h2, h3 { line-height: 1.2; color: var(--bleu); margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 14px; }
.surtitre {
  display: inline-block; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 800;
  color: var(--orange); margin: 0 0 10px;
}
.intro { font-size: 1.14rem; color: var(--gris); max-width: 680px; }
.a-completer { color: var(--orange-fonce); font-style: italic; font-weight: 600; }

/* Boutons */
.bouton {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--orange); color: var(--blanc); text-decoration: none; font-weight: 700;
  border: 0; cursor: pointer; font-size: 1rem; box-shadow: 0 6px 16px rgba(255,90,31,.28);
}
.bouton:hover { background: var(--orange-fonce); }
.bouton-secondaire { background: transparent; color: var(--bleu); border: 2px solid var(--bleu); box-shadow: none; }
.bouton-secondaire:hover { background: var(--bleu); color: var(--blanc); }
.bouton-or { background: var(--or); color: var(--bleu-fonce); box-shadow: none; }
.bouton-or:hover { background: #e9a010; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* En-tête et pied de page */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 3px solid var(--orange); }
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-block; }
.logo img { height: 52px; width: auto; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a { text-decoration: none; color: var(--encre); font-size: .95rem; font-weight: 600; }
nav a:hover, nav a[aria-current="page"] { color: var(--orange); }

footer { padding: 30px 0; background: var(--bleu-fonce); color: #c7d0ee; font-size: .92rem; }
footer a { color: var(--or-clair); }

/* Accueil et en-têtes de page */
.accueil { padding: 80px 0 64px; background: linear-gradient(135deg, #ffffff 0%, #f1f4ff 60%, #fff1e8 100%); }
.entete-page { padding: 64px 0 52px; background: linear-gradient(135deg, #ffffff 0%, #f1f4ff 60%, #fff1e8 100%); }
.fil-ariane { font-size: .9rem; color: var(--gris); margin-bottom: 16px; }
.fil-ariane a { color: var(--gris); }

/* Mise en page deux colonnes */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.deux-colonnes.inverse > :first-child { order: 2; }
.capture { background: var(--blanc); border-radius: var(--rayon); padding: 12px; box-shadow: 0 14px 40px rgba(12,31,91,.14); }
.capture img { border-radius: 10px; }
.capture-legende { font-size: .88rem; color: var(--gris); margin-top: 10px; text-align: center; }

/* Listes */
.coches { list-style: none; padding: 0; margin: 16px 0 0; }
.coches li { position: relative; padding-left: 32px; margin-bottom: 10px; color: var(--encre); }
.coches li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--orange);
}

/* Cartes */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 28px; }
.carte {
  background: var(--blanc); border-radius: var(--rayon); padding: 26px; display: flex; flex-direction: column;
  box-shadow: 0 4px 18px rgba(12,31,91,.08); border-top: 5px solid var(--orange);
}
.carte:nth-child(3n+2) { border-top-color: var(--bleu); }
.carte:nth-child(3n+3) { border-top-color: var(--or); }
.carte p { color: var(--gris); flex-grow: 1; }
.carte .lien { font-weight: 700; text-decoration: none; margin-top: 8px; color: var(--orange); }
.etiquette {
  display: inline-block; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--bleu); background: #e8edff; border-radius: 999px; padding: 4px 12px; font-weight: 800; margin-bottom: 10px;
}
.sous-titre-rubrique { margin-top: 48px; }

/* Fiche produit */
.fiche { background: var(--fond); border-radius: var(--rayon); padding: 26px; border: 2px solid var(--bordure); }
.fiche dt { font-weight: 800; color: var(--bleu); margin-top: 14px; }
.fiche dt:first-child { margin-top: 0; }
.fiche dd { margin: 2px 0 0; color: var(--gris); }

/* Orientation (accueil) */
.orientation { background: var(--fond); }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 24px; }
.choix button {
  text-align: left; padding: 20px; border-radius: var(--rayon); border: 2px solid var(--bordure);
  background: var(--blanc); cursor: pointer; font: inherit; color: var(--encre);
}
.choix button:hover, .choix button[aria-pressed="true"] { border-color: var(--orange); background: #fff4ee; }
.choix button strong { display: block; color: var(--bleu); margin-bottom: 6px; font-size: 1.05rem; }
.resultat {
  margin-top: 24px; padding: 26px; border-radius: var(--rayon); background: var(--blanc);
  border-left: 6px solid var(--orange); display: none; box-shadow: 0 6px 20px rgba(12,31,91,.08);
}
.resultat.visible { display: block; }
.resultat h3 { margin-bottom: 8px; }

/* Bloc d'appel à l'action */
.cta-bloc {
  background: linear-gradient(120deg, var(--bleu) 0%, var(--bleu-clair) 100%);
  color: var(--blanc); border-radius: var(--rayon); padding: 44px; text-align: center; position: relative; overflow: hidden;
}
.cta-bloc::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: var(--orange); opacity: .35;
}
.cta-bloc h2, .cta-bloc h3 { color: var(--blanc); }
.cta-bloc p { color: #dbe3ff; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-bloc a { color: var(--or-clair); }
.cta-bloc .bouton { background: var(--orange); }
.cta-bloc .bouton:hover { background: var(--orange-fonce); }
.cta-bloc .bouton-secondaire { border-color: var(--blanc); color: var(--blanc); }
.cta-bloc .bouton-secondaire:hover { background: var(--blanc); color: var(--bleu); }

/* Liste de fonctionnalités */
.fonctions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.fonction { background: var(--blanc); border-radius: var(--rayon); padding: 22px; box-shadow: 0 3px 14px rgba(12,31,91,.07); border-left: 5px solid var(--or); }
.fonction h3 { font-size: 1.05rem; }
.fonction p { color: var(--gris); margin: 0; font-size: .95rem; }

/* À propos : sections */
.a-propos-section { margin-bottom: 40px; }
.a-propos-section h2 { font-size: 1.55rem; }

/* Pages livre : couverture typographique */
.livre-couverture {
  aspect-ratio: 3 / 4; max-width: 340px; width: 100%; margin: 0 auto; border-radius: 6px 18px 18px 6px;
  background: linear-gradient(160deg, var(--bleu) 0%, var(--bleu-fonce) 70%);
  color: var(--blanc); padding: 36px 30px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: -10px 16px 36px rgba(7,20,64,.35); position: relative; overflow: hidden;
}
.livre-couverture::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--orange);
}
.livre-couverture .titre-livre { font-size: 2.1rem; font-weight: 900; line-height: 1.05; margin: 0; color: var(--blanc); }
.livre-couverture .sous-titre-livre { font-size: 1rem; color: var(--or-clair); margin: 14px 0 0; font-weight: 600; }
.livre-couverture .auteur-livre { font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: #cfd8ff; font-weight: 700; }
.livre-couverture .accent {
  position: absolute; right: -60px; top: 40px; width: 220px; height: 220px; border-radius: 50%;
  background: var(--orange); opacity: .25;
}

/* Piliers et concepts */
.piliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.pilier {
  background: var(--blanc); border-radius: var(--rayon); padding: 22px 22px 22px 70px; position: relative;
  box-shadow: 0 3px 14px rgba(12,31,91,.07);
}
.pilier .numero {
  position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--blanc); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem;
}
.pilier:nth-child(even) .numero { background: var(--bleu); }
.pilier h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pilier p { margin: 0; color: var(--gris); font-size: .95rem; }

.bande-couleur {
  background: linear-gradient(120deg, var(--orange) 0%, var(--or) 100%);
  color: var(--blanc); border-radius: var(--rayon); padding: 30px 34px;
}
.bande-couleur h2, .bande-couleur h3 { color: var(--blanc); }
.bande-couleur p { color: #fff6e8; margin: 0; }

/* Accueil : à la une */
.a-la-une { background: var(--blanc); }
.a-la-une .deux-colonnes { gap: 56px; }
.badge-une {
  display: inline-block; background: var(--or); color: var(--bleu-fonce); font-weight: 800;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

@media (max-width: 760px) {
  .deux-colonnes { grid-template-columns: 1fr; gap: 28px; }
  .deux-colonnes.inverse > :first-child { order: 0; }
  .cta-bloc { padding: 30px 22px; }
  .accueil { padding: 56px 0 44px; }
  .entete-page { padding: 44px 0 36px; }
  .logo img { height: 42px; }
  .livre-couverture { max-width: 260px; }
  .livre-couverture .titre-livre { font-size: 1.7rem; }
}
