/* ================================================================
   EAKADEMY — Pages légales (CGV, CGU, Mentions, Confidentialité)
   Design compact & moderne — Avril 2026
================================================================ */

/* ── Hero compact ── */
.legal-hero {
    background: linear-gradient(120deg, #e30613 0%, #c00010 55%, #8b0000 100%);
    padding: 30px 0 26px;
    position: relative;
    overflow: hidden;
}
.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 28px,
            rgba(255,255,255,0.04) 28px, rgba(255,255,255,0.04) 29px),
        repeating-linear-gradient(90deg, transparent, transparent 28px,
            rgba(255,255,255,0.04) 28px, rgba(255,255,255,0.04) 29px);
    pointer-events: none;
}
.legal-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.legal-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.legal-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.legal-hero-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.legal-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.legal-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.legal-hero-subtitle {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
    margin: 3px 0 0;
    line-height: 1.4;
}

/* ── Zone de contenu ── */
.legal-content {
    padding: 48px 0 72px;
    background: #f7f8fa;
}

/* ── Notice de mise à jour ── */
.update-notice {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 3px solid #e30613;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 0.83rem;
    color: #666;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.update-notice i { color: #e30613; font-size: 0.9rem; }

/* ── Cartes articles ── */
.legal-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}
.legal-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.07), 0 8px 24px rgba(0,0,0,0.06);
}
.legal-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.legal-card-header .art-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #e30613, #c00010);
    border-radius: 7px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.legal-card-header i.art-icon {
    font-size: 1.1rem;
    color: #e30613;
}
.legal-card-header h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}
.legal-card-body {
    padding: 22px 24px;
}
.legal-card-body p,
.legal-card-body li {
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 0.92rem;
}
.legal-card-body ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}
.legal-card-body ul li { margin-bottom: 5px; }
.legal-card-body h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

/* ── Grille infos ── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.info-item {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 3px solid #e30613;
}
.info-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #aaa;
    margin-bottom: 3px;
    font-weight: 600;
}
.info-item .value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.88rem;
}

/* ── Boîte rétractation ── */
.retractation-box {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 14px 0;
}
.retractation-box h4 {
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.retractation-box p { margin-bottom: 0; color: #1e3a5f; }

/* ── Boîte avertissement ── */
.warning-box {
    background: #fffbea;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 14px 0;
}
.warning-box p { margin-bottom: 0; color: #78350f; font-size: 0.88rem; }

/* ── Grille profils ── */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.profile-card {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    border-top: 3px solid #e30613;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.profile-card i { font-size: 1.6rem; color: #e30613; margin-bottom: 8px; display: block; }
.profile-card h5 { font-size: 0.85rem; font-weight: 600; color: #1a1a1a; margin-bottom: 5px; }
.profile-card p { font-size: 0.78rem; color: #777; margin-bottom: 0; }

/* ── Tableau données ── */
.data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    margin: 12px 0;
    min-width: 420px;
}
.data-table th {
    background: #f4f4f6;
    color: #333;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e30613;
    font-size: 0.8rem;
}
.data-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }

/* ── Grille droits RGPD ── */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.right-card {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    border-top: 3px solid #e30613;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.right-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
.right-card i { font-size: 1.5rem; color: #e30613; margin-bottom: 6px; display: block; }
.right-card h5 { font-size: 0.82rem; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.right-card p { font-size: 0.76rem; color: #777; margin-bottom: 0; }

/* ── Cookies ── */
.cookie-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f4;
}
.cookie-item:last-child { border-bottom: none; }
.cookie-icon {
    width: 38px; height: 38px;
    background: rgba(227,6,19,0.07);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cookie-icon i { color: #e30613; font-size: 1rem; }
.cookie-info h6 { font-size: 0.86rem; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; }
.cookie-info p { font-size: 0.8rem; color: #777; margin-bottom: 0; }
.badge-required { background: #e30613; color: #fff; font-size: 0.68rem; padding: 2px 7px; border-radius: 8px; margin-left: 5px; font-weight: 600; }
.badge-optional { background: #6c757d; color: #fff; font-size: 0.68rem; padding: 2px 7px; border-radius: 8px; margin-left: 5px; font-weight: 600; }

/* ── Carte CTA finale ── */
.legal-cta-card {
    background: #fff;
    border-radius: 10px;
    border: 1.5px solid #e30613;
    padding: 28px 24px;
    text-align: center;
    margin-top: 8px;
}
.legal-cta-card i.cta-icon { font-size: 2rem; color: #e30613; }
.legal-cta-card h3 { font-size: 1rem; font-weight: 700; margin: 10px 0 6px; color: #1a1a1a; }
.legal-cta-card p { font-size: 0.85rem; color: #888; margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .legal-hero-title { font-size: 1.2rem; }
    .legal-hero-subtitle { display: none; }
    .legal-hero-icon { width: 42px; height: 42px; font-size: 1.2rem; }
    .legal-card-body { padding: 18px; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .profile-grid { grid-template-columns: 1fr 1fr; }
    .rights-grid { grid-template-columns: 1fr 1fr; }
    .data-table { font-size: 0.78rem; }
    .data-table th, .data-table td { padding: 7px 10px; }
    .legal-content { padding: 32px 0 56px; }
}
@media (max-width: 480px) {
    .info-grid    { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .rights-grid  { grid-template-columns: 1fr 1fr; }
    .legal-cta-card { padding: 20px 16px; }
}
