/* =========================================
   Human First Europe – Feuille légale
   Fichier : assets/css/legals.css
   Pages : Cookies / Confidentialité / CGU
   ========================================= */

/* ------------------------------
   VARIABLES & BASE
   ------------------------------ */

:root {
    --primary-color: #0A2745;     /* Bleu Human First */
    --primary-light: #134A7B;
    --primary-dark:  #082033;
    --text-color:    #333333;
    --muted-text:    #666666;
    --bg-color:      #ffffff;
    --section-bg:    #f8f8f8;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

main, Main {
    flex: 1;
}

/* ------------------------------
   LIENS GÉNÉRAUX
   ------------------------------ */

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ------------------------------
   HEADER / HERO
   (reprend le header principal)
   ------------------------------ */

.site-header {
    position: relative;
    width: 100%;
}

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

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

/* Hero image enfants */
.hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 260px;
    background-image: url("/assets/images/header_enfants.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Voile sombre léger */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.7)
    );
    pointer-events: none;
}

/* Mobile : image responsive + menu masqué */
@media (max-width: 768px) {
    .hero {
        height: 40vh;
        background-image: url("/assets/images/header_responsive.png");
        background-size: cover;
        background-position: center;
    }

    .top-menu {
        display: none;
    }
}

/* ------------------------------
   CONTENU LÉGAL
   ------------------------------ */

/* Conteneur principal des textes légaux */
main, Main {
    max-width: 960px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

/* Titre principal de la page (CGU / Cookies / Confidentialité) */
h2.titre_section {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0 0 1rem;
}

/* Sous-titres (sections & paragraphes importants) */
h3.titre_section,
h4.titre_section {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 1.6rem 0 0.5rem;
    line-height: 1.3;
}

/* Paragraphe général (classe text_section) */
.text_section,
main p,
Main p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted-text);
    margin: 0 0 0.9rem;
}

/* Blocs de section (pour aérer) */
.section {
    margin: 1.4rem 0;
    padding: 1rem 1.2rem;
    background-color: var(--section-bg);
    border-radius: 8px;
}

/* Listes à puces dans les textes légaux */
ul {
    margin: 0.4rem 0 0.9rem 1.2rem;
    padding: 0;
}

li {
    margin: 0.2rem 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted-text);
}

li.text_section {
    list-style: disc;
}

/* Séparateurs horizontaux */
hr {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 1.8rem 0;
}

/* Petits éléments typographiques */
strong {
    font-weight: 600;
}

/* ------------------------------
   BOUTON RETOUR (si utilisé)
   ------------------------------ */

.btn-retour {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
    margin: 1rem 0;
}

.btn-retour:hover {
    background-color: var(--primary-light);
    transform: translateX(-3px);
}

.btn-retour:active {
    background-color: var(--primary-dark);
    transform: scale(0.97);
}

/* ------------------------------
   FOOTER
   (cohérent avec le site)
   ------------------------------ */

.main-footer {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 32px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Liens du footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;

    display: flex;
    justify-content: center;
    gap: 24px;

    flex-wrap: wrap;
}

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

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

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

/* ------------------------------
   RESPONSIVE GLOBAL
   ------------------------------ */

@media (max-width: 600px) {
    main, Main {
        margin: 24px auto 40px;
        padding: 0 16px;
    }

    h2.titre_section {
        font-size: 1.4rem;
    }

    h3.titre_section,
    h4.titre_section {
        font-size: 1.1rem;
    }
}
