/* =====================================================
   STYLE.CSS — Mosquée de Villeparisis
   Corrections : .bouton-acc height fixe, flip card
   indépendante (sans hériter de .bouton-acc)
   ===================================================== */

/* ── BASE ── */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

strong {
    text-transform: uppercase;
    color: #c49f52;
}

body {
    background-color: white;
    margin: 0;
}

button {
    cursor: pointer;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 280px;
    color: white;
    padding: 0;
    background-color: transparent;
    transition: all 0.3s 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:
        all 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 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),
        height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── SCROLLED ── */
.header.scrolled {
    top: 30px;
    height: 200px !important;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.5s ease;
}

.header.scrolled .apparition {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: min(1200px, 95vw);
    height: 200px;
    border-radius: 30px;
    padding-right: 20px;
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.452);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    transition:
        all 0.5s ease,
        background 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 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),
        height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LOGO ── */
.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;
}

.header.scrolled .logo {
    width: 160px;
    height: 180px;
    transition: all 0.5s ease;
}

.header.scrolled .b-logo {
    border-bottom: none;
    height: auto;
    width: auto;
    margin-right: 80px;
    margin-top: 0;
    margin-bottom: 0;
    transition: all 0.5s ease;
}

/* ── NAVIGATION ── */
.bouton-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: all 0.5s ease;
}

/* ── BOUTONS NAV ── */
.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;
}

.header.scrolled .boutton {
    margin: 0;
    width: auto;
    height: auto;
    font-size: 15px;
    padding: 8px 14px;
    white-space: nowrap;
    color: #302210;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.header.scrolled .boutton:hover {
    background: rgba(196, 159, 82, 0.13);
    color: #291a09;
}

.boutton::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c49f52;
    transform: scaleX(0);
    transform-origin: center;
    transition: all 0.5s ease;
}

.boutton:hover::after,
.boutton.active::after {
    transform: scaleX(1);
}

.boutton.active {
    color: #c49f52;
}

/* ── BURGER ── */
.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);
}

/* ── RESPONSIVE HEADER ── */
@media (max-width: 1100px) {
    .header.scrolled .apparition {
        width: 100%;
        padding: 0 15px;
    }

    .header.scrolled .b-logo {
        margin-right: 30px;
    }

    .boutton,
    .header.scrolled .boutton {
        font-size: 13px;
        padding: 7px 10px;
    }
}

@media (max-width: 900px) {

    .header,
    .header.scrolled {
        width: 100%;
        top: 0 !important;
        height: auto !important;
    }

    .apparition,
    .header.scrolled .apparition {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 400px !important;
        height: 65px !important;
        border-radius: 0 !important;
        padding: 0 20px !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(28px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
        box-shadow: 0 2px 12px rgba(109, 78, 41, 0.12) !important;
    }

    .b-logo,
    .header.scrolled .b-logo {
        height: 55px;
        width: auto;
        border: none;
        margin: 0;
        flex-shrink: 0;
    }

    .logo,
    .header.scrolled .logo {
        width: 45px;
        height: auto;
        margin: 0;
    }

    .bouton-header {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 20px;
        margin: 0;
        background: rgba(255, 255, 255, 0.98);
        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;
    }

    .boutton,
    .header.scrolled .boutton {
        margin: 0;
        width: 100%;
        height: auto;
        font-size: 15px;
        padding: 15px 24px;
        color: #3d2409;
        border-radius: 0;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(196, 159, 82, 0.15);
        white-space: nowrap;
        transition: background 0.2s ease, padding-left 0.2s ease;
    }

    .boutton:last-child {
        border-bottom: none;
    }

    .boutton::after {
        display: none;
    }

    .boutton:hover,
    .boutton.active,
    .header.scrolled .boutton:hover {
        background: rgba(196, 159, 82, 0.08);
        color: #c49f52;
        padding-left: 34px;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 600px) {

    .apparition,
    .header.scrolled .apparition {
        width: 100%;
        padding: 0 14px !important;
        height: 60px !important;
    }

    .bouton-header {
        top: 60px;
        max-height: calc(100vh - 60px);
    }

    .logo,
    .header.scrolled .logo {
        width: 40px;
    }

    .boutton,
    .header.scrolled .boutton {
        font-size: 14px;
        padding: 14px 20px;
    }

    .boutton:hover,
    .boutton.active {
        padding-left: 28px;
    }
}

@media (max-width: 480px) {

    .apparition,
    .header.scrolled .apparition {
        width: 100%;
        padding: 0 12px !important;
        height: 100px !important;
        align-items: center;
    }

    .bouton-header {
        top: 100px;
        max-height: calc(100vh - 56px);
    }

    .logo,
    .header.scrolled .logo {
        width: 80px;
        height: 100px;
        margin-left: 20px;
        margin-top: 10px;
    }

    .boutton,
    .header.scrolled .boutton {
        font-size: 14px;
        padding: 13px 16px;
    }

    .boutton:hover,
    .boutton.active {
        padding-left: 24px;
    }

    .burger {
        width: 36px;
        height: 36px;
    }

    .burger span {
        width: 20px;
    }
}

@media (max-width: 360px) {

    .apparition,
    .header.scrolled .apparition {
        width: 100%;
        padding: 0 10px !important;
        height: 52px !important;
    }

    .bouton-header {
        top: 52px;
        max-height: calc(100vh - 52px);
    }

    .logo,
    .header.scrolled .logo {
        width: 50px;
    }

    .boutton,
    .header.scrolled .boutton {
        font-size: 13px;
        padding: 12px 14px;
    }
}

/* =====================================================
   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;
}

.hadith-simple {
    margin-bottom: -100px;
    margin-top: 100px;
    min-width: 500px;
}

.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);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ── GRILLE ACCUEIL ── */
.h {
    margin-top: 200px;
    margin-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 0 20px;
}

.bouton-accueil {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

/* =====================================================
   BOUTON-ACC  ← FIX : height fixe (pas min-height)
   ===================================================== */
.bouton-acc {
    width: 350px;
    height: 420px;
    /* ← FIX : était min-height, causait une hauteur variable */
    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::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.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;
}

.acc-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.ligne {
    margin-top: 20px;
    width: 100%;
    height: 2px;
    border-bottom: solid 5px;
    border-image: linear-gradient(to right, #c4a05270, #c49f52, #c4a05270) 1;
}

/* =====================================================
   FLIP CARD  ← entièrement indépendant de .bouton-acc
   pour éviter les conflits overflow/position/height
   ===================================================== */
.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;
}

/* Face avant : même look que .bouton-acc mais SANS overflow:hidden */
.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);
}

/* Face arrière */
.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 ── */
.awqat {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120vh;
}

.awqat-widget {
    width: 140vh;
    max-width: 140vh;
    height: 120vh;
    border: #c49f52 solid 5px;
}

/* =====================================================
   RESPONSIVE ACCUEIL
   ===================================================== */
@media (max-width: 900px) {
    .text-cover {
        font-size: 32px;
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .boutton-cover {
        font-size: 22px;
        width: 170px;
        height: 55px;
    }

    .h {
        margin-top: 60px;
        margin-bottom: 60px;
        gap: 30px;
    }

    .bouton-acc,
    .flip-card {
        width: 80vw;
        max-width: 400px;
        height: 300px;
    }

    .acc-title {
        font-size: 28px;
    }

    .acc-desc {
        font-size: 15px;
    }

    .awqat {
        height: 80vh;
    }

    .awqat-widget {
        width: 100%;
        max-width: 100%;
        height: 80vh;
    }

    .hadith {
        font-size: 22px;
        text-align: center;
        margin-top: -10px;
    }

    .src {
        margin-bottom: 20px;
    }
}

@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: 90vw;
        max-width: 100%;
        height: 300px;
    }

    .acc-title {
        font-size: 22px;
    }

    .acc-desc {
        font-size: 14px;
    }

    .awqat {
        height: auto;
        padding: 20px 10px;
    }

    .awqat-widget {
        width: 100%;
        max-width: 100%;
        height: 70vh;
        min-height: 400px;
    }

    .hadith {
        font-size: 18px;
    }

    .src {
        margin-bottom: 20px;
    }

    .hadith-simple {
        min-width: unset;
        width: 90vw;
        margin-bottom: -60px;
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .h {
        margin-top: 100px;
    }

    .text-cover {
        font-size: 20px;
    }

    .bouton-acc,
    .flip-card {
        width: 92vw;
        height: 300px;
    }

    .acc-title {
        font-size: 20px;
    }

    .recolte-montant {
        font-size: 36px;
    }

    .awqat-widget {
        height: 60vh;
        min-height: 350px;
    }

    .src {
        margin-bottom: 20px;
    }
}

@media (max-width: 360px) {
    .text-cover {
        font-size: 17px;
    }

    .bouton-acc,
    .flip-card {
        width: 95vw;
        height: 300px;
    }

    .acc-title {
        font-size: 18px;
    }

    .acc-desc {
        font-size: 13px;
    }

    .src {
        margin-bottom: 20px;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */
.foot {
    color: white;
    margin-top: 100px;
    background-color: #6d4e29;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: solid 4px #c49f52;
}

.s-foot {
    margin-top: 150px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.boutton-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    margin-right: 200px;
}

.bf-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.b-foot {
    font-family: "Outfit", sans-serif;
    margin: 10px;
    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: 50px;
    margin-right: 10px;
}

.droits {
    margin-bottom: 120px;
}

.txt {
    font-family: "Outfit", sans-serif;
}

@media (max-width: 768px) {

    .foot {
        height: auto;
        width: 400px;
    }

    .s-foot {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 30px;
        margin-top: 0;
    }

    .boutton-footer {
        margin-top: 50px;
        margin-bottom: 50px;
        margin-right: 0px;
        width: 100%;
        align-items: center;
    }

    .bf-div {
        width: 100%;
        align-items: center;
    }

    .b-foot {
        justify-content: center;
        font-size: 14px;
        margin: 8px 0;
    }

    .txt {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 50px;
    }

    .txt h1 {
        font-size: 20px;
    }

    .txt p {
        font-size: 14px;
    }

    .img-foot {
        height: 28px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .foot {
        width: 100%;
    }

    .b-foot {
        font-size: 13px;
    }
}

/* =====================================================
   DONS
   ===================================================== */
.paragraphe-dons {
    background: linear-gradient(135deg, #3d2409 0%, #6d4e29 50%, #9a7040 100%);
    width: 800px;
    height: 1000px;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dons-img {
    background-image: url(../../IMG/background-zakat.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 1000px;
    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;
}

.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: 480px) {
    .paragraphe-dons {
        border-radius: 0;
        width: 100%;
        margin-top: -200px;
        margin-bottom: -200px;
    }

    .dons-p {
        font-size: 16px;
    }

    .source-p {
        font-size: 12px;
    }

    .dons-img {
        background-image: none;
    }
}

/* =====================================================
   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;
}

.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: 280px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.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;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

.presentation-acev {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    gap: 50px;
}

.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;
}

.pq:hover {
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

@media (max-width: 480px) {

    .presentation-acev {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .paragraphe-acev {
        margin-top: 50px;
        text-align: center;
        font-size: 15px;
    }

    .photo-acev1,
    .photo-acev3 {
        display: none;
    }
}
/* =====================================================
   CONTACT
   ===================================================== */
.contact-back {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 80px 20px;
    margin-bottom: -100px;
}

.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;
    margin-top: 50px;
    margin-bottom: 100px;
    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);
}

.exp-contact br {
    display: none;
}

.contact-cards {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 1500px;
    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: 50px;
    height: 500px;
    width: 500px;
    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;
}

.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;
    height: 100px;
    font-size: 16px;
    color: #c49f52;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    width: 400px;
    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;
}

.contact-item:hover {
    background: rgba(109, 78, 41, 0.1);
}

.contact-item-icon {
    height: 50px;
    color: #c49f52;
}

.contact-item a {
    color: #184181;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #c49f52;
}

@media (max-width: 480px) {
    .contact-cards {
        margin-top: 100px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .contact-card {
        width: 300px;
        font-size: 15px;
    }
}


/* =====================================================
   CATÉGORIES
   ===================================================== */
.categorie {
    background-color: #6d4e29;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    color: white;
    margin-bottom: -100px;
}

.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);
}

.image-container {
    border: #c49f52 solid 4px;
    width: 400px;
    height: 600px;
    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);
}

/* =====================================================
   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;
}

.btn-admin {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.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%);
}

.btn-icon {
    font-size: 20px;
}

/* ================= HEADER TABLET ================= */

@media (max-width: 768px) {

    .header-admin {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 12px;
    }

    .header-admin .l {
        width: 100%;
        gap: 12px;
    }

    .left {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .admin-info {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .txt-ad {
        font-size: 18px;
    }

    .admin-name {
        font-size: 14px;
    }

    .btn-logout {
        font-size: 13px;
        padding: 6px 12px;
    }
}


/* ================= HEADER MOBILE ================= */

@media (max-width: 480px) {

    .header-admin {
        width: 100%;
    }

    .header-admin .b-logo {
        height: 45px;
    }

    .logo-a {
        height: 180px;
        width: 160px;
        margin-bottom: 10px;
    }

    .txt-ad {
        font-size: 15px;
    }
}


/* ================= GRID TABLET ================= */

@media (max-width: 900px) {

    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        margin: 15px;
    }
}


/* ================= GRID MOBILE ================= */

@media (max-width: 600px) {

    .admin-container {
        width: 100%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        margin: 10px;
        gap: 12px;
    }

    .section-title {
        font-size: 22px;
        padding: 0 5px;
    }

    .btn-admin {
        gap: 8px;
        flex-wrap: wrap;
    }

    .btn-asm {
        font-size: 14px;
        height: 44px;
        width: 50px;
    }

    .article-card {
        border-radius: 10px;
    }

    .article-body {
        padding: 15px;
    }

    .article-title {
        font-size: 17px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 12px;
    }

    .article-actions {
        align-items: center;
        padding: 12px;
        flex-direction: column;
    }

    .btn-action {
        width: 150px;
        margin: 15px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .alert-success {
        margin: 10px;
        font-size: 14px;
    }
}


/* ================= MODAL MOBILE ================= */

@media (max-width: 480px) {

    .modal-content {
        border-radius: 12px;
        width: 100%;
        gap: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-family: 'Merriweather', serif;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-modal-submit,
    .btn-modal-cancel {
        width: 100%;
        text-align: center;
    }

    .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;
        width: 100%;
    }
}

/* =====================================================
   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: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
    position: relative;
}

@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 {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.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 {
    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 {
    margin-top: 10px;
}

.current-image p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-modal-submit,
.btn-modal-cancel {
    flex: 1;
    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;
}

/* =====================================================
   ARTICLES GRID
   ===================================================== */
.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(350px, 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;
}

.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;
}

.btn-action {
    flex: 1;
    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;
}

/* =====================================================
   PAGE ACTUALITÉS
   ===================================================== */
.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 {
    max-width: 100%;
    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;
    height: auto;
    width: 1000px;
    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;
    align-items: center;
    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%;
    height: 1000px;
    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;
    margin: 0;
}

.empty-actualites {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 20px;
    border: 4px solid #c9a84c;
}

.empty-actualites p {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #9a7040;
    margin: 0;
}

.actu-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    border: 1px dashed rgba(196, 159, 82, 0.4);
}

.actu-empty p {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    color: #aaa;
    margin: 0;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.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;
    height: 300px;
    color: white;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    border-bottom: solid 4px #6d4e29;
    transition: all 0.4s ease;
}

@media (max-width: 480px) {
    .actualites-list {
        width: 100%;
    }

    .actualite-item {
        width: 100%;
        height: 700px;
    }
}

/* =====================================================
   LOGIN
   ===================================================== */
.body-login {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(185, 185, 185, 0.15);
    background: url(../img/mosquee.png);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.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: 900px;
    max-width: 500px;
}

.login-logo {
    text-align: center;
}

.login-logo img {
    max-width: 250px;
}

.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: 300px;
}

.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%;
    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: 50px;
    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;
}

.alert-success {
    font-family: Arial, Helvetica, sans-serif;
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.left {
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: left;
}

@media (max-width: 480px) {
    .body-login {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-container {
        padding: 30px 20px 25px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .login-logo img {
        margin-top: 20px;
        width: 130px;
        height: 150px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .form-group-login input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn-login {
        font-size: 15px;
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 25px 15px 20px;
    }

    .login-title {
        font-size: 19px;
    }

    .btn-login {
        font-size: 14px;
    }
}

/* =====================================================
   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: 340px;
    height: 180px;
    z-index: 1000;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.popup-container.closing {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.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;
    line-height: 1;
    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;
    overflow: hidden;
    margin: 10px;
}

.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;
    transition: opacity 0.2s ease;
}

.btn-app:hover img {
    opacity: 0.95;
}

@media (max-width: 768px) {
    .popup-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: 400px;
        margin: 0 auto;
    }

    .popup-title {
        font-size: 16px;
    }

    .logo-awqat {
        height: 24px;
    }

    .btn-app img {
        height: 40px;
    }

    .popup-description {
        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;
    margin-bottom: -100px;
}

.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%, wheat 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;
    transform: translateX(-4vw);
    border: 1px solid rgba(196, 159, 82, 0.2);
}

.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: 320px;
    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: 320px;
    min-height: 350px;
}

@media (max-width: 900px) {
    .info-back {
        padding-left: 0;
        justify-content: center;
        background: linear-gradient(135deg, #3d2409 0%, #6d4e29 50%, #9a7040 100%);
    }

    .info-card {
        flex-direction: column;
        align-items: center;
        padding: 30px 10px;
        gap: 30px;
        margin-left: 0;
        transform: none;
    }

    .info-map-wrapper {
        min-width: 220px;
        max-width: 100%;
        height: 220px;
    }

    .info-map {
        min-width: 220px;
        min-height: 220px;
    }

    .info-title {
        font-size: 28px;
    }

    .info-desc {
        font-size: 16px;
    }
}

/* =====================================================
   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;
}

.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(36px, 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(16px, 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;
}

.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;
}

.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;
}

.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: 480px) {
    .pres-text {
        text-align: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .pres-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .avantages-grid {
        grid-template-columns: 1fr;
    }

    .cotisation-grid {
        grid-template-columns: repeat(3, 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: 25px 20px 30px;
    }

    .modal-adhesion-header {
        padding: 25px 20px;
    }

    .cotisation-section {
        padding: 30px 20px;
    }
}

/* =====================================================
   SECTION 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;
}

.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;
}

.card-don {
    background: white;
    border: 1px solid rgba(196, 159, 82, 0.25);
    border-radius: 20px;
    padding: 40px 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(109, 78, 41, 0.08);
    transition: all 0.3s ease;
}

.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;
}

/* =====================================================
   MAINTENANCE
   ===================================================== */
.maintenance {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdf8f0;
    padding: 80px 20px;
    margin-bottom: -100px;
}

.maintenance-card {
    background: white;
    border: 1px solid rgba(196, 159, 82, 0.3);
    border-radius: 24px;
    padding: 60px 80px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(109, 78, 41, 0.1);
}

.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;
}

/* =====================================================
   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;
}

.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: 9999;
    background: rgba(30, 15, 5, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.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;
}

.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;
}