/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.header {
    background-color: #2A2E33; /* Même couleur que la bannière CTA "immobilisé sur la route ?" */
    padding: 0.5rem 0; /* Padding réduit pour un header plus compact */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 121px; /* Hauteur à 110% de 110px = 121px */
    overflow: hidden; /* Cache ce qui dépasse du header */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between; /* Logo à gauche, navigation à droite */
    align-items: center; /* Centre verticalement les éléments */
    height: 100%; /* Prend toute la hauteur du header */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-start; /* Force l'alignement à gauche */
    flex-shrink: 0; /* Empêche le logo de rétrécir */
}

.logo-image {
    height: 400px; /* Hauteur du logo agrandie (peut être grande car le header a une hauteur fixe) */
    width: auto; /* Largeur automatique pour maintenir les proportions */
    object-fit: contain; /* Préserve les proportions de l'image */
    object-position: left; /* Aligne l'image à gauche et centre verticalement */
    display: block; /* Assure un affichage correct */
    max-height: 110%; /* Le logo ne dépassera pas la hauteur du header */
}

/* Styles pour l'ancien logo (conservés au cas où) */
.logo-icon {
    width: 50px;
    height: 50px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2A2E33;
}

.logo-sub {
    font-size: 0.875rem;
    color: #2A2E33;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: white; /* Texte en blanc au lieu de noir */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover:not(.btn-phone-header) {
    color: #FFD100; /* Couleur jaune au survol pour contraste */
}

.btn-phone-header {
    background-color: #FF3333;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-phone-header:hover {
    background-color: #FF1A1A;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2A2E33 0%, #1C2023 100%);
    padding: 4rem 0 4rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-left {
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding-left: 1rem;
    min-height: fit-content;
    align-self: flex-start;
}

.tagline-badge {
    background-color: #FFD100;
    color: #2A2E33;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    display: inline-block;
    font-weight: bold;
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 auto 3.5rem auto;
    line-height: 0.85;
    display: flex;
    flex-direction: column;
    gap: 0;
    letter-spacing: -0.03em;
    transform: scaleY(1.15);
    transform-origin: center;
    text-align: center;
    width: 100%;
}

.hero-title-line1 {
    color: white;
    display: block;
    letter-spacing: -0.03em;
    line-height: 0.85;
}

.hero-title-line2 {
    color: #FFD100;
    display: block;
    text-shadow: 0 0 20px rgba(255, 209, 0, 0.6), 0 0 35px rgba(255, 209, 0, 0.4);
    letter-spacing: -0.03em;
    line-height: 0.85;
    margin-top: -0.1em;
}

.btn-availability {
    background-color: #FF3333;
    color: white;
    padding: 1.3rem 3.5rem;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 3.5rem auto;
    cursor: pointer;
    transition: background-color 0.3s;
    width: fit-content;
    transform: rotate(-2deg);
    transform-origin: center;
    letter-spacing: 0.5px;
    position: relative;
}

.btn-availability span {
    display: inline-block;
    transform: scaleY(1.4);
    line-height: 1;
    font-style: italic;
}

.btn-availability i {
    font-size: 1.5rem;
    transform: scaleY(1.4);
}

.btn-availability:hover {
    background-color: #FF1A1A;
}

.btn-availability i {
    font-size: 1.3rem;
    color: white;
}

.hero-description {
    color: white;
    font-size: 1.05rem;
    max-width: 500px;
    text-align: center;
    margin-bottom: 1.5rem; /* Espacement entre le texte et le bouton */
}

.btn-contact {
    background-color: white;
    color: #FF3333;
    padding: 1.1rem 3.5rem;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: fit-content;
    margin: 0 auto;
    text-decoration: none; /* Pour les liens <a> */
}

.btn-contact:hover {
    background-color: #f8f9fa;
}

.btn-contact i {
    color: #FF3333;
    font-size: 1.3rem;
}

.btn-contact:hover i {
    color: #FF3333;
}

/* Tariff Card */
.hero-right {
    display: flex;
    justify-content: flex-end;
    align-self: flex-start;
    position: relative;
    z-index: 50; /* Permet aux suggestions de passer au-dessus des sections suivantes */
}

.tariff-card {
    background-color: #1C2023;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 60; /* Assure la visibilité des dropdowns d'autocomplétion */
    overflow: visible; /* Important: ne pas couper les suggestions en bas de carte */
}

.tariff-header {
    margin-bottom: 2rem;
}

.tariff-header i {
    color: #F7D400;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tariff-header h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tariff-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.tariff-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Donne de la place au dropdown du 3e champ (au-dessus du bouton orange) */
.tariff-form .form-group-dropoff {
    margin-bottom: 3.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:first-child {
    position: absolute;
    left: 1rem;
    color: rgba(255,255,255,0.5);
    z-index: 2;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 1rem 3rem;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    position: relative;
    z-index: 10 !important;
    pointer-events: auto !important;
    -webkit-user-select: text !important;
    user-select: text !important;
    cursor: text !important;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #F7D400;
    box-shadow: 0 0 0 2px rgba(247, 212, 0, 0.2);
    pointer-events: auto !important;
}

/* Lieu de départ verrouillé */
#departureAddress[readonly] {
    cursor: not-allowed !important;
    opacity: 0.85;
}

#departureAddress[readonly]:focus {
    box-shadow: none !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.input-wrapper.has-location-btn input {
    padding-right: 3rem !important;
    margin-right: 0;
}

.input-wrapper input::placeholder {
    color: rgba(255,255,255,0.5);
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    color: rgba(255,255,255,0.5);
    pointer-events: none;
}

.btn-location {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    transition: color 0.3s;
    border-radius: 4px;
    pointer-events: auto;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
}

.btn-location:hover {
    color: #F7D400;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-location:active {
    color: #FFD100;
}

.btn-location.loading {
    color: #F7D400;
}

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

.btn-location:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-location i {
    font-size: 1.1rem;
}

.btn-estimate {
    background-color: #FF8C00;
    color: white;
    padding: 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 0.5rem;
}

.btn-estimate:hover {
    background-color: #e67e00;
}

/* Case à cocher RGPD */
.rgpd-consent {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.rgpd-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.rgpd-checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
    accent-color: #FF8C00;
    flex-shrink: 0;
}

.rgpd-checkbox-text {
    flex: 1;
    user-select: none;
}

.rgpd-link {
    color: #FF8C00;
    text-decoration: underline;
    transition: color 0.3s;
}

.rgpd-link:hover {
    color: #e67e00;
}

.rgpd-link:focus {
    outline: 2px solid #FF8C00;
    outline-offset: 2px;
    border-radius: 2px;
}

.tariff-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.no-commitment {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-commitment i {
    color: #4CAF50;
    font-size: 0.6rem;
}

.certified-badge {
    background-color: #1A3D36;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem; /* Descend le badge un peu */
}

.certified-badge i {
    color: #4CAF50;
    font-size: 1.25rem;
}

.certified-title {
    font-weight: bold;
    font-size: 0.875rem;
}

.certified-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    background-color: white;
    padding: 4rem 0;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #2A2E33;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FF3333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: #2A2E33; /* Même couleur grise que la section hero */
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: #F5F5F5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: #FF3333;
}

.service-card h3 {
    color: white; /* Texte en blanc */
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: rgba(255,255,255,0.9); /* Texte en blanc avec légère transparence */
    line-height: 1.6;
}

/* Exemples de Dépannages Section */
.examples {
    background-color: #2A2E33; /* Fond gris foncé (échangé avec CTA) */
    padding: 4rem 0;
}

.examples-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.examples-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: white; /* Texte blanc sur fond gris foncé (échangé avec CTA) */
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.examples-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FF3333;
}

.examples-subtitle {
    text-align: center;
    color: white; /* Texte blanc sur fond gris foncé (échangé avec CTA) */
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.example-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 16 / 10;
    background-color: #1C2023;
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.example-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.example-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(42, 46, 51, 0.95) 0%, rgba(42, 46, 51, 0.7) 50%, transparent 100%);
    padding: 2rem;
    transform: translateY(0);
    transition: transform 0.3s;
}

.example-item:hover .example-overlay {
    transform: translateY(0);
}

.example-content {
    color: white;
}

.example-content i {
    font-size: 2rem;
    color: #FFD100;
    margin-bottom: 0.75rem;
    display: block;
}

.example-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.example-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.service-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF3333;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 1rem;
}

.service-tag i {
    color: #FF3333;
    font-size: 0.9rem;
}

/* Service "Enlèvement d'épave" - condition */
.service-tag--condition {
    align-items: flex-start; /* aligne comme un texte sur 1ère ligne */
}

.service-tag--condition i {
    margin-top: 2px; /* ajuste l'icône sur la 1ère ligne */
}

.service-tag--condition .service-tag-text {
    display: block; /* comportement "texte normal" après l'icône */
    line-height: 1.2;
}

.service-tag--condition .service-tag-free {
    color: #FF3333; /* Rouge */
    font-weight: 600;
}

.service-tag--condition .service-tag-condition {
    color: rgba(255, 255, 255, 0.75); /* Gris clair */
    font-weight: 500;
    margin-left: 0.35rem; /* espace après "Gratuit" */
}

/* CTA Section */
.cta {
    background-color: #2A2E33; /* Fond gris pour créer les colonnes sur les côtés */
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px; /* Largeur du trait (ajustable) */
    height: 3px;
    background-color: #1C2023; /* Même couleur que le footer */
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem; /* Padding vertical et horizontal */
}

.cta-title {
    color: white; /* Texte blanc sur fond gris */
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: white; /* Texte blanc sur fond gris */
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-cta {
    background-color: #FF3333;
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.3s;
}

.btn-cta:hover {
    background-color: #FF1A1A;
}

/* Footer */
.footer {
    background-color: #1C2023;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex !important;
    align-items: flex-start !important; /* Aligne tous les éléments en haut */
    align-content: flex-start !important;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Logo footer - Desktop uniquement */
footer .footer-container > img.footer-logo-image,
.footer-container > .footer-logo-image {
    width: auto !important;
    height: 300px !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: top left !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    top: 0 !important;
    transform: translateY(0) !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Assure le bon alignement sur desktop (largeur > 968px) */
@media (min-width: 969px) {
    .footer-container {
        display: flex !important; /* Force flex sur desktop */
        align-items: flex-start !important; /* Force l'alignement en haut */
        align-content: flex-start !important;
    }
    
    footer .footer-container > img.footer-logo-image,
    .footer-container > .footer-logo-image,
    .footer-container .footer-logo-image {
        align-self: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        top: 0 !important;
        transform: translateY(-115px) !important; /* Ajustez cette valeur pour remonter le logo (ex: -20px, -30px, etc.) */
    }
    
    .footer-column {
        align-self: flex-start !important;
    }
    
    /* Force l'alignement du premier élément (logo) en haut */
    .footer-container > *:first-child {
        align-self: flex-start !important;
    }
}

.footer-column {
    flex: 1; /* Les colonnes prennent l'espace restant */
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-top: 0 !important; /* Aligné avec le haut du logo */
    margin-bottom: 1rem;
    color: white;
}

.footer-column p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}


.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.footer-column ul li::before {
    content: '•';
    position: absolute;
    left: 0;
}

.footer-phone {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-share {
    display: inline-block;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* Estimate Result & Error */
.estimate-result {
    background-color: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

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

.result-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-header i {
    color: #4CAF50;
    font-size: 1.5rem;
}

.result-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.result-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.result-value {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.result-price {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.5rem;
}

.btn-contact-result {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn-contact-result:hover {
    background-color: #45a049;
}

.estimate-error {
    background-color: rgba(255, 51, 51, 0.1);
    border: 2px solid #FF3333;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #FF3333;
    animation: slideDown 0.3s ease-out;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: rgba(255,255,255,0.7);
    margin-top: 1.5rem;
}

.loading-indicator i {
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1C2023;
    border: 1px solid rgba(255,255,255,0.2);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 5000;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.autocomplete-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: rgba(255, 255, 255, 0.1);
}

.suggestion-item.suggestion-empty {
    color: rgba(255,255,255,0.6);
    cursor: default;
}

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

.suggestion-item i {
    color: #F7D400;
    font-size: 1rem;
    flex-shrink: 0;
}

.suggestion-item span {
    flex: 1;
}

.suggestion-item:first-child {
    padding-top: 1rem;
}

.suggestion-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Quand les suggestions sont affichées, ajuster le border-radius de l'input */
.autocomplete-wrapper.suggestions-open input {
    border-radius: 8px 8px 0 0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

/* Champ "Où emmener le véhicule" : mêmes règles que les autres champs */
.dropoff-wrapper .autocomplete-suggestions {
    top: 100%;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-radius: 0 0 8px 8px;
}

.dropoff-wrapper.suggestions-open input {
    border-radius: 8px 8px 0 0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-wrapper input {
    pointer-events: auto !important;
    cursor: text !important;
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* Media Queries pour Tablettes */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }

    /* Services: 2 colonnes sur tablette */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Media Queries pour Mobile */
@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        height: 110px; /* Hauteur fixe bloquée pour que le header ne bouge pas */
        padding: 0.05rem 0;
        overflow: hidden; /* Cache ce qui dépasse du header */
    }

    .header-container {
        padding: 0 1rem;
        height: 100%; /* Prend toute la hauteur du header */
    }

    .logo {
        width: 100%; /* Le conteneur logo prend toute la largeur */
        justify-content: flex-start;
        flex: 1; /* Prend l'espace disponible */
    }

    .logo-image {
        height: 600px !important; /* Logo du header */
        width: auto;
        max-height: 100% !important; /* Le logo ne dépassera pas la hauteur du header grâce à overflow: hidden */
        max-width: 100%;
        object-fit: contain;
        object-position: left center;
    }

    .nav {
        gap: 0.75rem; /* Espacement réduit entre les éléments */
    }

    .nav a {
        font-size: 0.75rem; /* Services plus petit */
    }
    
    .nav a[href="#services"] {
        display: none !important; /* Cache "Services" sur mobile */
    }

    .btn-phone-header {
        padding: 0.5rem 0.85rem; /* Bouton téléphone plus petit */
        font-size: 0.75rem; /* Numéro plus petit */
    }

    .btn-phone-header i {
        font-size: 0.9rem; /* Icône téléphone plus petite */
    }

    .btn-phone-header span,
    .btn-phone-header .fa-phone + span {
        display: none; /* Cache le texte sur mobile si présent, garde juste l'icône */
    }

    /* Hero Section Mobile */
    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem; /* Padding réduit pour permettre au texte de prendre plus de place */
    }

    .hero-left {
        padding-left: 0;
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tagline-badge {
        font-size: 0.6rem; /* Encore grossi */
        padding: 0.9rem 1.5rem; /* Padding encore augmenté */
        margin-bottom: 2.5rem; /* Plus d'espace */
        width: fit-content; /* S'adapte au contenu */
    }

    .hero-title {
        font-size: 10vw !important;
        margin-bottom: 3rem;
        transform: scaleY(1.3);
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-title-line1,
    .hero-title-line2 {
        line-height: 0.9;
        font-size: inherit !important; /* Hérite de la taille du parent */
    }

    .btn-availability {
        padding: 1.5rem 3rem; /* Padding encore augmenté */
        font-size: 1.6rem; /* Encore grossi */
        margin-bottom: 3rem; /* Plus d'espace */
        transform: rotate(-1deg);
        width: fit-content; /* S'adapte au contenu */
    }

    .btn-availability span {
        transform: scaleY(1.5); /* Étirement vertical encore augmenté */
    }

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

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn-contact {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .hero-right {
        order: 2;
        justify-content: center;
    }

    .tariff-card {
        max-width: 100%;
        padding: 1.5rem;
    }

    .tariff-header h2 {
        font-size: 1.25rem;
    }

    .tariff-subtitle {
        font-size: 0.85rem;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 0.9rem 2.5rem;
        font-size: 0.95rem;
    }

    .btn-location {
        width: 1.8rem;
        height: 1.8rem;
        right: 0.4rem;
    }

    .btn-estimate {
        padding: 1rem;
        font-size: 1rem;
    }

    .tariff-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* Mobile: un peu moins d'espace, mais assez pour voir les suggestions */
    .tariff-form .form-group-dropoff {
        margin-bottom: 2.25rem;
    }

    /* Case à cocher RGPD - Mobile */
    .rgpd-checkbox-label {
        font-size: 0.8rem;
        gap: 0.6rem;
    }

    .rgpd-checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        min-width: 16px;
        margin-top: 0.15rem;
    }

    .rgpd-link {
        display: inline-block;
        margin-top: 0.25rem;
    }

    /* Services Mobile */
    .services {
        padding: 3rem 0;
    }

    .services-title {
        font-size: 1.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Examples Mobile */
    .examples {
        padding: 3rem 0;
    }

    .examples-title {
        font-size: 1.75rem;
    }

    .examples-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .example-overlay {
        padding: 1.5rem;
    }

    .example-content i {
        font-size: 1.5rem;
    }

    .example-content h3 {
        font-size: 1.25rem;
    }

    .example-content p {
        font-size: 0.9rem;
    }

    /* CTA Mobile */
    .cta {
        padding: 3rem 0 0 0 !important; /* TEST: supprime padding-bottom qui crée de l'espace avant footer */
        margin-bottom: 0 !important;
    }
    
    .cta::before {
        width: 200px; /* Largeur réduite du trait sur mobile */
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }

    /* Footer Mobile - Surcharge toutes les règles générales */
    /* TEST 1: Body et HTML - Élimine l'espace venant des parents */
    body {
        line-height: 1 !important; /* Réduit line-height qui peut affecter les images inline */
    }
    
    html {
        font-size: 16px !important;
        line-height: 1 !important;
    }
    
    /* TEST 2: Section avant le footer - Compresser au maximum */
    section.cta {
        margin-bottom: -60px !important; /* Doublé : remonte le footer en chevauchant */
        padding-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    /* TEST 2b: Section examples avant CTA */
    section.examples {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* TEST 3: Footer lui-même - Réduire la hauteur au maximum */
    footer.footer {
        padding: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        margin-top: -100px !important; /* Doublé : remonte le footer pour compresser */
        margin-bottom: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    footer .footer-container,
    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        align-content: flex-start !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
        padding: 0 1rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        margin-top: -60px !important; /* Doublé : compresse encore plus */
        margin-bottom: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }
    
    /* Remet la taille de police normale pour les enfants du footer-container */
    .footer-container > * {
        font-size: 1rem !important;
        line-height: normal !important;
    }
    
    /* Force le premier enfant (logo) à être collé en haut sans espace */
    .footer-container > img.footer-logo-image:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    
    /* Supprime tout espace créé par les pseudo-éléments */
    footer .footer-container::before,
    footer .footer-container::after,
    .footer-container::before,
    .footer-container::after,
    footer .footer-container > img.footer-logo-image::before,
    footer .footer-container > img.footer-logo-image::after,
    .footer-container > img.footer-logo-image::before,
    .footer-container > img.footer-logo-image::after {
        display: none !important;
        content: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Surcharge toutes les règles générales du logo */
    footer .footer-container > img.footer-logo-image,
    footer .footer-container > .footer-logo-image,
    .footer-container > img.footer-logo-image,
    .footer-container > .footer-logo-image,
    .footer-container .footer-logo-image {
        width: 250px !important;
        height: auto !important;
        max-width: 250px !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block !important;
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        border: 0 !important;
        outline: 0 !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
    
    /* Remonte le texte juste en dessous du logo */
    .footer-container > img.footer-logo-image + .footer-column {
        margin-top: -110px !important; /* Remonte beaucoup plus le texte pour être très proche du logo */
        padding-top: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .footer-container > img.footer-logo-image + .footer-column p {
        margin: 0 auto !important;
        margin-bottom: 1.5rem !important; /* Ajoute de l'espace en dessous du texte "Votre partenaire..." */
        text-align: center !important;
        max-width: 90% !important;
    }
    
    .footer-column {
        margin: 0 !important;
        padding: 0 !important;
        flex: none !important;
    }
    
    /* Écarte bien les colonnes "ZONES D'INTERVENTION" et "CONTACT DIRECT" */
    .footer-column:nth-child(3),
    .footer-column:nth-child(4) {
        margin-top: 0.75rem !important; /* Espacement réduit mais visible entre les sections */
    }
    
    .footer-column p {
        margin: 0 !important;
        line-height: 1.2 !important;
    }
    
    .footer-column h3 {
        margin: 0 !important;
        margin-top: 0.15rem !important;
    }
    
    .footer-column ul {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .footer-column ul li {
        margin-bottom: 0.1rem !important;
        padding-left: 0 !important;
    }
    
    .footer-phone {
        margin: 0 !important;
    }

    .footer-bottom {
        padding: 0.1rem 0.8rem !important;
        padding-top: 0.1rem !important;
        padding-bottom: 0.1rem !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
        margin-top: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Estimate Results Mobile */
    .estimate-result {
        padding: 1.25rem;
    }

    .result-header h3 {
        font-size: 1.1rem;
    }

    .result-value {
        font-size: 1rem;
    }

    .result-price {
        font-size: 1.25rem;
    }

    .btn-contact-result {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Media Queries pour Petits Mobiles */
@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }

    .nav {
        gap: 0.75rem;
    }

    .btn-phone-header {
        padding: 0.5rem 0.75rem;
    }

    .hero-title {
        font-size: 10vw !important; /* Garde la taille vw définie dans 768px */
    }

    .btn-availability {
        padding: 0.9rem 1.5rem;
        font-size: 1.1rem;
    }

    .btn-contact {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .tariff-card {
        padding: 1.25rem;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
    }

    .services-title,
    .examples-title,
    .cta-title {
        font-size: 1.5rem;
    }
}