:root {
    --green-dark: #003b2e;
    --green-deeper: #002820;
    --green: #07964b;
    --red: #d2232a;
    --gold: #ffbe00;
    --text: #161616;
    --muted: #6c6c6c;
    --line: #dedede;
    --soft: #f6f6f5;
    --shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 60px));
    margin: 0 auto;
}

.site-header {
    position: relative;
    z-index: 20;
    background: #fff;
}

.topbar {
    height: 34px;
    color: #fff;
    background: linear-gradient(90deg, #00382d, #00251e);
    font-size: 12px;
    font-weight: 700;
}

.topbar-inner,
.topbar nav {
    display: flex;
    align-items: center;
}

.topbar-inner {
    justify-content: space-between;
    height: 100%;
}

.topbar p {
    margin: 0;
}

.topbar .fa-star {
    margin-right: 6px;
    color: var(--gold);
}

.topbar nav {
    gap: 15px;
}

.topbar nav span,
.topbar nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar nav span + span {
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, .25);
}

.identity-band {
    min-height: 160px;
    background: #fff;
}

.identity-inner {
    display: grid;
    grid-template-columns: minmax(315px, 36%) 1fr;
    gap: 28px;
    align-items: center;
    min-height: 160px;
}

.brand {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.brand img {
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.brand strong {
    display: block;
    color: var(--red);
    font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
    font-size: clamp(30px, 3vw, 39px);
    font-weight: 800;
    line-height: .92;
    text-transform: uppercase;
}

.brand em {
    display: block;
    margin-top: 4px;
    color: #111;
    font-style: normal;
    font-size: clamp(18px, 1.8vw, 23px);
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.brand i {
    display: block;
    width: 150px;
    height: 10px;
    margin-top: 10px;
    background: repeating-linear-gradient(115deg, var(--red) 0 7px, transparent 7px 12px, var(--gold) 12px 19px, transparent 19px 24px, var(--green) 24px 31px, transparent 31px 36px);
}

.award-banner {
    display: grid;
    grid-template-columns: 1fr 70px 1fr 175px;
    align-items: stretch;
    min-height: 116px;
    overflow: hidden;
    border: 1px solid #d6d6d6;
    border-radius: 7px;
    background: #fff;
    box-shadow: var(--shadow);
}

.award-banner-static {
    display: block;
}

.award-banner-static img {
    width: 100%;
    height: 116px;
    object-fit: cover;
}

.award-person {
    position: relative;
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 12px;
    align-content: center;
    padding: 13px 8px 13px 18px;
}

.portrait {
    grid-row: 1 / 4;
    width: 72px;
    height: 82px;
    align-self: center;
    background-position: center;
    background-size: cover;
    filter: grayscale(1);
}

.portrait-nkrumah {
    background-image: url("../../cathalogue/galerie/articles/redaction1439951.jpg");
}

.portrait-tshisekedi {
    background-image: url("../../images/484325582_981213064142604_2479108907683192096_n.jpg");
}

.award-person strong {
    color: var(--gold);
    font-size: 20px;
    font-weight: 900;
}

.award-person b {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.award-person small {
    max-width: 130px;
    margin-top: 5px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.award-medal {
    display: grid;
    place-items: center;
    color: #c88a11;
    font-size: 48px;
}

.award-next {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 6px;
    align-items: center;
    padding: 16px 14px;
    color: #fff;
    background: var(--green-dark);
}

.award-next i {
    grid-row: 1 / 3;
    color: var(--gold);
    font-size: 46px;
}

.award-next p {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.award-next a {
    justify-self: start;
    padding: 7px 12px;
    border-radius: 4px;
    color: #111;
    background: var(--gold);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 25;
    height: 52px;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #dfdfdf;
    background: #fff;
    transition: box-shadow .2s ease;
}

/* Classe posee par assets/js/main.js des que le menu est colle en haut de l'ecran. */
.main-nav.is-stuck {
    border-top-color: transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .13);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 18px;
}

.home-button,
.search-button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 0;
    border-radius: 5px;
    color: #fff;
}

.home-button {
    background: var(--red);
}

.search-button {
    border-radius: 50%;
    background: var(--green-dark);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
}

.menu {
    display: flex;
    align-items: center;
    gap: 31px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 52px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    transition: color .2s ease;
}

.menu a:hover {
    color: var(--red);
}

/* Entree correspondant a la page affichee : rouge du site, plus un filet
   sous les entrees de premier niveau pour la reperer d'un coup d'oeil. */
.menu a.is-current {
    color: var(--red);
}

.menu > li > a.is-current {
    position: relative;
}

.menu > li > a.is-current::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--red);
}

.has-dropdown {
    position: relative;
}

.has-dropdown ul {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    width: 205px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border: 1px solid #e2e2e2;
    border-radius: 0 0 5px 5px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s ease;
}

.has-dropdown:hover ul,
.has-dropdown:focus-within ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown ul a {
    width: 100%;
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.member-button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.member-button {
    color: #fff;
    background: var(--red);
}

.member-label-mobile {
    display: none;
}

.btn-gold {
    color: #111;
    background: var(--gold);
}

.hero-slider {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* Teinte posee en style inline depuis index.php ($couleur_dominante). */
    background-color: var(--hero-teinte, #003b2e);
    /* Marge laterale du .container : les commandes s'y alignent. */
    --hero-marge: max(30px, calc((100% - 1180px) / 2));
}

/* Degrade sombre construit par superposition plutot qu'avec des couleurs figees :
   il reste lisible quelle que soit la teinte choisie dans Cathalogue. */
.hero-fond {
    position: absolute;
    inset: 0;
    z-index: -2;
    /* Les couches sont empilees de la plus proche a la plus lointaine : les voiles
       sombres passent donc au-dessus de la photo. Sans eux, le titre blanc
       deviendrait illisible sur les zones claires de la carte. */
    background:
        radial-gradient(760px 420px at 74% 8%, rgba(255, 255, 255, .07), transparent 62%),
        linear-gradient(100deg,
            rgba(0, 0, 0, .80) 0%,
            rgba(0, 0, 0, .58) 34%,
            rgba(0, 0, 0, .30) 58%,
            rgba(0, 0, 0, .52) 100%),
        url("../../images/hero-slider-fond.jpg") center / cover no-repeat;
    background-color: var(--hero-teinte, #003b2e); /* repli si l'image manque */
}

/* Halo discret derriere le visuel, pour donner de la profondeur au cadre incline. */
.hero-lueur {
    position: absolute;
    top: 50%;
    right: 6%;
    z-index: -1;
    width: min(540px, 46vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 190, 0, .16), transparent 66%);
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-piste {
    display: grid; /* toutes les slides dans la meme cellule : la hauteur suit la plus haute */
    padding-block: clamp(30px, 3.8vw, 46px) clamp(58px, 6vw, 78px);
}

.hero-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr);
    gap: clamp(26px, 3.4vw, 46px);
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-texte {
    min-width: 0;
}

.kicker {
    display: inline-flex;
    margin-bottom: 17px;
    padding: 6px 11px;
    border: 1px solid var(--gold);
    border-radius: 3px;
    color: var(--gold);
    background: rgba(0, 0, 0, .35);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-texte h1 {
    max-width: 20ch;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(25px, 2.9vw, 38px);
    font-weight: 900;
    line-height: 1.12;
}

.hero-texte h1 a {
    color: inherit;
    transition: color .2s ease;
}

.hero-texte h1 a:hover {
    color: var(--gold);
}

.hero-texte p {
    max-width: 52ch;
    margin: 16px 0 26px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Visuel : cadre incline, proportions identiques pour toutes les images --- */
.hero-visuel {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 340px; /* visuel resserre : c'est lui qui commandait la hauteur du bloc */
    min-width: 0;
}

/* Cadre decoratif decale, en contre-inclinaison. */
.hero-visuel::before {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 2px solid rgba(255, 190, 0, .5);
    border-radius: 16px;
    transform: rotate(3.5deg);
    pointer-events: none;
}

.hero-cadre {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3; /* toutes les images prennent la meme proportion */
    overflow: hidden;
    border-radius: 16px;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, .3),
        0 14px 26px rgba(0, 0, 0, .38),
        0 32px 60px rgba(0, 0, 0, .34);
    transform: rotate(-3.5deg);
    transition: transform .35s ease;
}

.hero-cadre:hover {
    transform: rotate(-1.5deg) scale(1.015);
}

.hero-cadre a {
    display: block;
    height: 100%;
}

.hero-cadre img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 52% 48%;
}

/* Zoom lent pendant l'affichage de la slide. L'animation est portee par
   .is-active : elle repart donc du debut a chaque fois que la slide revient,
   puisque la classe est retiree puis reposee par assets/js/main.js.
   "forwards" fige l'image a l'echelle finale si le slider est mis en pause. */
@keyframes hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.13); }
}

.hero-slide.is-active .hero-cadre img {
    animation: hero-zoom 7s ease-out forwards;
}

/* Respect du reglage systeme "reduire les animations". */
@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active .hero-cadre img {
        animation: none;
    }

    .hero-cadre,
    .hero-slide {
        transition: none;
    }
}

/* Voile leger : les titres clairs restent lisibles au-dessus de toute photo. */
.hero-cadre::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .3) 100%);
    pointer-events: none;
}

.hero-arrow {
    position: absolute;
    top: auto;
    bottom: 24px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.hero-arrow:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: #111;
}

.hero-prev {
    right: calc(var(--hero-marge) + 50px);
    left: auto;
}

.hero-next {
    right: var(--hero-marge);
}

.hero-dots {
    position: absolute;
    left: var(--hero-marge);
    bottom: 30px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap; /* le slider affiche toutes les actualites : les puces peuvent etre nombreuses */
    max-width: min(56%, 430px);
    gap: 9px;
    transform: none;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.hero-dots button.is-active {
    outline: 2px solid var(--red);
    background: var(--red);
}

.section-pad {
    padding: 20px 0 0;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
}

.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.section-title-row h2,
.sidebar-heading h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.section-title-row h2 span {
    color: var(--red);
}

.title-mark {
    display: block;
    width: 76px;
    height: 4px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--green-dark) 0 43%, var(--red) 43% 75%, var(--gold) 75% 100%);
}

.section-link {
    margin-top: 4px;
    color: #222;
    font-size: 12px;
}

.section-link:hover {
    color: var(--red);
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(250px, .72fr);
    gap: 20px;
}

.story-stack {
    display: grid;
    gap: 20px;
}

.story-card {
    position: relative;
    display: block;
    min-height: 190px;
    overflow: hidden;
    border-radius: 5px;
    background: #111;
    box-shadow: var(--shadow);
}

.story-card-large {
    min-height: 372px;
}

.story-card::after,
.event-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 62%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.story-card img,
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.story-card:hover img,
.event-card:hover img {
    transform: scale(1.035);
}

.badge {
    position: absolute;
    left: 13px;
    bottom: 78px;
    z-index: 2;
    padding: 5px 7px;
    border-radius: 3px;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.badge.red {
    background: var(--red);
}

.badge.green {
    background: var(--green);
}

.badge.gold {
    color: #111;
    background: var(--gold);
}

.story-body {
    position: absolute;
    right: 13px;
    bottom: 13px;
    left: 13px;
    z-index: 2;
    color: #fff;
}

.story-body h3 {
    margin: 0 0 9px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
}

.story-card-large h3 {
    font-size: 23px;
}

.story-body p {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
}

.news-small-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.story-card-small {
    min-height: 160px;
}

.story-card-small .badge {
    bottom: 82px;
}

.story-card-small h3 {
    font-size: 15px;
}

.social-card,
.quote-card {
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #f8f8f8;
    box-shadow: var(--shadow);
}

.social-card {
    padding: 16px 18px 8px;
}

.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sidebar-heading h2 {
    font-size: 16px;
}

.stripe {
    width: 70px;
    height: 10px;
    background: repeating-linear-gradient(115deg, var(--red) 0 6px, transparent 6px 10px, var(--gold) 10px 16px, transparent 16px 20px, var(--green) 20px 26px, transparent 26px 30px);
}

.social-row {
    display: grid;
    grid-template-columns: 48px 1fr 78px;
    gap: 13px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e5e5e5;
}

.social-row > i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    color: #fff;
    font-size: 25px;
}

.social-row strong,
.social-row small {
    display: block;
}

.social-row strong {
    font-size: 15px;
}

.social-row small {
    color: #444;
    font-size: 12px;
}

.social-row em {
    display: grid;
    place-items: center;
    min-height: 30px;
    border: 1px solid currentColor;
    border-radius: 3px;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.facebook > i {
    background: #315a9d;
}

.facebook em {
    color: #315a9d;
}

.twitter > i {
    background: #40a8df;
}

.twitter em {
    color: #1688c4;
}

.youtube > i {
    background: #e1251b;
}

.youtube em {
    color: #e1251b;
}

.instagram > i {
    background: linear-gradient(135deg, #ffb347, #e72d83, #6749d9);
}

.instagram em {
    color: #d22d8a;
}

.newsletter-panel {
    margin-top: 14px;
    padding: 22px 19px 21px;
    border-radius: 5px;
    color: #fff;
    background: var(--green-dark);
    box-shadow: var(--shadow);
}

.newsletter-panel > i {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 11px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 29px;
}

.newsletter-panel h2,
.join-panel h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.newsletter-panel p,
.join-panel p {
    margin: 12px 0 18px;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr 96px;
}

.newsletter-form input {
    min-width: 0;
    height: 36px;
    border: 0;
    border-radius: 4px 0 0 4px;
    padding: 0 12px;
    font-size: 12px;
}

.newsletter-form button {
    height: 36px;
    border: 0;
    border-radius: 0 4px 4px 0;
    color: #111;
    background: var(--gold);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.quote-card {
    position: relative;
    overflow: hidden;
    margin-top: 14px;
    padding: 22px 20px 19px;
    min-height: 146px;
}

.quote-card::after {
    content: "Africa";
    position: absolute;
    right: 16px;
    bottom: 22px;
    color: rgba(150, 135, 95, .09);
    font-size: 54px;
    font-weight: 900;
}

.quote-card i {
    color: var(--green-dark);
    font-size: 32px;
}

.quote-card blockquote {
    position: relative;
    z-index: 1;
    margin: 10px 0 7px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.quote-card cite {
    position: relative;
    z-index: 1;
    color: #444;
    font-style: normal;
    font-size: 12px;
}

.quote-card span {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42px;
    height: 4px;
    background: var(--green-dark);
}

.events-title {
    margin-top: 49px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.event-card {
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f6f6f6;
    box-shadow: var(--shadow);
}

.event-image {
    position: relative;
    height: 128px;
    overflow: hidden;
    background: #111;
}

.event-image time {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    min-height: 56px;
    color: #111;
    background: #fff;
    text-align: center;
}

.event-image time strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.event-image time span {
    font-size: 10px;
    font-weight: 800;
}

.event-image h3 {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}

.event-card p {
    margin: 0;
    padding: 11px 12px;
    color: #333;
    font-size: 12px;
}

.event-card p i {
    margin-right: 6px;
}

.join-panel {
    margin-top: 44px;
    padding: 27px 22px 24px;
    border-radius: 5px;
    color: #fff;
    background: var(--red);
    box-shadow: var(--shadow);
}

.join-panel > i {
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 42px;
}

.btn-light {
    color: #111;
    background: #fff;
}

.btn-light:hover {
    background: var(--gold);
}

.site-footer {
    margin-top: 35px;
    color: #fff;
    background: radial-gradient(circle at 14% 35%, rgba(7, 150, 75, .22), transparent 32%), var(--green-deeper);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr 1.45fr;
    gap: 54px;
    padding: 25px 0 27px;
}

.footer-brand a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.footer-brand strong {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.footer-brand p {
    margin: 14px 0 16px;
    color: rgba(255, 255, 255, .88);
}

.footer-socials {
    display: flex;
    gap: 23px;
    font-size: 18px;
}

.footer-socials a:hover:nth-child(1) {
    color: var(--red);
}

.footer-socials a:hover:nth-child(2) {
    color: var(--green);
}

.footer-socials a:hover:nth-child(3) {
    color: var(--red);
}

.footer-socials a:hover:nth-child(4) {
    color: var(--gold);
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 6px;
}

.site-footer a,
.site-footer p {
    color: rgba(255, 255, 255, .9);
}

.site-footer a:hover {
    color: var(--gold);
}

.footer-contact p {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 0 0 12px;
}

.footer-contact i {
    width: 16px;
    color: var(--gold);
    text-align: center;
}

.footer-bottom {
    position: relative;
    min-height: 34px;
    background: #00221b;
    font-size: 11px;
}

.pan-line {
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0 25%, var(--green) 25% 45%, var(--gold) 45% 56%, var(--red) 56% 72%, var(--green) 72% 100%);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 32px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.footer-bottom nav {
    display: flex;
    gap: 17px;
}

.footer-bottom nav a + a {
    padding-left: 17px;
    border-left: 1px solid rgba(255, 255, 255, .35);
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .55);
}

.search-modal.is-open {
    display: grid;
}

.search-modal form {
    position: relative;
    width: min(560px, 100%);
    padding: 28px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.search-modal label {
    display: block;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.search-modal form > div {
    display: grid;
    grid-template-columns: 1fr 46px;
}

.search-modal input {
    min-width: 0;
    height: 46px;
    border: 1px solid #d8d8d8;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    padding: 0 14px;
}

.search-modal form > div button {
    border: 0;
    border-radius: 0 4px 4px 0;
    color: #fff;
    background: var(--green-dark);
}

.search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eee;
    cursor: pointer;
}

@media (max-width: 1120px) {
    .identity-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 0;
    }

    .award-banner {
        grid-template-columns: 1fr 58px 1fr 160px;
    }

    .menu {
        gap: 19px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 992px) {
    .container {
        width: min(100% - 34px, 900px);
    }

    .topbar nav {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .brand {
        justify-self: center;
    }

    .award-banner {
        grid-template-columns: 1fr 1fr;
    }

    .award-medal,
    .award-next {
        display: none;
    }

    .main-nav {
        height: auto;
    }

    .nav-inner {
        min-height: 52px;
        flex-wrap: wrap;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 39px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 0 12px;
        background: #fff;
        font-weight: 800;
        text-transform: uppercase;
    }

    .menu {
        order: 5;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 14px;
        border-top: 1px solid #e7e7e7;
    }

    .menu.is-open {
        display: flex;
    }

    /* Menu colle en haut : on borne sa hauteur pour qu'il ne couvre pas tout l'ecran. */
    .main-nav.is-stuck .menu.is-open {
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }

    .menu a {
        min-height: 38px;
    }

    /* En colonne, un filet vertical a gauche se lit mieux qu'un soulignement
       qui ressemblerait a un separateur entre les entrees. */
    .menu > li > a.is-current {
        padding-left: 9px;
    }

    .menu > li > a.is-current::after {
        right: auto;
        bottom: auto;
        top: 6px;
        left: 0;
        width: 3px;
        height: calc(100% - 12px);
    }

    .has-dropdown ul {
        position: static;
        width: 100%;
        padding-left: 16px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .newsletter-panel,
    .quote-card,
    .join-panel {
        margin-top: 0;
    }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 680px);
    }

    .identity-band {
        min-height: 0;
    }

    .brand {
        grid-template-columns: 86px 1fr;
    }

    .brand img {
        width: 86px;
        height: 86px;
    }

    .brand strong {
        font-size: 29px;
    }

    .brand em {
        font-size: 17px;
    }

    .award-banner {
        display: none;
    }

    /* Mobile : le visuel passe au-dessus, le texte en dessous. Les deux blocs
       sont dans une grille a une colonne, ils ne peuvent donc pas se chevaucher. */
    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: center;
        justify-items: center;
    }

    .hero-visuel {
        order: 1;
        width: 100%;
        max-width: 290px; /* visuel resserre : en pleine largeur, il commandait la hauteur */
    }

    .hero-texte {
        order: 2;
    }

    .hero-texte h1,
    .hero-texte p {
        max-width: 100%;
    }

    .hero-texte h1 {
        font-size: clamp(23px, 6.4vw, 31px);
    }

    .hero-piste {
        padding-block: 24px 58px; /* place laissee aux fleches et aux puces */
    }

    /* Le cadre se redresse : incline, il rognerait l'image sur un ecran etroit. */
    .hero-cadre {
        transform: none;
    }

    .hero-cadre:hover {
        transform: scale(1.01);
    }

    .hero-visuel::before {
        inset: 10px -10px -10px 10px;
        transform: rotate(2deg);
    }

    .hero-lueur {
        display: none;
    }

    .hero-arrow {
        top: auto;
        bottom: 16px;
        transform: none;
    }

    .news-layout,
    .news-small-grid,
    .sidebar-column,
    .events-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .story-card,
    .story-card-large {
        min-height: 250px;
    }

    .section-title-row,
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-inner {
        padding: 9px 0;
    }

    .footer-bottom nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer-bottom nav a + a {
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .home-button,
    .search-button {
        width: 38px;
        height: 38px;
    }

    .mobile-toggle {
        gap: 6px;
        height: 38px;
        padding: 0 10px;
    }

    .nav-actions {
        width: auto;
        gap: 8px;
        margin-left: auto;
        justify-content: flex-end;
    }

    .member-button {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .member-label-full {
        display: none;
    }

    .member-label-mobile {
        display: inline;
    }

    .topbar {
        height: auto;
        min-height: 34px;
        text-align: center;
    }

    .topbar p {
        padding: 7px 0;
    }
}

/* Inner pages */
.page-hero {
    min-height: 180px;
    color: #fff;
    background-color: var(--green-dark);
    background-position: center;
    background-size: cover;
}

.page-hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
    padding: 26px 0;
}

.page-hero h1 {
    max-width: 680px;
    margin: 8px 0 8px;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.page-hero p:not(.breadcrumb) {
    max-width: 470px;
    margin: 0;
    font-size: 16px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.breadcrumb span::before {
    content: ">";
    margin-right: 10px;
    color: rgba(255, 255, 255, .55);
}

.page-hero-news {
    background-image: linear-gradient(90deg, rgba(0, 45, 36, .96), rgba(0, 45, 36, .74), rgba(0, 45, 36, .62)), url("../../images/entete.jpg");
}

.page-hero-events {
    background-image: linear-gradient(90deg, rgba(0, 45, 36, .96), rgba(0, 45, 36, .76), rgba(0, 45, 36, .45)), url("../../images/entete.jpg");
}

.page-hero-video {
    background-image: linear-gradient(90deg, rgba(0, 45, 36, .96), rgba(0, 45, 36, .7), rgba(210, 35, 42, .48)), url("../../images/entete.jpg");
}

.page-hero-search {
    background-image: linear-gradient(90deg, rgba(0, 45, 36, .98), rgba(0, 45, 36, .82), rgba(0, 45, 36, .35)), url("../../images/entete.jpg");
}

.page-hero-contact {
    background-image: linear-gradient(90deg, rgba(0, 45, 36, .98), rgba(0, 45, 36, .74), rgba(0, 45, 36, .38)), url("../../images/entete.jpg");
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 18px;
    margin-bottom: 10px;
    overflow-x: auto;
}

.filter-tabs a {
    flex: 0 0 auto;
    min-width: 90px;
    padding: 13px 17px;
    border-radius: 4px;
    background: #f4f4f4;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.filter-tabs a.is-active,
.filter-tabs a:hover {
    color: #fff;
    background: var(--red);
}

.filter-tabs.compact {
    margin: 0;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    align-items: start;
    padding-top: 16px;
}

.panel,
.sidebar-box {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
}

.panel {
    padding: 20px;
}

.sidebar-box {
    padding: 18px;
    margin-bottom: 16px;
}

.sidebar-box h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-box h3 {
    margin: 18px 0 10px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-feature {
    display: grid;
    grid-template-columns: minmax(260px, .95fr) 1fr;
    gap: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8e8e8;
}

.news-feature img,
.article-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.news-feature h2 {
    margin: 10px 0;
    font-size: 27px;
    line-height: 1.12;
}

.badge-inline {
    display: inline-flex;
    padding: 5px 7px;
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.badge-inline.red {
    background: var(--red);
}

.badge-inline.green {
    background: var(--green);
}

.badge-inline.gold {
    color: #111;
    background: var(--gold);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.article-tile,
.video-card,
.page-event-card {
    overflow: hidden;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    background: #fff;
    box-shadow: var(--shadow);
}

.article-tile img {
    height: 138px;
}

.article-tile div,
.video-card div:last-child,
.event-card-body {
    padding: 12px;
}

.article-tile h3,
.video-card h3,
.event-card-body h3 {
    margin: 8px 0 7px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
}

.article-tile p,
.news-feature p,
.search-result p {
    margin: 0 0 10px;
    color: #333;
}

.article-tile small,
.news-feature small,
.search-result small,
.video-card small {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: #222;
    font-size: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.pagination a,
.pagination span {
    min-width: 35px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.pagination .is-active {
    color: #fff;
    border-color: var(--red);
    background: var(--red);
}

.search-box form,
.big-search {
    display: grid;
    grid-template-columns: 1fr 44px;
}

.search-box input,
.big-search input,
.sidebar-box select,
.contact-form input,
.contact-form select,
.contact-form textarea,
.member-form input,
.member-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    padding: 0 14px;
}

.search-box input,
.search-box button {
    height: 38px;
}

.search-box button,
.big-search button {
    border: 0;
    border-radius: 0 4px 4px 0;
    color: #fff;
    background: var(--green-dark);
}

.big-search {
    max-width: 750px;
    grid-template-columns: 1fr 155px;
    margin-top: 18px;
}

.big-search input,
.big-search button {
    height: 50px;
    font-size: 17px;
}

.big-search button {
    background: var(--red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.category-list,
.icon-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list li,
.icon-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #ededed;
}

.popular-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: item;
}

.popular-list li {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.popular-list img {
    width: 82px;
    height: 52px;
    border-radius: 4px;
    object-fit: cover;
}

.popular-list span {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.popular-list small {
    display: block;
    margin-top: 5px;
    color: #555;
    font-weight: 400;
}

.popular-list.ranked li {
    grid-template-columns: 24px 82px 1fr;
}

.popular-list.ranked b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    background: var(--gold);
}

.toolbar-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.select-filters {
    display: flex;
    gap: 10px;
}

.select-filters select {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 13px;
    text-transform: uppercase;
}

.event-feature-card {
    display: grid;
    grid-template-columns: 76px minmax(280px, 1fr) 1fr;
    gap: 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
}

.event-feature-card > time {
    display: grid;
    place-items: start center;
    padding-top: 18px;
    background: #f7f7f7;
}

.event-feature-card time strong {
    font-size: 42px;
    line-height: 1;
}

.event-feature-card time span {
    font-weight: 900;
}

.event-feature-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.event-feature-card div {
    align-self: center;
    padding: 22px 20px;
}

.event-feature-card h2 {
    margin: 11px 0;
    font-size: 28px;
    line-height: 1.05;
}

.btn-red {
    color: #fff;
    background: var(--red);
}

.block-title {
    margin: 22px 0 14px;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.page-event-card .event-image {
    height: 96px;
}

.event-card-body a {
    display: block;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.calendar-box h3 {
    text-align: center;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.calendar-grid span {
    padding: 7px 0;
    border-radius: 4px;
}

.calendar-grid .gold-day {
    background: var(--gold);
}

.calendar-grid .red-day {
    color: #fff;
    background: var(--red);
}

.join-strip {
    margin-top: 20px;
    color: #fff;
    background: var(--green-dark);
}

.join-strip .container {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 86px;
}

.join-strip i {
    color: var(--gold);
    font-size: 42px;
}

.join-strip h2,
.join-strip p {
    margin: 0;
}

.video-feature {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) .9fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 34px;
}

.page-videos .page-main,
.page-videos .page-sidebar {
    min-width: 0;
}

.video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background: #111;
}

.page-videos .video-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.video-thumb button {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--red);
    transform: translate(-50%, -50%);
}

.video-thumb span {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 4px 6px;
    border-radius: 3px;
    color: #fff;
    background: rgba(0, 0, 0, .72);
    font-weight: 800;
}

.video-feature h2 {
    font-size: 28px;
}

.video-tabs {
    margin: 28px 0 20px;
}

.page-videos .video-tabs {
    max-width: 100%;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.page-videos .video-tabs a {
    scroll-snap-align: start;
    white-space: nowrap;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.video-card .video-thumb {
    border-radius: 5px 5px 0 0;
}

.page-videos .video-card .video-thumb {
    aspect-ratio: 16 / 9;
}

.video-card .video-thumb button {
    width: 48px;
    height: 48px;
}

.center-action {
    margin: 30px 0 0;
    text-align: center;
}

.btn-outline-red {
    border: 1px solid var(--red);
    color: var(--red);
    background: #fff;
}

.search-results {
    display: grid;
    gap: 18px;
}

.result-count {
    margin: 0 0 18px;
    font-size: 18px;
}

.result-count strong {
    color: var(--red);
    font-size: 28px;
}

.search-result {
    display: grid;
    grid-template-columns: 188px 1fr;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4e4e4;
}

.search-result img {
    width: 188px;
    height: 94px;
    border-radius: 4px;
    object-fit: cover;
}

.search-result h3 {
    margin: 7px 0 5px;
    font-size: 17px;
}

.sidebar-box label {
    display: block;
    margin: 9px 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    padding: 9px 13px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
}

.search-help {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
}

.search-help > i {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fbf1e2;
    font-size: 32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    padding-top: 22px;
}

.contact-form,
.member-form {
    display: grid;
    gap: 14px;
}

.contact-form label,
.member-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.contact-form b,
.member-form b {
    color: var(--red);
}

.contact-form input,
.contact-form select,
.member-form input,
.member-form select {
    height: 42px;
}

.contact-form textarea {
    min-height: 92px;
    padding-top: 12px;
}

.checkline {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 9px !important;
    font-weight: 400 !important;
}

.checkline input {
    width: auto;
    margin-top: 3px;
}

.contact-details {
    padding: 20px;
}

.contact-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.contact-card i,
.round-socials a {
    display: grid;
    place-items: center;
    color: #d89000;
    font-size: 30px;
}

.contact-card b {
    display: block;
    text-transform: uppercase;
}

.round-socials {
    display: flex;
    gap: 13px;
}

.round-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: #315a9d;
    font-size: 18px;
}

.round-socials a:nth-child(2) {
    background: #40a8df;
}

.round-socials a:nth-child(3) {
    background: #e1251b;
}

.round-socials a:nth-child(4) {
    background: linear-gradient(135deg, #ffb347, #e72d83, #6749d9);
}

.map-panel {
    margin-top: 16px;
}

.map-panel img {
    width: 100%;
    min-height: 210px;
    border-radius: 5px;
    object-fit: cover;
}

.contact-cta {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 20px;
    align-items: center;
    margin-top: 16px;
    padding: 24px 28px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(110deg, var(--green-dark) 0 56%, var(--red) 56% 100%);
}

.contact-cta i {
    color: var(--gold);
    font-size: 46px;
}

.contact-cta h2,
.contact-cta p {
    margin: 0;
}

.auth-page {
    padding: 58px 0 54px;
    background: #f3f1ec;
}

.auth-intro {
    text-align: center;
}

.auth-intro img {
    width: 92px;
    height: 92px;
    margin: 0 auto;
    object-fit: contain;
}

.auth-intro h1 {
    margin: 14px 0 8px;
    color: var(--green-dark);
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-intro .title-mark {
    margin: 0 auto 14px;
}

.auth-card {
    margin-top: 34px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .13);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #ddd;
}

.auth-tabs button {
    height: 62px;
    border: 0;
    background: #fff;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-tabs .is-active {
    color: var(--red);
    border-bottom: 3px solid var(--red);
}

.auth-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    padding: 22px 14px 14px 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.member-form .btn-red {
    width: 100%;
    height: 50px;
    font-size: 16px;
}

.member-benefits {
    padding: 42px 28px;
    border-radius: 6px;
    color: #fff;
    background: var(--green-dark);
}

.member-benefits h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.1;
    text-transform: uppercase;
}

.member-benefits h2 span {
    color: var(--gold);
}

.member-benefits p {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 14px;
    margin: 34px 0 0;
}

.member-benefits i {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
}

.member-benefits b {
    display: block;
}

.auth-links {
    text-align: center;
}

.auth-links a {
    color: var(--red);
    font-weight: 900;
}

@media (max-width: 992px) {
    .page-grid,
    .contact-grid,
    .auth-content,
    .video-feature,
    .event-feature-card {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .sidebar-box,
    .page-sidebar .social-card,
    .page-sidebar .newsletter-panel {
        margin: 0;
    }

    .event-list-grid,
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-cta,
    .join-strip .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page-sidebar,
    .article-grid,
    .event-list-grid,
    .video-grid,
    .form-grid,
    .news-feature,
    .search-result {
        grid-template-columns: 1fr;
    }

    .search-result img {
        width: 100%;
        height: 150px;
    }

    .toolbar-row {
        flex-direction: column;
    }

    .select-filters,
    .big-search {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .big-search button {
        border-radius: 4px;
    }

    .auth-content {
        padding: 18px;
    }
}

@media (max-width: 760px) {
    .page-videos .page-hero-video {
        min-height: 150px;
    }

    .page-videos .page-hero-video h1 {
        font-size: 34px;
    }

    .page-videos .page-hero-video p:not(.breadcrumb) {
        max-width: 32rem;
        margin-bottom: 0;
        font-size: 15px;
        line-height: 1.45;
    }

    .page-videos .page-grid {
        gap: 22px;
        padding-top: 18px;
    }

    .page-videos .section-title-row {
        align-items: flex-start;
    }

    .page-videos .video-feature {
        gap: 14px;
        margin-bottom: 22px;
    }

    .page-videos .video-feature h2 {
        margin: 8px 0;
        font-size: 24px;
        line-height: 1.12;
    }

    .page-videos .video-feature p {
        margin: 8px 0 0;
        line-height: 1.45;
    }

    .page-videos .video-thumb button {
        width: 54px;
        height: 54px;
    }

    .page-videos .video-card .video-thumb button {
        width: 44px;
        height: 44px;
    }

    .page-videos .video-tabs {
        margin: 20px -12px 16px;
        padding: 0 12px 8px;
    }

    .page-videos .video-grid {
        gap: 16px;
    }

    .page-videos .video-card h3 {
        font-size: 17px;
    }

    .page-videos .video-card small {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .page-videos .pagination {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .page-videos .center-action .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .page-videos .page-hero-video h1 {
        font-size: 30px;
    }

    .page-videos .video-feature h2 {
        font-size: 21px;
    }

    .page-videos .video-tabs a {
        min-width: auto;
        padding: 11px 13px;
        font-size: 11px;
    }

    .page-videos .popular-list.ranked li {
        grid-template-columns: 22px 72px minmax(0, 1fr);
        gap: 8px;
    }

    .page-videos .popular-list img {
        width: 72px;
        height: 46px;
    }

    .page-videos .popular-list span {
        min-width: 0;
        font-size: 11px;
    }
}

/* --- Article details --- */
.page-hero-article {
    min-height: 112px;
    background-image: linear-gradient(90deg, rgba(0, 45, 36, .96), rgba(0, 45, 36, .82), rgba(0, 45, 36, .3)), url("../../images/entete.jpg");
}

.page-hero-article h1 {
    font-size: 34px;
}

.article-detail-grid {
    padding-top: 24px;
}

.article-content-wrap {
    position: relative;
    min-width: 0;
}

.article-share-rail {
    position: absolute;
    top: 36px;
    left: -50px;
    display: grid;
    gap: 8px;
}

.article-share-rail a,
.share-bottom a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 3px;
    color: #fff;
    background: #777;
}

.article-share-rail .facebook,
.share-bottom .facebook { background: #315a9d; }
.article-share-rail .x,
.share-bottom .x { background: #111; }
.article-share-rail .whatsapp,
.share-bottom .whatsapp { background: #20a95a; }
.article-share-rail .linkedin,
.share-bottom .linkedin { background: #0a66c2; }
.article-share-rail .mail,
.share-bottom .mail { background: #8a8a8a; }
.article-share-rail .link,
.share-bottom .link { background: #6b6b6b; }

.article-title {
    margin: 12px 0 8px;
    color: var(--green-dark);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.08;
}

.article-lead {
    max-width: 760px;
    margin: 0 0 14px;
    color: #333;
    font-size: 17px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin: 14px 0 18px;
    color: #555;
    font-size: 12px;
}

.article-meta span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.article-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.article-main-image {
    margin: 0;
}

.article-main-image img {
    width: 100%;
    max-height: 430px;
    border-radius: 5px;
    object-fit: cover;
}

.article-main-image figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 7px;
    color: #777;
    font-size: 11px;
}

.article-summary-box,
.article-body blockquote,
.article-takeaway,
.author-box,
.article-nav a,
.comments-box form {
    border: 1px solid #e3e8e6;
    border-radius: 6px;
    background: #f7fbfa;
}

.article-summary-box {
    margin: 20px 0;
    padding: 16px 18px;
}

.article-resume-highlight {
    margin: 16px 0 22px;
    padding: 16px 18px;
    border-radius: 6px;
    color: #12345d;
    background: #DBEAFE;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.article-summary-box h2 {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: 16px;
    text-transform: uppercase;
}

.article-summary-box ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 42px;
    margin: 0;
    padding-left: 20px;
    color: #333;
}

.article-body {
    position: relative;
    color: #2a2a2a;
    font-size: 16px;
    line-height: 1.65;
}

.article-body h2 {
    margin: 28px 0 8px;
    color: var(--green-dark);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.15;
}

.article-body p {
    margin: 0 0 14px;
}

.article-body ul {
    margin: 0 0 18px;
    padding-left: 0;
    list-style: none;
}

.article-body li {
    position: relative;
    margin: 7px 0;
    padding-left: 20px;
}

.article-body li::before {
    content: "";
    position: absolute;
    top: .75em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.article-body blockquote {
    position: relative;
    margin: 20px 0;
    padding: 20px 24px 20px 78px;
    border-left: 4px solid var(--gold);
    color: var(--green-dark);
    font-weight: 800;
    font-style: italic;
}

.article-body blockquote::before {
    content: "“";
    position: absolute;
    left: 20px;
    top: 5px;
    color: var(--gold);
    font-size: 74px;
    line-height: 1;
    font-style: normal;
}

.article-body cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-weight: 600;
}

.article-stat-box {
    float: right;
    width: 245px;
    margin: 4px 0 16px 22px;
    padding: 18px;
    border-radius: 6px;
    background: #f0f8f5;
}

.article-stat-box h3 {
    margin: 0 0 12px;
    color: var(--green-dark);
    text-transform: uppercase;
}

.article-stat-box strong {
    display: block;
    color: var(--red);
    font-size: 23px;
}

.article-stat-box span {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
}

.article-takeaway {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--gold);
}

.article-takeaway h3 {
    margin: 0 0 8px;
    color: var(--green-dark);
    text-transform: uppercase;
}

.article-takeaway h3 i {
    color: var(--green);
}

.article-sources {
    color: #444;
    font-size: 13px;
}

.article-sources a {
    color: var(--red);
    font-weight: 800;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 18px 0;
}

.article-tags a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    font-size: 12px;
}

.article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.article-nav a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 15px;
    background: #fff;
    font-size: 12px;
}

.article-nav b {
    color: var(--green-dark);
}

.author-box {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #fff;
}

.author-box img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: contain;
}

.author-box h2 {
    margin: 0 0 5px;
    color: var(--green-dark);
}

.author-box p {
    margin: 0;
    color: #555;
}

.author-source-box {
    grid-template-columns: 1fr;
    border-color: #bfdbfe;
    background: #f8fbff;
}

.author-source-box a {
    color: var(--red);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.share-bottom h2,
.related-articles > h2,
.comments-box > h2 {
    margin: 22px 0 12px;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.share-bottom div {
    display: flex;
    gap: 8px;
}

.related-articles .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comments-box article {
    position: relative;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.comments-box b,
.comments-box small {
    display: block;
}

.comments-box small {
    color: #777;
}

.comments-box article a {
    position: absolute;
    top: 16px;
    right: 0;
    color: var(--red);
    font-weight: 800;
}

.comments-box form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    margin-top: 15px;
    padding: 12px;
    background: #fff;
}

.comments-box label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.comments-box input {
    height: 39px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 12px;
}

.article-join-panel {
    margin-top: 16px;
}

@media (max-width: 1180px) {
    .article-share-rail {
        position: static;
        display: flex;
        margin-bottom: 14px;
    }
}

@media (max-width: 800px) {
    .article-summary-box ol,
    .article-nav,
    .related-articles .article-grid,
    .comments-box form {
        grid-template-columns: 1fr;
    }

    .article-stat-box {
        float: none;
        width: auto;
        margin-left: 0;
    }
}

/* --- Listes d'articles par categorie / sous-categorie --- */
.empty-state {
    margin: 0;
    padding: 28px 18px;
    border: 1px dashed #d8d8d8;
    border-radius: 6px;
    background: #fafafa;
    color: #666;
    text-align: center;
}

.category-list li > a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.category-list li > a:hover {
    color: var(--red);
}

.news-feature h2 a,
.article-tile h3 a,
.popular-list a {
    color: inherit;
    text-decoration: none;
}

.news-feature h2 a:hover,
.article-tile h3 a:hover,
.popular-list a:hover {
    color: var(--red);
}

/* --- Lecteur video en fenetre SweetAlert2 --- */
.lecteur-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* rapport 16:9 */
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.lecteur-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.swal2-popup.popup-video {
    width: min(900px, calc(100vw - 24px));
}

.swal2-popup.popup-video .swal2-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    padding-bottom: 14px;
}

.swal2-popup.popup-video .swal2-close {
    color: #fff;
    opacity: .85;
}

.swal2-popup.popup-video .swal2-close:hover {
    color: var(--red);
    opacity: 1;
}

/* Les vignettes et titres ouvrent le lecteur : le curseur doit l'annoncer. */
.video-thumb[data-video-id],
.video-feature h2[data-video-id],
.video-card h3[data-video-id],
.popular-list a[data-video-id] {
    cursor: pointer;
}

.video-feature h2[data-video-id]:hover,
.video-card h3[data-video-id]:hover,
.popular-list a[data-video-id]:hover {
    color: var(--red);
}

.video-thumb[data-video-id]:focus-visible,
.video-feature h2[data-video-id]:focus-visible,
.video-card h3[data-video-id]:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

/* --- Accueil : bloc "Actualités récentes" raccourci d'un tiers ---
   Les hauteurs sont fixees explicitement : laissees libres, c'etaient les
   proportions des images qui imposaient la hauteur du bloc (537px observes,
   bien au-dela des min-height de 372 et 190px). Tout est porte par .news-layout
   pour ne pas toucher la grille .news-small-grid situee juste en dessous. */
.news-layout .story-card-large {
    min-height: 0;
    height: 358px;
}

.news-layout .story-stack {
    gap: 14px;
}

.news-layout .story-stack .story-card {
    min-height: 0;
    height: 172px; /* 172 + 14 + 172 = 358 : la colonne s'aligne sur la grande carte */
}

/* Sur une carte plus courte, un badge cale a 78px du bas recouvrait les titres
   de trois lignes. Il passe en haut de la carte, hors d'atteinte du texte. */
.news-layout .badge {
    top: 12px;
    bottom: auto;
}

/* Titres resserres pour que trois lignes tiennent dans la hauteur reduite. */
.news-layout .story-card-large h3 {
    font-size: 20px;
}

.news-layout .story-stack h3 {
    margin-bottom: 7px;
    font-size: 15px;
}

@media (max-width: 900px) {
    /* En colonne, les cartes reprennent la meme reduction d'un tiers (250 -> 167px). */
    .news-layout .story-card-large,
    .news-layout .story-stack .story-card {
        height: 167px;
    }
}

/* ============================================================
   Proportions d'images uniformes (5/4)
   Chaque vignette impose le meme rapport, quelle que soit la taille
   d'origine du fichier : object-fit recadre au centre. Les hauteurs
   fixes posees ailleurs sont neutralisees, sinon elles gagneraient
   sur le rapport d'aspect.
   ============================================================ */
.article-tile img,
.news-feature img,
.story-card-small img,
.search-result-media img,
.video-card .video-thumb,
.page-event-card .event-image,
.related-articles .article-tile img {
    aspect-ratio: 5 / 4;
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: cover;
}

.video-card .video-thumb img,
.page-event-card .event-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

/* ============================================================
   Page de resultats de recherche
   ============================================================ */
.search-results {
    display: grid;
    gap: 16px;
}

.search-result {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: box-shadow .2s ease, transform .2s ease;
}

.search-result:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

.search-result-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
    background: #eee;
}

.search-result-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(210, 35, 42, .92);
    color: #fff;
    transform: translate(-50%, -50%);
}

.search-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 8px;
}

.search-result-cat {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.search-result h3 {
    margin: 0 0 7px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
}

.search-result h3 a:hover {
    color: var(--red);
}

.search-filters label {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
}

.search-filters h3 {
    margin: 4px 0 8px;
    font-size: 13px;
    text-transform: uppercase;
}

.btn-filtre {
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

.pagination-info {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* ============================================================
   Pages de lecture : evenement et video
   ============================================================ */
.evenement-infos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 20px 0 26px;
}

.evenement-infos > div {
    padding: 15px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 5px;
    background: var(--soft);
}

.evenement-infos i {
    color: var(--red);
    font-size: 17px;
}

.evenement-infos h2 {
    margin: 7px 0 4px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.evenement-infos p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

/* Lecteur integre a la page, par opposition a la fenetre SweetAlert2 des listes. */
.lecteur-video.lecteur-page {
    margin: 0 0 24px;
}

.article-main-image img {
    aspect-ratio: 5 / 4;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 760px) {
    .search-result {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================================
   Espace membre
   ============================================================ */
.account-notification-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 38px;
    color: #101010;
}

.account-notification-link span {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 11px;
    font-weight: 900;
}

.account-nav-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    color: #111;
    font-weight: 800;
}

.account-nav-user img {
    width: 38px;
    height: 38px;
    border: 2px solid #f1d2ba;
    border-radius: 50%;
    object-fit: cover;
}

.account-nav-user i {
    font-size: 10px;
}

.account-page {
    padding: 0 0 42px;
    background:
        linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .96)),
        url("../../images/page-assets/auth-bg.jpg") top center / 1180px auto no-repeat,
        #f7f8f7;
}

.account-intro {
    padding: 22px 0 18px;
    text-align: center;
}

.account-intro img {
    width: 76px;
    height: 76px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.account-intro h1 {
    margin: 0;
    color: var(--green-dark);
    font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
    font-size: clamp(28px, 3.3vw, 40px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.account-intro .title-mark {
    margin: 13px auto 11px;
}

.account-intro p {
    margin: 0;
    color: #242424;
    font-size: 16px;
}

.account-dashboard-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
}

.account-left,
.account-main,
.account-right {
    display: grid;
    gap: 15px;
}

.account-card {
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
}

.account-profile-card {
    padding: 16px;
    text-align: center;
}

.account-avatar {
    width: 106px;
    height: 106px;
    margin: 0 auto 10px;
    border-radius: 50%;
    object-fit: cover;
}

.account-profile-card h2 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
}

.account-profile-card h2 i {
    color: var(--green);
    font-size: 15px;
}

.account-profile-card p {
    margin: 4px 0 8px;
    color: #505050;
}

.engaged-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 4px;
    color: #111;
    background: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.account-menu {
    padding: 6px;
}

.account-menu a,
.account-small-panel a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 43px;
    padding: 0 13px;
    border-radius: 4px;
    font-weight: 600;
}

.account-menu a i,
.account-small-panel a i {
    width: 17px;
    color: var(--green-dark);
    text-align: center;
}

.account-menu a.is-active {
    color: #fff;
    background: var(--green-dark);
}

.account-menu a.is-active i {
    color: #fff;
}

.account-menu a span {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    border-radius: 50%;
    color: #fff;
    background: var(--red);
    font-size: 11px;
    font-weight: 900;
}

.account-menu .logout-link {
    color: var(--red);
}

.account-menu .logout-link i {
    color: var(--red);
}

.account-small-panel {
    padding: 15px;
}

.account-small-panel h2,
.account-section h2,
.account-list-card h2,
.support-card h2,
.contribution-card h2 {
    margin: 0;
    font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
    font-size: 19px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-progress-head {
    display: flex;
    justify-content: space-between;
    margin: 14px 0 8px;
    font-size: 13px;
}

.account-progress,
.petition-progress {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e5e5e5;
}

.account-progress span,
.petition-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.account-small-panel p {
    margin: 12px 0;
    color: #4f4f4f;
}

.outline-action,
.red-action,
.green-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.outline-action {
    color: var(--green-dark);
    border-color: var(--green);
    background: #fff;
}

.red-action {
    color: #fff;
    border-color: var(--red);
    background: var(--red);
}

.green-action {
    color: #fff;
    border-color: var(--green-dark);
    background: var(--green-dark);
}

.account-welcome,
.account-section,
.account-list-card,
.account-publications,
.support-card,
.contribution-card {
    padding: 15px;
}

.account-welcome h2 {
    margin: 0 0 4px;
    font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
    font-size: 29px;
    font-weight: 900;
}

.account-welcome p {
    margin: 0 0 13px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.account-stat {
    display: grid;
    place-items: center;
    min-height: 105px;
    padding: 13px 8px;
    border: 1px solid #ddd;
    border-top: 4px solid;
    border-radius: 5px;
    text-align: center;
}

.account-stat i {
    margin-bottom: 5px;
    font-size: 22px;
}

.account-stat strong {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.account-stat span {
    margin-top: 4px;
    color: #525252;
    font-size: 12px;
    line-height: 1.15;
}

.stat-red {
    border-top-color: var(--red);
}

.stat-red i {
    color: var(--red);
}

.stat-green {
    border-top-color: var(--green);
}

.stat-green i {
    color: var(--green);
}

.stat-gold {
    border-top-color: var(--gold);
}

.stat-gold i {
    color: var(--gold);
}

.stat-blue {
    border-top-color: #1686d9;
}

.stat-blue i,
.stat-blue strong {
    color: #1686d9;
}

.account-section-head {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.account-section-head a {
    color: #0c62b0;
    font-size: 12px;
    font-weight: 700;
}

.petition-card {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e7e7e7;
}

.petition-card:last-of-type {
    border-bottom: 0;
}

.petition-card img {
    width: 100%;
    height: 150px;
    border-radius: 4px;
    object-fit: cover;
}

.petition-card.compact img {
    height: 100px;
}

.mini-label {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.mini-label.red {
    background: var(--red);
}

.mini-label.green {
    background: var(--green);
}

.petition-card h3 {
    margin: 7px 0 3px;
    font-size: 18px;
    line-height: 1.1;
}

.petition-card p {
    margin: 4px 0;
    color: #3f3f3f;
    line-height: 1.35;
}

.petition-card .meta {
    color: #707070;
    font-size: 12px;
}

.petition-progress {
    margin-top: 10px;
}

.petition-progress span {
    background: var(--red);
}

.petition-card small {
    display: block;
    margin-top: 5px;
    color: #616161;
    text-align: right;
}

.petition-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.account-info {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #bcd9fb;
    border-radius: 4px;
    color: #1265b6;
    background: #eef7ff;
    font-size: 12px;
}

.account-publication-form {
    margin-top: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-publication-form label,
.support-card label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.account-publication-form b,
.support-card b {
    color: var(--red);
}

.account-publication-form input,
.account-publication-form select,
.account-publication-form textarea,
.support-card input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 0 12px;
    background: #fff;
    color: #222;
}

.account-publication-form textarea {
    min-height: 72px;
    padding: 12px;
    resize: vertical;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
    border: 1px solid #d5d5d5;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: #fafafa;
}

.editor-toolbar button {
    width: 35px;
    height: 33px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.editor-toolbar + textarea {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.upload-head {
    display: flex;
    justify-content: space-between;
    margin: 12px 0 8px;
    font-size: 13px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.upload-grid figure,
.upload-empty {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    margin: 0;
    border: 1px dashed #bababa;
    border-radius: 4px;
    background: #fafafa;
}

.upload-grid figure img {
    width: 100%;
    height: 100%;
    min-height: 96px;
    object-fit: cover;
}

.upload-grid figure button {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.upload-empty {
    display: grid;
    place-items: center;
    color: #777;
    cursor: pointer;
}

.upload-empty i {
    font-size: 22px;
}

.upload-empty span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.account-publication-form > small,
.support-card small {
    display: block;
    margin: 8px 0 10px;
    color: #777;
    font-size: 11px;
}

.account-check {
    grid-template-columns: auto 1fr;
    align-items: start;
    margin: 8px 0 12px;
    font-size: 12px;
    font-weight: 400 !important;
}

.account-check input {
    width: auto;
    min-height: 0;
    margin-top: 2px;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.account-list-card article {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #e5e5e5;
}

.account-list-card article:last-child {
    border-bottom: 0;
}

.account-list-card article > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    color: #fff;
}

.red-box {
    background: var(--red);
}

.gold-box {
    background: var(--gold);
}

.green-box {
    background: var(--green);
}

.account-list-card h3,
.account-publications h3 {
    margin: 0 0 3px;
    font-size: 14px;
    line-height: 1.2;
}

.account-list-card p,
.account-publications p {
    margin: 0 0 3px;
    color: #4d4d4d;
    font-size: 12px;
}

.account-list-card small {
    color: #777;
    font-size: 11px;
}

.account-publications article {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e6e6e6;
}

.account-publications article:last-child {
    border-bottom: 0;
}

.account-publications img {
    width: 70px;
    height: 54px;
    border-radius: 4px;
    object-fit: cover;
}

.account-publications article > span {
    padding: 5px 8px;
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.account-publications .publiee {
    background: var(--green);
}

.account-publications .en-revision {
    color: #111;
    background: var(--gold);
}

.account-publications .brouillon {
    color: #222;
    background: #d5d5d5;
}

.support-card {
    position: relative;
}

.support-card::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 18px;
    width: 58px;
    height: 8px;
    background: repeating-linear-gradient(115deg, var(--red) 0 6px, transparent 6px 10px, var(--gold) 10px 16px, transparent 16px 20px, var(--green) 20px 26px, transparent 26px 30px);
}

.support-card p {
    margin: 10px 0 12px;
    color: #4c4c4c;
    font-size: 12px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.amount-grid button {
    min-height: 34px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.amount-grid .is-selected {
    color: #fff;
    border-color: var(--red);
    background: var(--red);
}

.support-frequency {
    display: flex;
    gap: 28px;
    margin: 13px 0;
}

.support-frequency label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
}

.red-action.full {
    width: 100%;
}

.contribution-card table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-size: 12px;
}

.contribution-card th {
    padding: 7px;
    background: #f7f7f7;
    text-align: left;
}

.contribution-card td {
    padding: 8px 7px;
    border-top: 1px solid #e5e5e5;
}

.contribution-card a {
    color: #0c62b0;
    text-decoration: underline;
}

@media (max-width: 1180px) {
    .account-dashboard-grid {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .account-right {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .account-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .account-left,
    .account-right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-menu {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .account-left,
    .account-right,
    .account-stats,
    .form-row,
    .form-actions,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .petition-card,
    .petition-card.compact {
        grid-template-columns: 1fr;
    }

    .petition-card img,
    .petition-card.compact img {
        height: auto;
        aspect-ratio: 5 / 4;
    }

    .petition-actions {
        flex-direction: column;
    }

    .account-publications article {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .account-publications article > span {
        grid-column: 2;
        justify-self: start;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-nav-user strong {
        display: none;
    }
}

/* ============================================================
   Actualite et Afrique : vignettes en 3/4
   Ces deux pages portent body.page-news, ce qui limite la regle
   sans toucher aux grilles 5/4 du reste du site.
   ============================================================ */
.page-news .article-tile img,
.page-news .news-feature img,
.page-news .popular-list img {
    aspect-ratio: 700 / 400;
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: cover;
}

/* La vignette de la colonne laterale reste petite : le ratio suffit. */
.page-news .popular-list img {
    width: 82px;
    height: auto;
}

/* Sans resume, la carte se resserre autour du titre et de la date. */
.page-news .article-tile h3 {
    margin-bottom: 8px;
}

/* ============================================================
   Formulaires publics : etats d'erreur et champ piege
   ============================================================ */

/* Champ piege : invisible et hors du parcours clavier, mais pas display:none,
   que certains robots detectent et ignorent. */
.champ-piege {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.champ-en-erreur {
    border-color: var(--red) !important;
    background: #fff6f6;
}

.champ-en-erreur:focus {
    outline: 2px solid var(--red);
    outline-offset: 1px;
}

.message-erreur {
    display: block;
    margin-top: 5px;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

/* Deux colonnes pour l'inscription, une seule pour la connexion. */
.form-grid-simple {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
}

.member-form button[disabled],
.contact-form button[disabled],
.newsletter-form button[disabled] {
    opacity: .65;
    cursor: progress;
}

/* ============================================================
   Formulaires : mise en page conforme aux maquettes
   ============================================================ */

/* Correctif de fond : .member-form et .contact-form declarent display:grid,
   ce qui l'emportait sur l'attribut hidden — les deux formulaires de l'espace
   membre s'affichaient donc l'un sous l'autre. */
[hidden] {
    display: none !important;
}

/* ---------- Espace membre ---------- */
.auth-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
    padding: 26px 30px 30px;
}

.member-form {
    display: grid;
    gap: 18px;
    align-content: start;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

/* Connexion : deux champs seulement, sur une colonne. */
.form-grid-simple {
    grid-template-columns: minmax(0, 1fr);
    max-width: 430px;
}

.contact-form label,
.member-form label {
    display: grid;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.member-form input,
.member-form select {
    height: 46px;
    font-size: 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.member-form input::placeholder {
    color: #a6a6a6;
}

/* Champ mot de passe : l'oeil de la maquette, pour verifier la saisie. */
.champ-mdp {
    position: relative;
}

.champ-mdp input {
    padding-right: 42px;
}

.bascule-mdp {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 46px;
    padding: 0;
    border: 0;
    background: none;
    color: #8a8a8a;
    cursor: pointer;
}

.bascule-mdp:hover {
    color: var(--green-dark);
}

/* Telephone : indicatif pays a gauche, numero a droite. */
.champ-tel {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
}

.champ-tel select {
    padding: 0 6px;
}

.checkline {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.checkline input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.checkline a {
    color: var(--red);
    font-weight: 700;
}

.member-form .btn-red,
.contact-form .btn-red {
    width: 100%;
    height: 52px;
    margin-top: 4px;
    font-size: 15px;
}

/* Rappels sous la carte : « déjà un compte ? » et mot de passe oublié. */
.auth-links {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    text-align: center;
    font-size: 14px;
}

.auth-links .separateur {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}

.auth-links .separateur::before,
.auth-links .separateur::after {
    content: "";
    width: 34px;
    height: 1px;
    background: #cfcfcf;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
    padding-top: 26px;
}

.contact-form {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 24px;
}

/* En-tete de panneau : pastille d'icone a gauche, filet panafricain a droite. */
.panneau-titre {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-bottom: 4px;
}

.panneau-titre .pastille {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 7px;
    color: #fff;
    background: var(--green-dark);
    font-size: 17px;
}

.panneau-titre h2 {
    flex: 1 1 auto;
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-details {
    padding: 24px;
}

.contact-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fff;
}

.contact-card i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    color: var(--gold);
    background: rgba(255, 190, 0, .13);
    font-size: 17px;
}

.contact-card b {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .auth-content {
        grid-template-columns: 1fr;
        padding: 22px 18px 26px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-tabs button {
        height: 54px;
        font-size: 14px;
    }
}

/* Le label en grille plaçait l'astérisque sur sa propre ligne. En bloc, le
   libellé et le « * » restent sur la même ligne et le champ passe dessous. */
.contact-form label,
.member-form label {
    display: block;
}

.contact-form label > input,
.contact-form label > select,
.contact-form label > textarea,
.member-form label > input,
.member-form label > select,
.member-form label > .champ-mdp,
.member-form label > .champ-tel {
    margin-top: 8px;
}

.champ-mdp {
    display: block;
}

.contact-form label b,
.member-form label b {
    margin-left: 2px;
}

/* ============================================================
   Accueil : cartes d'evenements agrandies
   Quatre vignettes sur une ligne devenaient illisibles ; on passe
   a deux colonnes sur deux lignes, avec la meme image de repli que
   la page des evenements.
   ============================================================ */
.events-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.events-grid-large .event-card {
    display: block;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.events-grid-large .event-card:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
    transform: translateY(-2px);
}

.events-grid-large .event-image {
    height: auto;
    aspect-ratio: 700 / 400;
}

.events-grid-large .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-grid-large .event-image time {
    width: 58px;
    min-height: 62px;
    border-radius: 0 0 5px 0;
}

.events-grid-large .event-image time strong {
    font-size: 21px;
}

.events-grid-large .event-image h3 {
    right: 14px;
    bottom: 14px;
    left: 14px;
    font-size: 17px;
}

.events-grid-large .event-card > p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    margin: 0;
    padding: 13px 14px;
    color: var(--muted);
    font-size: 13px;
}

.events-grid-large .event-card > p i {
    color: var(--red);
}

/* Vignette video de l'accueil : pastille de lecture au centre. */
.story-card-video .marque-lecture {
    position: absolute;
    top: 42%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    background: rgba(210, 35, 42, .92);
    font-size: 16px;
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

.story-card-video:hover .marque-lecture {
    transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 760px) {
    .events-grid-large {
        grid-template-columns: 1fr;
    }
}
