/* ==========================================================
   ZANDOS — PAGE LÉGALE NUMÉROTÉE
   Version Premium éditoriale

   Ce fichier contrôle :

   1. Variables
   2. Base
   3. Contenu principal
   4. En-tête
   5. Métadonnées
   6. Numérotation automatique
   7. Sections légales
   8. Hébergement
   9. Liens
   10. Note finale
   11. Tablette
   12. Mobile

   Chaque élément .legal-box reçoit automatiquement
   un numéro : 01, 02, 03, etc.

   Aucune classe existante n’est modifiée.
   Les tailles de texte existantes sont conservées.
========================================================== */


/* ==========================================================
   1. VARIABLES
========================================================== */

:root {
    --legal-black: #ffffff;
    --legal-text: #c4c4c4;
    --legal-gray: #a8a8a8;
    --legal-light: #8d8d8d;
    --legal-number: #8d8d8d;

    --legal-border: #383838;
    --legal-soft: #242424;
    --legal-white: #191919;

    --legal-orange: #f76902;

    --legal-content-width: 820px;
}


/* ==========================================================
   2. BASE
========================================================== */

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    color: var(--legal-black);
    background: #191919;

    font-family: "Inter", sans-serif;
    font-size: 16px;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* ==========================================================
   3. CONTENU PRINCIPAL

   counter-reset démarre automatiquement la numérotation
   des différentes sections légales.
========================================================== */

.legal-page {
    width: 100%;
    max-width: var(--legal-content-width);

    margin: 90px auto 120px;
    padding: 0 40px;

    counter-reset: legal-section;
}


/* ==========================================================
   4. EN-TÊTE
========================================================== */

.legal-header {
    margin-bottom: 78px;
}


/* ==========================================================
   5. BADGE ÉDITORIAL
========================================================== */

.legal-badge {
    display: inline-flex;
    align-items: center;

    min-height: 31px;

    margin-bottom: 25px;
    padding: 0;

    color: var(--legal-light);
    background: transparent;

    border: 0;
    border-radius: 0;

    font-size: 12px;
    font-weight: 650;
    line-height: 1;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/*
   Petite ligne placée devant le badge.
*/

.legal-badge::before {
    content: "";

    display: inline-block;
    flex: 0 0 auto;

    width: 28px;
    height: 1px;

    margin-right: 12px;

    background: var(--legal-light);
}


/* ==========================================================
   6. TITRE PRINCIPAL
========================================================== */

.legal-header h1 {
    max-width: 850px;

    margin: 0 0 20px;

    color: var(--legal-black);

    font-family: "Inter", sans-serif;
    font-size: clamp(38px, 4.5vw, 52px);
    font-weight: 600;
    line-height: 1.1;

    letter-spacing: -1.8px;
}


/* ==========================================================
   7. INTRODUCTION
========================================================== */

.legal-header p {
    max-width: 750px;

    margin: 0 0 27px;

    color: var(--legal-gray);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
}


/* ==========================================================
   8. MÉTADONNÉES
========================================================== */

.legal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 13px 22px;
}

.legal-meta span {
    color: var(--legal-gray);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}


/* ==========================================================
   9. LIEN DU DOCUMENT PDF
========================================================== */

.legal-pdf {
    display: inline-flex;
    align-items: center;

    min-height: 36px;

    padding: 0;

    color: var(--legal-black);

    border-bottom: 1px solid var(--legal-black);

    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.legal-pdf:hover {
    color: var(--legal-orange);
    border-color: var(--legal-orange);
}


/* ==========================================================
   10. SECTIONS LÉGALES

   Les anciennes cartes sont remplacées par des sections
   éditoriales simples et aérées.
========================================================== */

.legal-box {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    color: var(--legal-text);
    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    counter-increment: legal-section;

    transition: none;
}


/*
   Une ligne fine sépare les différentes sections.

   La première section ne reçoit aucun séparateur supérieur.
*/

.legal-box + .legal-box {
    margin-top: 58px;
    padding-top: 58px;

    border-top: 1px solid var(--legal-border);
}


/*
   Aucun effet de carte au passage de la souris.
*/

.legal-box:hover {
    border-color: transparent;

    box-shadow: none;

    transform: none;
}

.legal-box:last-of-type {
    margin-bottom: 0;
}


/* ==========================================================
   11. NUMÉROTATION AUTOMATIQUE
========================================================== */

.legal-box::before {
    content: counter(legal-section, decimal-leading-zero);

    display: block;

    margin-bottom: 17px;

    color: var(--legal-number);

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;

    letter-spacing: 0.09em;
}


/* ==========================================================
   12. TITRES DES SECTIONS
========================================================== */

.legal-box h2 {
    margin: 0 0 20px;

    color: var(--legal-black);

    font-family: "Inter", sans-serif;
    font-size: 25px;
    font-weight: 650;
    line-height: 1.3;

    letter-spacing: -0.6px;
}


/* ==========================================================
   13. SOUS-TITRES
========================================================== */

.legal-box h3,
.hosting-box h3 {
    margin: 28px 0 13px;

    color: var(--legal-black);

    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: -0.25px;
}

.legal-box h2 + h3,
.hosting-box h2 + h3 {
    margin-top: 0;
}


/* ==========================================================
   14. PARAGRAPHES
========================================================== */

.legal-box p {
    margin: 0 0 17px;

    color: var(--legal-text);

    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
}

.legal-box p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   15. LISTES
========================================================== */

.legal-box ul,
.legal-box ol {
    margin: 19px 0;
    padding: 0;

    color: var(--legal-text);

    list-style: none;
}

.legal-box li {
    position: relative;

    margin-bottom: 13px;
    padding-left: 26px;

    color: var(--legal-text);

    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

.legal-box li:last-child {
    margin-bottom: 0;
}


/*
   Un tiret discret remplace les puces traditionnelles.
*/

.legal-box li::before {
    content: "—";

    position: absolute;

    top: 0;
    left: 0;

    color: var(--legal-light);
}


/* ==========================================================
   16. LISTES NUMÉROTÉES
========================================================== */

.legal-box ol {
    padding-left: 24px;

    list-style: decimal;
}

.legal-box ol li {
    padding-left: 5px;
}

.legal-box ol li::before {
    content: none;
}

.legal-box li::marker {
    color: var(--legal-light);
}


/* ==========================================================
   17. TEXTES IMPORTANTS
========================================================== */

.legal-box strong {
    color: var(--legal-black);

    font-weight: 700;
}


/* ==========================================================
   18. LIENS
========================================================== */

.legal-link,
.legal-box a {
    color: var(--legal-black);

    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.legal-link {
    display: inline-block;

    margin-top: 10px;

    font-size: 15px;
}

.legal-link:hover,
.legal-box a:hover {
    color: var(--legal-orange);
    text-decoration-color: var(--legal-orange);
}


/* ==========================================================
   19. SECTION HÉBERGEMENT

   La section conserve la même présentation éditoriale
   que toutes les autres parties du document.
========================================================== */

.hosting-box {
    color: var(--legal-text);
    background: transparent;
}

.hosting-box h3:first-of-type {
    margin-top: 0;
}


/* ==========================================================
   20. NOTE FINALE
========================================================== */

.legal-note {
    width: 100%;

    margin: 58px 0 0;
    padding: 40px 0 0;

    color: var(--legal-black);
    background: transparent;

    border: 0;
    border-top: 1px solid var(--legal-border);
    border-radius: 0;

    text-align: left;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

.legal-note strong {
    font-weight: 700;
}


/* ==========================================================
   21. TABLEAUX ÉVENTUELS
========================================================== */

.legal-box table {
    width: 100%;
    min-width: 620px;

    margin-top: 24px;

    border-collapse: collapse;
}

.legal-box th,
.legal-box td {
    padding: 14px 15px;

    border: 1px solid var(--legal-border);

    color: var(--legal-text);

    text-align: left;
    vertical-align: top;

    font-size: 14px;
    line-height: 1.65;
}

.legal-box th {
    color: var(--legal-black);
    background: var(--legal-soft);

    font-weight: 700;
}


/* ==========================================================
   22. TABLETTE
========================================================== */

@media (max-width: 900px) {

    .legal-page {
        margin-top: 75px;
        margin-bottom: 100px;

        padding-right: 28px;
        padding-left: 28px;
    }

    .legal-header {
        margin-bottom: 65px;
    }

}


/* ==========================================================
   23. MOBILE
========================================================== */

@media (max-width: 700px) {

    .legal-page {
        margin: 60px auto 85px;
        padding: 0 20px;
    }

    .legal-header {
        margin-bottom: 50px;
    }

    .legal-badge {
        min-height: 29px;

        margin-bottom: 21px;
        padding: 0;

        font-size: 11px;
    }

    .legal-badge::before {
        width: 21px;

        margin-right: 10px;
    }

    .legal-header h1 {
        margin-bottom: 19px;

        font-size: 34px;
        line-height: 1.1;

        letter-spacing: -1.4px;
    }

    .legal-header p {
        max-width: 100%;

        margin-bottom: 23px;

        font-size: 16px;
        line-height: 1.75;
    }

    .legal-meta {
        align-items: flex-start;
        flex-direction: column;

        gap: 11px;
    }

    .legal-meta span,
    .legal-pdf {
        font-size: 14px;
    }

    .legal-box {
        overflow: visible;
    }

    .legal-box + .legal-box {
        margin-top: 43px;
        padding-top: 43px;
    }

    .legal-box::before {
        margin-bottom: 14px;

        font-size: 12px;
    }

    .legal-box h2 {
        margin-bottom: 17px;

        font-size: 22px;
        line-height: 1.35;
    }

    .legal-box h3,
    .hosting-box h3 {
        margin-top: 24px;
        margin-bottom: 11px;

        font-size: 18px;
    }

    .legal-box p,
    .legal-box li {
        font-size: 15px;
        line-height: 1.8;
    }

    .legal-box li {
        margin-bottom: 11px;
        padding-left: 23px;
    }

    .legal-link {
        font-size: 15px;
    }

    .legal-note {
        margin-top: 43px;
        padding: 32px 0 0;

        border-radius: 0;

        font-size: 15px;
        line-height: 1.75;
    }

    /*
       Le tableau peut défiler horizontalement
       sans transformer les sections en encarts.
    */

    .legal-box table {
        display: block;

        min-width: 560px;
        max-width: 100%;

        overflow-x: auto;

        scrollbar-width: thin;
    }

    .legal-box th,
    .legal-box td {
        padding: 12px;

        font-size: 13px;
    }

}


/* ==========================================================
   24. TRÈS PETITS ÉCRANS
========================================================== */

@media (max-width: 380px) {

    .legal-page {
        margin-top: 52px;

        padding-right: 16px;
        padding-left: 16px;
    }

    .legal-header h1 {
        font-size: 31px;
    }

    .legal-header p {
        font-size: 15px;
    }

    .legal-box h2 {
        font-size: 21px;
    }

    .legal-box p,
    .legal-box li {
        font-size: 15px;
    }

}


/* ==========================================================
   25. ACCESSIBILITÉ
========================================================== */

.legal-page a:focus-visible {
    outline: 3px solid rgba(247, 105, 2, 0.3);
    outline-offset: 3px;
}


/* ==========================================================
   26. RÉDUCTION DES ANIMATIONS
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .legal-page *,
    .legal-page *::before,
    .legal-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}

/* ZANDOS — LEGAL CLEAN FINAL 2026 */

html,
body {
    background: #191919 !important;
}

/* ----------------------------------------------------------
   PAGE — même rythme éditorial que À propos
---------------------------------------------------------- */

.legal-page {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 54px !important;
    padding-bottom: 64px !important;

    background: #191919 !important;
    color: #f4f4f4 !important;

    counter-reset: none !important;
}


/* ----------------------------------------------------------
   HEADER
---------------------------------------------------------- */

.legal-header {
    margin-top: 0 !important;
    margin-bottom: 42px !important;
    padding-top: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.legal-badge,
.legal-badge::before,
.legal-badge::after,
.legal-header::before,
.legal-header::after,
.legal-header > *::before,
.legal-header > *::after {
    display: none !important;
    content: none !important;
}

.legal-header h1 {
    margin-top: 0 !important;

    color: #ffffff !important;
    font-size: clamp(34px, 4vw, 44px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -1.1px !important;

    text-decoration: none !important;
}

.legal-header p {
    color: #b8b8b8 !important;
}


/* ----------------------------------------------------------
   CONTENU
---------------------------------------------------------- */

.legal-box {
    counter-increment: none !important;
    position: relative;

    background: transparent !important;
    color: #f4f4f4 !important;

    border-color: #383838 !important;
    box-shadow: none !important;
}

.legal-box::before,
.legal-box::after,
.legal-box > h2::before,
.legal-box > h3::before {
    display: none !important;
    content: none !important;
}

.legal-page h2,
.legal-page h3 {
    color: #ffffff !important;
    text-decoration: none !important;
}

.legal-intro,
.legal-page p,
.legal-page li {
    color: #b8b8b8 !important;
}


/* ----------------------------------------------------------
   LIENS — UN SEUL SOULIGNEMENT
---------------------------------------------------------- */

.legal-page a,
.legal-link,
.legal-pdf {
    color: #ffffff !important;

    border-bottom: 0 !important;
    box-shadow: none !important;

    text-decoration-line: underline !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: currentColor !important;
    text-underline-offset: 3px !important;
}


/* ----------------------------------------------------------
   CONTACT / SÉPARATEURS
---------------------------------------------------------- */

.legal-contact {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.legal-page hr {
    border: 0 !important;
    border-top: 1px solid #383838 !important;
}


/* ----------------------------------------------------------
   FIN DE PAGE
   Évite le grand vide avant le footer
---------------------------------------------------------- */

.legal-page > *:last-child {
    margin-bottom: 0 !important;
}

.legal-note:last-child,
.legal-contact:last-child,
.legal-box:last-child {
    margin-bottom: 0 !important;
}


/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */

@media (max-width: 700px) {

    .legal-page {
        min-height: 0 !important;
        padding-top: 38px !important;
        padding-bottom: 52px !important;
    }

    .legal-header {
        margin-bottom: 36px !important;
    }

    .legal-header h1 {
        font-size: 32px !important;
        line-height: 1.12 !important;
        letter-spacing: -.7px !important;
    }

    .legal-header p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
}
