/* ==========================================================================
   LA LETTRE — Charte du blason (version 34, novembre 2026)
   Feuille chargée en dernier sur toutes les pages : elle complète style.css
   et les styles inline. Source de vérité des couleurs et de la typographie.
   Palette (extraite du sceau déposé) :
     azur    #1B3A6B  champ de l'écu — titres, barre, Association
     gueules #A3223A  bâton de l'écu — Entreprise · le jeu
     or      #8B6B2B  anneau du sceau — Prestations, filets
     or clair#C9A24A  fleur de lis, gerbe — ornements
     crème   #F4F1E3  pages du livre — fonds doux, cartouches
     encre   #1B2130  logotype — texte des titres
   ========================================================================== */

/* ---- Polices auto-hébergées (EB Garamond, OFL 1.1 ; sous-ensemble latin) ---- */
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:italic;font-weight:500;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-500-italic.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:italic;font-weight:600;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-600-italic.woff2) format("woff2")}

/* ---- Jetons du blason (les anciens noms --navy, --blue… sont conservés et réalignés dans chaque :root) ---- */
:root{
  --azur:#1B3A6B; --azur-2:#27508F; --gueules:#A3223A; --or:#8B6B2B; --or-clair:#C9A24A;
  --creme:#F4F1E3; --encre:#1B2130;
  --font-display:"EB Garamond",Georgia,"Times New Roman",serif;
}

/* ---- Typographie : le serif du logotype pour les titres, le sans-serif système pour la lecture ---- */
h1,h2,h3,.door h2,.mark h1,.portal-card h3{font-family:var(--font-display);font-weight:500;letter-spacing:.004em;color:var(--encre)}
h1{font-size:2.5rem;line-height:1.14}
h2{font-size:1.78rem;line-height:1.2}
h3{font-size:1.3rem;line-height:1.25}
.hero h1{font-size:2.95rem;color:#fff}
h1 strong,h2 strong,h3 strong{font-weight:600}
@media(max-width:820px){h1{font-size:2.05rem}.hero h1{font-size:2.25rem}h2{font-size:1.55rem}}

/* ---- Barre de navigation : le sceau en médaillon + le mot en Garamond ---- */
.brand{gap:12px;font-weight:500}
.brand img.brandlogo.brand-seal{height:40px;width:40px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.22);background:#fff}
.brand .brand-word{font-family:var(--font-display);font-weight:500;font-size:1.32rem;letter-spacing:.16em;color:#fff;line-height:1;white-space:nowrap}
@media(max-width:640px){.brand img.brandlogo.brand-seal{height:34px;width:34px}.brand .brand-word{font-size:1.12rem;letter-spacing:.12em}}

/* ---- Portail : le logo déposé dans le héros, sur fond clair ---- */
.mark img.mark-logo{height:92px;width:auto;display:block;margin:0 auto}
@media(max-width:640px){.mark img.mark-logo{height:72px}}
/* ---- Pages fondateur / CV : bandeau clair, logo déposé ---- */
.top img.lg{height:48px;width:auto}

/* ---- Couleur d'action : l'azur sur fond clair, l'or clair sur les héros marine ---- */
.btn{background:var(--azur)}
.btn:hover{background:var(--azur-2);filter:none}
.btn.ghost{background:transparent}
.btn.or{background:var(--or)}
.btn.gueules{background:var(--gueules)}
.hero .btn{background:var(--or-clair);color:var(--encre)}
.hero .btn:hover{background:#D9B55A;color:var(--encre)}
.hero .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.hero .btn.ghost:hover{background:rgba(255,255,255,.12)}

/* ---- Filets et repères : l'or ---- */
.card .num{color:var(--or)}
ul.clean li:before{color:var(--or)}
.door h2{font-size:1.6rem}

/* ---- Les trois maisons : couleurs du blason (prend le pas sur tout style inline résiduel) ---- */
.entity-stripe.asso,.door.asso .top,.door.asso .enter{background:var(--azur)}
.crossbar.asso .cross-seg a.active{background:var(--azur-2)}
.entity-stripe.ent,.crossbar.ent .cross-seg a.active,.door.ent .top,.door.ent .enter{background:var(--gueules)}
.entity-stripe.pro,.crossbar.pro .cross-seg a.active,.door.pro .top,.door.pro .enter{background:var(--or)}
.door.asso .badge{background:#E7ECF4;color:var(--azur)}
.door.ent .badge{background:#F6E3E6;color:#8E1D32}
.door.pro .badge{background:#F3EEDF;color:#6E5420}
.crossbar .ch .dot{background:linear-gradient(135deg,var(--or),var(--or-clair))}

/* ---- Pied de page : le logo déposé, tel quel, sur cartouche crème ---- */
footer.site .footer-mark{display:inline-block;background:var(--creme);border-radius:12px;padding:10px 14px;margin:0 0 12px}
footer.site .footer-mark img{height:60px;width:auto;display:block}
footer.site h4.footer-sub{font-family:var(--font-display);font-weight:500;letter-spacing:.1em;text-transform:uppercase;font-size:.88rem;color:var(--or-clair);margin:0 0 8px}
footer:not(.site) .footer-seal{height:44px;width:44px;border-radius:50%;display:block;margin:0 0 10px}

/* ---- Espace interne : barre plus sombre, bandeau de confidentialité en gueules ---- */
.topbar.interne-bar{background:#12284A}
.confbar{background:var(--gueules)}
.confbar.interne{background:var(--azur-2)}

/* ---- Impression ---- */
@media print{footer.site .footer-mark{background:none;padding:0}.brand .brand-word{color:#000}}
