/* ============================= */
/* 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;
}

/* ============================= */
/* TYPOGRAPHIE                   */
/* ============================= */

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

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

.section_main .titre_section {
    font-size: 1.1rem;
}

.text_section {
    color: #555555;
}

/* ============================= */
/* HERO / HEADER  =  DONATIONS   */
/* (on neutralise le hero animé  */
/* défini dans style.css)        */
/* ============================= */

.hero {
    position: relative;
    width: 100%;

    /* on écrase le 100vh, l’animation, etc. de style.css */
    height: auto !important;
    min-height: 70vh;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    overflow: visible;

    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;
}

/* Overlay dégradé simple comme sur donations */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.7)
    );
}

/* On coupe les étoiles + animations définies dans style.css */
.hero::after {
    content: none !important;
    background: none !important;
    animation: none !important;
}

/* On masque complètement l’ancien voile glass si présent dans le HTML */
.hero-overlay {
    display: none !important;
}

/* Contenu du hero : copie donations + reset du “glass” */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;

    /* on annule le fond flouté défini dans style.css */
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    height: auto !important;
    display: block;
    color: #ffffff;
}

.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 – identique à donations */
.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;
    margin-top: 0;            /* on annule le margin-top mis dans style.css */
    background-color: #ffffff;
}

/* Bloc d’intro au-dessus des onglets */
.intro-missions {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* Sections hors onglets */
.section_main {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 0 20px;
}

/* ============================= */
/* ONGLET MISSIONS               */
/* ============================= */

.tabs-container {
    max-width: 900px;
    margin: 0 auto 24px;
    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:hover {
    background-color: #e5e5e5;
}

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

.tabs-content {
    padding: 40px 0 0;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
}

.tab-panel {
    display: none;
}

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

/* Titre & paragraphe d’intro à l’intérieur des onglets */
.tab-panel > .titre_section,
.tab-panel > .text_section {
    max-width: 900px;
    margin: 0 auto 1em;
    padding: 0 20px;
}

/* ============================= */
/* STYLE “PAGE LÉGALE” – MODIFIÉ */
/* ============================= */

.tab-panel .section_main {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 24px 20px 20px;

    /* nouveau fond plus doux */
    background-color: #f7f9fc;
    border-radius: 12px;
    border: 1px solid #e1e5ee;
    box-shadow: 0 4px 10px rgba(10, 39, 69, 0.03);
}

.tab-panel .section_main .titre_section {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.tab-panel .section_main p,
.tab-panel .section_main li {
    font-size: 0.95rem;
    line-height: 1.5;
}

.tab-panel .section_main + .section_main {
    margin-top: 16px;
}

/* ============================= */
/* BLOCS TYPE "DONATIONS"        */
/* ============================= */

.section-callout {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 24px;
    background-color: #f7f7f9;
    border-radius: 12px;
    border: 1px solid #e1e4ea;
}

.section-callout-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0A2745;
    margin: 0 0 8px;
}

.section-callout-text {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 12px;
}

.section-callout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.section-callout .btn {
    font-size: 0.9rem;
}

/* mini-grille de trois cartes */
.section-highlights {
    max-width: 900px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.highlight-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e4ea;
    padding: 16px 18px;
    box-shadow: 0 4px 10px rgba(10, 39, 69, 0.03);
}

.highlight-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0A2745;
    margin: 0 0 6px;
}

.highlight-text {
    font-size: 0.9rem;
    color: #555555;
    margin: 0;
}

/* ============================= */
/* 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: 1024px) {
    .section-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

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

    .top-menu {
        display: none;
    }

    .intro-missions,
    .section_main {
        padding: 0 16px;
    }

    .tabs-container {
        padding: 0 16px;
    }

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

    .tab-button {
        text-align: left;
    }

    .section-callout {
        margin: 32px 0 0;
        padding: 18px 16px;
    }

    .section-highlights {
        grid-template-columns: 1fr;
    }

    .tab-panel .section_main {
        padding: 20px 16px 18px;
    }
}
