/* ============================================
   privacy.css — Politique de confidentialité
   Eleo Pro — eleopro.fr
   ============================================ */

/* ---------- Variables couleurs Eleo Pro ---------- */
:root {
    --ep-blue: #4f6ef7; /* accent principal (violet-bleu app) */
    --ep-blue-dark: #3a54d4;
    --ep-blue-light: #eef1fe;
    --ep-green: #38a169;
    --ep-green-light: #f0fff4;
    --ep-text: #2d3748;
    --ep-text-light: #718096;
    --ep-border: #e2e8f0;
    --ep-bg-alt: #f7fafc;
    --ep-white: #ffffff;
}

/* ---------- Conteneur principal ---------- */
.privacy-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 28px 100px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--ep-text);
    line-height: 1.75;
    font-size: 0.97rem;
}

/* ---------- En-tête ---------- */
.privacy-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--ep-border);
    text-align: left;
}

.privacy-header__badge {
    display: inline-block;
    background: var(--ep-blue-light);
    color: var(--ep-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid #c3d0fc;
}

.privacy-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 8px;
    line-height: 1.2;
}

.privacy-updated {
    color: var(--ep-text-light);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 640px) {
    .privacy-header h1 {
        font-size: 1.5rem;
    }
}


/* ---------- Sections ---------- */
.privacy-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--ep-border);
}

    .privacy-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

/* En-tête numérotée de section */
.privacy-section__header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}

.privacy-section__num {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--ep-blue);
    background: var(--ep-blue-light);
    padding: 3px 9px;
    border-radius: 4px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.privacy-section__header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

/* Sous-titres h3 */
.privacy-section h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ep-blue);
    margin: 24px 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--ep-border);
}

.privacy-section p {
    margin: 0 0 12px;
    color: var(--ep-text);
}

    .privacy-section p:last-child {
        margin-bottom: 0;
    }

/* Liens */
.privacy-section a {
    color: var(--ep-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

    .privacy-section a:hover {
        border-bottom-color: var(--ep-blue);
    }

/* ---------- Alignement de texte (utilitaires) ----------
   Utilisez ces classes sur vos <p> ou <section>
   pour ajuster l'alignement au cas par cas.
   -------------------------------------------------------- */
.privacy-text--justify {
    text-align: justify;
    hyphens: auto;
}

.privacy-text--left {
    text-align: left;
}

.privacy-text--center {
    text-align: center;
}

.privacy-text--right {
    text-align: right;
}

/* ---------- Listes ---------- */
.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

    .privacy-list li {
        position: relative;
        padding: 8px 12px 8px 28px;
        margin-bottom: 4px;
        border-radius: 6px;
        background: var(--ep-bg-alt);
        border-left: 3px solid var(--ep-border);
        text-align: left; /* ← listes toujours alignées à gauche */
        line-height: 1.6;
        transition: border-color 0.15s ease, background 0.15s ease;
    }

        .privacy-list li::before {
            content: '›';
            position: absolute;
            left: 10px;
            color: var(--ep-blue);
            font-weight: 700;
            font-size: 1rem;
        }

        .privacy-list li:hover {
            border-left-color: var(--ep-blue);
            background: var(--ep-blue-light);
        }

/* Variante droits (légèrement vert) */
.privacy-list--rights li {
    border-left-color: #c6f6d5;
}

    .privacy-list--rights li:hover {
        border-left-color: var(--ep-green);
        background: var(--ep-green-light);
    }

    .privacy-list--rights li::before {
        content: '✓';
        font-size: 0.8rem;
    }

/* ---------- Boîte info ---------- */
.privacy-info-box {
    background: var(--ep-blue-light);
    border-left: 4px solid var(--ep-blue);
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 12px;
}

    .privacy-info-box p {
        margin-bottom: 6px;
        font-size: 0.95rem;
        text-align: left;
    }

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

/* ---------- Boîte droits ---------- */
.privacy-rights-box {
    background: var(--ep-green-light);
    border-left: 4px solid var(--ep-green);
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 20px;
}

    .privacy-rights-box p {
        margin-bottom: 8px;
        text-align: left;
    }

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

/* ---------- Tableau ---------- */
.privacy-table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 8px;
    border: 1px solid var(--ep-border);
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .privacy-table thead th {
        background: var(--ep-blue);
        color: #fff;
        padding: 12px 16px;
        text-align: left;
        font-weight: 600;
        font-size: 0.85rem;
        letter-spacing: 0.03em;
    }

        .privacy-table thead th:first-child {
            border-radius: 0;
        }

    .privacy-table tbody tr:nth-child(even) {
        background: var(--ep-bg-alt);
    }

    .privacy-table tbody tr:hover {
        background: var(--ep-blue-light);
        transition: background 0.15s ease;
    }

    .privacy-table tbody td {
        padding: 10px 16px;
        border-bottom: 1px solid var(--ep-border);
        vertical-align: middle;
    }

    .privacy-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Badges base légale */
.privacy-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.privacy-badge--contract {
    background: #dbeafe;
    color: #1e40af;
}

.privacy-badge--legal {
    background: #fef3c7;
    color: #92400e;
}

.privacy-badge--interest {
    background: #f3e8ff;
    color: #6b21a8;
}

.privacy-badge--consent {
    background: #dcfce7;
    color: #166534;
}

/* ---------- Section intro (sans numéro) ---------- */
.privacy-section--intro {
    background: var(--ep-bg-alt);
    border-radius: 10px;
    padding: 24px 28px;
    border-bottom: none;
    margin-bottom: 40px;
    border: 1px solid var(--ep-border);
}

/* ---------- Footer link ---------- */
.footer .privacy-link {
    text-align: center;
    margin: 4px 0;
    font-size: 0.85rem;
}

    .footer .privacy-link a {
        color: inherit;
        opacity: 0.75;
        text-decoration: underline;
    }

        .footer .privacy-link a:hover {
            opacity: 1;
        }

/* ---------- Animation scroll reveal ---------- */
.privacy-section--hidden {
    opacity: 0;
    transform: translateY(16px);
}

.privacy-section--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* ---------- Responsive mobile ---------- */
@media (max-width: 640px) {
    .privacy-container {
        padding: 28px 16px 64px;
    }

    .privacy-header h1 {
        font-size: 1.5rem;
    }

    .privacy-section__header h2 {
        font-size: 1.05rem;
    }

    .privacy-section--intro {
        padding: 18px 16px;
    }

    .privacy-table {
        font-size: 0.82rem;
    }

        .privacy-table thead th,
        .privacy-table tbody td {
            padding: 8px 10px;
        }

    .privacy-list li {
        padding: 7px 10px 7px 26px;
        font-size: 0.92rem;
    }
}
