/* === Variables globales === */
:root {
    /* Couleurs */
    --body-background-color: #f9fafb;
    --main-blue: #004A99;
    --light-blue: #6CC6FF;
    --indigo-soutenu: #4f46e5;
    --indigo-clair: #eef2ff;
    --indigo-hover: #4338ca;
    --gray-dark: #1e293b;
    --gray-medium: #64748b;
    --gray-light: #e0e7ff;
    --text-color: #374151;
    --white: #fff;

    /* Espacements */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;

    /* Bordures & rayons */
    --border-radius: 0.5rem;
    --border-width: 1px;

    /* Ombres */
    --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
    --box-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-fast: 0.2s ease;

    /* Police */
    --font-base: 'Inter', sans-serif;
}

/* === Global === */
body {
    background-color: var(--body-background-color);
    color: var(--text-color);
    font-family: var(--font-base);
    line-height: 1.6;
}

header {
    background-color: var(--white);
}

.navbar-brand  {
    img {
        max-height: 120px !important; /* or to whatever you want here */
    }
}
.btn {
    margin-right: 0.5rem;
}

.section {
    background-color: var(--body-background-color);
    padding: var(--spacing-sm) 0;

    h2 {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.2;
        color: var(--main-blue);
        margin-bottom: var(--spacing-md);
    }

    .card {
        border: var(--border-width) solid var(--gray-light);
        border-radius: var(--border-radius);
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }

    .card:hover {
        transform: translateY(-3px);
        box-shadow: var(--box-shadow-hover);
    }
}

/* === Section Fleet === */
/* Section Fleet */
.section_fleet {
    .card-img {
        height: 9rem;
    }

    .card-img img {
        max-height: 9rem;
        object-fit: cover;
    }

    .card-body h5.card-title {
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .card-body ul {
        margin-top: 0.75rem;
        margin-bottom: 0;
        font-size: 0.875rem;
    }

    .card-body .mt-auto {
        margin-top: auto;
        padding-top: 0.75rem;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* === Section Services === */
.section_services {
    .card-body h5 {
        color: var(--main-blue);
        font-weight: 600;
        transition: color var(--transition-fast);
    }

    .card-body p {
        font-size: 0.9rem;
        color: var(--gray-medium);
    }

    .card i {
        transition: transform var(--transition-fast), color var(--transition-fast);
    }

    .card:hover i {
        transform: scale(1.1);
        color: var(--light-blue);
    }

    .card:hover h5 {
        transform: scale(1.1);
        color: var(--indigo-soutenu);
    }
}

/* === Section Contact Commercial === */
.section_contact_commercial {
    background-color: var(--indigo-clair);
    border-left: 4px solid var(--indigo-soutenu); /* Indigo soutenu */
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

    .section_container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .contact-title {
        font-weight: 600; /* fw-semibold */
    }

    .contact-title {
        font-weight: 600; /* fw-semibold */
    }

    .contact-subtitle {
        font-size: 0.875rem; /* small */
        color: var(--gray-medium); /* gris moyen */
    }

    .contact-buttons a.btn {
        margin-right: 0.5rem;
    }
}

/* === Section Contact === */
.section_contact {
    .section_container {
        display: flex;
        flex-wrap: wrap; /* pour que ça reste responsive */
        gap: 1rem;

        .col {
            flex: 1; /* chaque colonne prend 50% de l'espace */
            min-width: 300px; /* largeur minimale pour que ça reste lisible sur mobile */
        }

    }

    .contact-form {
        & input,
        & textarea {
            border-radius: 0.25rem;
        }

        .honeypot {
            display: none;
        }
    }

    .contact-info {
        height: 100%; /* pour aligner avec le formulaire si nécessaire */
    }
}






/* === Section Contact === */
.modal_detail {
    /* --- Overlay --- */
    width: 100%;
    min-height: 360px;

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
        justify-content: center;
        align-items: center;
    }

    /* --- Contenu --- */

    .modal-content {
        background: #fff;
        border-radius: 16px;
        padding: 2rem;
        width: 90%;
        max-width: 1000px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        animation: fadeIn 0.3s ease;
        position: relative;
    }

    /* --- Titre --- */

    .modal-title {
        font-size: 1.6rem;
        margin-bottom: .2rem;
        color: #222;
    }

    .modal-subtitle {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* --- Galerie --- */

    .gallery {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        margin-bottom: 1.5rem;
    }

    .gallery img {
        border-radius: 12px;
        height: 280px;
        object-fit: cover;
        flex-shrink: 0;
        transition: transform 0.2s;
        cursor: pointer;
    }

    .gallery img:hover {
        transform: scale(1.05);
    }

    /* --- Détails --- */

    .details h3 {
        margin-bottom: .5rem;
        font-size: 1.2rem;
    }

    .details ul {
        list-style: none;
        padding: 0;
        margin-bottom: 1rem;
    }

    .details li {
        margin-bottom: .3rem;
        font-size: 0.95rem;
        color: #444;
    }

    /* --- Boutons --- */

    .btn-primary, .btn-secondary {
        border: none;
        padding: .7rem 1.5rem;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.95rem;
        transition: background 0.3s;
    }

    .btn-primary {
        background: #007bff;
        color: #fff;
    }

    .btn-primary:hover {
        background: #0056b3;
    }

    .btn-secondary {
        background: #e9ecef;
        color: #333;
        margin-left: .5rem;
    }

    .btn-secondary:hover {
        background: #d6d8db;
    }

    /* --- Fermeture --- */

    .modal-close {
        position: absolute;
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
        cursor: pointer;
        color: #666;
    }

    /* --- Animation --- */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* --- Bouton ouverture --- */

    .btn-open {
        padding: .7rem 1.2rem;
        background: #007bff;
        color: #fff;
        border-radius: 8px;
        border: none;
        cursor: pointer;
    }

    .btn-open:hover {
        background: #0056b3;
    }
}




