/* ================================================= */
/* === CSS OPTIMISÉ POUR PAGES LÉGALES ============ */
/* === (Mentions, CGU, Confidentialité) =========== */
/* === Nouveau thème Wine/Copper ================== */
/* ================================================= */

/* Import des variables centralisées */
@import url('variables.css');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--police-secondaire);
    line-height: 1.6;
    color: var(--couleur-texte-sombre);
    background-color: var(--couleur-gris-clair);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================= */
/* === HEADER ==================================== */
/* ================================================= */

.header {
    background: var(--couleur-blanc);
    padding: 0 4rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgba(124, 10, 41, 0.1), 0 1px 2px 0 rgba(124, 10, 41, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e8ddd6;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(124, 10, 41, 0.1), 0 2px 4px -1px rgba(124, 10, 41, 0.06);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7C0A29, #A0522D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    font-family: var(--police-principale);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.nav a {
    color: #5a4a42;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav a:hover {
    color: #7C0A29;
    background: rgba(124, 10, 41, 0.08);
}

.cta-connexion {
    background: linear-gradient(135deg, #7C0A29, #A0522D);
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(124, 10, 41, 0.1), 0 1px 2px 0 rgba(124, 10, 41, 0.06);
    margin-left: 1rem;
}

.cta-connexion:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(124, 10, 41, 0.1), 0 4px 6px -2px rgba(124, 10, 41, 0.05);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #d4c4ba;
    color: #2c1810;
    font-size: 1.3rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
}

/* ================================================= */
/* === SECTION HERO (INTRO) ====================== */
/* ================================================= */

.hero-legal {
    background: linear-gradient(135deg, #7C0A29 0%, #5a0720 50%, #3d0511 100%);
    color: var(--couleur-blanc);
    padding: 160px 40px 100px;
    text-align: center;
}

.hero-legal h1 {
    font-family: var(--police-principale);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-legal p {
    font-size: 1.2em;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ================================================= */
/* === SECTION CONTENU LÉGAL ===================== */
/* ================================================= */

.legal-section {
    padding: 80px 40px;
    background-color: var(--couleur-blanc);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--couleur-blanc);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(124, 10, 41, 0.1), 0 4px 6px -2px rgba(124, 10, 41, 0.05);
    border: 1px solid #e8ddd6;
}

.legal-content h1 {
    font-family: var(--police-principale);
    color: #7C0A29;
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 4px solid #7C0A29;
    padding-bottom: 15px;
}

.legal-content h2 {
    font-family: var(--police-principale);
    color: #7C0A29;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 5px solid #7C0A29;
}

.legal-content h3 {
    font-family: var(--police-principale);
    color: #5a0720;
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
    color: #5a4a42;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0 15px 30px;
    line-height: 1.9;
}

.legal-content li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #5a4a42;
}

.legal-content strong {
    color: #7C0A29;
    font-weight: 600;
}

/* Box de mise en avant */
.highlight-box {
    background: linear-gradient(135deg, rgba(124, 10, 41, 0.03) 0%, rgba(160, 82, 45, 0.05) 100%);
    border-left: 5px solid #7C0A29;
    padding: 25px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(124, 10, 41, 0.1), 0 1px 2px 0 rgba(124, 10, 41, 0.06);
}

.highlight-box h3 {
    color: #7C0A29;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Date de mise à jour */
.update-date {
    text-align: right;
    font-style: italic;
    color: #8b7d77;
    margin-top: 50px;
    font-size: 0.95em;
    padding-top: 30px;
    border-top: 1px solid #e8ddd6;
}

/* ================================================= */
/* === FOOTER ==================================== */
/* ================================================= */

.footer {
    background: var(--couleur-blanc);
    border-top: 1px solid #e8ddd6;
    color: #2c1810;
    padding: 50px 4rem 25px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    margin-bottom: 30px;
    min-width: 200px;
}

.footer-column h4 {
    color: #2c1810;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--police-principale);
}

.footer-column a {
    display: block;
    color: #5a4a42;
    margin-bottom: 0.6rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.footer-column a:hover {
    color: #7C0A29;
    padding-left: 5px;
}

.footer-column a.active-page {
    color: #7C0A29;
    font-weight: bold;
}

.footer-column p {
    color: #8b7d77;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: 1rem;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: #faf7f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a4a42;
    transition: all 0.3s ease;
    border: 1px solid #e8ddd6;
    margin: 0;
    padding: 0;
}

.social-icons a:hover {
    background: #7C0A29;
    color: white;
    border-color: #7C0A29;
    transform: translateY(-3px);
    padding-left: 0;
}

.social-icons span {
    color: #8b7d77;
}

/* ================================================= */
/* === RESPONSIVE ================================ */
/* ================================================= */

@media (max-width: 1024px) {
    .header {
        padding: 0 2rem;
    }

    .hero-legal {
        padding: 130px 40px 70px;
    }

    .footer {
        padding: 40px 2rem 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 1.5rem;
        height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .header-right {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--couleur-blanc);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(124, 10, 41, 0.1), 0 4px 6px -2px rgba(124, 10, 41, 0.05);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        border-top: 1px solid #e8ddd6;
        display: flex;
    }

    .header-right.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .cta-connexion {
        margin-left: 0;
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .hero-legal {
        padding: 120px 1.5rem 60px;
    }

    .hero-legal h1 {
        font-size: 2.2em;
    }

    .legal-section {
        padding: 60px 1.5rem;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .legal-content h1 {
        font-size: 2em;
    }

    .legal-content h2 {
        font-size: 1.5em;
    }

    .legal-content h3 {
        font-size: 1.2em;
    }

    .footer {
        padding: 40px 1.5rem 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: 100%;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.3rem;
    }

    .hero-legal h1 {
        font-size: 1.8em;
    }

    .legal-content {
        padding: 25px 15px;
    }
}

:target {
    scroll-margin-top: 100px;
}

::selection {
    background: #7C0A29;
    color: white;
}
