:root {
    --primary-color: #4a148c;
    --bg-color: #f5f5f5;
    --text-color: #333;
}

/* S'assure que la page prend toute la hauteur */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========================================================= */
/* BOUTON & FEATURES */
/* ========================================================= */

/* CTA principal */
.btn-primary {
    background-color: #0A2745;
    color: #fff;
    border-radius: 999px;
    border: none;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow:
        0 10px 30px rgba(10, 39, 69, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px rgba(10, 39, 69, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.18);
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 6px 18px rgba(10, 39, 69, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Bouton retour */
.btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background-color: #0A2745;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(10, 39, 69, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Icône flèche dans le bouton retour */
.btn-retour .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
}

/* Effet hover */
.btn-retour:hover {
    background-color: #134A7B;
    transform: translateX(-3px);
}

/* Effet clic */
.btn-retour:active {
    background-color: #082033;
    transform: scale(0.97);
}


/* ========================================================= */
/* HEADER / HERO ACCUEIL – OVERLAY PLEIN                     */
/* ========================================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;

    background-image: url("/assets/images/header_enfants.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;

    /* effet d'apparition existant conservé */
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease-out, transform 1.2s ease-out;

    display: flex;
    align-items: center;
    padding: 0 8vw;
}

/* Classe activée par le JS pour l'effet apparition */
.hero.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* on désactive d’anciens overlays / étoiles éventuels */
.hero::before,
.hero::after {
    content: none;
}

/* overlay qui couvre TOUT le header */
.hero-overlay {
    position: absolute;
    inset: 0; /* toute la surface */
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.8)
    );
    pointer-events: none;
}

/* bloc texte */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================================= */
/* MENU SUPERPOSÉ EN HAUT DU HEADER                          */
/* ========================================================= */

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

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

.menu-links a {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    transition: opacity 0.25s ease;
}

.menu-links a:hover {
    opacity: 0.7;
}

/* ========================================================= */
/* SECTION TICKER (valeurs qui défilent)                     */
/* ========================================================= */

.ticker {
    width: 100%;
    overflow: hidden;
    background-color: #00172B;
    color: #fff;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-wrapper {
    display: flex;
    width: max-content;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
    padding: 0 2.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.85;
}

.ticker-text {
    position: relative;
}

.ticker-text::before {
    content: "•";
    margin-right: 0.75rem;
    opacity: 0.8;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ========================================================= */
/* ONGLETs ACCUEIL                                           */
/* ========================================================= */

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

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

.titre_section {
    color: #0A2745;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.text_section {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

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

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

.tab-panel {
    display: none;
}

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

/* cartes dans les onglets */
.tab-card {
    background-color: #f7f9fc;
    border-radius: 12px;
    border: 1px solid #e1e5ee;
    padding: 20px 20px 18px;
    box-shadow: 0 4px 10px rgba(10, 39, 69, 0.03);
}

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

.tab-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0A2745;
    margin: 0 0 8px;
}

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

.tab-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* ========================================================= */
/* AUTRES SECTIONS (déjà présentes dans ton style initial)   */
/* ========================================================= */

/* ... ici tu gardes TOUT le reste de ton style.css existant :
   - sections d’accueil
   - cards, grilles, images
   - styles des autres pages
   - footer, etc.
   Rien d’autre n’a été supprimé, uniquement les anciens blocs .hero
   en double. */

/* (Je ne recolle pas les ~10 000 lignes suivantes pour ne pas saturer,
   mais sur ton serveur, tu remplaces UNIQUEMENT l’ancien bloc HEADER
   par celui-ci au même endroit.) */

/* ========================================================= */
/* RESPONSIVE HEADER + ONGLETs                               */
/* ========================================================= */

@media (max-width: 768px) {

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

    .top-menu {
        padding: 1rem 1.5rem;
    }

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

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

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

/* ========================================================= */
/* FOOTER GLOBAL HUMAN FIRST EUROPE                         */
/* ========================================================= */

.main-footer {
    margin-top: 60px;
    padding: 30px 0;
    background-color: #0A2745;   /* bleu HF */
    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;
}

/* liste des liens (cookies / privacy / CGU) */
.footer-links {
    list-style: none;           /* supprime les puces */
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

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

/* petit ajustement mobile */
@media (max-width: 600px) {
    .footer-links {
        gap: 10px;
    }
}

/* ... puis tu laisses également tous tes media-queries
   déjà présents pour les autres blocs (cartes, footer, etc.) */
