/* Page légales - Styles généraux */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
    min-height: calc(100vh - 200px);
}

.legal-content {
    line-height: 1.7;
    color: #2c3e50;
}

.legal-content h1 {
    font-size: 2.2rem;
    color: #1a252f;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    font-weight: 700;
}

.legal-content h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 35px 0 20px 0;
    font-weight: 600;
}

.legal-content h3 {
    font-size: 1.3rem;
    color: #34495e;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.legal-content h4 {
    font-size: 1.1rem;
    color: #34495e;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.legal-content ul, .legal-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: #1a252f;
    font-weight: 600;
}

.legal-content em {
    font-style: italic;
    color: #34495e;
}

/* STYLES SPÉCIFIQUES POUR LA PAGE À PROPOS */

/* Section À Propos */
.about-section {
    margin-bottom: 45px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    position: relative;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* Grille des valeurs */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.value-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-item:hover::before {
    transform: scaleX(1);
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.15);
    border-left-color: #2980b9;
}

.value-item h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
}

.value-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
    border-radius: 1px;
}

.value-item p {
    color: #34495e;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Liste d'approche stylisée */
.approach-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.approach-list li {
    position: relative;
    padding: 12px 0 12px 35px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
    padding-left: 45px;
    transition: all 0.3s ease;
}

.approach-list li:hover {
    background: #e8f4f8;
    transform: translateX(5px);
    border-left-color: #2980b9;
}

.approach-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 12px;
    color: #3498db;
    font-weight: bold;
    font-size: 1.1rem;
}

.approach-list li:hover::before {
    color: #2980b9;
    transform: scale(1.1);
}

/* Sections d'engagement avec icônes */
.about-section.engagement {
    background: linear-gradient(135deg, #e8f4f8 0%, #f8f9fa 100%);
    border-left: 4px solid #3498db;
}

.about-section.privacy {
    background: linear-gradient(135deg, #f0f8e8 0%, #f8f9fa 100%);
    border-left: 4px solid #27ae60;
}

.about-section.contact {
    background: linear-gradient(135deg, #fef8e8 0%, #f8f9fa 100%);
    border-left: 4px solid #f39c12;
}

/* Effet de survol sur les paragraphes */
.about-section p {
    transition: color 0.3s ease;
}

.about-section:hover p {
    color: #2c3e50;
}

/* Amélioration du style des liens */
.legal-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* Animation d'entrée progressive */
.about-section {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.about-section:nth-child(1) { animation-delay: 0.1s; }
.about-section:nth-child(2) { animation-delay: 0.2s; }
.about-section:nth-child(3) { animation-delay: 0.3s; }
.about-section:nth-child(4) { animation-delay: 0.4s; }
.about-section:nth-child(5) { animation-delay: 0.5s; }
.about-section:nth-child(6) { animation-delay: 0.6s; }
.about-section:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de focus amélioré */
.about-section:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Tableaux responsifs */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    min-width: 600px;
}

.legal-content th {
    background: #3498db;
    color: #ffffff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #2980b9;
}

.legal-content td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: top;
}

.legal-content tr:nth-child(even) {
    background: #f8f9fa;
}

.legal-content tr:hover {
    background: #e8f4f8;
}

/* Sections spéciales */
.important-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 5px solid #f39c12;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.warning-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 5px solid #e74c3c;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.info-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 5px solid #17a2b8;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

/* Date de mise à jour */
.last-updated {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
}

/* STYLES FORMULAIRE CONTACT COMPLETS */
.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.submit-btn {
    background: #3498db;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #2980b9;
}

.submit-btn:active {
    background: #21618c;
}

/* Messages de feedback */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 5px solid #28a745;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: 500;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 5px solid #dc3545;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: 500;
}

/* Informations de contact */
.contact-info {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

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

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.info-item h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    color: #34495e;
    font-weight: 500;
}

.response-info {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.response-info h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        padding: 20px 15px;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.4rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    .about-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-item {
        padding: 20px;
    }
    
    .approach-list li {
        padding: 10px 0 10px 40px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .table-container {
        margin: 15px -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .legal-content th,
    .legal-content td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 15px 10px;
    }
    
    .legal-content h1 {
        font-size: 1.6rem;
    }
    
    .about-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .value-item {
        padding: 15px;
    }
    
    .approach-list li {
        padding: 8px 0 8px 35px;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .info-item {
        padding: 12px;
    }
    
    .contact-info,
    .response-info {
        padding: 15px;
    }
}

/* Amélioration contraste et accessibilité */
@media (prefers-contrast: high) {
    .legal-content {
        color: #000000;
    }
    
    .legal-content h1,
    .legal-content h2,
    .legal-content h3 {
        color: #000000;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        border: 2px solid #000000;
    }
    
    .submit-btn {
        background: #000000;
        border: 2px solid #000000;
    }
    
    .about-section {
        border: 1px solid #000000;
    }
    
    .value-item {
        border: 1px solid #000000;
    }
}

/* Réduction des animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    .about-section {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .value-item,
    .approach-list li,
    .about-section {
        transition: none;
    }
    
    .value-item:hover,
    .approach-list li:hover,
    .about-section:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .legal-container {
        padding: 0;
        max-width: none;
    }
    
    .contact-form,
    .submit-btn {
        display: none;
    }
    
    .legal-content h1 {
        border-bottom: 2px solid #000000;
    }
    
    .success-message,
    .error-message,
    .important-notice,
    .warning-box,
    .info-box {
        border: 1px solid #000000;
        background: transparent;
    }
    
    .about-section {
        background: transparent;
        box-shadow: none;
        border: 1px solid #000000;
        page-break-inside: avoid;
    }
    
    .values-grid {
        display: block;
    }
    
    .value-item {
        margin-bottom: 15px;
        page-break-inside: avoid;
    }
}