/* =============================================
   ASKIM - Pages légales (CGU, confidentialité)
   Même style que la page d'accueil
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #fff;
}

/* ============================================
   HERO
   ============================================ */
.legal-hero {
    position: relative;
    min-height: 46vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #000;
    padding: 140px 5% 70px;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://image.noelshack.com/fichiers/2026/37/4/1789030416-hf-20260910-083424-dd8ace74-4842-4810-8adf-86e4c0f59a55.jpg') center 30%/cover;
    filter: brightness(0.4);
}

.legal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%);
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
}

.legal-hero h1 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.legal-hero h1 span {
    background: linear-gradient(45deg, #e74c3c, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-update {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

/* ============================================
   MISE EN PAGE : sommaire + contenu
   ============================================ */
.legal-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 5% 110px;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 100px;
    background: #f8f7f5;
    border-radius: 22px;
    padding: 1.5rem 1.2rem;
}

.legal-toc summary {
    list-style: none;
    cursor: default;
    color: #111;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.9rem;
    padding: 0 0.4rem;
}

.legal-toc summary::-webkit-details-marker {
    display: none;
}

.legal-toc ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.5rem;
    border-radius: 12px;
    color: #444;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.legal-toc a:hover {
    background: #fff;
    color: #e74c3c;
    text-decoration: none;
}

.legal-toc-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: #e74c3c;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-main {
    min-width: 0;
    max-width: 800px;
}

.legal-intro {
    color: #555;
    font-size: 1.12rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Résumé en cartes */
.legal-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 3rem;
}

.legal-summary-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    padding: 1.2rem;
}

.legal-summary-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-summary-icon svg {
    width: 22px;
    height: 22px;
}

.legal-summary-card h3 {
    color: #111;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.legal-summary-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sections */
.legal-section {
    padding: 2.4rem 0;
    border-top: 1px solid #f0f0f0;
    scroll-margin-top: 100px;
}

.legal-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #111;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin-bottom: 1.2rem;
}

.legal-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(231,76,60,0.3);
}

.legal-section h3 {
    color: #222;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.6rem 0 0.7rem;
}

.legal-section p {
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    margin: 0.6rem 0 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.legal-section li {
    position: relative;
    padding-left: 1.4rem;
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e74c3c;
}

.legal-section strong {
    color: #111;
    font-weight: 700;
}

.legal-section a {
    color: #e74c3c;
    font-weight: 600;
}

/* Encadrés */
.legal-note {
    background: #fdf2f1;
    border-left: 4px solid #e74c3c;
    border-radius: 0 14px 14px 0;
    padding: 1rem 1.3rem;
    margin: 1.3rem 0;
    color: #444;
    font-size: 0.98rem;
    line-height: 1.7;
}

.legal-card {
    background: #f8f7f5;
    border-radius: 18px;
    padding: 1.3rem 1.5rem;
    margin: 1rem 0 1.3rem;
}

.legal-card dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.55rem 1rem;
    font-size: 0.97rem;
}

.legal-card dt {
    color: #888;
    font-weight: 600;
}

.legal-card dd {
    color: #111;
    font-weight: 600;
}

/* Tableaux */
.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.4rem;
    border: 1px solid #eee;
    border-radius: 16px;
}

.legal-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th {
    background: #111;
    color: #fff;
    text-align: left;
    font-weight: 700;
    padding: 0.85rem 1rem;
}

.legal-table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid #f0f0f0;
    color: #444;
    vertical-align: top;
}

.legal-table tr:nth-child(even) td {
    background: #fcfcfc;
}

/* Bloc contact */
.legal-contact {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 24px;
    padding: 2rem;
    color: #fff;
}

.legal-contact h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.legal-contact p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.2rem;
}

.legal-contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    background: #fff;
    color: #e74c3c;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.legal-contact-btn:hover {
    color: #c0392b;
    text-decoration: none;
    transform: translateY(-2px);
}

.legal-contact-sub {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.25);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.legal-contact-sub a {
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
.legal-layout-single {
    grid-template-columns: 1fr;
    max-width: 860px;
}

@media (max-width: 960px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 40px;
    }

    .legal-toc {
        position: static;
    }

    .legal-toc summary {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .legal-toc summary::after {
        content: '+';
        font-size: 1.2rem;
        color: #e74c3c;
    }

    .legal-toc[open] summary {
        margin-bottom: 0.8rem;
    }

    .legal-toc[open] summary::after {
        content: '−';
    }
}

@media (max-width: 768px) {
    .legal-hero {
        min-height: 40vh;
        padding: 120px 5% 50px;
    }

    .legal-hero h1 {
        font-size: 2.1rem;
    }

    .legal-summary {
        grid-template-columns: 1fr;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-num {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .legal-card dl {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .legal-card dd {
        margin-bottom: 0.6rem;
    }

    .legal-contact {
        padding: 1.6rem 1.3rem;
    }
}
