/* ----------------------------- */
/* BASE GÉNÉRALE */
/* ----------------------------- */

html,
body {
    height: 100%;
    overflow-x: hidden; /* FIX : empêche le débordement horizontal sur mobile */
    max-width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #0A2239;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* ----------------------------- */
/* NAVBAR */
/* ----------------------------- */

nav.navbar.navbar-dark.bg-dark,
nav.navbar {
    background-color: #0A2239 !important;
    border-bottom: 3px solid #ffffff;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 45px;
    padding-right: 45px;
    min-height: 130px;
}

.navbar-inner {
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 130px;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

.navbar-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

.navbar-collapse {
    flex-grow: 1;
}

.navbar-menu-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.navbar-center {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .nav-link {
    color: #F2EBD8 !important;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
    padding: 0 !important;
}

.navbar .nav-link:hover {
    color: #ffffff !important;
}

.donate-zone {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.donate-btn {
    display: inline-block;
    background-color: #E0A62D !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    border: none;
}

.donate-btn:hover {
    background-color: #c9911f !important;
    color: #ffffff !important;
}

/* ----------------------------- */
/* CONTENEURS */
/* ----------------------------- */

.container {
    max-width: 1140px;
}

.display-4 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0A2239;
}

/* ----------------------------- */
/* CONTACT */
/* ----------------------------- */

.contact-section {
    flex: 1;
    min-height: calc(100vh - 130px - 85px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 20px;
    text-align: center;
}

.contact-section p {
    font-size: 1.55rem;
    line-height: 1.5;
}

.contact-section a {
    color: #2563eb;
    text-decoration: underline;
}

/* ----------------------------- */
/* LISTES PERSONNALISÉES */
/* ----------------------------- */

.custom-list,
.dent-list,
.puce-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.custom-list li,
.dent-list li,
.puce-list li {
    background: url("/static/images/puce.png") no-repeat left 6px;
    background-size: 20px 20px;
    padding-left: 32px;
    margin-bottom: 12px;
}

/* ----------------------------- */
/* FOOTER */
/* ----------------------------- */

footer {
    background-color: #0A2239;
    color: #F2EBD8;
    text-align: center;
    padding: 24px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* ----------------------------- */
/* SECTION PROJET + LOGOS */
/* ----------------------------- */

.project-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 120px;
}

.project-content {
    position: relative;
    z-index: 2;
}

.side-logo {
    position: absolute;
    width: 230px;
    height: auto;
    opacity: 0.95;
    z-index: 1;
    pointer-events: none;
}

.logo-1 { top: 0;    left: -100px; }
.logo-2 { top: 80px; right: -95px; }
.logo-3 { top: 350px; left: -90px; }
.logo-4 { top: 650px; right: -95px; }
.logo-5 { top: 620px; left: -100px; }

/* ----------------------------- */
/* STADES DU NOMA */
/* ----------------------------- */

:root {
    --stade-1: #0A2239;
    --stade-2: #1E4D73;
    --stade-3: #3E7FA3;
    --stade-4: #C16A4A;
    --stade-5: #A94030;
}

.stages-section {
    margin-top: 30px;
}

.stage-col {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s ease forwards;
}

.stage-col:nth-child(1) { animation-delay: 0.08s; }
.stage-col:nth-child(2) { animation-delay: 0.16s; }
.stage-col:nth-child(3) { animation-delay: 0.24s; }
.stage-col:nth-child(4) { animation-delay: 0.32s; }
.stage-col:nth-child(5) { animation-delay: 0.40s; }

.stage-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 34, 57, 0.10);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    height: 100%;
}

.stage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 34px rgba(10, 34, 57, 0.16);
}

.stage-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.stage-card:hover img {
    transform: scale(1.04);
}

.stage-card .card-body {
    padding: 20px;
}

.stage-card p {
    margin-bottom: 12px;
    color: #0A2239;
}

/* ----------------------------- */
/* FRISES */
/* ----------------------------- */

.timeline-arrows {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0 0 24px 0;
    filter: drop-shadow(0 6px 12px rgba(10, 34, 57, 0.16));
}

.timeline-arrow {
    position: relative;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    padding: 0 26px;
    line-height: 1.2;
    clip-path: polygon(
        0 0,
        calc(100% - 34px) 0,
        100% 50%,
        calc(100% - 34px) 100%,
        0 100%,
        18px 50%
    );
}

.timeline-arrow + .timeline-arrow {
    margin-left: -16px;
}

.timeline-top-3 .timeline-arrow:nth-child(1) { flex: 1; background: var(--stade-1); }
.timeline-top-3 .timeline-arrow:nth-child(2) { flex: 1; background: var(--stade-2); }
.timeline-top-3 .timeline-arrow:nth-child(3) { flex: 1; background: var(--stade-3); }

.timeline-bottom-3 .timeline-arrow:nth-child(1) { flex: 1; background: var(--stade-4); }
.timeline-bottom-3 .timeline-arrow:nth-child(2) { flex: 1; background: var(--stade-5); }
.timeline-bottom-3 .timeline-arrow:nth-child(3) { flex: 1; background: #7A2E24; }

.timeline-arrow span {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* ----------------------------- */
/* ANIMATIONS */
/* ----------------------------- */

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------- */
/* RESPONSIVE — TABLETTE (≤ 992px) */
/* ----------------------------- */

@media (max-width: 992px) {
    nav.navbar,
    nav.navbar.navbar-dark.bg-dark {
        min-height: auto !important;
        padding: 12px 16px !important;
    }

    .navbar-inner {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        width: 100%;
    }

    .navbar-collapse {
        width: 100%;
    }

    .navbar-logo {
        height: 90px;
        margin-bottom: 12px;
    }

    .navbar-menu-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        width: 100%;
    }

    .navbar-center {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        width: 100%;
    }

    .donate-zone {
        justify-content: center;
        width: 100%;
    }

    .timeline-arrows {
        display: none !important;
    }

    .side-logo {
        display: none;
    }

    .project-wrapper {
        padding: 20px;
    }
}

/* ----------------------------- */
/* RESPONSIVE — MOBILE (≤ 768px) */
/* ----------------------------- */

@media (max-width: 768px) {
    .contact-section p {
        font-size: 1.25rem;
    }

    .stage-card {
        border-radius: 16px;
    }
}
/* FIX menu mobile vertical */
@media (max-width: 992px) {
    #navbarNav {
        width: 100%;
    }

    #navbarNav .navbar-nav {
        flex-direction: column !important;
        align-items: center;
        width: 100%;
        gap: 8px !important;
    }

    #navbarNav .donate-btn {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}
/* Hamburger blanc cassé */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F2EBD8' stroke-width='3' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler {
    border-color: rgba(242,235,216,0.4) !important;
}