/* =====================================================
   STYLE.CSS — Mosquée de Villeparisis
   VERSION RESPONSIVE CORRIGÉE
   Breakpoints : 1100 / 900 / 768 / 600 / 480 / 360
   ===================================================== */

/* ── BASE ── */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    overflow-x: hidden; /* FIX global scroll horizontal */
}

strong {
    text-transform: uppercase;
    color: #c49f52;
}

body {
    background-color: white;
    margin: 0;
    overflow-x: hidden; /* double protection scroll horizontal */
}

button {
    cursor: pointer;
}

/* =====================================================
   HEADER
   ===================================================== */
/* =====================================================
   HEADER — Architecture claire, sans !important
   
   3 états distincts et non-conflictuels :
   1. Desktop normal    (> 900px, non scrolled)
   2. Desktop scrolled  (> 900px, .scrolled actif)
   3. Mobile burger     (≤ 900px, .scrolled ignoré)
   ===================================================== */

/* ── ÉTAT 1 : Desktop normal ── */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* pas de height fixe : laisse le contenu définir la hauteur */
    color: white;
    padding: 0;
    background-color: transparent;
    transition: top 0.5s ease, height 0.5s ease;
}

.apparition {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.267);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    transition:
        flex-direction 0.5s ease,
        background     0.6s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius  0.6s cubic-bezier(0.4, 0, 0.2, 1),
        width          0.6s cubic-bezier(0.4, 0, 0.2, 1),
        padding        0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Logo desktop normal ── */
.b-logo {
    margin-top: 20px;
    margin-bottom: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: solid 1px;
    border-image: linear-gradient(to right, #00000000, #c49f52, #00000000) 1;
    height: 160px;
    width: 300px;
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.b-logo-a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    margin-top: 15px;
    width: 230px;
    height: 250px;
    transition: all 0.5s ease;
}

/* ── Nav desktop normal ── */
.bouton-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: all 0.5s ease;
}

.boutton {
    margin-top: 20px;
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    color: black;
    width: 150px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease;
}

.boutton::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c49f52;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.boutton:hover::after,
.boutton.active::after { transform: scaleX(1); }
.boutton.active { color: #c49f52; }

/* ── ÉTAT 2 : Desktop scrolled (> 900px uniquement) ── */
.header.scrolled {
    top: 20px;
}

.header.scrolled .apparition {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: min(1200px, 95vw);
    height: 90px;
    border-radius: 30px;
    padding: 0 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 8px 32px rgba(109, 78, 41, 0.12);
}

.header.scrolled .b-logo {
    border-bottom: none;
    height: auto;
    width: auto;
    margin: 0 40px 0 0;
    flex-shrink: 0;
}

.header.scrolled .logo {
    width: 55px;
    height: auto;
    margin: 0;
}

.header.scrolled .bouton-header {
    margin: 0;
    gap: 4px;
}

.header.scrolled .boutton {
    margin: 0;
    width: auto;
    height: auto;
    font-size: 14px;
    padding: 8px 14px;
    white-space: nowrap;
    color: #302210;
    border-radius: 10px;
}

.header.scrolled .boutton::after { display: none; }

.header.scrolled .boutton:hover {
    background: rgba(196, 159, 82, 0.13);
    color: #291a09;
}

.header.scrolled .boutton.active {
    background: rgba(196, 159, 82, 0.18);
    color: #6d4e29;
}

/* ── Burger (caché sur desktop) ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #6d4e29;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 1100px : réduire le scrolled ── */
@media (max-width: 1100px) {
    .header.scrolled .apparition {
        width: 100%;
        border-radius: 0;
        padding: 0 20px;
    }

    .header.scrolled .b-logo {
        margin-right: 20px;
    }

    .header.scrolled .boutton {
        font-size: 13px;
        padding: 7px 9px;
    }
}

/* ── ÉTAT 3 : Mobile ≤ 900px — scrolled désactivé, burger actif ── */
@media (max-width: 900px) {

    /* Neutralise TOUT le comportement scrolled sur mobile */
    .header,
    .header.scrolled {
        position: sticky;
        top: 0;
        height: auto;
        background-color: transparent;
    }

    /* Barre compacte fixe — même style avec ou sans .scrolled */
    .apparition,
    .header.scrolled .apparition {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 65px;
        border-radius: 0;
        padding: 0 20px;
        margin: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        box-shadow: 0 2px 12px rgba(109, 78, 41, 0.12);
        box-sizing: border-box;
    }

    /* Logo mobile */
    .b-logo,
    .header.scrolled .b-logo {
        height: 55px;
        width: auto;
        border: none;
        margin: 0;
        flex-shrink: 0;
    }

    .logo,
    .header.scrolled .logo {
        width: 42px;
        height: auto;
        margin: 0;
    }

    /* Menu burger déroulant */
    .bouton-header,
    .header.scrolled .bouton-header {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 0 16px;
        margin: 0;
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 24px rgba(109, 78, 41, 0.15);
        border-bottom: 3px solid #c49f52;
        z-index: 998;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }

    .bouton-header.open { display: flex; }

    /* Boutons du menu mobile */
    .boutton,
    .header.scrolled .boutton {
        margin: 0;
        width: 100%;
        height: auto;
        font-size: 15px;
        padding: 14px 24px;
        color: #3d2409;
        border-radius: 0;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(196, 159, 82, 0.15);
        white-space: normal;
        transition: background 0.2s ease, padding-left 0.2s ease;
        box-sizing: border-box;
    }

    .boutton:last-child,
    .header.scrolled .boutton:last-child { border-bottom: none; }

    .boutton::after,
    .header.scrolled .boutton::after { display: none; }

    .boutton:hover,
    .boutton.active,
    .header.scrolled .boutton:hover,
    .header.scrolled .boutton.active {
        background: rgba(196, 159, 82, 0.08);
        color: #c49f52;
        padding-left: 32px;
    }

    .burger { display: flex; }
}

/* ── Mobile ≤ 480px ── */
@media (max-width: 480px) {
    .apparition,
    .header.scrolled .apparition {
        height: 60px;
        padding: 0 14px;
    }

    .bouton-header,
    .header.scrolled .bouton-header {
        top: 60px;
        max-height: calc(100vh - 60px);
    }

    .logo,
    .header.scrolled .logo { width: 36px; }

    .boutton,
    .header.scrolled .boutton { font-size: 14px; padding: 13px 18px; }

    .burger { width: 36px; height: 36px; }
    .burger span { width: 20px; }
}

/* =====================================================
   COVER / ACCUEIL
   ===================================================== */
.boutton-cover {
    font-family: "Outfit", sans-serif;
    font-size: 30px;
    text-align: center;
    background: linear-gradient(135deg, #6d4e29ec, #926a3dd2);
    backdrop-filter: blur(3px) saturate(150%);
    -webkit-backdrop-filter: blur(3px) saturate(150%);
    color: white;
    text-decoration: none;
    width: 200px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(109, 78, 41, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease;
    will-change: transform;
}

.boutton-cover::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: transform 0.35s ease;
}

.boutton-cover:hover { transform: translateY(-2px) scale(1.02); }
.boutton-cover:hover::after { transform: translateX(-50%) scaleX(1); }

.cover {
    border-top: solid 4px #6d4e29;
    font-family: 'Merriweather', sans-serif;
    position: relative;
    z-index: 0;
    background-image: url('/img/mosquee.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 80px 20px 40px 20px;
    gap: 30px;
    min-height: 100vh;
    box-sizing: border-box;
}

.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.185) 0%,
            rgba(0, 0, 0, 0.185) 60%,
            rgb(255, 255, 255) 100%);
    backdrop-filter: blur(3px) saturate(150%);
    -webkit-backdrop-filter: blur(3px) saturate(150%);
    z-index: 1;
}

.cover > * { position: relative; z-index: 2; }

.text-cover {
    margin-top: 50px;
    color: white;
    font-size: 50px;
    text-align: center;
}

/* FIX : min-width supprimé, utilisé width fluide */
.hadith-simple {
    margin-bottom: -100px;
    margin-top: 100px;
    width: min(600px, 90vw);
    text-align: center;
}

.src {
    color: #333;
    padding-right: 30px;
    padding-left: 30px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 50%, rgba(255, 255, 255, 0) 100%);
}

.hadith {
    color: white;
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

.hadith-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hadith-item.show { opacity: 1; transform: translateY(0); }

/* ── GRILLE ACCUEIL ── */
.h {
    margin-top: 200px;
    margin-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.bouton-accueil {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

/* ── BOUTON-ACC ── */
.bouton-acc {
    width: 350px;
    height: 420px;
    font-family: "Merriweather", serif;
    transition: all 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: #6b4822ea;
    backdrop-filter: blur(5px) saturate(150%) brightness(1.02);
    -webkit-backdrop-filter: blur(5px) saturate(150%) brightness(1.02);
    border-radius: 24px;
    box-shadow:
        0 10px 40px rgba(109, 78, 41, 0.185),
        inset 0 1px 2px rgba(199, 154, 87, 0.9),
        inset 0 -1px 2px rgba(0, 0, 0, 0.03),
        0 0 80px rgba(109, 78, 41, 0.185);
    position: relative;
    overflow: hidden;
    will-change: transform;
    padding: 35px 25px;
    box-sizing: border-box;
}

.bouton-acc::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at top left, rgba(196, 159, 82, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 24px;
    z-index: -1;
}

.bouton-acc:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 30px 70px rgba(109, 78, 41, 0.25),
        0 15px 35px rgba(196, 159, 82, 0.15),
        inset 0 2px 3px rgba(255, 255, 255, 1),
        inset 0 -2px 3px rgba(0, 0, 0, 0.04),
        0 0 120px rgba(196, 159, 82, 0.15);
}

.bouton-acc:hover::before { opacity: 1; }
.bouton-acc:active { transform: translateY(-12px) scale(1.02); }

.acc-title {
    font-size: 40px;
    margin: 0 0 10px 0;
    color: #ebcf93;
    font-family: "Merriweather", serif;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.bouton-acc:hover .acc-title { color: #ffeabb; }

.acc-desc {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.bouton-acc:hover .acc-desc { opacity: 1; }

.ligne {
    margin-top: 20px;
    width: 100%;
    height: 2px;
    border-bottom: solid 5px;
    border-image: linear-gradient(to right, #c4a05270, #c49f52, #c4a05270) 1;
}

/* ── FLIP CARD ── */
.flip-card {
    perspective: 1200px;
    cursor: pointer;
    width: 350px;
    height: 420px;
    position: relative;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.flip-card.show { opacity: 1; transform: translateY(0); }

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    padding: 35px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.flip-card-front {
    background: #6b4822ea;
    backdrop-filter: blur(5px) saturate(150%) brightness(1.02);
    -webkit-backdrop-filter: blur(5px) saturate(150%) brightness(1.02);
    box-shadow:
        0 10px 40px rgba(109, 78, 41, 0.185),
        inset 0 1px 2px rgba(199, 154, 87, 0.9),
        inset 0 -1px 2px rgba(0, 0, 0, 0.03),
        0 0 80px rgba(109, 78, 41, 0.185);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #6d4e29, #c49f52);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    gap: 10px;
}

.recolte-montant { font-size: 50px; }

/* ── REVEAL AU SCROLL ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }

/* ── AWQAT ── */
/* FIX : 140vh en width n'a aucun sens → remplacé par max-width fluide */
.awqat {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.awqat-widget {
    width: 100%;
    max-width: 1100px;
    height: 120vh;
    border: #c49f52 solid 5px;
    box-sizing: border-box;
}

/* =====================================================
   RESPONSIVE ACCUEIL — simplifié et unifié
   ===================================================== */

/* 900px */
@media (max-width: 900px) {
    .text-cover {
        font-size: 32px;
        margin-top: 10px;
    }

    .boutton-cover {
        font-size: 22px;
        width: 170px;
        height: 55px;
    }

    .h {
        margin-top: 60px;
        margin-bottom: 60px;
        gap: 30px;
    }

    .bouton-acc,
    .flip-card {
        width: min(400px, 80vw);
        height: 300px;
    }

    .acc-title { font-size: 28px; }
    .acc-desc  { font-size: 15px; }

    .awqat { padding: 0 15px; }
    .awqat-widget {
        height: 80vh;
        max-width: 100%;
    }

    .hadith { font-size: 22px; }
    .src    { margin-bottom: 20px; }
}

/* 600px */
@media (max-width: 600px) {
    .text-cover {
        font-size: 24px;
        margin-top: 60px;
    }

    .boutton-cover {
        font-size: 18px;
        width: 150px;
        height: 50px;
    }

    .h {
        margin-top: 40px;
        margin-bottom: 40px;
        gap: 20px;
        padding: 0 12px;
    }

    .bouton-acc,
    .flip-card {
        width: min(100%, 90vw);
        height: 280px;
    }

    .acc-title { font-size: 22px; }
    .acc-desc  { font-size: 14px; }

    .awqat { padding: 20px 10px; }
    .awqat-widget {
        height: 70vh;
        min-height: 400px;
    }

    .hadith { font-size: 18px; }
    .hadith-simple { margin-bottom: -60px; margin-top: 60px; }
    .src { margin-bottom: 20px; }
}

/* 480px */
@media (max-width: 480px) {
    .h { margin-top: 80px; }
    .text-cover { font-size: 20px; }

    .bouton-acc,
    .flip-card {
        width: 92vw;
        height: 260px;
    }

    .acc-title         { font-size: 20px; }
    .recolte-montant   { font-size: 36px; }

    .awqat-widget {
        height: 60vh;
        min-height: 350px;
    }
}

/* 360px */
@media (max-width: 360px) {
    .text-cover { font-size: 17px; }

    .bouton-acc,
    .flip-card {
        width: 95vw;
        height: 250px;
    }

    .acc-title { font-size: 18px; }
    .acc-desc  { font-size: 13px; }
}

/* =====================================================
   FOOTER — FIX : width 400px supprimée en mobile
   ===================================================== */
.foot {
    color: white;
    margin-top: 100px;
    background-color: #6d4e29;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: solid 4px #c49f52;
    padding: 40px 20px;
    box-sizing: border-box;
}

.s-foot {
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

.boutton-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.bf-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.b-foot {
    font-family: "Outfit", sans-serif;
    margin: 10px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.b-foot:hover { filter: invert(0.2); }

.img-foot {
    height: 40px;
    margin-right: 10px;
    flex-shrink: 0;
}

.droits {
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    text-align: center;
}

.txt {
    font-family: "Outfit", sans-serif;
    max-width: 350px;
}

/* FIX responsive footer */
@media (max-width: 900px) {
    .s-foot {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        margin-top: 20px;
    }

    .boutton-footer { align-items: center; }
    .bf-div         { align-items: center; }

    .b-foot {
        justify-content: center;
        font-size: 14px;
    }

    .txt {
        text-align: center;
        max-width: 100%;
    }

    .txt h1 { font-size: 20px; }
    .txt p  { font-size: 14px; }

    .img-foot { height: 28px; }
}

@media (max-width: 480px) {
    .b-foot     { font-size: 13px; }
    .img-foot   { height: 24px; }
    .txt p      { font-size: 13px; }
}

/* =====================================================
   INFO PAGE
   ===================================================== */
.info-back {
    border-top: solid 4px #6d4e29;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 0 40px 6vw;
    position: relative;
    overflow: hidden; /* contient le translateX(700px) du ::before */
    margin-bottom: -100px;
    /* FIX scroll horizontal : clip le pseudo-élément décalé */
    clip-path: inset(0);
}

.info-back::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 60%, rgb(255, 255, 255) 100%), url('../img/mosquée_ext.jpg');
    background-position: center, center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateX(700px);
    z-index: -1;
}

.info-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 247, 235, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 32px;
    box-shadow: 0 10px 40px #6d4e2970, 0 2px 8px #6d4e2970;
    padding: 60px 50px;
    max-width: 1100px;
    width: 90vw;
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
    margin: 40px 0;
    /* FIX : translateX(-4vw) retiré, causait un scroll horizontal */
    border: 1px solid rgba(196, 159, 82, 0.2);
    box-sizing: border-box;
}

.info-card-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-title {
    font-family: 'Merriweather', serif;
    font-size: 38px;
    color: #6d4e29;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.info-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: #333;
    line-height: 1.7;
    margin: 0;
}

.info-separator {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #c49f52 0%, #6d4e29 100%);
    border-radius: 2px;
    margin: 10px 0;
    opacity: 0.5;
}

.info-map-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    max-width: 400px;
    height: 350px;
    background: rgba(196, 159, 82, 0.07);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(109, 78, 41, 0.08);
    overflow: hidden;
}

.info-map {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 18px;
    min-width: 280px;
    min-height: 350px;
}

@media (max-width: 900px) {
    .info-back {
        padding: 80px 20px 40px;
        justify-content: center;
        background: linear-gradient(135deg, #3d2409 0%, #6d4e29 50%, #9a7040 100%);
    }

    .info-card {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 30px;
        transform: none;
        width: 100%;
        max-width: 600px;
        box-sizing: border-box;
    }

    .info-map-wrapper {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        height: 250px;
    }

    .info-map {
        min-width: unset;
        min-height: 250px;
    }

    .info-title { font-size: 28px; }
    .info-desc  { font-size: 16px; }
}

@media (max-width: 480px) {
    .info-back::before { display: none; }

    .info-title { font-size: 22px; }
    .info-desc  { font-size: 15px; }

    .info-map-wrapper { height: 200px; }
    .info-map         { min-height: 200px; }
}

/* =====================================================
   ACTUALITÉS — FIX : width 1000px → fluide
   ===================================================== */
.page-title {
    text-align: center;
    color: white;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 40px;
    font-size: 45px;
    font-family: 'Merriweather', serif;
}

.actualites-container {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: -100px;
    padding: 60px 20px 80px;
    background: linear-gradient(135deg, #3d2409 0%, #6d4e29 50%, #9a7040 100%);
}

.actualites-title-separator {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c49f52, transparent);
    border-radius: 2px;
    margin: 0 auto 60px;
}

.actualites-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.actualite-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: min(1000px, 100%);  /* FIX : width fluide */
    box-shadow: 0 6px 30px rgba(109, 78, 41, 0.08);
    border: 1px solid rgba(196, 159, 82, 0.15);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.actualites-intro {
    font-family: 'Merriweather', serif;
    text-align: center;
    padding-bottom: 40px;
    margin-top: -20px;
    width: 100%;
    color: white;
}

.actualite-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(109, 78, 41, 0.14);
    border-color: rgba(196, 159, 82, 0.35);
}

.actualite-image {
    width: 100%;
    max-height: 600px;          /* FIX : hauteur max raisonnable */
    background: #f5f0e8;
    overflow: hidden;
}

.actualite-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.actualite-content {
    padding: 30px 35px;
}

.actualite-title {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    color: #3d2409;
    margin: 0 0 15px;
    line-height: 1.4;
}

.actualite-text {
    font-family: 'Outfit', sans-serif;
    color: #555;
    line-height: 1.9;
    font-size: 16px;
    margin: 0 0 20px;
    white-space: pre-line;
}

.actualite-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    color: white;
    font-size: 13px;
    font-weight: 500;
    background: linear-gradient(135deg, #184181, #2d5ba3);
    padding: 6px 14px;
    border-radius: 50px;
}

.actu-empty, .empty-actualites {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
}

.actu-empty p, .empty-actualites p {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    color: #aaa;
    margin: 0;
}

.empty-actualites {
    border: 4px solid #c9a84c;
}
.empty-actualites p { color: #9a7040; font-size: 18px; }

@media (max-width: 768px) {
    .page-title { font-size: 32px; }
    .actualite-content { padding: 20px; }
    .actualite-title   { font-size: 20px; }
}

@media (max-width: 480px) {
    .page-title { font-size: 24px; padding: 20px 15px; }
    .actualites-container { padding: 40px 12px 60px; }
    .actualite-content { padding: 16px; }
    .actualite-title   { font-size: 18px; }
    .actualite-text    { font-size: 14px; }
    .actualite-image   { max-height: 280px; }
}

/* =====================================================
   CONTACT — FIX : width 1500px supprimée
   ===================================================== */
.contact-back {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 80px 20px;
    margin-bottom: -100px;
    box-sizing: border-box;
}

.contact-back::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: url('../img/mosquee.png') center/cover no-repeat;
    filter: blur(8px) brightness(0.9);
    z-index: 0;
}

.contact-back::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.contact-back > * { position: relative; z-index: 2; }

.contact-hero {
    text-align: center;
    padding: 80px 20px 50px;
    max-width: 700px;
}

.contact-hero-titre {
    font-family: 'Merriweather', serif;
    font-size: 42px;
    color: #6d4e29;
    margin: 0 0 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-hero-separator {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c49f52, transparent);
    border-radius: 2px;
    margin: 0 auto 25px;
}

.contact-hero-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    color: #184181;
    line-height: 1.8;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.exp-contact {
    text-align: center;
    color: #c9a84c;
    font-family: 'Merriweather', serif;
    font-size: 24px;
    line-height: 1.8;
    max-width: 900px;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #3d2409, #6d4e29);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(109, 78, 41, 0.15);
    border: 1px solid rgba(196, 159, 82, 0.3);
    box-sizing: border-box;
}

/* FIX : width 1500px → flex-wrap centré */
.contact-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 30px;
    height: auto;
    min-height: 420px;
    width: min(460px, 100%);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(196, 159, 82, 0.2);
    box-shadow: 0 10px 40px rgba(109, 78, 41, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(196, 159, 82, 0.3) 0%, rgba(109, 78, 41, 0.1) 50%, rgba(196, 159, 82, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 24px;
}

.contact-card:hover::before { opacity: 1; }

.contact-card:hover {
    transform: scale(1.02);
    border-color: rgba(196, 159, 82, 0.5);
    box-shadow: 0 20px 60px rgba(109, 78, 41, 0.2), 0 10px 30px rgba(196, 159, 82, 0.15), inset 0 2px 3px rgba(255, 255, 255, 1);
}

.contact-title {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    color: #184181;
    margin: 0 0 15px;
    font-weight: 700;
}

.contact-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #c49f52;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
}

/* FIX : width 400px fixe → 100% fluide */
.contact-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(109, 78, 41, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    color: #184181;
    box-sizing: border-box;
}

.contact-item:hover { background: rgba(109, 78, 41, 0.1); }

.contact-item-icon {
    height: 40px;
    flex-shrink: 0;
    color: #c49f52;
}

.contact-item a {
    color: #184181;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-item a:hover { color: #c49f52; }

@media (max-width: 768px) {
    .contact-hero-titre { font-size: 30px; }
    .exp-contact { font-size: 18px; padding: 25px; }
}

@media (max-width: 480px) {
    .contact-hero { padding: 60px 15px 30px; }
    .contact-hero-titre { font-size: 24px; }
    .exp-contact { font-size: 15px; padding: 20px 15px; margin-bottom: 30px; }
    .contact-cards { gap: 20px; }
    .contact-card  { padding: 25px 15px; min-height: auto; }
    .contact-title { font-size: 20px; }
    .contact-desc  { font-size: 14px; }
    .contact-item  { padding: 10px 12px; font-size: 14px; }
    .contact-item-icon { height: 30px; }
}

/* =====================================================
   DONS
   ===================================================== */
.section-don {
    margin-bottom: -100px;
    background: linear-gradient(to top, #6d4e29, #c49f52);
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: solid 4px #6d4e29;
    box-sizing: border-box;
    width: 100%;
}

.section-don-titre {
    font-family: 'Merriweather', serif;
    font-size: 34px;
    color: white;
    margin-bottom: 50px;
    text-align: center;
}

.cards-don {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.card-don {
    background: white;
    border: 1px solid rgba(196, 159, 82, 0.25);
    border-radius: 20px;
    padding: 40px 30px;
    width: min(300px, 100%);
    text-align: center;
    box-shadow: 0 8px 30px rgba(109, 78, 41, 0.08);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.card-don:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(109, 78, 41, 0.15);
    border-color: rgba(196, 159, 82, 0.6);
}

.card-don h3 {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    color: #c49f52;
    margin: 0 0 15px;
}

.card-don p {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: #1a3a6b;
    line-height: 1.7;
    margin: 0;
}

.paragraphe-dons {
    background: linear-gradient(135deg, #3d2409 0%, #6d4e29 50%, #9a7040 100%);
    width: min(800px, 100%);
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    box-sizing: border-box;
}

.dons-img {
    background-image: url(/img/background-zakat.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 500px;
    margin-bottom: -100px;
}

.dons-p {
    color: white;
    font-family: "Outfit", sans-serif;
    font-size: 25px;
    text-align: center;
}

.source-p {
    color: rgb(212, 212, 212);
    font-family: "Outfit", sans-serif;
    text-align: center;
}

.donnation {
    margin-top: 50px;
    font-family: "Outfit", sans-serif;
    text-transform: uppercase;
    height: 50px;
    width: 170px;
    color: white;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: solid white 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: transparent;
}

.donnation::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #c9a84c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.donnation:hover { border-color: #c9a84c; color: white; }
.donnation:hover::before { transform: scaleX(1); }

@media (max-width: 768px) {
    .section-don { padding: 60px 20px; }
    .section-don-titre { font-size: 26px; }
    .dons-p { font-size: 18px; }
}

@media (max-width: 480px) {
    .paragraphe-dons {
        border-radius: 0;
        width: 100%;
        padding: 40px 20px;
    }
    .dons-p    { font-size: 15px; }
    .source-p  { font-size: 12px; }
    .dons-img  { background-image: none; min-height: 200px; }
}

/* =====================================================
   ACEV
   ===================================================== */
.acev-titre {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: white;
    text-align: center;
    margin: 20px 0 10px;
}

.acev-separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c49f52, transparent);
    border-radius: 2px;
    margin: 0 auto 50px;
}

.acev-valeurs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    max-width: 1100px;
    width: 100%;
}

.valeur-card {
    background: rgba(255, 255, 255, 0.918);
    border: 1px solid rgba(196, 159, 82, 0.3);
    border-radius: 20px;
    padding: 35px 30px;
    width: min(280px, 100%);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.valeur-card:hover {
    background: rgb(255, 255, 255);
    border-color: rgba(196, 159, 82, 0.7);
    transform: translateY(-5px);
}

.valeur-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    color: #9a7535;
    margin: 0 0 12px;
}

.valeur-card p {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: #1a3a6b;
    line-height: 1.7;
    margin: 0;
}

.acev {
    width: 100%;
    background: linear-gradient(135deg, #3d2409 0%, #6d4e29 50%, #9a7040 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.presentation-acev {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    gap: 50px;
    flex-wrap: wrap;
}

.photos-acev {
    display: flex;
    align-items: flex-start;
    position: relative;
    gap: 20px;
    justify-content: center;
}

.photo-acev1, .photo-acev2, .photo-acev3, .photo-acev4 {
    height: 350px;
    width: auto;
    max-width: 200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(50px);
    object-fit: cover;
}

.photo-acev1 { animation: fadeInUp 2.5s forwards; animation-delay: 0.2s; }
.photo-acev2 { animation: fadeInUp 2.5s forwards; animation-delay: 0.4s; margin-top: 50px; }
.photo-acev3 { animation: fadeInUp 2.5s forwards; animation-delay: 0.6s; margin-top: 100px; }
.photo-acev4 { animation: fadeInUp 2.5s forwards; animation-delay: 0.8s; margin-top: 150px; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.paragraphe-acev {
    color: white;
    font-family: 'Outfit', sans-serif;
    max-width: 500px;
}

.rejoindre-acev {
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.pq {
    margin-top: 20px;
    color: rgb(212, 212, 212);
    font-family: "Outfit", sans-serif;
    text-decoration: none;
    transition: text-decoration 0.1s ease;
}

.declaration-box-b {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    text-align: left;
}

.pqa {
    color: #797979;
    font-family: "Outfit", sans-serif;
    text-decoration: none;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.pqa:hover, .pq:hover {
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

@media (max-width: 768px) {
    .acev-titre { font-size: 26px; }
}

@media (max-width: 480px) {
    .presentation-acev {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .paragraphe-acev {
        margin-top: 30px;
        text-align: center;
        font-size: 15px;
    }
    .photo-acev1, .photo-acev3 { display: none; }
    .photo-acev2, .photo-acev4 { height: 250px; max-width: 140px; margin-top: 0; }
}

/* =====================================================
   CATÉGORIES
   ===================================================== */
.categorie {
    background-color: #6d4e29;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;           /* FIX : wrap pour mobile */
    gap: 20px;
    color: white;
    margin-bottom: -100px;
    padding: 20px;
    box-sizing: border-box;
}

.btncls {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.bm, .bi, .be {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: white;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 30px;
    cursor: pointer;
    position: relative;
}

.bm p, .bi p, .be p {
    position: relative;
    display: inline-block;
}

.bm p::after, .bi p::after, .be p::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.bm:hover p::after, .bi:hover p::after, .be:hover p::after { transform: scaleX(1); }

/* FIX : width/height fluide */
.image-container {
    border: #c49f52 solid 4px;
    width: min(400px, 80vw);
    height: 400px;
    overflow: hidden;
    position: relative;
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.bm:hover .image, .bi:hover .image, .be:hover .image { transform: scale(1.05); }

@media (max-width: 480px) {
    .bm, .bi, .be { font-size: 20px; }
    .image-container { height: 250px; }
}

/* =====================================================
   TEXTE DIVERS
   ===================================================== */
.txt-ad {
    color: #6d4e29;
    font-size: 25px;
    font-family: "Merriweather", serif;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =====================================================
   ADMIN
   ===================================================== */
.admin-container {
    min-height: 600px;
    width: 100%;
    margin: 0;
    padding-top: 10px;
    background: linear-gradient(135deg, #3d2409 0%, #6d4e29 50%, #9a7040 100%);
    box-shadow: 0 8px 32px rgba(185, 185, 185, 0.15);
    margin-bottom: -100px;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.btn-admin {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    padding: 0 15px;
}

.btn-asm {
    height: 50px;
    min-width: 150px;
    padding: 0 25px;
    font-size: 16px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    border-radius: 10px;
    border: none;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-asm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-asm.a { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.btn-asm.b { background: linear-gradient(135deg, #c49f52 0%, #6d4e29 100%); }

.articles-section { margin-top: 40px; }

.section-title {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    margin-bottom: 30px;
    font-size: 28px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-image { width: 100%; height: 200px; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-image img { transform: scale(1.05); }

.article-body { padding: 20px; flex: 1; }
.article-title { margin: 0 0 10px; color: #333; font-size: 20px; }
.article-excerpt { color: #666; line-height: 1.6; margin-bottom: 15px; }

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 8px;
}

.article-type { background: #f0f0f0; padding: 4px 10px; border-radius: 12px; font-size: 12px; }

.article-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 100px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    color: white;
}

.btn-edit   { background: linear-gradient(135deg, #886336 0%, #b66700 100%); }
.btn-delete { background: linear-gradient(135deg, #862929 0%, #b30d0d 100%); }
.btn-action:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }

.empty-state {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}
.empty-state p { font-size: 18px; margin: 10px 0; }

.alert-success {
    font-family: Arial, Helvetica, sans-serif;
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    margin: 10px 20px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex-wrap: wrap;
}

.admin-name { font-family: Arial, Helvetica, sans-serif; color: #6d4e29; font-weight: bold; font-size: 16px; }

.btn-logout {
    padding: 8px 15px;
    background: linear-gradient(135deg, #3b1d1d 0%, #ad0d23 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-logout:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4); }

.article-admin {
    background: #e3f2fd;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #1976d2;
}

.header-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: white;
    min-height: 200px;
    color: white;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    border-bottom: solid 4px #6d4e29;
}

@media (max-width: 768px) {
    .header-admin { padding: 15px; }
    .txt-ad    { font-size: 18px; }
    .admin-name { font-size: 14px; }
    .btn-logout { font-size: 13px; padding: 6px 12px; }
    .articles-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 15px; }
}

@media (max-width: 600px) {
    .articles-grid { grid-template-columns: 1fr; margin: 10px; gap: 12px; }
    .section-title { font-size: 22px; padding: 0 5px; }
    .btn-admin     { gap: 8px; }
    .btn-asm       { font-size: 14px; height: 44px; min-width: 120px; }
    .article-title { font-size: 17px; }
    .article-meta  { font-size: 12px; }
    .article-actions { flex-direction: column; align-items: stretch; padding: 12px; }
    .btn-action    { text-align: center; padding: 9px 12px; font-size: 13px; }
}

@media (max-width: 480px) {
    .txt-ad { font-size: 15px; }
}

/* =====================================================
   MODALS ADMIN
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.modal-close {
    position: absolute;
    right: 20px; top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover { color: #333; }

.modal-title {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    text-align: center;
    font-family: 'Merriweather', serif;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="date"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.radio-group { display: flex; gap: 15px; margin-top: 10px; flex-wrap: wrap; }

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}
.radio-label:hover { border-color: #667eea; background-color: #f8f9ff; }
.radio-label input[type="radio"] { cursor: pointer; }
.radio-label input[type="radio"]:checked + span { color: #667eea; font-weight: bold; }

.file-input-wrapper { position: relative; }
.file-input-wrapper input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; }

.file-input-label {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    font-weight: bold;
}
.file-input-label:hover { transform: translateY(-2px); }

.image-preview, .current-image { margin-top: 15px; }
.image-preview img, .current-image img { max-width: 100%; max-height: 200px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.current-image p { margin-bottom: 10px; color: #666; font-size: 14px; }

.modal-actions { display: flex; gap: 10px; margin-top: 25px; flex-wrap: wrap; }

.btn-modal-submit, .btn-modal-cancel {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-modal-submit {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}
.btn-modal-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(17,153,142,0.4); }

.btn-modal-cancel { background: #6c757d; color: white; }
.btn-modal-cancel:hover { background: #5a6268; }

@media (max-width: 480px) {
    .modal-content { padding: 20px 15px; border-radius: 12px; }
    .modal-title   { font-size: 18px; }
    .modal-actions { flex-direction: column; }
    .btn-modal-submit, .btn-modal-cancel { width: 100%; }
    .form-group label       { font-size: 13px; }
    .form-group input[type="text"],
    .form-group textarea,
    .form-group input[type="date"],
    .form-group input[type="number"] { font-size: 14px; padding: 10px; }
}

/* =====================================================
   LOGIN — FIX : dimensions contradictoires
   ===================================================== */
.body-login {
    background: url(../img/mosquee.png) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 460px;
    padding: 40px 30px;
    box-sizing: border-box;
}

.login-logo { text-align: center; }
.login-logo img { max-width: 220px; height: auto; }

.login-title {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    color: #6d4e29;
    font-size: 35px;
    margin-bottom: 5px;
}

.login-subtitle {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #666;
    font-size: 15px;
    margin-bottom: 40px;
}

.form-group-login {
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 30px;
    width: 100%;
    max-width: 320px;
}

.form-group-login label {
    display: block;
    color: #555;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group-login input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group-login input:focus { outline: none; border-color: #6d4e29; }

.btn-login {
    width: 100%;
    max-width: 320px;
    padding: 15px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.2s ease;
}
.btn-login:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.164); }

.alert-error {
    text-align: center;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.left {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

@media (max-width: 480px) {
    .login-container { padding: 25px 15px; border-radius: 14px; }
    .login-logo img  { width: 130px; }
    .login-title     { font-size: 22px; }
    .login-subtitle  { font-size: 13px; margin-bottom: 25px; }
    .form-group-login input { font-size: 14px; padding: 10px; }
    .btn-login       { font-size: 15px; padding: 12px; }
}

/* =====================================================
   POP-UP
   ===================================================== */
.popup-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: min(340px, calc(100vw - 40px));  /* FIX : ne déborde plus */
    z-index: 1000;
    animation: slideIn 0.4s ease-out;
    box-sizing: border-box;
}

@keyframes slideIn  { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

.popup-container.closing { animation: slideOut 0.3s ease-out forwards; }

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.popup-title-wrapper { display: flex; align-items: center; gap: 10px; }

.logo-awqat {
    height: 35px;
    width: auto;
    object-fit: contain;
    animation: fadeInLogo 0.5s ease-out 0.2s both;
}

@keyframes fadeInLogo { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.popup-title {
    font-size: 18px;
    font-weight: bold;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    letter-spacing: 0.5px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
}
.popup-close:hover { color: #333; transform: scale(1.25); }

.popup-body { display: flex; flex-direction: column; gap: 12px; }

.popup-description {
    text-align: center;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.popup-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.btn-app { display: inline-block; transition: transform 0.3s ease; margin: 0; }
.btn-app:hover  { transform: scale(1.1); }
.btn-app:active { transform: translateY(-2px) scale(1.02); }
.btn-app img    { height: 50px; width: auto; display: block; }

@media (max-width: 480px) {
    .popup-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    .popup-title   { font-size: 15px; }
    .logo-awqat    { height: 24px; }
    .btn-app img   { height: 38px; }
    .popup-description { font-size: 13px; }
}

/* =====================================================
   PAGE ADHÉSION
   ===================================================== */
.adhesion-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #3d2409 0%, #6d4e29 50%, #9a7040 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.adhesion-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(196, 159, 82, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 159, 82, 0.1) 0%, transparent 50%);
}

.adhesion-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, white);
}

.hero-badge {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: rgba(196, 159, 82, 0.2);
    border: 1px solid rgba(196, 159, 82, 0.5);
    color: #f0d898;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
}

.hero-title {
    position: relative;
    z-index: 2;
    font-family: 'Merriweather', serif;
    font-size: clamp(28px, 6vw, 72px);
    color: white;
    margin: 0 0 20px;
    line-height: 1.2;
}

.hero-title span { color: #c49f52; }

.hero-subtitle {
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(15px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    line-height: 1.7;
    margin: 0 0 50px;
}

.hero-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #c49f52, #9a7535);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 45px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(196, 159, 82, 0.4);
    transition: all 0.3s ease;
}

.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(196, 159, 82, 0.5); }
.hero-btn svg   { width: 20px; height: 20px; }

.adhesion-presentation { background: white; padding: 80px 20px; box-sizing: border-box; }

.pres-container { max-width: 1100px; margin: 0 auto; }

.pres-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.pres-text h2 { font-family: 'Merriweather', serif; font-size: 36px; color: #3d2409; margin: 0 0 20px; line-height: 1.3; }
.pres-text h2 em { color: #c49f52; font-style: normal; }
.pres-text p { font-family: 'Outfit', sans-serif; font-size: 17px; color: #555; line-height: 1.8; margin: 0 0 20px; }

.pres-separator { width: 60px; height: 3px; background: linear-gradient(90deg, #c49f52, #6d4e29); border-radius: 2px; margin-bottom: 25px; }

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 80px;
}

.avantage-card {
    background: #fdf8f0;
    border: 1px solid rgba(196, 159, 82, 0.2);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.avantage-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(109,78,41,0.12); border-color: rgba(196,159,82,0.5); }
.avantage-card h3 { font-family: 'Merriweather', serif; font-size: 17px; color: #3d2409; margin: 0 0 10px; }
.avantage-card p  { font-family: 'Outfit', sans-serif; font-size: 14px; color: #777; line-height: 1.6; margin: 0; }

.cotisation-section {
    background: linear-gradient(135deg, #3d2409, #6d4e29);
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 80px;
    color: white;
}

.cotisation-section h2 { font-family: 'Merriweather', serif; font-size: 28px; color: #f0d898; margin: 0 0 10px; text-align: center; }
.cotisation-section > p { font-family: 'Outfit', sans-serif; color: rgba(255,255,255,0.7); text-align: center; margin: 0 0 35px; font-size: 15px; }

.cotisation-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }

.cotisation-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(196,159,82,0.3);
    border-radius: 14px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.cotisation-item:hover { background: rgba(196,159,82,0.15); border-color: rgba(196,159,82,0.6); }
.cotisation-item .montant { font-family: 'Merriweather', serif; font-size: 22px; color: #c49f52; font-weight: 700; }
.cotisation-item .periode { font-family: 'Outfit', sans-serif; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 5px; }
.cotisation-note { text-align: center; margin-top: 50px; font-family: 'Outfit', sans-serif; font-size: 14px; color: rgba(255,255,255,0.6); }

.adhesion-cta {
    text-align: center;
    padding: 60px 20px 80px;
    background: #fdf8f0;
    margin-bottom: -100px;
}

.adhesion-cta h2 { font-family: 'Merriweather', serif; font-size: 32px; color: #3d2409; margin: 0 0 15px; }
.adhesion-cta p  { font-family: 'Outfit', sans-serif; color: #777; font-size: 17px; margin: 0 0 35px; }

/* Modal adhésion */
.modal-adhesion-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(30, 15, 5, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-adhesion-overlay.open { display: flex; }

.modal-adhesion {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 750px;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalIn {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-adhesion-header {
    background: linear-gradient(135deg, #3d2409, #6d4e29);
    padding: 35px 40px 30px;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.modal-adhesion-header h2 { font-family: 'Merriweather', serif; font-size: 26px; color: white; margin: 0 0 6px; }
.modal-adhesion-header p  { font-family: 'Outfit', sans-serif; color: rgba(255,255,255,0.65); font-size: 14px; margin: 0; }

.modal-adhesion-close {
    position: absolute;
    right: 25px; top: 25px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal-adhesion-close:hover { background: rgba(255,255,255,0.3); }

.modal-adhesion-body { padding: 35px 40px 40px; overflow-y: auto; flex: 1; }

.form-steps { display: flex; gap: 0; margin-bottom: 35px; border-radius: 12px; overflow: hidden; border: 1px solid #e8dcc8; }

.form-step {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    background: #faf7f2;
    border-right: 1px solid #e8dcc8;
    transition: all 0.3s;
}
.form-step:last-child { border-right: none; }
.form-step.active { background: #6d4e29; color: white; }
.form-step.done   { background: #d4edda; color: #155724; }
.step-num { display: block; font-size: 18px; margin-bottom: 2px; }

.form-fieldset { display: none; }
.form-fieldset.active { display: block; animation: fadeSlide 0.3s ease; }

@keyframes fadeSlide { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: translateX(0); } }

.fieldset-title { font-family: 'Merriweather', serif; font-size: 18px; color: #3d2409; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid #f0e8d8; }

.adh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.adh-row.full { grid-template-columns: 1fr; }

.adh-group { display: flex; flex-direction: column; }
.adh-group label { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.adh-group input,
.adh-group select,
.adh-group textarea {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    padding: 12px 15px;
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    color: #333;
    background: #fdfaf6;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.adh-group input:focus,
.adh-group select:focus,
.adh-group textarea:focus {
    border-color: #c49f52;
    box-shadow: 0 0 0 3px rgba(196,159,82,0.15);
    background: white;
}

.adh-group textarea { resize: vertical; min-height: 90px; }

.cotisation-radio-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 15px; }

.cot-radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border: 2px solid #e8dcc8;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    background: #fdfaf6;
    transition: all 0.2s;
    text-align: center;
}

.cot-radio-label input { display: none; }
.cot-radio-label:has(input:checked) { border-color: #c49f52; background: linear-gradient(135deg, #fdf0d5, #faf5e8); box-shadow: 0 4px 12px rgba(196,159,82,0.2); }
.cot-montant { font-size: 18px; font-weight: 700; color: #6d4e29; }
.cot-periode { font-size: 11px; color: #999; margin-top: 3px; }

.paiement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.paiement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    background: #fdfaf6;
    transition: all 0.2s;
}

.paiement-label input { display: none; }
.paiement-label:has(input:checked) { border-color: #c49f52; background: #fdf0d5; }

.declaration-box {
    background: #fdf8f0;
    border: 1px solid rgba(196,159,82,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 12px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #c49f52;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0e8d8;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-prev {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    background: white;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-prev:hover { border-color: #c49f52; color: #6d4e29; }

.btn-next, .btn-submit-adh {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 35px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #c49f52, #8a6b30);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(196,159,82,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-next:hover, .btn-submit-adh:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,159,82,0.4); }
.btn-submit-adh:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.adhesion-success { text-align: center; padding: 20px 0; }

.success-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.adhesion-success h3 { font-family: 'Merriweather', serif; font-size: 26px; color: #3d2409; margin: 0 0 15px; }
.adhesion-success p  { font-family: 'Outfit', sans-serif; font-size: 16px; color: #666; line-height: 1.7; max-width: 450px; margin: 0 auto 25px; }

.success-ref {
    display: inline-block;
    background: #fdf0d5;
    border: 1px solid rgba(196,159,82,0.4);
    color: #6d4e29;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .pres-grid { grid-template-columns: 1fr; gap: 40px; }
    .avantages-grid { grid-template-columns: repeat(2, 1fr); }
    .cotisation-grid { grid-template-columns: repeat(3, 1fr); }
    .cotisation-section { padding: 35px 20px; }
    .adhesion-cta h2 { font-size: 24px; }
}

@media (max-width: 480px) {
    .pres-text { text-align: center; justify-content: center; display: flex; flex-direction: column; align-items: center; }
    .avantages-grid { grid-template-columns: 1fr; }
    .cotisation-grid { grid-template-columns: repeat(2, 1fr); }
    .cotisation-radio-grid { grid-template-columns: repeat(3, 1fr); }
    .paiement-grid { grid-template-columns: 1fr; }
    .adh-row { grid-template-columns: 1fr; }
    .modal-adhesion-body   { padding: 20px 15px 25px; }
    .modal-adhesion-header { padding: 25px 20px; }
    .adhesion-hero { padding: 80px 15px 60px; }
}

/* =====================================================
   MAINTENANCE
   ===================================================== */
.maintenance {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdf8f0;
    padding: 80px 20px;
    margin-bottom: -100px;
    box-sizing: border-box;
}

.maintenance-card {
    background: white;
    border: 1px solid rgba(196,159,82,0.3);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(109,78,41,0.1);
    box-sizing: border-box;
}

.maintenance-separator { width: 60px; height: 4px; background: linear-gradient(90deg, #c49f52, #6d4e29); border-radius: 2px; margin: 0 auto 30px; }
.maintenance-titre { font-family: 'Merriweather', serif; font-size: 32px; color: #6d4e29; margin: 0 0 20px; }
.maintenance-desc  { font-family: 'Outfit', sans-serif; font-size: 16px; color: #777; line-height: 1.8; margin: 0 0 40px; }

@media (max-width: 480px) {
    .maintenance-card   { padding: 40px 20px; }
    .maintenance-titre  { font-size: 24px; }
    .maintenance-desc   { font-size: 14px; }
}

/* =====================================================
   DOCUMENTS
   ===================================================== */
.docs-section { text-align: center; margin-top: 0; margin-bottom: 150px; max-width: 100%; }
.docs-titre { font-family: 'Merriweather', serif; font-size: 24px; color: #3d2409; margin-bottom: 25px; }

.docs-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 0 20px; box-sizing: border-box; }

.doc-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 35px;
    border: 2px solid #c49f52;
    border-radius: 12px;
    background: white;
    color: #6d4e29;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-btn:hover {
    background: linear-gradient(135deg, #c49f52, #8a6b30);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196,159,82,0.3);
}

.modal-doc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(30,15,5,0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-doc-overlay.open { display: flex; }

.modal-doc {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-doc-header {
    background: linear-gradient(135deg, #3d2409, #6d4e29);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 24px 24px 0 0;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-doc-header h2 { font-family: 'Merriweather', serif; font-size: 20px; color: white; margin: 0; }

.modal-doc-header .modal-adhesion-close {
    position: static;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.modal-doc-header .modal-adhesion-close:hover { background: rgba(255,255,255,0.3); }

.doc-download-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-download-btn:hover { background: rgba(255,255,255,0.3); }

#modal-doc-iframe { flex: 1; width: 100%; border: none; }

@media (max-width: 480px) {
    .modal-doc-header { padding: 15px 20px; }
    .modal-doc-header h2 { font-size: 16px; }
    .doc-download-btn { font-size: 12px; padding: 6px 12px; }
}