/* Styles pour les pages légales et conformité RGPD */

/* Header fixe professionnel */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 3px solid #dc3545;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.header-logo {
    max-height: 60px !important;
    width: auto !important;
    max-width: 250px !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

/* Assurer que le logo garde ses proportions sur toutes les pages */
.header-fixed .header-logo {
    max-height: 60px !important;
    width: auto !important;
}

.header-contact {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 600;
}

.header-contact .fas {
    color: #dc3545;
    margin-right: 8px;
}

.header-contact p {
    margin: 0;
    line-height: 1.3;
}

/* Ajustement du contenu pour le header fixe */
body {
    padding-top: 80px;
}

.legal-page .navbar {
    margin-top: 20px;
/* Amélioration lisibilité navbar-text */
.navbar-text {
    color: #000 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 600;
}
/* Amélioration lisibilité h1 */
h1 {
    color: #000 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 600;
}
}

/* Responsive pour le header et sections */
@media (max-width: 768px) {
    .header-fixed {
        padding: 8px 0;
    }
    
    .header-fixed .row {
        text-align: center;
    }
    
    .header-fixed .col-md-6 {
        margin-bottom: 5px;
    }
    
    .header-logo {
        max-height: 50px;
    }
    
    .header-contact {
        font-size: 0.8rem;
    }
    
    body {
        padding-top: 100px;
    }
    
    /* Responsive pour les horaires d'ouverture */
    .contact-section .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-section h6 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-section ul {
        font-size: 0.9rem;
    }
    
    .contact-section .alert {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    /* Ajustement des colonnes horaires sur mobile */
    .contact-section .row .col-md-6:first-child {
        margin-bottom: 1.5rem;
    }
}

/* Réduction des espaces entre blocs sur la page d'accueil */
.content-container {
    margin-top: 0 !important;
}

.second-container {
    margin-top: 2rem !important;
}

.container.mt-5 {
    margin-top: 2rem !important;
}

.row.mt-4 {
    margin-top: 1.5rem !important;
}

/* Alignement des hauteurs newsletter et Facebook */
.newsletter-section,
.social-media-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-section .container,
.social-media-section .container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Assurer que les colonnes ont la même hauteur */
.row:has(.newsletter-section) {
    display: flex;
    align-items: stretch;
}

.row:has(.newsletter-section) .col-md-6 {
    display: flex;
}

/* Bandeau cookies */
.cookie-banner {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    border-top: 3px solid #dc3545;
}

.cookie-banner p {
    font-size: 0.9rem;
}

.cookie-banner .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

/* Pages légales */
.legal-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.legal-page .card {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    border-radius: 10px;
}

.legal-page h1 {
    color: #343a40;
    font-weight: bold;
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: #495057;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page h3 {
    color: #6c757d;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Tables dans les pages légales */
.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0,123,255,.05);
}

/* Cartes d'information - Couleurs rouge/noir/blanc */
.info-card {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white !important;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #dc3545;
}

.info-card h5 {
    margin-bottom: 0.5rem;
    color: white !important;
    font-weight: 600;
}

.info-card p {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 400;
}

/* Boutons de gestion cookies */
.cookie-preferences {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.form-check-label {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Footer amélioré - Couleurs du site (rouge, noir, blanc) */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    border-top: 3px solid #dc3545;
}

footer h5, footer h6 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

footer p {
    color: rgba(255,255,255,0.8);
}

footer a {
    transition: color 0.3s ease;
    color: rgba(255,255,255,0.7) !important;
}

footer a:hover {
    color: #dc3545 !important;
}

footer .fab {
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.7);
}

footer .fab:hover {
    transform: scale(1.2);
    color: #dc3545 !important;
}

footer .text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}

footer .text-white-50:hover {
    color: #dc3545 !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .cookie-banner .col-md-8,
    .cookie-banner .col-md-4 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .cookie-banner .btn {
        margin: 0.2rem;
    }
    
    .legal-page .container {
        padding: 1rem;
    }
    
    .legal-page h1 {
        font-size: 1.5rem;
    }
    
    .legal-page h2 {
        font-size: 1.3rem;
    }
}

/* Animation pour le bandeau cookies */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner {
    animation: slideUp 0.5s ease-out;
}

/* Styles pour les alertes dans les pages légales - Couleurs rouge/noir/blanc */
.alert-info {
    background-color: #f8f9fa;
    border-color: #dc3545;
    color: #000000 !important;
    font-weight: 500;
    border-left: 4px solid #dc3545;
}

.alert-info h5, .alert-info h6 {
    color: #dc3545 !important;
    font-weight: 600;
}

.alert-success {
    background-color: #f8f9fa;
    border-color: #000000;
    color: #000000 !important;
    font-weight: 500;
    border-left: 4px solid #000000;
}

.alert-success h5, .alert-success h6 {
    color: #000000 !important;
    font-weight: 600;
}

.alert-warning {
    background-color: #fff5f5;
    border-color: #dc3545;
    color: #000000 !important;
    font-weight: 500;
    border-left: 4px solid #dc3545;
}

.alert-warning h5, .alert-warning h6 {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Amélioration des liens dans le contenu */
.card-body a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.card-body a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Style pour les listes dans les pages légales */
.card-body ul {
    padding-left: 1.5rem;
}

.card-body li {
    margin-bottom: 0.5rem;
}

/* Amélioration des tableaux */
.table {
    font-size: 0.9rem;
}

.table th {
    background-color: #dc3545;
    color: white;
    border: none;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
    border-color: #dee2e6;
}

/* Style pour les sections importantes - Couleurs rouge/noir/blanc */
.highlight-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white !important;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #dc3545;
}

.highlight-section h5 {
    margin-bottom: 1rem;
    color: white !important;
    font-weight: 600;
}

.highlight-section p {
    color: rgba(255,255,255,0.95) !important;
}

/* Amélioration du formulaire newsletter - Couleurs rouge/noir/blanc */
.newsletter-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white !important;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 2px solid #dc3545;
}

.newsletter-section h2 {
    color: white !important;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.newsletter-section .form-control {
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.75rem;
    background: rgba(255,255,255,0.95);
    color: #000000;
    font-weight: 500;
}

.newsletter-section .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.newsletter-section .btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white !important;
}

.newsletter-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #b02a37 0%, #8b1e2b 100%);
}

.newsletter-section .form-check-label {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 400;
}

.newsletter-section .form-check-label a {
    color: #dc3545 !important;
    font-weight: 600;
    text-decoration: underline;
}

.newsletter-section .form-check-label a:hover {
    color: #ffffff !important;
}

/* Amélioration des cartes dans les CGV et pages légales */
.card.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card.bg-light .card-body {
    padding: 1.5rem;
}

.card.bg-light h6 {
    color: #2c3e50 !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card.bg-light p {
    color: #495057 !important;
    font-weight: 500;
    line-height: 1.6;
}

/* Amélioration des textes dans les sections colorées */
.legal-page .card-body h2,
.legal-page .card-body h3,
.legal-page .card-body h4,
.legal-page .card-body h5,
.legal-page .card-body h6 {
    color: #2c3e50 !important;
}

.legal-page .card-body p,
.legal-page .card-body li {
    color: #495057 !important;
    line-height: 1.6;
}

/* Amélioration des liens dans le contenu */
.legal-page .card-body a {
    color: #dc3545 !important;
    font-weight: 600;
}

.legal-page .card-body a:hover {
    color: #000000 !important;
}

/* Styles spécifiques pour les éléments avec icônes */
.fas, .fab {
    margin-right: 0.5rem;
}

/* Amélioration responsive du logo fixe */
@media (max-width: 768px) {
    .logo-container {
        position: relative !important;
        top: auto;
        left: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .legal-page .container {
        margin-top: 2rem;
    }
    
    .logo-container .logo {
        max-height: 80px !important;
    }
}