/* eSCIENCES : bandeau de consentement, réglage et façades vidéo. Couleurs et polices de la charte V14.5. */
.escc-bandeau, .escc-reglage__choix, .escc-video {
  --escc-encre: #15241B; --escc-vert: #123D28; --escc-vert-vivant: #1B6E46; --escc-jaune: #F5AD1F; --escc-menthe: #E3EFE7;
  --escc-texte: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --escc-titre: 'Bricolage Grotesque', 'Lexend', system-ui, sans-serif;
}
.escc-bandeau {
  position: fixed; z-index: 99990; left: 16px; bottom: 16px; box-sizing: border-box; width: min(560px, calc(100% - 32px));
  display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border-radius: 12px; border-top: 4px solid var(--escc-jaune);
  background: #fff; color: var(--escc-encre); box-shadow: 0 10px 32px rgba(18, 61, 40, .28);
  font: 400 15px/1.5 var(--escc-texte); text-align: left;
}
.escc-bandeau * { box-sizing: border-box; }
.escc-bandeau__titre { margin: 0 0 6px; font: 800 20px/1.2 var(--escc-titre); color: var(--escc-vert); letter-spacing: 0; text-transform: none; }
.escc-bandeau p { margin: 0 0 6px; font: inherit; color: inherit; }
.escc-bandeau p:last-child { margin-bottom: 0; }
.escc-bandeau a { color: var(--escc-vert-vivant); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.escc-bandeau__choix, .escc-reglage__choix { display: flex; flex-wrap: wrap; gap: 10px; }
/* Refuser et Accepter ont exactement la même apparence. */
.escc-bouton {
  flex: 1 1 140px; min-height: 48px; margin: 0; padding: 10px 18px; border: 2px solid var(--escc-vert-vivant, #1B6E46); border-radius: 8px;
  background: #fff; color: var(--escc-vert, #123D28); font: 600 16px/1.3 var(--escc-texte, 'Lexend', system-ui, sans-serif);
  cursor: pointer; text-transform: none; letter-spacing: 0; transition: background-color 150ms;
}
.escc-bouton:hover { background: var(--escc-menthe, #E3EFE7); color: var(--escc-vert, #123D28); }
.escc-bouton:focus-visible, .escc-bandeau a:focus-visible, .escc-video a:focus-visible {
  outline: 3px solid var(--escc-jaune, #F5AD1F); outline-offset: 3px; box-shadow: 0 0 0 6px var(--escc-vert, #123D28);
}
@media (max-width: 600px) {
  .escc-bandeau { left: 0; bottom: 0; width: 100%; border-radius: 12px 12px 0 0; padding: 16px; gap: 12px; font-size: 14px; max-height: 70vh; overflow-y: auto; }
  .escc-bandeau__titre { font-size: 18px; }
}
@media print { .escc-bandeau { display: none; } }
@media (prefers-reduced-motion: reduce) { .escc-bouton { transition: none; } }

/* Bande des liens légaux, en fin de page (toutes les pages sauf l'accueil). Même vert et même style de lien que le pied de l'accueil. */
body .escc-legal { display: block; margin: 0; padding: 12px 32px; background: #123D28; border-top: 1px solid #1B6E46; }
body .escc-legal .escc-legal__liens { max-width: 1200px; margin: 0 auto; padding: 0; color: #E3EFE7; font: 400 14px/1.5 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif; text-align: left; letter-spacing: normal; text-transform: none; }
body .escc-legal .escc-legal__liens a { color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
body .escc-legal .escc-legal__liens a:hover { color: #E3EFE7; text-decoration-thickness: 2px; }
body .escc-legal .escc-legal__liens a:focus-visible { outline: 3px solid #F5AD1F; outline-offset: 3px; border-radius: 2px; }
@media (max-width: 767px) { body .escc-legal { padding: 12px 16px; } }
@media print { body .escc-legal { display: none; } }

/* Réglage permanent, dans la page Confidentialité et cookies. */
.escc-reglage__etat { font-weight: 600; }
.escc-reglage__choix { max-width: 560px; margin: 12px 0; }
.escc-reglage__message:empty { display: none; }

/* Façade des vidéos YouTube du blog : rien n'est chargé depuis YouTube avant le clic.
   Sélecteurs préfixés par .escc-video .escc-video__cadre : les règles des articles (.es-article-corps :is(p, li…), liens)
   ont une spécificité supérieure à une simple classe et rendaient le texte foncé sur le fond vert. */
.escc-video .escc-video__cadre { position: relative; aspect-ratio: 16 / 9; margin: 0; border-radius: 12px; overflow: hidden; background: var(--escc-vert); color: #fff; }
.escc-video .escc-video__cadre .escc-video__info { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
  padding: clamp(16px, 4vw, 40px); color: #fff; opacity: 1; font: 400 15px/1.5 var(--escc-texte); text-align: left; }
.escc-video .escc-video__cadre .escc-video__info p { margin: 0; max-width: 60ch; color: #fff; opacity: 1; font: 400 15px/1.5 var(--escc-texte); letter-spacing: normal; text-transform: none; }
.escc-video .escc-video__cadre .escc-video__info p.escc-video__titre { font: 800 clamp(18px, 2.4vw, 24px)/1.2 var(--escc-titre); color: #fff; }
.escc-video .escc-video__cadre .escc-video__info a { color: #fff; opacity: 1; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.escc-video .escc-video__cadre .escc-video__info a:hover { color: var(--escc-menthe); text-decoration-thickness: 2px; }
.escc-video .escc-video__cadre .escc-video__info a:focus-visible { outline: 3px solid var(--escc-jaune); outline-offset: 3px; box-shadow: none; border-radius: 2px; }
.escc-video .escc-video__cadre .escc-video__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 4px; }
.escc-video .escc-video__cadre .escc-bouton { flex: 0 0 auto; background: var(--escc-jaune); border-color: var(--escc-jaune); color: var(--escc-encre); opacity: 1; }
.escc-video .escc-video__cadre .escc-bouton:hover { background: #E39A0C; border-color: #E39A0C; color: var(--escc-encre); }
.escc-video .escc-video__cadre .escc-bouton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: none; }
.escc-video .escc-video__cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) {
  .escc-video .escc-video__cadre { aspect-ratio: auto; min-height: 260px; }
  .escc-video .escc-video__cadre .escc-video__info { position: static; }
  .escc-video .escc-video__cadre .escc-video__info p { font-size: 14px; }
  .escc-video .escc-video__cadre[data-charge] { aspect-ratio: 16 / 9; min-height: 0; }
}
