@charset "UTF-8";
/* Structure reprise du modèle mediatheques : portail-slide / item / body. */
:root { color-scheme: light; font-family: system-ui, sans-serif; color: #233631; background: #f7f6f0; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #704fc3; outline-offset: 5px; }
.evitement { position: absolute; top: -100px; left: 16px; padding: 12px; background: white; z-index: 10; }
.evitement:focus { top: 12px; }
.entete, main, footer { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 0; border-bottom: 1px solid #d7dcd1; }
.signature { font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.signature span { font-weight: 400; color: #58665b; }
.entete p, footer { font-size: .85rem; }
.introduction { padding: 48px 0 35px; }
.surtitre { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: #536a54; }
h1 { max-width: 900px; margin: 16px 0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; }
.introduction > p:not(.surtitre) { line-height: 1.7; color: #536159; }
nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
nav a { padding: 8px 17px; border: 1px solid #bec9bc; border-radius: 30px; text-decoration: none; font-size: .85rem; }
nav a:hover { background: #e6ebdf; }
.portail-slide { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.portail-slide-item { --accent: #315a46; --tint: #e7eddf; flex: 0 0 calc(50% - 10px); min-width: 0; border: 1px solid #bec9bc; border-radius: 5px; min-height: 320px; max-height: 480px; overflow: auto; background: var(--tint); scroll-margin-top: 20px; }
.histoire { --accent: #784b32; --tint: #f2e8db; border-color: #d8c5af; }
.science { --accent: #365e79; --tint: #e5edf0; border-color: #bdcfd6; }
.panneau-entete { position: sticky; z-index: 1; top: 0; display: flex; justify-content: space-between; padding: 12px 22px; background: var(--accent); color: white; font-size: .8rem; font-weight: 650; letter-spacing: .04em; }
.portail-slide-item-body { position: relative; display: flex; align-items: center; gap: 22px; padding: 28px 24px; }
.illustration { flex: 0 0 28%; width: 28%; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.presentation { min-width: 0; flex: 1; }
h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.03em; }
.presentation p { margin: 0 0 16px; font-size: .92rem; line-height: 1.65; }
.presentation .mots-cles { color: var(--accent); font-size: .74rem; }
.ouvrir { display: inline-flex; gap: 20px; align-items: center; padding: 10px 0; font-size: .9rem; font-weight: 700; text-decoration-thickness: 1px; }
.ouvrir:hover { color: var(--accent); text-decoration-thickness: 2px; }
.presentation .precision { margin: 7px 0 0; font-size: .72rem; color: #586159; }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 30px 0; margin-top: 30px; border-top: 1px solid #d7dcd1; color: #536159; }
@media (max-width: 760px) {
  .entete, main, footer { width: calc(100% - 32px); }
  .entete { align-items: flex-start; flex-direction: column; gap: 0; padding: 18px 0; }
  .entete p { margin-bottom: 0; }
  .introduction { padding-top: 28px; }
  .portail-slide-item { flex-basis: 100%; max-height: none; min-height: 0; }
  .portail-slide-item-body { padding: 24px 18px; gap: 16px; }
  footer p { flex-basis: 100%; }
}
@media (max-width: 380px) { .illustration { display: none; } }
