/**
 * Bundle Legal — Styles pages legales et contact
 * Sources : legal + contact
 * Sprint 4 — Consolidation CSS
 */

/* ============================================================
 * SOURCE: components/legal.css
 * ============================================================ */
/* 
 * Fichier : legal.css
 * Description : Styles pour les pages légales (CGU, CGV, mentions légales, etc.)
 * Projet : BookConnect
 */

.legal-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: #374151;
}

.legal-hero {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.legal-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.legal-nav {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.legal-nav h3 {
    margin-bottom: 1rem;
    color: #DC2626;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.legal-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: block;
}

.legal-nav a:hover {
    background: #DC2626;
    color: white;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
    color: #DC2626;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fecaca;
}

.legal-section h3 {
    color: #374151;
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
}

.legal-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section ul, .legal-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: #fef2f2;
    border-left: 4px solid #DC2626;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.highlight-box h4 {
    color: #DC2626;
    margin-bottom: 0.5rem;
}

.contact-info {
    background: #f0fdf4;
    border: 1px solid #10b981;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.last-updated {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

/* Styles spécifiques CGV */
.cgv-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: #374151;
}

.cgv-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.cgv-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cgv-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cgv-nav {
    background: #faf5ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    z-index: 100;
    border: 1px solid #7c3aed;
}

.cgv-nav h3 {
    margin-bottom: 1rem;
    color: #7c3aed;
}

.cgv-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.cgv-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: block;
}

.cgv-nav a:hover {
    background: #7c3aed;
    color: white;
}

.cgv-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cgv-section h2 {
    color: #7c3aed;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c4b5fd;
}

.cgv-section h3 {
    color: #374151;
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
}

.cgv-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.cgv-section ul, .cgv-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.cgv-section li {
    margin-bottom: 0.5rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
}

.price-table th, .price-table td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
}

.price-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.price-table tr:nth-child(even) {
    background: #f9fafb;
}

.warning-box {
    background: #fef2f2;
    border-left: 4px solid #DC2626;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.warning-box h4 {
    color: #DC2626;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page, .cgv-page {
        padding: 1rem;
    }
    
    .legal-nav ul, .cgv-nav ul {
        grid-template-columns: 1fr;
    }
    
    .legal-hero h1, .cgv-hero h1 {
        font-size: 2rem;
    }
    
    .price-table {
        font-size: 0.875rem;
    }
}

/* Styles spécifiques RGPD */
.rgpd-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: #374151;
}

.rgpd-hero {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.rgpd-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.rgpd-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.rgpd-nav {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    z-index: 100;
    border: 1px solid #10b981;
}

.rgpd-nav h3 {
    margin-bottom: 1rem;
    color: #059669;
}

.rgpd-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
}

.rgpd-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: block;
}

.rgpd-nav a:hover {
    background: #059669;
    color: white;
}

.rgpd-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rgpd-section h2 {
    color: #059669;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #a7f3d0;
}

.rgpd-key-points {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f0fdf4;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
}

.point-icon {
    font-size: 2rem;
    color: #059669;
    min-width: 60px;
    text-align: center;
}

.point-content h4 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.right-card:hover {
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.right-icon {
    font-size: 2.5rem;
    color: #059669;
    margin-bottom: 1rem;
}

.right-card h4 {
    color: #374151;
    margin-bottom: 1rem;
}

.btn-action {
    background: #059669;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.btn-action:hover {
    background: #047857;
}

.exercise-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.method-icon {
    font-size: 3rem;
    color: #059669;
    margin-bottom: 1rem;
}

.btn-primary {
    background: #059669;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-marker {
    background: #059669;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.data-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.data-category {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-header i {
    color: #059669;
    font-size: 1.5rem;
}

.legal-basis {
    background: #dcfce7;
    color: #166534;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.usage-purposes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.purpose-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
}

.purpose-icon {
    font-size: 2rem;
    color: #059669;
    min-width: 60px;
    text-align: center;
}

.purpose-legal {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.retention-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.retention-table th, .retention-table td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
}

.retention-table th {
    background: #f9fafb;
    font-weight: 600;
}

.security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-category {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
}

.security-category h4 {
    color: #059669;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breach-process {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    background: #059669;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}

.dpo-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f0fdf4;
    border-radius: 0.75rem;
}

.dpo-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dpo-avatar {
    background: #059669;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.dpo-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.dpo-credentials span {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
}

.contact-method i {
    color: #059669;
    font-size: 1.5rem;
    min-width: 30px;
}

.cnil-info {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
}

.cnil-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .rgpd-page {
        padding: 1rem;
    }
    
    .rgpd-nav ul {
        grid-template-columns: 1fr;
    }
    
    .rgpd-hero h1 {
        font-size: 2rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .exercise-methods {
        grid-template-columns: 1fr;
    }
    
    .data-categories {
        grid-template-columns: 1fr;
    }
    
    .security-measures {
        grid-template-columns: 1fr;
    }
    
    .breach-process {
        flex-direction: column;
    }
    
    .dpo-contact {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * SOURCE: components/contact.css
 * ============================================================ */
/* 
 * Fichier : contact.css
 * Description : Styles pour la page contact BookConnect
 * Projet : BookConnect
 */

.contact-hero {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.channel-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #DC2626;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.channel-icon {
    width: 60px;
    height: 60px;
    background: #DC2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.channel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.channel-subtitle {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.channel-info {
    margin: 1rem 0;
}

.channel-info strong {
    color: #DC2626;
}

.response-time {
    background: #fef2f2;
    color: #DC2626;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.contact-form-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #DC2626;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.priority-selector {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.priority-option {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.priority-option.urgent {
    border-color: #ef4444;
    background: #fef2f2;
}

.priority-option.normal {
    border-color: #f59e0b;
    background: #fffbeb;
}

.priority-option.low {
    border-color: #10b981;
    background: #f0fdf4;
}

.priority-option.selected {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

.submit-btn {
    background: #DC2626;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #991B1B;
}

.faq-section {
    padding: 4rem 0;
}

.faq-item {
    background: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #6b7280;
    display: none;
}

.faq-answer.active {
    display: block;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #DC2626;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #DC2626;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5); }
    100% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); }
}

.office-hours {
    background: #f0fdf4;
    border: 1px solid #10b981;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.office-hours h4 {
    color: #10b981;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .priority-selector {
        flex-direction: column;
    }
    
    .contact-channels {
        grid-template-columns: 1fr;
    }
}
