/* ==========================================================================
   Charon IA · feuille de style unique pour tout le site
   Jean-François Raymond — L'Humain aux commandes
   Claude Opus 5.5 (Anthropic) — outil et partenaire de connaissance

   Règles :
   - Une seule feuille pour toutes les pages.
   - Polices hébergées sur le site (dossier fonts/, licence SIL OFL) :
     aucune requête vers l'extérieur.
   - Les couleurs sont définies une seule fois, dans :root, plus bas.
     Pour changer la palette, on change seulement ces lignes-là.
   ========================================================================== */


/* 1. POLICES ------------------------------------------------------------- */
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("fonts/playfair-display-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("fonts/playfair-display-latin-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("fonts/dm-sans-latin-600.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-700.woff2") format("woff2"); }


/* 2. COULEURS (palette « lapis et bronze » de l'obole) --------------------- */
:root {
  --creme:   #faf8f5;   /* fond de page */
  --carte:   #fdfbf7;   /* fond des cartes */
  --voile:   #f3eee4;   /* fond des sections alternées (crème doré) */
  --ligne:   #e6ded3;   /* bordures fines */
  --texte:   #2d2620;   /* texte courant */
  --gris:    #6b5f55;   /* texte secondaire */
  --lapis:   #162c4d;   /* titres, boutons : couleur de CHARON IA */
  --bronze:  #6e4f17;   /* surtitres, détails : famille de l'or */
  --or:      #b8892e;   /* l'obole : filets et décor seulement, jamais du petit texte */

  --titre: "Playfair Display", Georgia, serif;
  --corps: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --rayon: 16px;
}


/* 3. BASE ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--texte); font: 17px/1.7 var(--corps); }
h1, h2, h3 { font-family: var(--titre); color: var(--lapis); line-height: 1.2; }
a { color: var(--lapis); }
img { max-width: 100%; height: auto; }
.enveloppe { max-width: 1080px; margin: 0 auto; padding: 0 20px; }


/* 4. EN-TÊTE ------------------------------------------------------------- */
.entete { position: sticky; top: 0; z-index: 10; background: var(--creme); border-bottom: 1px solid var(--ligne); }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titre); font-weight: 700; font-size: 1.2rem; color: var(--lapis); }
.marque img { width: 44px; height: 44px; }
.menu { display: flex; gap: 20px; flex-wrap: wrap; }
.menu a { text-decoration: none; font-size: .92rem; color: var(--gris); }
.menu a:hover { color: var(--lapis); }
@media (max-width: 820px) { .menu { display: none; } }


/* 5. OUVERTURE (haut de la page d'accueil) -------------------------------- */
.ouverture { padding: 56px 20px 48px; text-align: center; }
.ouverture .embleme { width: 260px; height: 260px; display: block; margin: 0 auto; }
.ouverture h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 36px auto 18px; max-width: 820px; }
.chapeau { font-size: 1.15rem; max-width: 720px; margin: 0 auto; }
.boutons { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bouton { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid var(--lapis); color: var(--lapis); }
.bouton.plein { background: var(--lapis); color: var(--creme); }


/* 6. SECTIONS ------------------------------------------------------------ */
section { padding: 72px 0; border-top: 1px solid var(--ligne); }
section.voile { background: var(--voile); }
.surtitre { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); font-weight: 700; margin: 0 0 10px; }
section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 24px; max-width: 780px; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 1.1em; }
.citation { border-left: 4px solid var(--or); padding: 6px 0 6px 22px; margin: 34px 0; font-family: var(--titre); font-size: 1.3rem; font-style: italic; color: var(--lapis); max-width: 760px; }
.centre { text-align: center; }
.centre h2, .centre .prose { margin-left: auto; margin-right: auto; }


/* 7. CARTES ET GRILLES ---------------------------------------------------- */
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 30px; }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 26px; }
.carte h3 { margin: 0 0 10px; font-size: 1.25rem; }
.carte p { margin: 0; }
.carte .num { display: block; font-family: var(--titre); font-size: 2rem; color: var(--or); line-height: 1; margin-bottom: 10px; }
.carte .etiquette { display: inline-block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin-bottom: 8px; }
.carte.filet { border-top: 5px solid var(--or); }
.grand { font-family: var(--titre); font-size: 1.3rem; color: var(--lapis); line-height: 1.5; }


/* 8. MÉTHODE (étapes numérotées) ----------------------------------------- */
.etapes { counter-reset: e; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 30px; }
.etapes li { display: flex; gap: 16px; align-items: flex-start; background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 20px; }
.etapes li::before { counter-increment: e; content: counter(e); flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--or); color: var(--creme); font-family: var(--titre); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.etapes h3 { margin: 0 0 4px; font-size: 1.1rem; }
.etapes p { margin: 0; font-size: .95rem; }


/* 9. FONDATEUR ----------------------------------------------------------- */
.fondateur { display: grid; gap: 30px; grid-template-columns: 1fr 1.6fr; align-items: start; }
@media (max-width: 820px) { .fondateur { grid-template-columns: 1fr; } }
.fiche ul { margin: 0; padding-left: 18px; font-size: .95rem; }
.fiche li { margin-bottom: 6px; }
.role { color: var(--bronze); font-weight: 600; margin: 0 0 14px; }


/* 10. MANIFESTE ---------------------------------------------------------- */
.manifeste ul { list-style: none; padding: 0; margin: 30px auto 0; max-width: 760px; }
.manifeste li { font-family: var(--titre); font-size: 1.2rem; color: var(--lapis); padding: 14px 0; border-bottom: 1px dashed var(--or); }
.manifeste li:last-child { border-bottom: 0; }
.devise { margin-top: 34px; font-family: var(--titre); font-style: italic; font-size: 1.4rem; color: var(--bronze); }


/* 11. EMBLÈME (les trois versions de l'obole) ---------------------------- */
.versions { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 30px; }
.versions figure { margin: 0; text-align: center; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; }
.versions img { width: 180px; height: 180px; }
.versions figcaption { margin-top: 10px; font-family: var(--titre); color: var(--lapis); }


/* 12. PAGES DE TEXTE (confidentialité, 404) ------------------------------ */
.page-texte { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }


/* 13. PIED DE PAGE ------------------------------------------------------- */
.pied { border-top: 2px solid var(--or); padding: 36px 20px 50px; text-align: center; font-size: .95rem; }
.pied .auteur { color: var(--lapis); }
.pied .claude { font-size: calc(.95rem - 2pt); font-style: italic; color: var(--gris); margin-top: 4px; }
.pied .liens { margin-top: 18px; font-size: .85rem; color: var(--gris); }
.pied .liens a { color: var(--gris); }
