/* Ajustements propres au site, chargés après la feuille de style du thème Quint */

img { height: auto; }
.e-content img { display: block; margin: 1.5rem auto; }

/* Accueil : bannière et présentation */
.hero .banner { margin: 0; padding: 0 1rem; }
.hero .banner img { display: block; margin: 0 auto; }
.intro, .more { padding: 0 1rem; }
.more { text-align: center; }

/* Article : image du bandeau rendue translucide à 75 % par un voile de la
   couleur de fond, pour que le titre reste lisible ; la couleur du titre
   calculée par le script du thème est neutralisée */
#heroSection { position: relative; }
#heroSection::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--primary-bg);
    opacity: 0.75;
}
#heroSection > div { position: relative; }
#heroSection #textOverlay { color: var(--primary-text) !important; text-shadow: none !important; }

/* Article : boutons de partage (les boutons annulent le style de bouton du thème) */
.share { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--shadow-color); }
.post .share h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.post .share ul { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.share a, .share button {
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0.25rem;
    border: none;
    border-radius: 4px;
    background: none;
    color: var(--link-color);
    cursor: pointer;
}
.share a:hover, .share a:focus, .share button:hover, .share button:focus { background: none; color: var(--primary-text); }
.share button[hidden] { display: none; }
.share-status { min-height: 1.6em; margin: 0.5rem 0 0; font-size: 0.9rem; }

/* Pied de page : lien vers la page d'abonnement aux flux */
footer .social-media a.subscribe { display: inline-flex; align-items: center; gap: 0.4rem; filter: none; }
footer .social-media a.subscribe svg { width: 20px; height: 20px; }

/* Menu : page courante */
nav a[aria-current] { color: var(--primary-text); font-weight: bold; }

/* Cartes : date de publication */
.card time { display: block; color: var(--link-color); }
.card .text h2 { margin-bottom: 0.2rem; }

/* Article : encadrés d'alerte (syntaxe « > [!WARNING] Titre », voir
   layouts/_markup/render-blockquote.html) */
:root {
    --alert-warning-bg: #fff4e6;
    --alert-warning-border: #e8590c;
    --alert-warning-title: #a64600;
}
@media (prefers-color-scheme: dark) {
    :root {
        --alert-warning-bg: #3a2a17;
        --alert-warning-border: #f08c00;
        --alert-warning-title: #ffc078;
    }
}
.alert {
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--alert-warning-border);
    border-radius: 4px;
    background-color: var(--alert-warning-bg);
    color: var(--primary-text);
}
.alert .alert-title { margin: 0 0 0.25rem; color: var(--alert-warning-title); }
.alert-warning .alert-title::before { content: "⚠\FE0E  "; content: "⚠\FE0E  " / ""; }
.alert > :last-child { margin-bottom: 0; }

/* Menus : retour à la ligne quand les entrées ne tiennent pas sur une ligne */
nav.menu ul, footer nav ul { flex-wrap: wrap; }
nav.menu ul { justify-content: flex-end; }
footer nav ul { justify-content: center; }
@media (max-width: 640px) {
    header { flex-direction: column; align-items: center; gap: 0.5rem; }
    nav.menu ul { justify-content: center; }
    nav.menu ul li { margin: 0.2rem 0.5rem; }
}

/* Fil d'Ariane (layouts/_partials/breadcrumb.html) */
.breadcrumb { margin-bottom: 1rem; font-size: 0.9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin: 0 0.4rem; color: var(--link-color); }
.breadcrumb [aria-current] { color: var(--primary-text); }

/* Article : rubriques ; liste des rubriques */
.post .tag-container { padding-top: 1.5rem; }
.terms { padding-left: 1rem; }
.terms li { margin-bottom: 0.75rem; }
