/* ============================= */
/* BASE                          */
/* ============================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333333;
    background-color: #ffffff;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ============================= */
/* TYPOGRAFIE GENERAL <p>        */
/* ============================= */

p {
    font-size: 14px;
    line-height: 1.15;
    margin: 0 0 1em;
    color: inherit;
}

/* ============================= */
/* HERO / HEADER                 */
/* ============================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-image: url("/assets/images/header_enfants.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 8vw;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.7)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin: 0 0 0.8rem;
}

.hero-content p {
    margin: 0 0 1.4rem;
}

/* Menu au-dessus du hero */

.top-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 3rem;
    z-index: 2;
}

.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.8rem;
}

.menu-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.menu-links a:hover {
    text-decoration: underline;
}

/* ============================= */
/* BOUTONS                       */
/* ============================= */

.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #0A2745;
    color: #ffffff;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    background-color: #134A7B;
    transform: translateY(-1px);
}

.btn:active {
    background-color: #082033;
    transform: scale(0.97);
}

.btn-retour {
    background-color: #0A2745;
}

/* ============================= */
/* CONTENU PRINCIPAL             */
/* ============================= */

.main {
    width: 100%;
    padding: 40px 0 60px;
    background-color: #ffffff;
}

.intro-donations {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.titre_section {
    color: #0A2745;
    font-size: 1.2rem;
    margin: 0 0 8px;
    line-height: 1.15;
}

.text_section {
    color: #555555;
}

/* ============================= */
/* ONGLET PACKS DONATEURS        */
/* ============================= */

.tabs-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #eeeeee;
    background-color: #f7f7f7;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    cursor: pointer;
    border: none;
    background-color: #f1f1f1;
    color: #0A2745;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.tab-button.active {
    background-color: #0A2745;
    color: #ffffff;
}

.tabs-content {
    padding-top: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ============================= */
/* CARTES DE DON (MODIFIÉES)     */
/* ============================= */

.don-section {
    max-width: 1100px;
    margin: 0 auto;
}

.don-section > h2 {
    font-size: 1.4rem;
    color: #0A2745;
    margin: 0 0 8px;
}

.don-section > p {
    margin-bottom: 20px;
}

.don-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.don-pack {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px 16px 18px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.don-pack h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #0A2745;
}

/* correction demandée : 15px + meilleure lisibilité */
.don-montant {
    margin: 0 0 8px;
    font-weight: 700;
    color: #444444;
    font-size: 15px;
    line-height: 1.2;
}

.don-description {
    color: #555555;
    font-size: 15px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.don-contrepartie {
    color: #555555;
    font-size: 15px;
    line-height: 1.3;
    margin: 0 0 12px;
}

.btn-don {
    align-self: flex-start;
    text-decoration: none;
    background-color: #0A2745;
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-don:hover {
    background-color: #134A7B;
    transform: translateY(-1px);
}

.btn-don:active {
    background-color: #082033;
    transform: scale(0.97);
}

/* ============================= */
/* SECTIONS FORMULAIRES          */
/* ============================= */

.forms-section {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.forms-section h2 {
    font-size: 1.2rem;
    color: #0A2745;
    margin: 0 0 8px;
}

.forms-section p {
    color: #555555;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */

.main-footer {
    margin-top: 60px;
    padding: 30px 0;
    background-color: #0A2745;
    color: #ffffff;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

@media (max-width: 768px) {
    .hero {
        padding: 0 1.5rem;
        background-image: url("/assets/images/header_responsive.png");
        min-height: 60vh;
    }

    .top-menu {
        display: none;
    }

    .tabs-header {
        flex-direction: column;
    }

    .don-packs-grid {
        grid-template-columns: 1fr;
    }
}
