/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-/* Toggle mode moderne iOS style */
.mode-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s ease;
}

.toggle-label i {
    font-size: 18px;
    padding: 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #4b90a2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toggle-label span {
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.left-label.active {
    color: #ff6b6b;
}

.right-label.active {
    color: #4ecdc4;
}

.mode-toggle {
    position: relative;
    display: inline-block;
    width: 95px;
    height: 39px;
    cursor: pointer;
}

.mode-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-radius: 50%;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.mode-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.mode-toggle input:checked + .toggle-slider:before {
    transform: translateX(80px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(15deg, #4aaedb 0%, #4aaedb 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: #19afcc;
    background: white;
    padding: 18px 0;
    border-radius: 12px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Header logo layout */
.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    width: 240px;
    height: auto;
    border-radius: 6px; 
    background: transparent;
}

.header-text h1 {
    margin: 0;
    font-size: 1.6rem;
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
}

.header-center {
    flex-direction: column;
    gap: 8px;
}

.account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 1px solid #e2e8f0;
    color: #2d3748;
    font-weight: 700;
    cursor: pointer;
}

.account-btn i {
    font-size: 20px;
}

.account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.backoffice-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
}

.backoffice-link:hover {
    color: #667eea;
    border-color: #e6eefc;
}

@media (max-width: 768px) {
    .site-logo {
        width: 160px;
    }
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }
    .header-left, .header-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Section de recherche */
.search-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    overflow: hidden;
}

.search-form-container {
    padding: 30px;
}

/* Header de recherche avec toggle */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-header h2 {
    color: #4a5568;
    font-size: 1.5rem;
    margin: 0;
}

.search-header h2 i {
    color: #667eea;
    margin-right: 10px;
}

/* Toggle mode moderne iOS style */
.mode-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mode-toggle {
    position: relative;
    display: inline-block;
    width: 95px;
    height: 39px;
    cursor: pointer;
}

/* Bouton de synchronisation moderne */
.sync-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #4b90a2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none;
}

.sync-btn-depart {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.sync-btn-depart:hover {
    background: linear-gradient(135deg, #ec87f3 0%, #e84393 100%);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.sync-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sync-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
}

.sync-btn.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shine 1.5s infinite;
}

.sync-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes loading-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Amélioration des effets hover pour le toggle */
.toggle-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.toggle-label:hover {
    color: #2d3748;
}

.toggle-label:hover i {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Animation des états actifs */
.left-label.active {
    animation: pulse-red 0.6s ease-in-out;
}

.right-label.active {
    animation: pulse-green 0.6s ease-in-out;
}

@keyframes pulse-red {
    0% { color: #4a5568; }
    50% { color: #ff6b6b; }
    100% { color: #ff6b6b; }
}

@keyframes pulse-green {
    0% { color: #4a5568; }
    50% { color: #4ecdc4; }
    100% { color: #4ecdc4; }
}

.mode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mode-toggle input:checked + .toggle-slider {
    background: linear-gradient(45deg, #667eea, #4b90a2);
}

.mode-toggle input:checked + .toggle-slider:before {
    transform: translateX(55px);
}

.toggle-labels {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-left,
.label-right {
    color: white;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.mode-toggle input:checked ~ .toggle-labels .label-right {
    opacity: 1;
    font-weight: 700;
}

.mode-toggle input:not(:checked) ~ .toggle-labels .label-left {
    opacity: 1;
    font-weight: 700;
}

/* Animation pour les marqueurs clignotants */
@keyframes blink {
    0%, 50% {
        opacity: 1;
        transform: scale(1);
    }
    51%, 100% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

.blinking-marker {
    animation: blink 1.5s infinite;
}

/* Styles pour les popups d'offres */
.offer-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.offer-popup h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.offer-popup p {
    margin: 5px 0;
    color: #666;
}

.offer-popup strong {
    color: #333;
}

.offer-popup small {
    color: #999;
    font-style: italic;
}



/* Groupes d'inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.input-group label i {
    margin-right: 8px;
    width: 16px;
}

.departure-icon {
    color: #48bb78;
}

.destination-icon {
    color: #ed8936;
}

.stop-icon {
    color: #4299e1;
}

/* Conteneur d'autocomplétion */
.autocomplete-container {
    position: relative;
    margin: -4px 0px 0px 15px;
}

.autocomplete-container input[type="text"] {
    width: 100%;
    padding: 1px 1px 1px 40px !important;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.autocomplete-container input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Section des arrêts */
.stops-container {
    margin: 20px 0;
}

/* City label displayed when localStorage has a saved city */
.city-label-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0px;
    margin-left: 20px;
}

.city-label {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    color: #2d3748;
    font-weight: 600;
}

.city-edit-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #667eea;
}

.city-edit-btn i { font-size: 14px; }

.stop-item {
    position: relative;
    margin-bottom: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.stop-item .remove-stop {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stop-item .remove-stop:hover {
    background: #c53030;
    transform: scale(1.1);
}

.add-stop-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #edf2f7;
    border-radius: 8px;
}

.add-stop-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-stop-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.add-stop-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.stop-counter {
    color: #718096;
    font-size: 14px;
}

/* Section des filtres */
.filters-section {
    margin: 30px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.filters-section h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.filters-section h3 i {
    color: #667eea;
    margin-right: 10px;
}

/* Modern select style for shipping_method */
.method-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

#shipping_method {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 220px;
    padding: 10px 14px;
    padding-right: 40px; /* space for arrow */
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 4px 12px rgba(102,126,234,0.06);
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
}

#shipping_method:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.08);
}

#shipping_method:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.08);
}

/* Custom arrow using inline SVG background */
#shipping_method {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='%23667eea' d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

/* When disabled or readonly, reduce emphasis */
#shipping_method:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Small screens: full width */
@media (max-width: 768px) {
    h2{
        text-align: left;
    }
    .mode-toggle-container {
    display: block; 
}

.toggle-wrapper {
    display: block; 
}
    #shipping_method {
        width: 100%;
        padding-right: 36px;
    }
}

.date-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.date-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a5568;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0px;
}

.date-range input[type="date"] {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.date-range span {
    color: #718096;
    font-weight: 500;
}

/* Section du rayon */
.radius-section {
    margin: 30px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.radius-section label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #4a5568;
}

.radius-section label i {
    color: #667eea;
    margin-right: 10px;
}

.radius-explanation {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e6fffa;
    border-left: 4px solid #4fd1c7;
    border-radius: 4px;
}

.radius-explanation small {
    color: #2d3748;
    font-style: italic;
    line-height: 1.4;
}

.radius-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.radius-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.search-btn, .reset-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #4b90a2 100%);
    color: white;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.reset-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.reset-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* Section des résultats */
.results-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
    padding: 20px;
    margin-bottom: 30px;
}

#resultsContainerMap {
    width: 99%;
    height: 500px;
    border-radius: 4px;
    margin-top: 10px;
}

.custom-marker {
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
}

.results-header {
    background: linear-gradient(135deg, #667eea 0%, #4b90a2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h2 {
    font-size: 1.5rem;
}

.results-count {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.results-container {
    padding: 6px;
}

/* Carte d'offre */
.offer-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.offer-content {
    display: flex;
    min-height: 180px;
}

.offer-image {
    flex: 0 0 200px;
    max-width: 200px;
}

.offer-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
}

.offer-details-container {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.offer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.offer-price {
    text-align: right;
    flex-shrink: 0;
    margin-left: 15px;
}

.price-envelope {
    font-size: 1.5rem;
    font-weight: 700;
    color: #48bb78;
}

.price-kg {
    font-size: 0.9rem;
    color: #718096;
}

.offer-route {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.route-point {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.route-point i {
    margin-right: 8px;
}

.route-arrow {
    margin: 0 15px;
    color: #a0aec0;
}

.offer-dates {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.date-info {
    display: flex;
    align-items: center;
    color: #718096;
    font-size: 0.9rem;
}

.date-info i {
    margin-right: 8px;
    color: #4299e1;
}

.offer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    color: #718096;
    font-size: 0.9rem;
}

.detail-item i {
    margin-right: 8px;
    color: #4299e1;
    width: 16px;
}

.offer-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.segment-info {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 6px;
    padding: 10px;
    margin: 15px 20px 0 20px;
    font-size: 0.9rem;
    color: #234e52;
}

/* Overlay de chargement */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-spinner p {
    color: #4a5568;
    font-weight: 500;
}

/* Message d'erreur */
.error-message {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #742a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-message i {
    margin-right: 10px;
}

/* Message de succès */
.success-message {
    background: #c6f6d5;
    border: 1px solid #68d391;
    color: #22543d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-message i {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .search-form-container {
        padding: 20px;
    }
    
    /* Toggle responsive */
    .search-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    #resultsContainerMap {
    width: 97%;
    height: 350px;  
}
    .mode-toggle {
            width: 69px;
            height: 37px;
            align-self: center;
            margin-left: 70% !important;
            rotate: z 90deg;
    }
    
    .toggle-slider:before {
        height: 24px;
        width: 24px;
    }
    
    .mode-toggle input:checked + .toggle-slider:before {
        transform: translateX(32px);
    }
    
    .toggle-labels {
        font-size: 10px;
        padding: 0 12px;
    }
    
    .date-filters {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .offer-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .offer-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .offer-image {
        flex: none;
        max-width: none;
    }
    
    .offer-image img {
        height: 200px;
    }
    
    .offer-details-container {
        padding: 15px;
    }
    
    .offer-price {
        text-align: left;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .offer-route {
        flex-direction: row;
        gap: 10px;
    }
    
    .route-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .offer-details {
        grid-template-columns: 1fr;
    }
    
    .offer-dates {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-card {
    animation: fadeIn 0.5s ease-out;
}

/* Mapbox Geocoder customization */
.mapboxgl-ctrl-geocoder {
    width: 100% !important;
    max-width: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    border: 2px solid #e2e8f0 !important;
}

.mapboxgl-ctrl-geocoder input {
    padding: 12px 16px !important;
    font-size: 16px !important;
}

.mapboxgl-ctrl-geocoder input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Styles pour les marqueurs de navigation de l'itinéraire */
.waypoint-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}

.waypoint-marker:hover {
    transform: scale(1.1);
}

/* Animation pour les marqueurs clignotants */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes pulse-glow {
    0% { 
        box-shadow: 0 0 5px rgba(0,0,0,0.3); 
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6); 
        transform: scale(1.05);
    }
    100% { 
        box-shadow: 0 0 5px rgba(0,0,0,0.3); 
        transform: scale(1);
    }
}

.waypoint-marker:hover > div {
    animation: pulse-glow 1.5s infinite;
}

/* Styles pour les popups de l'itinéraire */
.mapboxgl-popup-content {
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mapboxgl-popup-tip {
    border-top-color: white;
}

/* Styles pour la section des boutons d'action */
.section-boutton {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 600px;
}

.section-boutton.bg-white {
    background-color: #ffffff;
}

.btn_choice {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid #667eea;
}

.btn-info:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.w-30 {
    flex: 0 0 30%;
    max-width: 30%;
}

/* Animation de loading pour les boutons */
.btn_choice:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn_choice.loading {
    position: relative;
}

.btn_choice.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
    .section-boutton {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 15px 10px;
    }
    
    .w-30 {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
    
    .btn_choice {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Styles pour les marqueurs de la carte */
.custom-marker {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Animation pour les marqueurs clignotants */
.blinking-marker {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Styles pour les popups d'offres */
.offer-popup {
    font-family: Arial, sans-serif;
    max-width: 250px;
    padding: 5px;
}

.offer-popup h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.offer-popup p {
    margin: 4px 0;
    font-size: 12px;
    color: #666;
}

.offer-popup small {
    color: #999;
    font-style: italic;
}

/* Styles pour les cercles de rayon sur la carte */
.mapboxgl-canvas {
    cursor: default;
}

/* Amélioration de la visibilité des cercles de rayon */
.map-radius-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    font-size: 11px;
    color: #333;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 180px;
    backdrop-filter: blur(5px);
}

.map-radius-info div {
    line-height: 1.3;
}

/* Styles pour les boutons d'actions des offres */
.offer-actions {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.view-offer-btn,
.chat-offer-btn,
.call-offer-btn {
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    min-width: 100px;
    justify-content: center;
    flex: 1;
    max-width: 141px;
}

.view-offer-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chat-offer-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.3);
}

.call-offer-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.view-offer-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.chat-offer-btn:hover {
    background: linear-gradient(135deg, #0f8a80 0%, #32d96b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.call-offer-btn:hover {
    background: linear-gradient(135deg, #e55a5a 0%, #d64661 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.view-offer-btn:active,
.chat-offer-btn:active,
.call-offer-btn:active {
    transform: translateY(0);
}

.view-offer-btn:active {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chat-offer-btn:active {
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.3);
}

.call-offer-btn:active {
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.view-offer-btn::before,
.chat-offer-btn::before,
.call-offer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-offer-btn:hover::before,
.chat-offer-btn:hover::before,
.call-offer-btn:hover::before {
    left: 100%;
}

.view-offer-btn i,
.chat-offer-btn i,
.call-offer-btn i {
    font-size: 11px;
    transition: all 0.3s ease;
}

.view-offer-btn:hover i.fa-eye {
    animation: blink-eye 0.6s ease-in-out;
}

.view-offer-btn:hover i.fa-external-link-alt {
    transform: scale(1.1) rotate(5deg);
}

.chat-offer-btn:hover i.fa-comments {
    animation: shake-chat 0.6s ease-in-out;
}

.chat-offer-btn:hover i.fa-paper-plane {
    animation: fly-plane 0.6s ease-in-out;
}

.call-offer-btn:hover i.fa-phone {
    animation: ring-phone 0.6s ease-in-out;
}

.call-offer-btn:hover i.fa-phone-volume {
    animation: pulse-volume 0.6s ease-in-out;
}

@keyframes blink-eye {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

@keyframes shake-chat {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

@keyframes fly-plane {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(3px) rotate(15deg) scale(1.1); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes ring-phone {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    50% { transform: rotate(0deg); }
}

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

/* Styles pour la modal d'appel */
.call-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.call-modal-overlay.show {
    opacity: 1;
}

.call-modal {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.call-modal-overlay.show .call-modal {
    transform: scale(1);
}

.call-modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.call-modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.call-modal-content {
    padding: 25px;
}

.call-modal-content p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.call-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.call-option-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    text-align: left;
}

.call-option-btn:hover {
    border-color: #ff6b6b;
    background: #fff5f5;
    transform: translateX(5px);
}

.call-option-btn i {
    font-size: 20px;
    color: #ff6b6b;
    min-width: 24px;
}

.call-option-btn span {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.call-option-btn small {
    color: #666;
    font-size: 12px;
    display: block;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .offer-actions {
        gap: 6px;
    }
    
    .view-offer-btn,
    .chat-offer-btn,
    .call-offer-btn {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 80px;
        max-width: 90px;
        gap: 2px;
    }
    
    .view-offer-btn span,
    .chat-offer-btn span,
    .call-offer-btn span {
        font-size: 9px;
    }
    
    .call-modal {
        width: 95%;
        max-width: none;
    }
    
    .call-modal-header h3 {
        font-size: 16px;
    }
    
    .call-option-btn {
        padding: 12px 15px;
    }
}

/* Styles pour le popup d'alerte amélioré */
.alert-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    max-width: 580px;
    width: 95%;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: scale(0.8) translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.alert-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.alert-popup-header::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"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.alert-popup-header i {
    font-size: 24px;
    color: #ffd700;
    animation: bell-ring 2s ease-in-out infinite;
}

.alert-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
    position: relative;
    z-index: 1;
}

.alert-popup-close {
    background: #fff0;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.alert-popup-close:hover { 
    transform: rotate(90deg);
}

.alert-popup-content {
    padding: 30px 25px;
    text-align: center; 
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
    scrollbar-width: thin;
    scrollbar-color: rgba(103, 126, 234, 0.3) transparent;
}
}

.alert-popup-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

.alert-popup-icon i {
    font-size: 36px;
    color: white;
}

.alert-popup-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(240, 147, 251, 0.3);
    border-radius: 50%;
    animation: ripple 2s ease-in-out infinite;
}

.alert-popup-message {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.alert-popup-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.alert-criteria {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.criteria-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.criteria-item i {
    font-size: 20px;
    padding: 10px;
    border-radius: 50%;
    color: white;
}

.criteria-item i.departure-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.criteria-item i.destination-icon {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.criteria-item span {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-align: center;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.criteria-arrow {
    margin: 0 15px;
    color: #667eea;
    font-size: 18px;
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

.alert-popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.alert-btn {
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.alert-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.alert-btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.alert-btn-secondary {
    background: #f8fafc;
    color: #666;
    border: 2px solid #e2e8f0;
}

.alert-btn-secondary:hover {
    background: #e2e8f0;
    color: #333;
    transform: translateY(-1px);
}

.alert-btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.alert-btn-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.alert-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.alert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.alert-btn:hover::before {
    left: 100%;
}

/* Animations pour le popup d'alerte */
@keyframes bell-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-5deg); }
    50% { transform: rotate(0deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(240, 147, 251, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(240, 147, 251, 0);
    }
}

/* Styles pour les détails et avantages de l'alerte */
.alert-details {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 15px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 13px;
    color: #4a5568;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-item i {
    color: #667eea;
    font-size: 14px;
    flex-shrink: 0;
}

.alert-benefits {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item i {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Responsive amélioré pour le popup d'alerte */
@media (max-width: 768px) {
    .alert-popup {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .alert-popup-header {
        padding: 15px 18px;
        gap: 8px;
    }
    
    .alert-popup-header h3 {
        font-size: 16px;
    }
    
    .alert-popup-header i {
        font-size: 18px;
    }
    
    .alert-popup-content {
        padding: 20px 18px;
    }
    
    .alert-popup-icon {
        width: 60px;
        height: 60px;
    }
    
    .alert-popup-icon i {
        font-size: 28px;
    }
    
    .alert-popup-message {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .alert-popup-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .alert-criteria {
        padding: 15px;
        margin: 15px 0;
        flex-direction: column;
        gap: 15px;
    }
    
    .criteria-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    
    .criteria-item span {
        font-size: 12px;
        max-width: 200px;
    }
    
    .alert-details {
        padding: 15px;
        margin: 15px 0;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-item {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .alert-benefits {
        padding: 15px;
        margin: 15px 0;
    }
    
    .benefit-item {
        font-size: 13px;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .alert-popup-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .alert-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .alert-popup-overlay {
        padding: 10px;
    }
    
    .alert-popup {
        width: 100%;
        margin: 0;
        border-radius: 12px;
        max-height: 90vh;
    }
    
    .alert-popup-header {
        padding: 12px 15px;
    }
    
    .alert-popup-header h3 {
        font-size: 15px;
    }
    
    .alert-popup-content {
        padding: 25px 20px;
    }
    
    .alert-popup-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .alert-popup-icon i {
        font-size: 28px;
    }
    
    .alert-popup-message {
        font-size: 16px;
    }
    
    .alert-popup-description {
        font-size: 13px;
    }
    
    .alert-criteria {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .criteria-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    
    .alert-popup-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .alert-btn {
        width: 100%;
        min-width: auto;
    }
}

