/* Blog de l'Académie des Explorateurs : gabarit sobre, lecture d'abord */
:root {
  --nuit: #10283D; --cyan: #1BB9FB; --cyan-d: #0b7fb0; --jaune: #FECF13; --rose: #F52A85;
  --texte: #24232f; --doux: #5f5c70; --trait: #e6e8ef; --fond-doux: #f5f7fb;
  --f-titre: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --f-texte: 'Barlow', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--texte); font: 19px/1.7 var(--f-texte); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-d); text-underline-offset: 3px; }
a:hover { color: var(--nuit); }

.entete { border-bottom: 1px solid var(--trait); background: #fff; }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nuit); }
.logo img { width: 38px; height: 38px; object-fit: contain; }
.logo span { display: flex; flex-direction: column; line-height: 1.15; font: 600 16px var(--f-titre); }
.logo small { font: 500 13px var(--f-texte); color: var(--doux); }
.entete nav { display: flex; align-items: center; gap: 18px; font-size: 16px; }
.entete nav a { text-decoration: none; color: var(--nuit); font-weight: 600; }
.entete nav .essai { background: var(--jaune); color: var(--nuit); padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.entete nav .essai:hover { background: #ffd93d; }

.cadre { width: min(1080px, 100% - 32px); margin-inline: auto; }
.lecture { width: min(720px, 100% - 32px); margin-inline: auto; }

.fil { font-size: 15px; color: var(--doux); margin: 28px 0 14px; }
.fil a { color: var(--doux); }
.fil span[aria-hidden] { margin: 0 6px; }

h1, h2, h3 { font-family: var(--f-titre); color: var(--nuit); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(32px, 4.6vw, 46px); margin: 0 0 16px; }
.chapo { font-size: 21px; line-height: 1.55; color: #3c3a4b; margin: 0 0 18px; }
.signature { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--doux); margin: 0 0 26px; }
.signature img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--fond-doux); }
.signature b { color: var(--texte); font-weight: 600; }
.une { margin: 0 0 34px; border-radius: 14px; overflow: hidden; background: var(--fond-doux); }
.une img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article h2 { font-size: clamp(25px, 3vw, 31px); margin: 46px 0 14px; }
.article h3 { font-size: 22px; margin: 30px 0 8px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 24px; }
.article li { margin: 0 0 8px; }
.article strong { color: var(--nuit); }
.article figure { margin: 30px 0; }
.article figure img { border-radius: 12px; margin-inline: auto; }
.article figcaption { font-size: 15px; color: var(--doux); text-align: center; margin-top: 8px; }
.article blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--jaune); color: #3c3a4b; font-style: italic; }
.article blockquote p { margin: 0 0 6px; }
.article blockquote cite { font-style: normal; font-size: 15px; color: var(--doux); }
.article table { width: 100%; border-collapse: collapse; margin: 6px 0 24px; font-size: 16.5px; line-height: 1.5; }
.article th, .article td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--trait); }
.article th { background: var(--fond-doux); color: var(--nuit); font-weight: 600; }
.tableau-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article .encadre { background: var(--fond-doux); border-radius: 12px; padding: 18px 22px; margin: 26px 0; }
.article .encadre p:last-child { margin-bottom: 0; }
.article .faq h3 { font-size: 20px; }

.appel { background: var(--nuit); color: #fff; border-radius: 16px; padding: 28px 28px 30px; margin: 48px 0 10px; display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; }
.appel h2 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.appel p { margin: 0; color: #d6e6f2; font-size: 17px; line-height: 1.55; }
.appel .bouton { display: inline-block; background: var(--jaune); color: var(--nuit); font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 12px; white-space: nowrap; font-size: 17px; }
.appel .bouton:hover { background: #ffd93d; color: var(--nuit); }

.suite { border-top: 1px solid var(--trait); margin-top: 56px; padding: 34px 0 10px; }
.suite h2 { font-size: 24px; margin: 0 0 18px; }
.cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cartes a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--texte); border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cartes a:hover { border-color: #cfd5e3; box-shadow: 0 8px 22px rgba(16, 40, 61, .08); color: var(--texte); }
.cartes img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--fond-doux); }
.carte-titre { font: 600 19px/1.3 var(--f-titre); color: var(--nuit); padding: 14px 16px 4px; }
.carte-resume { font-size: 15.5px; line-height: 1.5; color: var(--doux); padding: 0 16px 16px; }

.tete-index { padding: 40px 0 8px; }
.tete-index h1 { margin-bottom: 10px; }
.tete-index p { color: #3c3a4b; font-size: 20px; max-width: 40em; margin: 0 0 30px; }

.pied { margin-top: 64px; border-top: 1px solid var(--trait); padding: 22px 0 34px; font-size: 15px; color: var(--doux); }
.pied .cadre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.pied a { color: var(--doux); }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .entete nav .lien-blog { display: none; }
  .logo small { display: none; }
  .chapo { font-size: 19px; }
  .appel { grid-template-columns: 1fr; padding: 24px 20px; }
  .appel .bouton { text-align: center; white-space: normal; }
}
@media print { .entete nav, .appel, .suite, #bug-bouton { display: none !important; } }
