/*
 * Barre et pied de page communs de sans-avion.net (étape 4, maillage ; maquettes validées par l'auteur le 28 novembre 2026).
 * En haut des pages des récits, de l'album de Moscou-Pékin et des jeux : le logo et le menu de l'accueil et des guides ;
 * tout en bas : le pied de page des guides. Chaque récit garde son apparence, ces 2 bandes s'ajoutent au-dessus et en dessous.
 * Utilisé par wp-content/mu-plugins/sa-commun.php (récits du WordPress unique) et par les pages faites à la main.
 * Aussi l'encadré des guides, à la fin des articles des récits (sa-commun.php).
 * Les règles commencent toutes par .sa-commun-barre, .sa-commun-pied ou .sa-commun-guides, pour ne pas dépendre du thème de chaque récit.
 */
@font-face{ font-family:"SA Bodoni"; src:url("fonts/bodoni-moda.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face{ font-family:"SA Bodoni"; src:url("fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight:500 700; font-style:italic; font-display:swap; }
@font-face{ font-family:"SA Josefin"; src:url("fonts/josefin-sans.woff2") format("woff2"); font-weight:300 700; font-style:normal; font-display:swap; }
@font-face{ font-family:"SA Karla"; src:url("fonts/karla.woff2") format("woff2"); font-weight:400 700; font-style:normal; font-display:swap; }

.sa-commun-barre,.sa-commun-pied{ all:initial; display:block; position:relative; z-index:1; background:#0e2133; color:#c6d2dd; font:14px/1.6 "SA Karla","Helvetica Neue",Arial,sans-serif; text-align:left; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.sa-commun-barre *,.sa-commun-pied *{ box-sizing:border-box; }
.sa-commun-in{ width:100%; max-width:1264px; margin:0 auto; padding-left:max(16px, env(safe-area-inset-left,0px)); padding-right:max(16px, env(safe-area-inset-right,0px)); }
.sa-commun-barre a,.sa-commun-pied a{ color:#fff; background:none; border:0; box-shadow:none; }
.sa-commun-barre a:focus-visible,.sa-commun-pied a:focus-visible{ outline:3px solid #e0ad4a; outline-offset:3px; }

/* Logo : celui de l'accueil et des guides */
.sa-commun-barre a.sa-commun-logo,.sa-commun-pied a.sa-commun-logo{ font-family:"SA Bodoni",Didot,"Times New Roman",serif; font-style:italic; font-weight:700; line-height:1.1; letter-spacing:-.01em; text-decoration:none; color:#fff; }
.sa-commun-logo span{ font-family:"SA Bodoni",Didot,"Times New Roman",serif; font-style:normal; font-weight:500; color:#c6d2dd; }

/* Barre du haut : logo et menu commun */
.sa-commun-barre .sa-commun-in{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:2px 24px; padding-top:8px; padding-bottom:8px; }
.sa-commun-barre a.sa-commun-logo{ font-size:24px; }
.sa-commun-barre .sa-commun-logo span{ font-size:13px; }
.sa-commun-barre nav{ display:block; margin:0; padding:0; background:none; border:0; }
.sa-commun-barre ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:0 20px; background:none; border:0; }
.sa-commun-barre li{ list-style:none; margin:0; padding:0; background:none; border:0; float:none; }
.sa-commun-barre li::before,.sa-commun-barre li::after{ content:none; }
.sa-commun-barre nav a{ display:inline-block; padding:6px 0; font-family:"SA Josefin","Futura","Century Gothic",sans-serif; font-weight:600; font-size:12px; line-height:1.5; letter-spacing:.14em; text-transform:uppercase; text-decoration:none; }
.sa-commun-barre nav a:hover,.sa-commun-barre nav a:focus{ color:#e0ad4a; text-decoration:none; }
.sa-commun-barre nav a.sa-commun-resa{ color:#e0ad4a; }

/* Pied de page : celui des guides */
.sa-commun-pied .sa-commun-in{ display:grid; gap:8px; padding-top:28px; padding-bottom:28px; }
.sa-commun-pied a.sa-commun-logo{ font-size:32px; width:fit-content; }
.sa-commun-pied .sa-commun-logo span{ font-size:15px; }
.sa-commun-pied p{ margin:0; padding:0; font:inherit; color:inherit; }
.sa-commun-pied p a,.sa-commun-pied p a:hover,.sa-commun-pied p a:focus{ color:#fff; text-decoration:underline; }

/* Pages faites à la main dont le corps garde la marge de 8 px des navigateurs (Transarctica, Collège Jean Rappin) :
   la barre et le pied vont quand même d'un bord à l'autre, comme sur les récits */
.sa-commun-barre.sa-commun-bord{ margin:-8px -8px 0; }
.sa-commun-pied.sa-commun-bord{ margin:0 -8px -8px; }

/* Encadré des guides dans les récits (maquette validée par l'auteur le 28 novembre 2026) : de petits billets vers les guides */
.sa-commun-guides{ all:initial; display:block; clear:both; margin:28px 0; padding:16px 18px 18px; background:#f6f4ef; border:1px solid #e2ddd3; border-left:4px solid #0e2133; border-radius:4px; color:#0e2133; font:15px/1.5 "SA Karla","Helvetica Neue",Arial,sans-serif; text-align:left; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.sa-commun-guides *{ box-sizing:border-box; }
.sa-commun-guides .sa-commun-guides-titre{ display:block; margin:0 0 10px; padding:0; font-family:"SA Josefin","Futura","Century Gothic",sans-serif; font-weight:600; font-size:12px; line-height:1.5; letter-spacing:.14em; text-transform:uppercase; color:#5c6c7c; }
.sa-commun-guides ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:10px; background:none; border:0; }
.sa-commun-guides li{ list-style:none; margin:0; padding:0; background:none; border:0; float:none; }
.sa-commun-guides li::before,.sa-commun-guides li::after{ content:none; }
.sa-commun-guides a{ display:flex; flex-direction:column; margin:0; padding:8px 16px 9px; background:#fff; border:1px solid #e2ddd3; border-left:2px dashed #9fb0c0; border-radius:3px; color:#0e2133; text-decoration:none; box-shadow:none; }
.sa-commun-guides a:hover,.sa-commun-guides a:focus{ border-color:#e0ad4a; color:#0e2133; text-decoration:none; }
.sa-commun-guides a:focus-visible{ outline:3px solid #e0ad4a; outline-offset:3px; }
.sa-commun-guides small{ display:block; margin:0; font-family:"SA Josefin","Futura","Century Gothic",sans-serif; font-weight:600; font-size:11px; line-height:1.4; letter-spacing:.12em; text-transform:uppercase; color:#a8342f; }
.sa-commun-guides strong{ display:block; margin:0; font-family:"SA Bodoni",Didot,"Times New Roman",serif; font-style:italic; font-weight:700; font-size:20px; line-height:1.2; color:#0e2133; }

@media (max-width:600px){
  .sa-commun-barre ul{ gap:0 14px; }
  .sa-commun-barre nav a{ font-size:11px; letter-spacing:.1em; }
}
