/* ========================== */
/* VARIABLES GLOBALES */
/* ========================== */
:root {
    --base-url: 'https://www.1devistravaux.com';
    --primary-color: #FF6B35;
    --primary-hover: #ff855b;
    --secondary-color: #2D2D2D;
    --tertiary-color: #f8f9fa;
    --background-color: #FFFFFF;
    --border-color: #e9ecef;
    --white: #fff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Couleurs d'état */
    --success-bg: #d4edda;
    --success-border: #c3e6cb;
    --success-text: #155724;
    --error-bg: #f8d7da;
    --error-border: #f5c6cb;
    --error-text: #721c24;
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    /* Couleurs texte */
    --text-muted: #757575;
    --text-dark: #495057;
    /* Couleurs utilitaires */
    --divider-color: #ccc;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --footer-overlay: rgba(0, 0, 0, 0.2);
    /* Couleurs de marque */
    --brand-success: #28a745;  /* Pour green-text */
    --brand-warning: #ffc107;  /* Pour text-warning */
    /* Typographie */
    --font-family: 'Open Sans', sans-serif;
    --h1-size: 2.25rem;    /* 36px */
    --h2-size: 1.75rem;    /* 28px */
    --body-size: 1rem;     /* 16px */
    /* Espacements et bordures */
    --border-radius: 8px;
}

/* ========================== */
/* RESET & BASE */
/* ========================== */
html, body {
    height: 100%;
    font-family: var(--font-family);
    font-size: var(--body-size);
    color: var(--secondary-color);
    background-color: var(--background-color);
}

/* ========================== */
/* LAYOUT */
/* ========================== */
main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    padding-top: 6rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-top: 7rem;
    }
}

/* ========================== */
/* COMPOSANTS */
/* ========================== */

/* Navbar */
.navbar {
    background: #444;
    border-bottom: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.6s ease-in-out;
    height: auto;
}

.navbar.navbar-scrolled {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar.navbar-scrolled .nav-link {
    color: var(--secondary-color) !important;
}

.navbar.navbar-scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar .navbar-toggler {
    color: var(--white);
    transition: all 0.6s ease-in-out;
    border: none;
}

.navbar.navbar-scrolled .navbar-toggler {
    color: var(--primary-color);
}

.navbar .navbar-toggler i.fas.fa-bars {
    color: var(--white);
    transition: all 0.6s ease-in-out;
}

.navbar.navbar-scrolled .navbar-toggler i.fas.fa-bars {
    color: var(--primary-color);
}

/* Media query mobile harmonisée */
@media (max-width: 991px) {
    .navbar {
        background: #444;
        border-bottom: 2px solid var(--border-color);
    }
    
    .navbar-collapse {
        background: var(--white);
        margin-top: 10px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
    }
    
    .navbar .nav-link {
        color: var(--secondary-color) !important;
        padding: 0.5rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: var(--border-radius);
    }
    
    .navbar .nav-link:hover {
        background: var(--tertiary-color);
        color: var(--primary-color) !important;
    }
    
    .dropdown-menu {
        background: var(--white);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }
    
    .navbar-toggler {
        border-color: var(--primary-color) !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF6B35' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Styles des cartes */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-body {
    padding: 1rem;
}

/* Styles des boutons */
.btn {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* Styles des liens */
.nav-link:hover {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Utilitaires */
.justify {
    text-align: justify;
    text-justify: inter-word;
}

a.fill-div {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

/* Styles des tableaux */
.table tr td.p-tb {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.table tr th,
.table tr td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Animation du logo */
.navbar-brand img {
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
}

.navbar-brand img.switching {
    opacity: 0;
}

/* Styles pour les dividers */
.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    width: 45%;
    height: 1px;
    background-color: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider p {
    margin: 0;
    padding: 0 15px;
    background-color: var(--white);
    color: var(--text-muted);
    z-index: 1;
    position: relative;
}

/* Nouvelle section Formulaires */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

/* Styles des alertes */
.alert-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.alert-success {
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.alert-error {
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

/* Styles des modaux */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    margin: 2rem auto;
}

/* Responsive tables */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .card {
        margin: 0.5rem;
    }
}

/* Carrousel */
#carrousel {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

#carrousel-padding {
    height: 60px;
}

@media (max-width: 767px) {
    #carrousel-padding {
        height: 68px;
    }
}
/* Ajustements pour le carrousel d'entreprise */
#carouselEntreprise {
    margin-bottom: 2rem;
}

#carouselEntreprise .carousel-item img {
    width: 100%;
    /*height: 400px;*/
    object-fit: cover;
}

/* Ajustements mobiles pour les sections d'entreprise */
@media (max-width: 768px) {
    #carouselEntreprise {
        margin-bottom: 1rem !important;
    }

    #carouselEntreprise .carousel-item img {
        height: 250px;
    }

    .section-title {
        margin-bottom: 1rem !important;
    }

    section {
        padding: 1.5rem 0 !important;
        margin-bottom: 1rem !important;
    }

    .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Optimisation des espacements sur mobile */
    .py-4, .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .mb-4, .mb-5 {
        margin-bottom: 1rem !important;
    }
}

.carrousel-container {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}
@media (max-width: 768px) {
    #carrousel {
        margin-bottom: 0 !important;
    }
    #carrousel + section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.carrousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(255,107,53,0.4));
    z-index: 1;
}

.carrousel-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.main-footer {
    background: var(--tertiary-color);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
}

.footer-heading {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.footer-link:hover {
    color: var(--primary-color);
}


/* Footer */
.footer-copyright {
    background-color: var(--footer-overlay);
}

/* Styles entreprise */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    text-shadow: 0 0 5px black;
}

/* Styles authentification */
.google-signin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 2;
}

/* Styles galerie */
.preview-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.file-drop-zone {
    border: 2px dashed #ccc;
    transition: all 0.3s ease;
}

.file-drop-zone.dragover {
    background-color: rgba(0,123,255,0.1);
    border-color: #007bff;
}

/* Styles entreprise form */
.entreprise-form .section-title {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 2rem 0;
}

.logo-preview {
    max-width: 200px;
    height: auto;
    border: 2px dashed #dee2e6;
    padding: 0.5rem;
}

/* Styles compte membre */
.required-field::after {
    content: " *";
    color: red;
}

.profile-completion {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Bouton Instagram */
.instagram-gradient {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

/* Styles validation */
.validation-message {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.password-info {
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px 0;
}

.alert-floating {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    min-width: 300px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* Styles galerie additionnels */
.preview-spacing {
    margin-top: 15px;
}

.cursor-pointer {
    cursor: pointer;
}

/* Styles additionnels */
.shadow-custom {
    box-shadow: var(--shadow-sm);
}

.spacing-top-md {
    margin-top: 30px;
}

.map-container-large {
    height: 600px;
    width: 100%;
}

.position-top-right {
    top: 20px;
    right: 20px;
}

/* Styles formulaires additionnels */
.alert-min-width {
    min-width: 300px;
}

.form-spacing-bottom {
    margin-bottom: 2.5rem !important;
}

/* Styles formulaires complémentaires */
.form-hidden {
    display: none;
}

.form-padding-right {
    padding-right: 35px !important;
}

/* Styles alertes et conteneurs */
.alert-spacing {
    margin-bottom: 15px;
}

.preview-container-scroll {
    max-height: 200px;
    overflow-y: auto;
}

/* Styles galerie */
.gallery-thumb {
    height: 250px;
    object-fit: cover;
}

/* Typographie */
h1 {
    font-size: var(--h1-size);
    font-weight: 700;
    color: var(--secondary-color);
}

h2 {
    font-size: var(--h2-size);
    font-weight: 700;
    color: var(--primary-color);
}

/* Sections */
.section-alternate {
    background-color: var(--tertiary-color);
    padding: var(--spacing-lg) 0;
}

/* Icônes */
.icon-primary {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.icon-primary:hover {
    transform: scale(1.1);
}

/* Sections avec fond alterné */
.section-light {
    background-color: var(--background-color);
    padding: var(--spacing-lg) 0;
}

.section-dark {
    background-color: var(--tertiary-color);
    padding: var(--spacing-lg) 0;
    border: 1px solid var(--border-color);
}

/* Animations globales */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Améliorations des formulaires */
.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-label {
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Badges et étiquettes */
.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5em 1em;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.badge-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

/* Listes et menus */
.list-styled {
    list-style: none;
    padding-left: 0;
}

.list-styled li {
    position: relative;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.list-styled li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Tooltips personnalisés */
.tooltip-custom {
    position: relative;
    display: inline-block;
}

.tooltip-custom::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip-custom:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Icônes thématiques */
.icon-contact,
.icon-location,
.icon-business,
.icon-social,
.icon-services {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.icon-contact {
    color: var(--primary-color);
}

.icon-location {
    color: var(--primary-color);
}

.icon-business {
    color: var(--primary-color);
}

.icon-social {
    color: var(--primary-color);
}

.icon-services {
    color: var(--primary-color);
}

/* Icônes formulaire */
.position-absolute.ps-3.pt-2.text-muted {
    color: var(--primary-color) !important;
}

/* Style moderne pour les boutons de contact */
.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.contact-button {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.contact-button .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 1rem;
    background: var(--tertiary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-button:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
}

.contact-button .icon-wrapper i {
    font-size: 1.5rem;
}

.contact-button .button-content {
    flex: 1;
}

.contact-button .button-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.contact-button .button-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-buttons {
        grid-template-columns: 1fr;
    }
}

/* Styles de la carte des professionnels */
.map-container {
    height: 600px;
    width: 100%;
    margin: var(--spacing-md) 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Styles des info-bulles Google Maps */
.gm-style-iw {
    max-width: 300px;
}

.info-window {
    padding: var(--spacing-sm);
    background: var(--background-color);
    border-radius: var(--border-radius);
}

.info-window-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.info-window-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.info-window h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.info-window p {
    margin: var(--spacing-xs) 0;
    font-size: 14px;
    color: var(--text-dark);
}

.info-window strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.info-window-footer {
    margin-top: var(--spacing-sm);
    text-align: right;
}

.info-window .btn-primary {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.advanced-marker {
    font-size: 36px;
    color: var(--primary-color);
    cursor: pointer;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.advanced-marker i {
    text-shadow: 0 0 8px rgba(255,255,255,0.7);
}

.advanced-marker:hover {
    transform: scale(1.2);
    color: var(--primary-hover);
}

/* Styles pour les clusters */
.cluster-marker {
    cursor: pointer;
}

.cluster-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid white;
}

.cluster-text {
    font-size: 16px;
    color: white;
}

.text-justify {
    text-align: justify;
    hyphens: auto;
}

/* Supprimer les marges supplémentaires */
header {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajouter cette règle spécifique pour le carrousel Bootstrap */
#carouselMaterialStyle {
    margin-bottom: 1rem !important;
}

@media (max-width: 768px) {
    /* Ajustement mobile spécifique pour ce carrousel */
    #carouselMaterialStyle .carousel-inner {
        margin-bottom: 0;
    }
    
    /* Réduire la hauteur du carrousel sur mobile */
    #carouselMaterialStyle {
        height: 50vh;
    }
    
    /* Ajuster l'espacement avec la section suivante */
    #carouselMaterialStyle + section {
        margin-top: 1.5rem !important;
    }
}

/* Style pour les certifications */
.certification-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.certification-button {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.certification-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.certification-button .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 1rem;
    background: var(--tertiary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.certification-button:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
}

.certification-button .icon-wrapper i {
    font-size: 1.5rem;
}

.certification-button .button-content {
    flex: 1;
}

.certification-button .button-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.certification-button .button-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color);
    white-space: normal; /* Permettre le retour à la ligne pour les textes longs */
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .certification-buttons {
        grid-template-columns: 1fr;
    }
}

/* Style du placeholder - Ajustements pour garantir la visibilité */
.map-placeholder {
    position: relative;
    cursor: pointer;
    border: 2px solid red !important; /* Visualisation du conteneur */
    min-height: 300px !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 20px !important;
}

.map-placeholder img {
    position: relative !important; /* Ajout */
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    z-index: 1 !important; /* Assure que l'image est au-dessus du fond */
}

.map-cta-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 20px !important;
    border: 2px solid blue !important; /* Visualisation de l'overlay */
}

/* Ajout d'un effet de hover */
.map-placeholder:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Style du container de la carte interactive */
#map-container {
    height: 400px;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

#map-container.d-none {
    display: none !important;
}

/* Styles de section communs */
section {
    margin-bottom: 2rem;
    padding: 1rem;
}

.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Styles de notation par étoiles réutilisables */
.rating-stars {
    text-align: center;
    cursor: pointer;
}

.rating-stars .star {
    color: #ffd700;
    transition: all 0.3s ease;
    padding: 0 3px;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    transform: scale(1.2);
}

.fa-star {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

/* Styles spécifiques CGU */
.cgu-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.cgu-section:hover {
    box-shadow: var(--shadow-lg);
}

.cgu-title {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.cgu-list {
    list-style: none;
    padding-left: 0;
}

.cgu-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.cgu-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.cgu-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--tertiary-color);
}

.cgu-alert {
    background: var(--tertiary-color);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

@media (max-width: 768px) {
    .cgu-section {
        padding: var(--spacing-sm);
    }
    
    .cgu-title {
        font-size: 1.2rem;
    }
    
    .cgu-card {
        margin: 0.5rem 0;
    }
}

/* Ajout des styles de notification */
.badge-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7em;
    padding: 3px 5px;
    border-radius: 50%;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Style spécifique pour les badges dans la navbar */
.nav-link .badge-notification {
    top: 0;
    right: 0;
}

/* Styles pour les bulles de messages */
.conversation-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.message-group {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    gap: 2px;
}

.message-group.message-received {
    align-self: flex-start;
}

.message-group.message-sent {
    align-self: flex-end;
}

.message-sender {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #666;
    padding-left: 0.5rem;
}

.message-bubble {
    padding: 0.75rem 1rem;
    position: relative;
    margin-bottom: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    max-width: 100%;
    word-wrap: break-word;
}

.message-received .message-bubble {
    background-color: #ffffff;
    border-radius: 18px 18px 18px 4px;
    color: #333;
    border-left: 2px solid #e0e0e0;
}

.message-received .first-bubble {
    border-radius: 18px 18px 18px 4px;
}

.message-received .middle-bubble {
    border-radius: 4px 18px 18px 4px;
}

.message-received .last-bubble {
    border-radius: 4px 18px 18px 18px;
}

.message-sent .message-bubble {
    background-color: #dcf8c6;
    border-radius: 18px 18px 4px 18px;
    color: #000;
    border-right: 2px solid #c5e1a5;
}

.message-sent .first-bubble {
    border-radius: 18px 18px 4px 18px;
}

.message-sent .middle-bubble {
    border-radius: 18px 4px 4px 18px;
}

.message-sent .last-bubble {
    border-radius: 18px 4px 18px 18px;
}

.message-content {
    word-break: break-word;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    color: #999;
    text-align: right;
    margin-top: 0.2rem;
}

.date-separator {
    text-align: center;
    margin: 1rem 0;
    position: relative;
    color: #666;
    font-size: 0.85rem;
}

.date-separator:before {
    content: "";
    position: absolute;
    height: 1px;
    background-color: #e0e0e0;
    width: 100%;
    top: 50%;
    left: 0;
    z-index: 0;
}

.date-separator:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    background-color: white;
    padding: 0 10px;
    z-index: 1;
}

.message-system {
    align-self: center;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    max-width: 80%;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0.5rem 0;
    border: 1px solid #eaeaea;
}

/* Animation pour les messages */
.message-bubble {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
