/* ==========================================================
   MOFAVIDA - Feuille de style principale
   Basée sur le design original (index.html) et étendue à tout le site.
   ========================================================== */

:root {
    --rouge: #c91f3d;
    --rouge-fonce: #94152d;
    --rouge-clair: #fce7eb;
    --rose: #fff5f7;
    --or: #f2b705;
    --blanc: #ffffff;
    --noir: #1d1d1d;
    --gris: #666666;
    --gris-clair: #f6f6f6;
    --ombre: 0 15px 40px rgba(0, 0, 0, 0.08);
    --ombre-forte: 0 25px 60px rgba(0, 0, 0, 0.14);
    --radius: 18px;
    --nav-h: 78px;
    --topbar-h: 42px;
    --header-h: calc(var(--nav-h) + var(--topbar-h));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

iframe.skiptranslate {
    display: none !important;
}

body[style*="top"] {
    top: 0 !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--noir);
    background: var(--blanc);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1280px, 92%);
    margin: auto;
}

.container-narrow {
    width: min(860px, 92%);
    margin: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 2000;
    background: var(--rouge);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
}

.skip-link:focus {
    left: 10px;
}

:focus-visible {
    outline: 3px solid var(--rouge);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ================= HEADER ================= */

header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    transition: box-shadow .3s;
}

header.site-header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .07);
}

.navbar {
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 800;
    color: var(--rouge);
    line-height: 1;
}

.logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gris);
    letter-spacing: .3px;
    margin-top: 4px;
}

.logo-icon {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: var(--rouge);
    color: white;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: bold;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
}

nav.main-nav a {
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
    padding: 6px 0;
}

nav.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--rouge);
    transition: width .3s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    color: var(--rouge);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--gris);
}

.language-switcher select {
    max-width: 140px;
    padding: 9px 28px 9px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: white;
    color: var(--noir);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: white;
    cursor: pointer;
    position: relative;
}

.burger span,
.burger span::before,
.burger span::after {
    position: absolute;
    left: 12px;
    width: 22px;
    height: 2px;
    background: var(--noir);
    transition: .3s;
    content: "";
}

.burger span {
    top: 22px;
}

.burger span::before {
    left: 0;
    top: -7px;
}

.burger span::after {
    left: 0;
    top: 7px;
}

.menu-open .burger span {
    background: transparent;
}

.menu-open .burger span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-open .burger span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ================= BOUTONS ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 23px;
    border-radius: 50px;
    background: var(--rouge);
    color: white;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--rouge);
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.btn:hover {
    background: var(--rouge-fonce);
    border-color: var(--rouge-fonce);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--rouge);
}

.btn-outline:hover {
    color: white;
    background: var(--rouge);
}

.btn-white {
    background: white;
    border-color: white;
    color: var(--rouge);
}

.btn-white:hover {
    background: #f8e8eb;
    border-color: #f8e8eb;
    color: var(--rouge-fonce);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 30px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

.btn-heart::before {
    content: "\f004";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.link-arrow {
    color: var(--rouge);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .3s;
}

.link-arrow::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .85em;
}

.link-arrow:hover {
    gap: 12px;
}

/* ================= HERO ACCUEIL (CARROUSEL PLEINE LARGEUR) ================= */

.hero {
    position: relative;
    min-height: min(100vh, 920px);
    padding-top: var(--header-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out, transform 6s ease;
    transform: scale(1.08);
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 29, 29, 0.85) 0%, rgba(148, 21, 45, 0.72) 100%);
}

.slide-1 {
    background: radial-gradient(circle at 20% 50%, rgba(201, 31, 61, 0.8), rgba(29, 29, 29, 0.9)), linear-gradient(45deg, #1d1d1d, #94152d);
}

.slide-2 {
    background: radial-gradient(circle at 80% 30%, rgba(213, 43, 77, 0.8), rgba(29, 29, 29, 0.9)), linear-gradient(135deg, #2a0812, #6b1022);
}

.slide-3 {
    background: radial-gradient(circle at 50% 80%, rgba(168, 21, 50, 0.8), rgba(29, 29, 29, 0.9)), linear-gradient(225deg, #120508, #b81c3c);
}

/* Photo réelle : doit couvrir toute la zone (le raccourci background des .slide-N réinitialise la taille) */
.hero-slide[style] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, 92%);
    margin: auto;
    color: white;
    padding: 100px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.about-text .badge,
.contact-info .badge,
.badge-red {
    background: var(--rouge-clair);
    color: var(--rouge);
    border-color: transparent;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 75px);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    max-width: 950px;
}

.hero h1 span {
    color: #ff99ab;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 21px);
    max-width: 750px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-buttons .btn:hover {
    background: var(--blanc);
    color: var(--rouge);
    border-color: var(--blanc);
}

.hero-buttons .btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: var(--rouge);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-scroll {
    position: absolute;
    bottom: 34px;
    right: 4%;
    z-index: 10;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    writing-mode: vertical-rl;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ================= EN-TÊTE DES PAGES INTÉRIEURES ================= */

.page-hero {
    position: relative;
    padding: calc(var(--header-h) + 90px) 0 90px;
    color: white;
    text-align: center;
    background: linear-gradient(45deg, #1d1d1d, #94152d);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 29, 29, 0.86) 0%, rgba(148, 21, 45, 0.78) 100%);
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    right: -120px;
    bottom: -220px;
    background: rgba(255, 255, 255, .06);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.page-hero p {
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 1.8vw, 19px);
    max-width: 720px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 22px;
}

.breadcrumb li+li::before {
    content: "›";
    margin-right: 8px;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb [aria-current] {
    color: white;
    font-weight: 600;
    max-width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
}

/* ================= SECTIONS ================= */

section {
    padding: 100px 0;
}

.section-sm {
    padding: 70px 0;
}

.bg-rose {
    background: var(--rose);
}

.bg-gris {
    background: #fafafa;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 55px;
}

.section-header span {
    color: var(--rouge);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin: 12px 0 16px;
}

.section-header p {
    color: var(--gris);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 45px;
}

.section-header-row .section-header {
    text-align: left;
    margin: 0;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* ================= ABOUT ================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    min-height: 480px;
    border-radius: 30px;
    background: linear-gradient(rgba(201, 31, 61, .15), rgba(201, 31, 61, .15)), linear-gradient(145deg, #ffdce4, #f8a7b7);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ombre-forte);
}

.about-image::before {
    content: "MOFAVIDA";
    position: absolute;
    font-size: 70px;
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    transform: rotate(-90deg);
    left: -80px;
    top: 180px;
}

.about-image.has-photo::before {
    display: none;
}

.about-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: var(--ombre);
    width: 230px;
}

.about-box strong {
    display: block;
    font-size: 30px;
    color: var(--rouge);
}

.about-text h2 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gris);
    margin-bottom: 18px;
}

.check-list {
    list-style: none;
    margin: 25px 0;
}

.check-list li {
    margin-bottom: 13px;
    font-weight: 600;
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    background: var(--rouge-clair);
    color: var(--rouge);
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-card {
    background: white;
    border-radius: 26px;
    padding: 45px;
    box-shadow: var(--ombre);
    border-top: 5px solid var(--rouge);
    position: relative;
}

.mv-card .icon {
    margin-bottom: 18px;
}

.mv-card h3 {
    font-size: 28px;
    color: var(--rouge);
    margin-bottom: 14px;
}

.mv-card p {
    color: #444;
    font-size: 16.5px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.value {
    text-align: center;
    padding: 30px 22px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid #f1d5db;
    transition: .3s;
}

.value:hover {
    border-color: var(--rouge);
    transform: translateY(-5px);
}

.value .icon {
    margin: 0 auto 16px;
}

.value h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.value p {
    font-size: 14px;
    color: var(--gris);
}

/* ================= CARTES (PROGRAMMES) ================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
}

.icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--rouge-clair);
    color: var(--rouge);
    font-size: 26px;
    margin-bottom: 22px;
}

.card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.card p {
    color: var(--gris);
    font-size: 15px;
}

/* ================= IMPACT ================= */

.impact {
    background: var(--rouge);
    color: white;
    position: relative;
    overflow: hidden;
}

.impact::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    left: -150px;
    top: -200px;
}

.impact .container {
    position: relative;
}

.impact .section-header p,
.impact .section-header span {
    color: rgba(255, 255, 255, .8);
}

.impact .section-header h2 {
    color: white;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat {
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    transition: .3s;
}

.stat:hover {
    background: rgba(255, 255, 255, .14);
}

.stat strong {
    display: block;
    font-size: 40px;
    margin-bottom: 5px;
}

.stat span {
    color: rgba(255, 255, 255, .8);
}

/* ================= CARTES ARTICLES ================= */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.post-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--ombre);
    transition: .35s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ombre-forte);
}

.post-card .thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #ffdce4, #f8a7b7);
}

.post-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.post-card:hover .thumb img {
    transform: scale(1.07);
}

.post-card .tag {
    position: absolute;
    top: 16px;
    left: 16px;
}

.tag {
    display: inline-block;
    background: var(--rouge);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 50px;
    letter-spacing: .3px;
}

.tag-light {
    background: var(--rouge-clair);
    color: var(--rouge);
}

.tag-green {
    background: #e3f6ea;
    color: #17803d;
}

.tag-dark {
    background: rgba(0, 0, 0, .7);
}

.post-card .body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: var(--gris);
    margin-bottom: 10px;
}

.post-card h3 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.post-card h3 a:hover {
    color: var(--rouge);
}

.post-card p {
    color: var(--gris);
    font-size: 15px;
    margin-bottom: 18px;
    flex: 1;
}

/* ================= ÉVÉNEMENTS ================= */

.event-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    background: white;
    border-radius: 22px;
    box-shadow: var(--ombre);
    overflow: hidden;
    transition: .35s;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-forte);
}

.event-date {
    background: linear-gradient(160deg, var(--rouge), var(--rouge-fonce));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-align: center;
}

.event-date strong {
    font-size: 40px;
    line-height: 1;
}

.event-date span {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.event-date small {
    opacity: .8;
    font-size: 13px;
}

.event-card .body {
    padding: 24px 26px;
}

.event-card h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 8px 0;
}

.event-card h3 a:hover {
    color: var(--rouge);
}

.event-card p {
    color: var(--gris);
    font-size: 15px;
    margin-bottom: 12px;
}

.event-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 14px;
    color: var(--gris);
}

.event-list {
    display: grid;
    gap: 22px;
}

.event-card-big {
    grid-template-columns: 110px 280px 1fr;
}

.event-card-big .thumb {
    height: 100%;
    min-height: 200px;
    background: linear-gradient(145deg, #ffdce4, #f8a7b7);
}

.event-card-big .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card.past .event-date {
    background: linear-gradient(160deg, #555, #2b2b2b);
}

/* ================= FORMATIONS ================= */

.price-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    color: var(--rouge);
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.price-tag.free {
    background: #17803d;
    color: white;
}

.formation-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fact {
    background: var(--gris-clair);
    color: #444;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
}

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.filters a {
    padding: 10px 22px;
    border-radius: 50px;
    border: 2px solid #eee;
    font-weight: 700;
    font-size: 14px;
    transition: .3s;
}

.filters a:hover {
    border-color: var(--rouge);
    color: var(--rouge);
}

.filters a.active {
    background: var(--rouge);
    border-color: var(--rouge);
    color: white;
}

/* ================= DÉTAIL (ARTICLE / ÉVÉNEMENT / FORMATION) ================= */

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 55px;
    align-items: start;
}

.detail-cover {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--ombre-forte);
    margin-bottom: 45px;
    margin-top: -150px;
    position: relative;
    z-index: 5;
    background: #eee;
}

.detail-cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.page-hero.has-cover {
    padding-bottom: 190px;
}

.prose {
    font-size: 17.5px;
    line-height: 1.8;
    color: #2b2b2b;
}

.prose>*+* {
    margin-top: 1.1em;
}

.prose h2 {
    font-size: 30px;
    line-height: 1.25;
    margin-top: 1.6em;
}

.prose h3 {
    font-size: 23px;
    line-height: 1.3;
    margin-top: 1.4em;
}

.prose h4 {
    font-size: 19px;
}

.prose a {
    color: var(--rouge);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ul,
.prose ol {
    padding-left: 1.4em;
}

.prose li+li {
    margin-top: .4em;
}

.prose blockquote {
    border-left: 5px solid var(--rouge);
    background: var(--rose);
    padding: 22px 28px;
    border-radius: 0 18px 18px 0;
    font-size: 19px;
    font-style: italic;
    color: #444;
}

.prose img {
    border-radius: 18px;
    height: auto;
    margin: 1.4em 0;
}

.prose figure figcaption {
    font-size: 14px;
    color: var(--gris);
    text-align: center;
    margin-top: -10px;
}

.prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 18px;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.prose th,
.prose td {
    border: 1px solid #eee;
    padding: 10px 14px;
    text-align: left;
}

.prose th {
    background: var(--rose);
}

.prose hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 2em 0;
}

.lead {
    font-size: 21px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
    font-weight: 500;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 25px);
    display: grid;
    gap: 25px;
}

.widget {
    background: white;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--ombre);
}

.widget h3 {
    font-size: 19px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rouge-clair);
}

.widget-red {
    background: linear-gradient(135deg, #a81532, #d52b4d);
    color: white;
}

.widget-red h3 {
    border-color: rgba(255, 255, 255, .25);
}

.widget-red p {
    color: rgba(255, 255, 255, .85);
    margin-bottom: 18px;
    font-size: 15px;
}

.info-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.info-list li {
    display: flex;
    gap: 12px;
    font-size: 15px;
}

.info-list .ico {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--rouge-clair);
    color: var(--rouge);
    display: grid;
    place-items: center;
    font-weight: bold;
}

.info-list strong {
    display: block;
    font-size: 13px;
    color: var(--gris);
    font-weight: 600;
}

.cat-list {
    list-style: none;
}

.cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-weight: 600;
    font-size: 15px;
    transition: .3s;
}

.cat-list li a:hover,
.cat-list li a.active {
    color: var(--rouge);
    padding-left: 6px;
}

.cat-list span {
    color: var(--gris);
    font-weight: 400;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
}

.search-form button {
    padding: 0 18px;
    border-radius: 10px;
}

.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 45px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}

.share strong {
    margin-right: 6px;
}

.share a,
.share button {
    padding: 9px 16px;
    border-radius: 50px;
    background: var(--gris-clair);
    font-weight: 700;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: .3s;
}

.share a:hover,
.share button:hover {
    background: var(--rouge);
    color: white;
}

.price-big {
    font-size: 38px;
    font-weight: 900;
    color: var(--rouge);
    line-height: 1.1;
    margin-bottom: 6px;
}

.price-big.free {
    color: #17803d;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background: var(--rouge-clair);
    overflow: hidden;
    margin: 10px 0 6px;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--rouge);
    border-radius: 10px;
}

.notice {
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--gris-clair);
    font-size: 15px;
}

.notice-red {
    background: var(--rouge-clair);
    color: var(--rouge-fonce);
}

.notice-green {
    background: #e3f6ea;
    color: #14612f;
}

/* ================= GALERIE ================= */

.album-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: block;
    background: linear-gradient(145deg, #ffdce4, #f8a7b7);
    box-shadow: var(--ombre);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s;
}

.album-card:hover img {
    transform: scale(1.08);
}

.album-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: white;
}

.album-card h3 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.album-card small {
    color: rgba(255, 255, 255, .8);
}

.masonry {
    columns: 4 260px;
    column-gap: 16px;
}

.masonry a {
    display: block;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    break-inside: avoid;
    position: relative;
    background: #eee;
}

.masonry img {
    width: 100%;
    height: auto;
    transition: transform .5s, filter .5s;
}

.masonry a::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 34px;
    color: white;
    background: rgba(201, 31, 61, .45);
    opacity: 0;
    transition: .4s;
}

.masonry a:hover::after {
    opacity: 1;
}

.masonry a:hover img {
    transform: scale(1.05);
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    gap: 14px;
}

.photo-strip a {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.photo-strip a:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.photo-strip a:hover img {
    transform: scale(1.08);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ombre);
}

.video-card video,
.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
    border: 0;
}

.video-card h3 {
    font-size: 16px;
    padding: 16px 20px;
    line-height: 1.35;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 10, 10, .94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: white;
    border: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: .3s;
}

.lightbox button:hover {
    background: var(--rouge);
}

.lb-close {
    top: 18px;
    right: 18px;
}

.lb-prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-count {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
}

/* ================= DONS ================= */

.donate-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 55px;
    align-items: start;
}

.donate-why h2 {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.donate-why>p {
    color: var(--gris);
    margin-bottom: 26px;
}

.impact-list {
    display: grid;
    gap: 16px;
    margin: 30px 0;
}

.impact-item {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--rose);
    border-radius: 16px;
    padding: 18px 20px;
}

.impact-item strong {
    color: var(--rouge);
    font-size: 20px;
    min-width: 115px;
}

.impact-item span {
    color: #444;
    font-size: 15px;
}

.donate-form {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.form-card {
    background: white;
    padding: 38px;
    border-radius: 26px;
    box-shadow: var(--ombre-forte);
}

.form-card h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.form-card .sub {
    color: var(--gris);
    font-size: 15px;
    margin-bottom: 24px;
}

.toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--gris-clair);
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.toggle label {
    margin: 0;
    text-align: center;
    padding: 11px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    transition: .3s;
}

.toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle input:checked+label {
    background: var(--rouge);
    color: white;
    box-shadow: 0 5px 15px rgba(201, 31, 61, .3);
}

.amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.amount-chip {
    position: relative;
}

.amount-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-chip label {
    margin: 0;
    display: block;
    text-align: center;
    padding: 14px 8px;
    border: 2px solid #eee;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    transition: .25s;
}

.amount-chip label:hover {
    border-color: var(--rouge);
}

.amount-chip input:checked+label {
    border-color: var(--rouge);
    background: var(--rouge-clair);
    color: var(--rouge);
}

.methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.method {
    position: relative;
}

.method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.method label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 2px solid #eee;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    transition: .25s;
}

.method label::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    transition: .25s;
}

.method input:checked+label {
    border-color: var(--rouge);
    background: var(--rose);
}

.method input:checked+label::before {
    border: 5px solid var(--rouge);
}

.method input:focus-visible+label,
.amount-chip input:focus-visible+label,
.toggle input:focus-visible+label {
    outline: 3px solid var(--rouge);
    outline-offset: 2px;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--rouge);
    flex-shrink: 0;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gris);
    margin-top: 14px;
}

/* ================= PAIEMENT ================= */

.pay-card {
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 18px;
}

.pay-card.selected {
    border-color: var(--rouge);
    background: var(--rose);
}

.pay-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1px dashed #e4b5bf;
    border-radius: 12px;
    margin: 8px 0;
    font-size: 15px;
}

.copy-row code {
    font-family: Consolas, monospace;
    font-weight: 700;
    font-size: 16px;
    word-break: break-all;
}

.copy-btn {
    background: var(--rouge-clair);
    color: var(--rouge);
    border: 0;
    border-radius: 8px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table td {
    padding: 11px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 15px;
}

.summary-table td:last-child {
    text-align: right;
    font-weight: 700;
}

.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.status-en_attente,
.status-pending,
.status-draft {
    background: #fff4d6;
    color: #8a6100;
}

.status-verification,
.status-sending {
    background: #e2edff;
    color: #1d4fb8;
}

.status-confirme,
.status-paye,
.status-gratuit,
.status-active,
.status-published,
.status-sent {
    background: #e3f6ea;
    color: #17803d;
}

.status-annule,
.status-cancelled,
.status-unsubscribed {
    background: #f1f1f1;
    color: #777;
}

/* ================= PARTENAIRES ================= */

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px 60px;
}

.partner {
    background: white;
    border-radius: 18px;
    padding: 20px 30px;
    box-shadow: var(--ombre);
    height: 120px;
    display: grid;
    place-items: center;
    transition: .3s;
}

.partner img {
    max-height: 80px;
    max-width: 240px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: .3s;
}

.partner:hover img {
    filter: none;
}

/* ================= CTA ================= */

.cta {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, #a81532, #d52b4d);
    color: white;
    border-radius: 30px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: "\f004";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 30%;
    top: -60px;
    font-size: 260px;
    color: rgba(255, 255, 255, .06);
    line-height: 1;
}

.cta-box>* {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, .8);
    max-width: 600px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta .btn {
    background: white;
    border-color: white;
    color: var(--rouge);
    white-space: nowrap;
}

.cta .btn:hover {
    background: #f8e8eb;
}

.cta .btn-outline {
    background: transparent;
    color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: var(--rouge);
}

/* ================= NEWSLETTER ================= */

.newsletter-band {
    background: var(--noir);
    color: white;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-band::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--rouge);
    opacity: .25;
    filter: blur(80px);
    left: -100px;
    top: -120px;
}

.newsletter-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 45px;
    align-items: center;
}

.newsletter-inner h2 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.newsletter-inner p {
    color: #bbb;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 8px;
    border-radius: 60px;
}

.newsletter-form input {
    background: transparent;
    border: 0;
    color: white;
    padding: 12px 18px;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form input:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    white-space: nowrap;
}

.newsletter-inner small {
    display: block;
    color: #888;
    margin-top: 10px;
    font-size: 13px;
    padding-left: 18px;
}

/* ================= CONTACT & FORMULAIRES ================= */

.contact {
    background: #fafafa;
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.contact-info>p {
    color: var(--gris);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
    align-items: flex-start;
}

.contact-icon {
    min-width: 45px;
    height: 45px;
    background: var(--rouge-clair);
    color: var(--rouge);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: bold;
}

.contact-item strong {
    display: block;
    margin-bottom: 3px;
}

.contact-item span,
.contact-item a {
    color: var(--gris);
    font-size: 14px;
}

.contact-item a:hover {
    color: var(--rouge);
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.socials a {
    padding: 9px 16px;
    border-radius: 50px;
    background: white;
    border: 1px solid #eee;
    font-size: 14px;
    font-weight: 700;
    transition: .3s;
}

.socials a:hover {
    background: var(--rouge);
    border-color: var(--rouge);
    color: white;
}

form.card-form {
    background: white;
    padding: 35px;
    border-radius: 22px;
    box-shadow: var(--ombre);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 7px;
}

label .opt {
    color: var(--gris);
    font-weight: 400;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: .3s;
    background: white;
    color: var(--noir);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--rouge);
    box-shadow: 0 0 0 3px var(--rouge-clair);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.has-error input,
.has-error textarea,
.has-error select {
    border-color: var(--rouge);
}

.field-error {
    display: block;
    color: var(--rouge);
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    font-size: 13px;
    color: var(--gris);
    margin-top: 12px;
}

.form-note a {
    color: var(--rouge);
    text-decoration: underline;
}

/* ================= ALERTES ================= */

.flash-zone {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    right: 16px;
    z-index: 1500;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100% - 32px));
}

.alert {
    padding: 16px 44px 16px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--ombre-forte);
    position: relative;
    animation: slideIn .45s ease;
    border-left: 5px solid;
    background: white;
}

.alert-success {
    border-color: #17803d;
    color: #14612f;
}

.alert-error {
    border-color: var(--rouge);
    color: var(--rouge-fonce);
}

.alert-info {
    border-color: #1d4fb8;
    color: #1d3f8a;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: .6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ================= PAGINATION / ÉTATS VIDES ================= */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 55px;
    list-style: none;
}

.pagination a,
.pagination span {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid #eee;
    font-weight: 700;
    transition: .3s;
}

.pagination a:hover {
    border-color: var(--rouge);
    color: var(--rouge);
}

.pagination .current {
    background: var(--rouge);
    border-color: var(--rouge);
    color: white;
}

.empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--rose);
    border-radius: 24px;
    color: var(--gris);
}

.empty .icon {
    margin: 0 auto 18px;
}

.empty h3 {
    color: var(--noir);
    margin-bottom: 8px;
}

.message-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 60px) 0 80px;
    text-align: center;
    background: var(--rose);
}

.message-page .icon {
    width: 90px;
    height: 90px;
    font-size: 42px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background: var(--rouge);
    color: white;
}

.message-page h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    margin-bottom: 14px;
}

.message-page p {
    color: var(--gris);
    max-width: 560px;
    margin: 0 auto 30px;
    font-size: 17px;
}

.error-code {
    font-size: clamp(90px, 16vw, 170px);
    font-weight: 900;
    color: var(--rouge);
    line-height: 1;
    letter-spacing: -4px;
}

/* ================= FOOTER ================= */

footer.site-footer {
    background: #171717;
    color: white;
    padding: 65px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

footer .logo {
    color: white;
    margin-bottom: 18px;
}

footer .logo img {
    background: white;
    border-radius: 50%;
    padding: 4px;
}

footer .logo small {
    color: #aaa;
}

footer p {
    color: #aaa;
    font-size: 14px;
}

footer h4 {
    margin-bottom: 17px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 14px;
}

footer a:hover {
    color: white;
}

.footer-contact li {
    display: flex;
    gap: 10px;
}

.footer-contact li span:first-child {
    color: var(--rouge);
    min-width: 18px;
}

.footer-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.footer-socials a {
    font-size: 13px;
    padding: 7px 13px;
    border-radius: 50px;
    border: 1px solid #333;
    color: #ccc;
    transition: .3s;
}

.footer-socials a:hover {
    background: var(--rouge);
    border-color: var(--rouge);
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #888;
    font-size: 13px;
}

.copyright a {
    margin-left: 14px;
}

/* ================= ANIMATIONS D'APPARITION ================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1150px) {
    .burger {
        display: block;
    }

    nav.main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid #eee;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
    }

    .menu-open nav.main-nav {
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    nav.main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 4%;
    }

    nav.main-nav li a {
        display: block;
        padding: 15px 4px;
        border-bottom: 1px solid #f3f3f3;
        font-size: 16px;
    }

    nav.main-nav a::after {
        display: none;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .event-card-big {
        grid-template-columns: 110px 1fr;
    }

    .event-card-big .thumb {
        display: none;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 950px) {
    .donate-grid {
        grid-template-columns: 1fr;
    }

    .donate-form {
        position: static;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {

    .about-grid,
    .contact-grid,
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .cards,
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .photo-strip {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
    }

    .hero-scroll {
        display: none;
    }

    .nav-actions .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    :root {
        --nav-h: 70px;
    }

    .logo {
        font-size: 21px;
    }

    .logo img {
        width: 44px;
        height: 44px;
    }

    .logo small {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .language-switcher select {
        max-width: 120px;
        padding: 8px 24px 8px 8px;
        font-size: 13px;
    }

    section {
        padding: 70px 0;
    }

    .cards,
    .grid-3,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 350px;
    }

    .about-text h2,
    .contact-info h2,
    .donate-why h2 {
        font-size: 32px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    form.card-form,
    .form-card {
        padding: 25px 20px;
    }

    .mv-card {
        padding: 30px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-date {
        flex-direction: row;
        gap: 8px;
        padding: 12px;
    }

    .event-date strong {
        font-size: 24px;
    }

    .amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .methods {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 22px;
    }

    .detail-cover {
        margin-top: -120px;
        border-radius: 18px;
    }

    .lightbox {
        padding: 60px 10px;
    }

    .lb-prev,
    .lb-next {
        top: auto;
        bottom: 12px;
        transform: none;
    }

    .copyright {
        flex-direction: column;
    }

    .copyright a {
        margin: 0 14px 0 0;
    }
}

/* ================= GARDE-FOUS MOBILE ================= */
html,
body {
    overflow-x: clip;
}

@media (max-width: 1150px) {
    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 850px) {

    .about-grid,
    .contact-grid,
    .mv-grid,
    .grid-2,
    .donate-grid,
    .newsletter-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .breadcrumb [aria-current] {
        max-width: 100%;
        white-space: normal;
    }

    .page-hero h1 {
        overflow-wrap: anywhere;
    }
}

/* ================= BARRE SUPÉRIEURE (réseaux sociaux + newsletter) ================= */
.topbar {
    height: var(--topbar-h);
    background: var(--noir);
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

.topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-contact {
    display: flex;
    gap: 22px;
    white-space: nowrap;
}

.topbar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color .3s;
}

.topbar-contact i {
    color: #ff99ab;
}

.topbar-contact a:hover {
    color: white;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.topbar-socials {
    list-style: none;
    display: flex;
    gap: 6px;
}

.topbar-socials a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    color: white;
    font-size: 13px;
    transition: .3s;
}

.topbar-socials a:hover {
    background: var(--rouge);
    transform: translateY(-2px);
}

.topbar-newsletter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .15);
}

.topbar-newsletter label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topbar-newsletter label i {
    color: #ff99ab;
}

.topbar-newsletter input {
    width: 190px;
    height: 28px;
    padding: 0 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    color: white;
    font-size: 13px;
}

.topbar-newsletter input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.topbar-newsletter input:focus {
    border-color: #ff99ab;
    box-shadow: none;
    background: rgba(255, 255, 255, .14);
}

.topbar-newsletter button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: var(--rouge);
    color: white;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: .3s;
}

.topbar-newsletter button:hover {
    background: white;
    color: var(--rouge);
}

@media (max-width: 950px) {
    .topbar-contact a:last-child {
        display: none;
    }
}

@media (max-width: 700px) {
    .topbar-contact {
        display: none;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .topbar-newsletter {
        border-left: 0;
        padding-left: 0;
    }

    .topbar-newsletter label span {
        display: none;
    }

    .topbar-newsletter input {
        width: 150px;
    }
}

/* ================= HERO : ANIMATIONS ================= */

/* Entrée en cascade du texte du hero */
.hero-inner>* {
    animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-inner>*:nth-child(1) {
    animation-delay: .15s;
}

.hero-inner>*:nth-child(2) {
    animation-delay: .35s;
}

.hero-inner>*:nth-child(3) {
    animation-delay: .55s;
}

.hero-inner>*:nth-child(4) {
    animation-delay: .75s;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Bandeau défilant « À la une » : articles + événements */
.hero-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    height: 66px;
    display: flex;
    align-items: stretch;
    background: rgba(15, 15, 15, .55);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: white;
    animation: tickerIn 1s .9s both;
}

@keyframes tickerIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero:has(.hero-ticker) .hero-dots {
    bottom: 88px;
}

.hero:has(.hero-ticker) .hero-inner {
    padding: 40px 0 120px;
}

.ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 26px 0 4%;
    background: var(--rouge);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
    padding-right: 36px;
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-move {
    display: flex;
    width: max-content;
    animation: tickerScroll var(--ticker-duration, 45s) linear infinite;
}

.hero-ticker:hover .ticker-move,
.hero-ticker:focus-within .ticker-move,
.hero-ticker.paused .ticker-move {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    to {
        transform: translateX(-50%);
    }
}

.ticker-list {
    list-style: none;
    display: flex;
    align-items: center;
}

.ticker-list li {
    display: flex;
    align-items: center;
}

.ticker-list li::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff99ab;
    margin: 0 26px;
    opacity: .7;
}

.ticker-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-size: 15px;
    padding: 6px 0;
    transition: color .3s;
}

.ticker-list a:hover strong,
.ticker-list a:focus-visible strong {
    color: #ff99ab;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ticker-list strong {
    font-weight: 700;
    transition: color .3s;
}

.ticker-list time {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

.ticker-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 5px 11px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .14);
}

.ticker-event {
    background: var(--rouge);
}

.ticker-article {
    background: rgba(255, 153, 171, .25);
    color: #ffd3dc;
}

.ticker-past {
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .8);
}

.ticker-toggle {
    flex-shrink: 0;
    width: 66px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background .3s;
}

.ticker-toggle:hover {
    background: rgba(255, 255, 255, .1);
}

@media (max-width: 700px) {
    .hero-ticker {
        height: 56px;
    }

    .ticker-label {
        padding: 0 26px 0 14px;
        font-size: 0;
        letter-spacing: 0;
    }

    .ticker-list a {
        font-size: 14px;
    }

    .ticker-list time {
        display: none;
    }

    .ticker-toggle {
        width: 50px;
    }

    .hero:has(.hero-ticker) .hero-dots {
        bottom: 74px;
    }
}

/* Sans animation (préférence système) : le bandeau devient défilable à la main */
@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .ticker-list[aria-hidden="true"],
    .ticker-toggle {
        display: none;
    }
}

/* ================= FENÊTRE D'ACCUEIL : FORMATION ================= */
.promo-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    padding: 20px;
}

.promo-modal[hidden] {
    display: none;
}

.promo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 8, 12, .72);
    backdrop-filter: blur(4px);
    animation: promoFade .4s ease both;
}

.promo-card {
    position: relative;
    width: min(880px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    background: white;
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 0 0 6px rgba(201, 31, 61, .25);
    animation: promoIn .6s cubic-bezier(.2, .9, .25, 1.15) both;
}

.promo-modal.closing .promo-card {
    animation: promoOut .3s ease both;
}

.promo-modal.closing .promo-backdrop {
    animation: promoFade .3s ease reverse both;
}

@keyframes promoFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes promoIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.92);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes promoOut {
    to {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }
}

.promo-media {
    position: relative;
    min-height: 100%;
    background: linear-gradient(145deg, #ffdce4, #f8a7b7);
}

.promo-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: promoZoom 12s ease-out both;
}

@keyframes promoZoom {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1);
    }
}

.promo-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(148, 21, 45, .55), transparent 60%);
}

.promo-media .price-tag {
    z-index: 2;
    left: 18px;
    right: auto;
    top: auto;
    bottom: 18px;
    font-size: 16px;
    padding: 9px 18px;
}

.promo-body {
    padding: 44px 40px 38px;
}

.promo-body>* {
    animation: heroIn .7s cubic-bezier(.2, .7, .2, 1) both;
}

.promo-body>*:nth-child(1) {
    animation-delay: .25s;
}

.promo-body>*:nth-child(2) {
    animation-delay: .35s;
}

.promo-body>*:nth-child(3) {
    animation-delay: .45s;
}

.promo-body>*:nth-child(4) {
    animation-delay: .55s;
}

.promo-body>*:nth-child(5) {
    animation-delay: .65s;
}

.promo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rouge-clair);
    color: var(--rouge);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 7px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.promo-body h2 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    margin-bottom: 12px;
}

.promo-body p {
    color: var(--gris);
    margin-bottom: 18px;
}

.promo-facts {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 26px;
    font-size: 14px;
    font-weight: 600;
}

.promo-facts i {
    color: var(--rouge);
    width: 18px;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.promo-later {
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    color: var(--gris);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.promo-later:hover {
    color: var(--noir);
}

.promo-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: white;
    color: var(--noir);
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    transition: .3s;
}

.promo-close:hover {
    background: var(--rouge);
    color: white;
    transform: rotate(90deg);
}

body.promo-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .promo-card {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .promo-media {
        min-height: 190px;
    }

    .promo-body {
        padding: 26px 22px 24px;
    }

    .promo-facts {
        grid-template-columns: 1fr;
    }
}

/* ================= PARTAGES & COMMENTAIRES ================= */
.share a,
.share button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.share .sh-facebook:hover {
    background: #1877f2;
}

.share .sh-whatsapp:hover {
    background: #25d366;
}

.share .sh-x:hover {
    background: #111;
}

.share .sh-linkedin:hover {
    background: #0a66c2;
}

.share-total {
    margin-left: auto;
    color: var(--gris);
    font-size: 14px;
}

.share-total strong {
    color: var(--rouge);
    font-size: 18px;
    margin: 0;
}

.page-meta a:hover {
    color: white;
    text-decoration: underline;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: var(--rouge);
    font-size: 12px;
}

.comments {
    margin-top: 55px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments>h2 {
    font-size: 26px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments>h2 i {
    color: var(--rouge);
}

.comment-list {
    list-style: none;
    display: grid;
    gap: 18px;
    margin-bottom: 40px;
}

.comment {
    display: flex;
    gap: 16px;
    animation: heroIn .6s ease both;
}

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rouge), var(--rouge-fonce));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 19px;
}

.comment-body {
    flex: 1;
    min-width: 0;
    background: var(--rose);
    border-radius: 4px 20px 20px 20px;
    padding: 16px 20px;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-bottom: 6px;
}

.comment-head time {
    color: var(--gris);
    font-size: 13px;
}

.comment-body p {
    color: #333;
    overflow-wrap: anywhere;
}

.comments-empty {
    color: var(--gris);
    margin-bottom: 30px;
}

.comment-form h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .share-total {
        margin-left: 0;
        width: 100%;
    }

    .comment-avatar {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* ================= COURS EN LIGNE ================= */

/* Programme sur la page formation */
.program {
    margin-top: 50px;
}

.program>h2 {
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.program>h2 i,
.course-outline h3 i {
    color: var(--rouge);
}

.program>.muted {
    color: var(--gris);
    margin-bottom: 22px;
}

.program-module {
    border: 1px solid #f1d5db;
    border-radius: 18px;
    margin-bottom: 14px;
    background: white;
    overflow: hidden;
}

.program-module summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--rose);
}

.program-module summary::-webkit-details-marker {
    display: none;
}

.program-module summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: auto;
    color: var(--rouge);
    transition: transform .3s;
}

.program-module[open] summary::after {
    transform: rotate(180deg);
}

.program-module summary span {
    background: var(--rouge);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.program-module summary small {
    color: var(--gris);
    font-weight: 600;
    font-size: 13px;
}

.program-module>p {
    padding: 14px 22px 0;
}

.program-module ol,
.course-outline ol {
    list-style: none;
}

.program-module ol {
    padding: 8px 12px 12px;
}

.program-module li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-radius: 12px;
    transition: background .2s;
}

.program-module li a:hover {
    background: var(--rose);
}

.program-module li a>i:first-child {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--rouge-clair);
    color: var(--rouge);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.program-module li span {
    flex: 1;
    min-width: 0;
}

.program-module li strong {
    display: block;
    font-size: 15.5px;
}

.program-module li small {
    display: block;
    color: var(--gris);
    font-size: 13.5px;
}

.program-module li em {
    font-style: normal;
    color: var(--gris);
    font-size: 13px;
    white-space: nowrap;
}

.co-free {
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    background: #e3f6ea;
    color: #17803d;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
}

.co-lock {
    color: #bbb;
}

/* Programme compact (barre latérale) */
.co-module {
    margin-bottom: 14px;
}

.co-module-title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 6px;
}

.co-module-title span {
    color: var(--rouge);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    display: block;
}

.course-outline li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 10px;
    font-size: 14px;
}

.course-outline li a:hover,
.course-outline li.current a {
    background: var(--rose);
}

.course-outline li.current a {
    font-weight: 700;
    color: var(--rouge);
}

.course-outline li a>i:first-child {
    color: var(--rouge);
    width: 16px;
}

.course-outline li span {
    flex: 1;
}

.course-outline small {
    color: var(--gris);
    font-size: 12px;
}

/* Leçon verrouillée / appel à l'inscription */
.locked-lesson {
    text-align: center;
    background: var(--rose);
    border-radius: 26px;
    padding: 55px 30px;
}

.lock-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    color: var(--rouge);
    font-size: 32px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    box-shadow: var(--ombre);
}

.locked-lesson h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.locked-lesson p {
    max-width: 560px;
    margin: 0 auto 14px;
}

.locked-lesson .btn {
    margin-top: 10px;
}

.cta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 24px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #a81532, #d52b4d);
    color: white;
}

.cta-inline strong {
    display: block;
    font-size: 19px;
}

.cta-inline span {
    color: rgba(255, 255, 255, .85);
}

.cta-inline .btn {
    background: white;
    border-color: white;
    color: var(--rouge);
}

/* Contenu d'une leçon */
.lesson-content>*+* {
    margin-top: 26px;
}

.video-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--ombre-forte);
    aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pdf-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eee;
    height: min(80vh, 820px);
    background: #f4f4f4;
}

.pdf-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.lesson-image img {
    border-radius: 18px;
    width: 100%;
    height: auto;
    box-shadow: var(--ombre);
}

.lesson-audio {
    width: 100%;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: white;
    transition: .25s;
    margin-top: 10px;
}

.doc-card:hover {
    border-color: var(--rouge);
    box-shadow: var(--ombre);
    transform: translateY(-2px);
}

.doc-card>i:first-child {
    font-size: 30px;
    color: var(--rouge);
    width: 34px;
    text-align: center;
}

.doc-card span {
    flex: 1;
    min-width: 0;
}

.doc-card strong {
    display: block;
    overflow-wrap: anywhere;
}

.doc-card small {
    color: var(--gris);
}

.doc-card>i:last-child {
    color: var(--gris);
}

.lesson-docs h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.lesson-docs h3 i {
    color: var(--rouge);
}

/* Session en direct */
.live-box {
    display: flex;
    gap: 20px;
    padding: 26px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1d1d1d, #3a0d18);
    color: white;
}

.live-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--rouge);
    display: grid;
    place-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.live-body {
    flex: 1;
}

.live-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 800;
    color: #ff99ab;
}

.live-date {
    display: block;
    font-size: 21px;
    margin: 4px 0;
}

.live-box .muted,
.live-box small {
    color: rgba(255, 255, 255, .7);
}

.live-countdown {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
}

.live-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #7dffb0;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7dffb0;
    animation: pulse 1.8s infinite;
}

.live-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0 6px;
}

.live-box .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, .5);
}

.live-info {
    font-size: 14px;
}

/* Espace apprenant */
.learn-hero {
    padding-bottom: 70px;
}

.learn-progress {
    max-width: 520px;
    margin: 26px auto 0;
}

.learn-progress .progress {
    height: 12px;
    background: rgba(255, 255, 255, .2);
}

.learn-progress .progress span {
    background: white;
}

.learn-progress>span {
    font-size: 15px;
    color: rgba(255, 255, 255, .9);
}

.continue-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    border-radius: 22px;
    background: linear-gradient(135deg, #a81532, #d52b4d);
    color: white;
    margin-bottom: 34px;
    box-shadow: 0 15px 35px rgba(201, 31, 61, .3);
    transition: transform .3s;
}

.continue-card:hover {
    transform: translateY(-3px);
}

.continue-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.continue-card>span:nth-child(2) {
    flex: 1;
}

.continue-card small {
    display: block;
    color: rgba(255, 255, 255, .8);
}

/* Contact rapide WhatsApp sur l'accueil */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1400;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 19px;
    border-radius: 50px;
    background: #168c50;
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
    transition: background .2s, transform .2s, box-shadow .2s;
}

.whatsapp-float i {
    font-size: 23px;
}

.whatsapp-float:hover {
    background: #106e3e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.whatsapp-float:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 14px;
        bottom: 16px;
        padding: 13px;
    }

    .whatsapp-float span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.continue-card strong {
    font-size: 19px;
}

.course-module {
    margin-bottom: 30px;
}

.course-module-head span {
    color: var(--rouge);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.course-module-head h2 {
    font-size: 23px;
    margin: 2px 0 6px;
}

.course-module-head p {
    color: var(--gris);
    margin-bottom: 10px;
}

.course-lessons {
    list-style: none;
    display: grid;
    gap: 8px;
}

.course-lessons a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: white;
    transition: .25s;
}

.course-lessons a:hover {
    border-color: var(--rouge);
    background: var(--rose);
}

.cl-status {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--rouge-clair);
    color: var(--rouge);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.course-lessons li.done .cl-status {
    background: #17803d;
    color: white;
}

.cl-title {
    flex: 1;
    font-weight: 700;
}

.cl-title small {
    display: block;
    font-weight: 400;
    color: var(--gris);
    font-size: 13px;
}

.live-mini {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    margin-bottom: 8px;
    transition: background .2s;
}

.live-mini:hover {
    background: rgba(255, 255, 255, .2);
}

.live-mini small {
    display: block;
    color: rgba(255, 255, 255, .8);
}

/* Lecteur de leçon */
.learn-bar {
    padding: calc(var(--header-h) + 14px) 0 14px;
    background: var(--noir);
    color: white;
}

.learn-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.learn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    min-width: 0;
}

.learn-back span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.learn-back:hover {
    color: #ff99ab;
}

.learn-count {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
}

.learn-section {
    padding: 40px 0 80px;
    background: #fafafa;
}

.learn-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.learn-nav {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--ombre);
}

.learn-nav-module {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--rouge);
    margin: 12px 0 6px;
}

.learn-nav-module:first-child {
    margin-top: 0;
}

.learn-nav ol {
    list-style: none;
}

.learn-nav a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.learn-nav a i {
    margin-top: 3px;
    color: #bbb;
    width: 16px;
}

.learn-nav a.done i {
    color: #17803d;
}

.learn-nav a:hover {
    background: var(--rose);
}

.learn-nav a.current {
    background: var(--rouge);
    color: white;
    font-weight: 700;
}

.learn-nav a.current i {
    color: white;
}

.learn-main {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--ombre);
}

.lesson-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rouge);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.learn-main h1 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    margin: 8px 0 14px;
}

.lesson-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 45px;
    padding-top: 26px;
    border-top: 1px solid #eee;
}

.done-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #17803d;
    font-weight: 800;
}

/* Tests */
.quiz {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.quiz>h2 {
    font-size: 26px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.quiz>h2 i {
    color: var(--rouge);
}

.quiz>.muted {
    color: var(--gris);
    margin: 6px 0 22px;
}

.quiz-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.quiz-result strong {
    font-size: 32px;
}

.quiz-result.ok {
    background: #e3f6ea;
    color: #14612f;
}

.quiz-result.ko {
    background: var(--rouge-clair);
    color: var(--rouge-fonce);
}

.quiz-q {
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.quiz-q.is-ok {
    border-color: #9ad8ae;
}

.quiz-q.is-ko {
    border-color: #f0a9b6;
}

.quiz-q legend {
    font-weight: 800;
    font-size: 17px;
    padding: 0 6px;
}

.quiz-q legend span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rouge);
    color: white;
    font-size: 14px;
    margin-right: 6px;
}

.quiz-q legend small {
    font-weight: 500;
    color: var(--gris);
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    margin: 8px 0 0;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: .2s;
}

.quiz-option:hover {
    border-color: var(--rouge);
}

.quiz-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--rouge);
    flex-shrink: 0;
}

.quiz-option span {
    flex: 1;
}

.quiz-option.correct {
    border-color: #17803d;
    background: #effaf3;
}

.quiz-option.correct i {
    color: #17803d;
}

.quiz-option.wrong {
    border-color: var(--rouge);
    background: var(--rose);
}

.quiz-option.wrong i {
    color: var(--rouge);
}

.quiz-expl {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    background: #fffbe8;
    padding: 10px 14px;
    border-radius: 10px;
}

@media (max-width: 950px) {
    .learn-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .learn-nav {
        position: static;
        max-height: none;
        order: 2;
    }

    .learn-main {
        padding: 26px 20px;
    }
}

@media (max-width: 600px) {
    .live-box {
        flex-direction: column;
    }

    .learn-count {
        display: none;
    }

    .program-module li em {
        display: none;
    }
}
