:root {
    --primary-color: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
    --secondary-color: #1e293b;
    --accent-color: #c026d3;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--secondary-color);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #a21caf 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-check:checked + .btn-outline-primary {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: white;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-image {
    padding: 2rem;
}

.delivery-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
}

.card {
    border-radius: 1rem;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25);
}

.btn-check:checked + .btn-outline-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-check:checked + .btn-outline-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

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

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-dropdown-hover .dropdown-menu-animated {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 220px;
    margin-top: 0.5rem;
}

.nav-dropdown-hover:hover .dropdown-menu-animated {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-hover .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    border-radius: 0;
}

.nav-dropdown-hover .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(192, 38, 211, 0.08) 100%);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.nav-dropdown-hover .dropdown-item i {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-dropdown-hover .dropdown-item:hover i {
    opacity: 1;
}

.nav-dropdown-hover .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: #e5e7eb;
}

@media (max-width: 991.98px) {
    .nav-dropdown-hover .dropdown-menu-animated {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
        background: transparent;
    }
    
    .nav-dropdown-hover .dropdown-menu-animated.show {
        display: block;
    }
    
    .nav-dropdown-hover .dropdown-item {
        padding: 0.5rem 1rem 0.5rem 2rem;
    }
    
    .nav-dropdown-hover .dropdown-item:hover {
        padding-left: 2.25rem;
        background: rgba(124, 58, 237, 0.05);
    }
}

footer {
    background: var(--secondary-color) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.services-preview .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-preview .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert-error,
.alert-danger {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.badge-en_attente {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-assignee {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-en_cours {
    background-color: #c7d2fe;
    color: #4338ca;
}

.badge-livree {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-annulee {
    background-color: #fee2e2;
    color: #991b1b;
}

.price-highlight {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

.page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-weight: 700;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.list-styled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.list-styled li:last-child {
    border-bottom: none;
}

.admin-sidebar {
    background: #f8fafc;
    min-height: 100vh;
    padding: 1rem;
}

.admin-sidebar .nav-link {
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-gradient);
    color: white;
}

.stat-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateX(5px);
}

.table-hover tbody tr:hover {
    background-color: rgba(124, 58, 237, 0.05);
}

.confirmation-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.confirmation-icon i {
    font-size: 4rem;
    color: white;
}

.payment-card {
    max-width: 500px;
    margin: 0 auto;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   HERO SECTION - NOUVELLE VERSION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.hero-title-sub {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7B2FF7;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #666666;
    line-height: 1.7;
    max-width: 600px;
}

.btn-hero {
    background: linear-gradient(135deg, #7B2FF7 0%, #FF4D9A 100%);
    color: white;
    font-weight: 600;
    padding: 16px 48px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 12px rgba(123, 47, 247, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 47, 247, 0.4);
    color: white;
}

/* ============================================
   FOOTER AMÉLIORATIONS
   ============================================ */

.footer-logo-link {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

.footer-logo {
    height: 135px;
    width: auto;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #7B2FF7;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    color: #9ca3af;
}

.social-links a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #7B2FF7;
}

/* ============================================
   AUTH PAGES (LOGIN / REGISTER)
   ============================================ */

.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 100%);
}

.auth-card {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #7B2FF7 0%, #FF4D9A 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-body {
    padding: 2rem;
}

.code-input {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.code-input:focus {
    border-color: #7B2FF7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-sidebar {
    background: #f8fafc;
    min-height: calc(100vh - 76px);
    padding: 2rem 1rem;
    border-right: 1px solid #e2e8f0;
}

.dashboard-nav .nav-link {
    color: #1e293b;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
    background: linear-gradient(135deg, #7B2FF7 0%, #FF4D9A 100%);
    color: white;
}

.dashboard-nav .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
}

.order-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.1);
    border-color: #7B2FF7;
}

/* ============================================
   RESPONSIVE MOBILE - NOUVELLES RÈGLES
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
        text-align: center;
        white-space: normal;
    }
    
    .hero-title-sub {
        font-size: 1.25rem;
        text-align: center;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto 2rem;
    }
    
    .btn-hero {
        width: 100%;
        text-align: center;
    }
    
    .dashboard-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .code-input {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

/* ============================================
   ITINERARY CARD - STYLE GOOGLE MAPS
   ============================================ */

.itinerary-card {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.itinerary-inputs {
    background: white;
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.itinerary-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    gap: 0.75rem;
}

.itinerary-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.itinerary-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    min-width: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    color: #1a1a1a;
    min-width: 0;
}

.itinerary-input::placeholder {
    color: #6b7280;
    font-size: 0.9rem;
}

.itinerary-input:focus {
    outline: none;
    border-color: #7B2FF7;
    background: white;
    box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.15);
}

.itinerary-location-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.itinerary-location-btn:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.itinerary-divider {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    position: relative;
}

.itinerary-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
    margin-left: 44px;
}

.itinerary-swap-btn {
    position: absolute;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.itinerary-swap-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-calculer-distance {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-calculer-distance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.btn-calculer-distance:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   ANIMATIONS - GÉOLOCALISATION
   ============================================ */

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

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

.btn-outline-secondary:disabled {
    opacity: 0.8;
}

/* Animation pour la sélection automatique de tranche */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.animate-pulse {
    animation: pulse 0.5s ease-in-out;
}

@keyframes rotate180 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

.rotate-animation {
    animation: rotate180 0.3s ease-in-out;
}

/* ============================================
   RESPONSIVE ITINERARY CARD
   ============================================ */

@media (max-width: 576px) {
    .itinerary-card {
        padding: 1rem;
    }
    
    .itinerary-inputs {
        padding: 0.25rem;
    }
    
    .itinerary-row {
        padding: 0.5rem 0.25rem;
        gap: 0.5rem;
    }
    
    .itinerary-icon {
        width: 24px;
        height: 24px;
        font-size: 0.95rem;
    }
    
    .itinerary-input {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }
    
    .itinerary-input::placeholder {
        font-size: 0.8rem;
    }
    
    .itinerary-location-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .itinerary-swap-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .btn-calculer-distance {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Bouton œil pour mot de passe */
.input-group .btn-outline-secondary {
    border-color: #ced4da;
    color: #6c757d;
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #7B2FF7;
    color: #7B2FF7;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(123, 47, 247, 0.25);
    border-color: #7B2FF7;
}

.input-group .btn-outline-secondary i {
    font-size: 1.1rem;
}

/* Personnalisation de l'autocomplétion Google Maps - Style Google Maps */
.pac-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 4px;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    z-index: 9999 !important;
    padding: 8px 0;
    min-width: 350px;
}

.pac-container::after {
    display: none !important;
}

.pac-item {
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    line-height: 1.5;
    min-height: auto;
    white-space: normal;
    display: flex;
    align-items: center;
    background: #fff;
    gap: 12px;
}

.pac-item:last-child {
    border-bottom: none;
}

.pac-item:hover,
.pac-item-selected {
    background-color: #f1f3f4;
}

.pac-icon {
    width: 24px;
    height: 24px;
    margin-right: 0;
    background-image: none !important;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pac-icon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #70757a;
    border-radius: 50%;
    top: 3px;
    left: 8px;
}

.pac-icon::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 8px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid #70757a;
}

.pac-item > span {
    flex: 1;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.pac-item-query {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    display: inline;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pac-matched {
    font-weight: 600;
    color: #202124;
}

.pac-item .pac-item-query + span {
    font-size: 14px;
    color: #70757a;
    display: inline;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-left: 4px;
}

.pac-logo::after {
    display: none !important;
}

.pac-item .pac-icon-marker {
    display: none;
}

.autocomplete-input {
    padding: 12px 15px !important;
    font-size: 15px;
    border: 2px solid #e0d4f7;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.autocomplete-input:focus {
    border-color: #7B2FF7;
    box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.1);
    outline: none;
}

/* Pricing Grid Styles */
.pricing-grid {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1rem;
}

.pricing-btn {
    transition: all 0.2s ease;
    border-radius: 0.75rem !important;
}

.pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.2);
}

.btn-check:checked + .pricing-btn {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%) !important;
    border-color: #7b2cbf !important;
    color: white !important;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.btn-check:checked + .pricing-btn .price-tag {
    color: white !important;
}

.price-tag {
    color: #10b981;
    font-weight: 600;
    font-size: 1.1rem;
}

.extra-km-section .alert {
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
}

.selected-price-card {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%) !important;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    color: white !important;
    box-shadow: 0 4px 20px rgba(123, 44, 191, 0.3);
}

.selected-price-card h5 {
    color: white !important;
}

.selected-price-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.display-price {
    font-size: 2rem;
    font-weight: 700;
    color: white !important;
    white-space: nowrap;
    min-width: 120px;
    text-align: right;
}

.express-option {
    position: relative;
    overflow: hidden;
}

.express-option::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(239, 68, 68, 0.1) 50%);
}

.btn-check:checked + .express-option {
    animation: pulse-express 1s ease-in-out;
}

@keyframes pulse-express {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.animate-pulse {
    animation: pulse-selection 0.5s ease-out;
}

@keyframes pulse-selection {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .pricing-grid {
        padding: 0.75rem;
    }
    
    .pricing-btn {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem;
    }
    
    .price-tag {
        font-size: 1rem;
    }
    
    .display-price {
        font-size: 1.5rem;
    }
    
    .selected-price-card {
        padding: 1rem;
    }
}

/* ========================================
   POPUP D'AUTOCOMPLÉTION DES ADRESSES
   ======================================== */
.address-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.address-modal.active {
    display: block;
}

.address-modal-content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.address-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.address-modal-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    margin: 0;
    letter-spacing: 1px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.address-search-container {
    margin-bottom: 20px;
}

.modal-address-input {
    width: 100%;
    padding: 15px 25px;
    font-size: 18px;
    border: 2px solid #E0D4F7;
    border-radius: 50px;
    outline: none;
    background-color: #F8F5FF;
    transition: all 0.2s;
}

.modal-address-input:focus {
    border-color: #7B2FF7;
    box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.1);
}

.modal-address-input::placeholder {
    color: #aaa;
}

.use-location-btn {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: none;
    color: #7B2FF7;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 20px;
    transition: color 0.2s;
}

.use-location-btn:hover {
    color: #5b1fd7;
}

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

.address-suggestions {
    margin-bottom: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.suggestion-item {
    padding: 15px;
    border-bottom: 1px solid #E0E0E0;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: background-color 0.2s;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #F8F5FF;
}

.suggestion-icon {
    color: #7B2FF7;
    font-size: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
    min-width: 0;
}

.suggestion-main {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.suggestion-secondary {
    font-size: 14px;
    color: #666;
    word-wrap: break-word;
}

.no-suggestions {
    padding: 30px 20px;
    text-align: center;
    color: #888;
}

.loading-suggestions {
    padding: 20px;
    text-align: center;
    color: #7B2FF7;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empêcher le scroll du body quand la modal est ouverte */
body.modal-open {
    overflow: hidden;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .address-modal-content {
        padding: 15px;
    }
    
    .modal-address-input {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .suggestion-main {
        font-size: 15px;
    }
    
    .suggestion-secondary {
        font-size: 13px;
    }
}

/* Géolocalisation dans la popup */
.geoloc-loading {
    padding: 40px 20px;
    text-align: center;
}

.geoloc-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #E0D4F7;
    border-top: 4px solid #7B2FF7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.geoloc-loading p {
    color: #7B2FF7;
    font-weight: 500;
    margin: 0;
}

.geoloc-error {
    padding: 25px 20px;
    text-align: center;
    color: #E91E63;
    background-color: #FFF0F5;
    border-radius: 10px;
    margin: 10px 0;
}

.geoloc-error i {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.form-control[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.form-control[readonly]:focus {
    background-color: #f8f9fa;
    border-color: #7B2FF7;
    box-shadow: 0 0 0 0.2rem rgba(123, 47, 247, 0.15);
}

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.auth-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.close-auth-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.2s;
}

.close-auth-modal:hover {
    color: #333;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-modal-header i.bi-rocket-takeoff {
    font-size: 48px;
    color: #7B2FF7;
}

.auth-modal-header h2 {
    color: #333;
    font-size: 28px;
    margin: 20px 0 10px 0;
}

.auth-modal-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.auth-modal-header strong {
    color: #7B2FF7;
    font-size: 24px;
}

.auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.auth-modal-actions .btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
}

.auth-modal-benefits {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.auth-modal-benefits h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.auth-modal-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-modal-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.auth-modal-benefits li i {
    color: #28a745;
    font-size: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .auth-modal-content {
        padding: 30px 20px;
    }
    
    .auth-modal-header h2 {
        font-size: 24px;
    }
    
    .auth-modal-actions .btn {
        font-size: 16px;
    }
}

/* Footer styles */
.footer-main .footer-link:hover {
    color: #7c3aed !important;
    text-decoration: none;
}

/* Advantage cards */
.advantage-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15) !important;
}

/* Testimonials */
.testimonials .card {
    transition: transform 0.3s ease;
}

.testimonials .card:hover {
    transform: translateY(-5px);
}

/* Emoji step numbers */
.step-number {
    font-size: 2.5rem;
    line-height: 1;
}

/* CGV checkbox styles */
.form-check-label {
    font-size: 0.95rem;
    line-height: 1.6;
}
.form-check-label a {
    text-decoration: underline;
    font-weight: 500;
}
.form-check-label a:hover {
    text-decoration: none;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Stuart-style Hero Section */
.hero-stuart {
    background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 100%);
    padding: 40px 0 60px 0;
}

.hero-title-stuart {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
}

.hero-subtitle-stuart {
    font-size: 1.8rem;
    font-weight: 600;
    color: #7B2FF7;
    line-height: 1.2;
}

.hero-desc-stuart {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

.hero-features .feature-item {
    font-size: 1rem;
    color: #374151;
}

.hero-features .feature-item i {
    font-size: 1.2rem;
}

.form-card-stuart {
    border-radius: 16px;
    overflow: hidden;
}

.form-card-stuart .card-header {
    border-radius: 16px 16px 0 0;
}

.pricing-grid-compact .pricing-btn-sm {
    font-size: 0.85rem;
    padding: 8px 4px;
    border-radius: 8px;
}

.pricing-grid-compact .pricing-btn-sm strong {
    font-size: 0.8rem;
}

.pricing-grid-compact .price-tag-sm {
    font-size: 0.9rem;
    font-weight: 700;
    color: #7B2FF7;
}

.pricing-grid-compact .btn-check:checked + .pricing-btn-sm {
    background: linear-gradient(135deg, #7B2FF7 0%, #FF4D9A 100%);
    border-color: #7B2FF7;
    color: white;
}

.pricing-grid-compact .btn-check:checked + .pricing-btn-sm .price-tag-sm {
    color: white;
}

@media (max-width: 991px) {
    .hero-stuart {
        min-height: auto;
        padding: 30px 0;
    }
    
    .hero-title-stuart {
        font-size: 2rem;
    }
    
    .hero-subtitle-stuart {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .hero-title-stuart {
        font-size: 1.6rem;
    }
    
    .hero-subtitle-stuart {
        font-size: 1.2rem;
    }
    
    .hero-desc-stuart {
        font-size: 0.95rem;
    }
}

/* Progressive Disclosure - "Faire une demande" button */
.btn-faire-demande {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    margin-top: 16px;
    background: linear-gradient(135deg, #7B2FF7 0%, #FF4D9A 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
}

.btn-faire-demande:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 47, 247, 0.4);
}

.btn-faire-demande i {
    font-size: 1.2rem;
}

/* Distance info alignment */
.distance-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.distance-info i {
    flex-shrink: 0;
}

/* Hidden form section */
.form-details-hidden {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.5s ease;
}

.form-details-visible {
    display: block;
    opacity: 1;
    max-height: 2000px;
    margin-top: 20px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
