/* ===== Kynexis — Pages légales harmonisées =====
   Objectif : apparence cohérente avec index.html (styles.css)
   - Typo : Geologica (+ Krona One pour H1), Inter pour boutons/titres secondaires
   - Couleurs : fond clair, header & footer sombres (#0B180B), accent #71F26D
   - Layout : header fixe visuel (non absolute), contenu centré, cartes grises
   - Responsive : marges adaptées < 768px
*/

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Geologica', sans-serif;
    background: #FFFFFF;
    color: #0B180B;
    line-height: 1.6;
    margin: 0;
}

img { max-width: 100%; height: auto; }

/* Conteneur commun */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header (cohérent avec l'accueil) ===== */
header {
    background: #0B180B;          /* fond sombre comme le footer du site */
    color: #FFFFFF;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

header .logo img { height: 40px; width: auto; }

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0; padding: 0;
}
nav a {
    text-decoration: none;
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #FFFFFF;
    opacity: 0.9;
}
nav a:hover { opacity: 1; }

/* Mobile header */
@media (max-width: 768px) {
    nav ul { gap: 20px; }
}

/* ===== Contenu principal (mise en page “carte”) ===== */
main.legal-page {
    padding: 80px 0;             /* respiration verticale */
    background: #FFFFFF;
}

main.legal-page .container {
    max-width: 900px;
}

/* Titre principal */
main.legal-page h1 {
    font-family: 'Krona One', sans-serif;
    font-size: 36px;
    line-height: 1.2;
    color: #000000;
    margin: 30px 0 20px;
}

/* Carte de contenu : applique aux sections directement */
main.legal-page section {
    background: #F9F9F9;
    border-radius: 15px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Titres secondaires dans les pages légales */
main.legal-page h2, main.legal-page h3 {
    font-family: 'Geologica', sans-serif;
    color: #0B180B;
    margin: 24px 0 10px;
}
main.legal-page h2 { font-size: 22px; }
main.legal-page h3 { font-size: 18px; }

/* Texte */
main.legal-page p,
main.legal-page li {
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #0B180B;
    margin-bottom: 14px;
}

main.legal-page ul { padding-left: 18px; }
main.legal-page a { color: #0B180B; text-decoration: underline; }

/* Espacements entre plusieurs sections (si plusieurs blocs) */
main.legal-page section + section { margin-top: 20px; }

/* ===== Footer (identique à l’accueil) ===== */
footer {
    background: #0B180B;
    color: #FFFFFF;
    padding: 40px 20px;
    margin-top: 40px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}
.footer-col { min-width: 150px; margin-bottom: 20px; }
.footer-logo {
    font-family: 'Dongle', sans-serif;
    font-size: 36px;
    color: #FFFFFF;
    margin-bottom: 20px;
}
footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; }
footer ul li a {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #FFFFFF;
    opacity: 0.8;
}
footer ul li a:hover { opacity: 1; }

@media (max-width: 992px) {
    .footer-col { width: 50%; }
}
@media (max-width: 600px) {
    .footer-container { flex-direction: column; }
    .footer-col { width: 100%; }
}

/* ===== Responsive global ===== */
@media (max-width: 768px) {
    main.legal-page { padding: 60px 0; }
    main.legal-page h1 { font-size: 30px; }
    main.legal-page section { padding: 24px; }
}
@media (max-width: 480px) {
    main.legal-page h1 { font-size: 26px; }
}
