/**
 * ================================================================
 * LEGAL PAGES STYLES - QUIZ DE CARABIN
 * ================================================================
 * Styles pour: Mentions Légales, Politique de Confidentialité, CGU, CGV
 * Design cohérent avec le style principal du site
 * ================================================================
 */

:root {
    --primary: #1a4b8c;
    --secondary: #4a90e2;
    --accent: #e63946;
    --success: #2a9d8f;
    --warning: #f4a261;
    --info: #17a2b8;
    --dark-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

/* ===========================
   HERO SECTION
   =========================== */
.legal-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.1"><circle cx="50" cy="50" r="40" fill="white"/></svg>');
    opacity: 0.1;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.legal-hero .display-4 {
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legal-hero .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.last-update {
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: italic;
}

/* ===========================
   MAIN CONTENT
   =========================== */
.legal-content {
    background-color: var(--dark-bg);
    padding: 60px 0;
    min-height: 100vh;
}

/* ===========================
   SIDEBAR NAVIGATION
   =========================== */
.sidebar-nav {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    top: 100px;
}

.sidebar-nav h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.sidebar-nav .nav {
    list-style: none;
}

.sidebar-nav .nav li {
    margin-bottom: 10px;
}

.sidebar-nav .nav li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-nav .nav li a:hover {
    background-color: rgba(26, 75, 140, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

/* ===========================
   DOCUMENT CONTAINER
   =========================== */
.legal-document {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* ===========================
   SECTIONS
   =========================== */
.doc-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

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

.doc-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary);
    display: flex;
    align-items: center;
}

.doc-section h2 i {
    margin-right: 10px;
}

.doc-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px 0;
}

.doc-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 10px 0;
}

.doc-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.doc-section ul,
.doc-section ol {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 15px 0 15px 25px;
}

.doc-section li {
    margin: 10px 0;
}

.doc-section strong {
    color: var(--primary);
    font-weight: 600;
}

.doc-section a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.doc-section a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* ===========================
   INFO CARDS
   =========================== */
.info-card {
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.05), rgba(74, 144, 226, 0.05));
    border-left: 4px solid var(--secondary);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.info-card h5 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 15px;
}

.info-card ul {
    margin-bottom: 0;
}

.highlight-box {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid var(--secondary);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

/* ===========================
   ALERTS
   =========================== */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    border: none;
    display: flex;
    align-items: start;
}

.alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left: 4px solid var(--info);
    color: #0c5460;
}

.alert-warning {
    background-color: rgba(244, 162, 97, 0.1);
    border-left: 4px solid var(--warning);
    color: #856404;
}

.alert-success {
    background-color: rgba(42, 157, 143, 0.1);
    border-left: 4px solid var(--success);
    color: #155724;
}

.alert-danger {
    background-color: rgba(230, 57, 70, 0.1);
    border-left: 4px solid var(--accent);
    color: #721c24;
}

/* ===========================
   TABLES
   =========================== */
.data-table {
    margin: 20px 0;
    overflow-x: auto;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 15px;
    text-align: left;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: rgba(26, 75, 140, 0.05);
}

/* ===========================
   CARDS & GRIDS
   =========================== */
.purpose-card,
.security-item {
    text-align: center;
    padding: 25px 15px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.purpose-card:hover,
.security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: rgba(74, 144, 226, 0.1);
}

.purpose-card i,
.security-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.purpose-card h5,
.security-item h6 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.purpose-card p,
.security-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.right-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.right-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.right-item i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.right-item h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.right-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===========================
   TIMELINE
   =========================== */
.timeline {
    position: relative;
    padding-left: 50px;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -42px;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--border-color);
    border-radius: 50%;
}

.timeline-marker.active {
    background: var(--secondary);
    border-color: var(--secondary);
}

.timeline-content h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-muted);
    margin: 0;
}

/* ===========================
   CONTACT CARDS
   =========================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-card {
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.05), rgba(74, 144, 226, 0.05));
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.contact-card h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--secondary);
    font-weight: 500;
    word-break: break-word;
}

.contact-card p {
    margin: 0;
    color: var(--text-dark);
}

/* ===========================
   ACTION BOXES
   =========================== */
.action-box {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.action-box h5 {
    color: white;
    margin-bottom: 15px;
}

.action-box p {
    color: rgba(255,255,255,0.9);
}

.action-box .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.action-box .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===========================
   LISTS
   =========================== */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    margin: 12px 0;
}

.check-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--success);
    font-size: 1.2rem;
}

.violation-list {
    list-style: none;
    padding: 0;
}

.violation-list li {
    padding: 10px 15px;
    background: rgba(230, 57, 70, 0.05);
    border-left: 3px solid var(--accent);
    margin: 8px 0;
    border-radius: 5px;
}

/* ===========================
   DEFINITIONS
   =========================== */
.definitions-box {
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.definitions-box dt {
    font-weight: 600;
    color: var(--primary);
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.definitions-box dt:first-child {
    margin-top: 0;
}

.definitions-box dt i {
    margin-right: 8px;
}

.definitions-box dd {
    margin: 8px 0 0 30px;
    color: var(--text-dark);
}

/* ===========================
   SERVICE CARDS
   =========================== */
.service-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card.premium {
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.05), rgba(74, 144, 226, 0.05));
    border-color: var(--secondary);
}

.service-card h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.service-card h5 i {
    margin-right: 10px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-card li:last-child {
    border-bottom: none;
}

/* ===========================
   ALLOWED/FORBIDDEN BOXES
   =========================== */
.allowed-box,
.forbidden-box {
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.allowed-box {
    background: rgba(42, 157, 143, 0.05);
    border: 2px solid var(--success);
}

.forbidden-box {
    background: rgba(230, 57, 70, 0.05);
    border: 2px solid var(--accent);
}

.allowed-box h5,
.forbidden-box h5 {
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.allowed-box h5 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.forbidden-box h5 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* ===========================
   LICENSE & DISCLAIMER
   =========================== */
.license-box,
.disclaimer-box {
    background: rgba(244, 162, 97, 0.1);
    border-left: 4px solid var(--warning);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.disclaimer-box h5 {
    color: var(--accent);
    margin-top: 0;
}

/* ===========================
   PROCESS & STEPS
   =========================== */
.modification-process,
.process-timeline {
    margin: 30px 0;
}

.process-step,
.timeline-step {
    display: flex;
    align-items: start;
    margin-bottom: 25px;
    position: relative;
}

.step-number {
    min-width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h5 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 8px;
}

.step-content p {
    margin: 0;
    color: var(--text-muted);
}

/* ===========================
   PRICING COMPARISON
   =========================== */
.pricing-comparison {
    margin: 30px 0;
}

.offer-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.offer-card.popular {
    border-color: var(--success);
    box-shadow: 0 10px 25px rgba(42, 157, 143, 0.2);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.offer-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    text-align: center;
}

.offer-header h4 {
    margin: 0;
    font-weight: 700;
    color: white;
}

.offer-body {
    padding: 30px 20px;
}

.offer-price {
    text-align: center;
    margin-bottom: 20px;
}

.offer-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.offer-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.offer-price .period {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.savings {
    text-align: center;
    background: rgba(42, 157, 143, 0.1);
    color: var(--success);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.savings.best {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2));
    color: #f39c12;
}

.offer-features {
    list-style: none;
    padding: 0;
}

.offer-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.offer-features li:last-child {
    border-bottom: none;
}

.offer-features li i {
    color: var(--success);
    margin-right: 10px;
}

/* ===========================
   BENEFITS GRID
   =========================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-3px);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.benefit-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ===========================
   PAYMENT METHODS
   =========================== */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.payment-item {
    text-align: center;
    padding: 25px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.payment-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.payment-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.payment-item h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.payment-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===========================
   REFUND & DURATION
   =========================== */
.refund-case,
.duration-box,
.resiliation-type {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.refund-case h5 {
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.refund-case h5 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.example-box {
    background: rgba(74, 144, 226, 0.05);
    border-left: 3px solid var(--secondary);
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    font-style: italic;
}

/* ===========================
   RETRACTATION & DISPUTE
   =========================== */
.retractation-steps,
.dispute-box {
    background: rgba(74, 144, 226, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

/* ===========================
   RELATED DOCUMENTS
   =========================== */
.related-docs {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-docs h4 {
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

.doc-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.doc-link-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.doc-link-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.doc-link-card span {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .sidebar-nav {
        display: none;
    }
    
    .legal-document {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 0 60px;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .legal-hero .display-4 {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 40px 0;
    }
    
    .doc-section h2 {
        font-size: 1.5rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cards,
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .legal-document {
        padding: 20px 15px;
    }
    
    .doc-section h2 {
        font-size: 1.3rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .offer-price .amount {
        font-size: 2rem;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    .navbar,
    .legal-hero,
    .sidebar-nav,
    .related-docs {
        display: none;
    }
    
    .legal-content {
        background: white;
        padding: 0;
    }
    
    .legal-document {
        box-shadow: none;
        padding: 20px;
    }
    
    .doc-section {
        page-break-inside: avoid;
    }
    
    .doc-section h2 {
        color: #000;
        page-break-after: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}