/* ============================================
   GLOBAL
   ============================================ */

:root {
    --dark: #2b2b2b;
    --dark-lighter: #3a3a3a;
    --gray: #6c757d;
    --light: #f5f5f5;
    --white: #ffffff;
    --text: #333333;
    --text-light: #cccccc;
    --border: #e0e0e0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

section {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }

p, li {
    font-size: 1.05rem;
    color: #555;
}

a {
    color: var(--dark);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gray);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   NAVBAR
   ============================================ */

.site-navbar {
    background-color: black;
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.2s ease;
}

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

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--white);
}

.site-navbar .dropdown-menu {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.site-navbar .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    color: var(--text);
}

.site-navbar .dropdown-item:hover {
    background-color: var(--light);
    color: var(--dark);
}

.nav-icon {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    padding: 0.25rem 0.4rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-icon:hover {
    color: var(--white);
}

.nav-icon-logout:hover {
    color: #e0e0e0;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-light {
    background-color: var(--light);
}

.section-dark {
    background-color: var(--dark);
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-dark p {
    color: var(--text-light);
}

/* ============================================
   CARDS
   ============================================ */

.card-custom {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.card-custom:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-dark-custom {
    background-color: var(--dark);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.btn-dark-custom:hover {
    background-color: var(--dark-lighter);
    color: var(--white);
}

.btn-outline-dark-custom {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
    padding: 0.5rem 1.6rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-outline-dark-custom:hover {
    background-color: var(--dark);
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: black;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.footer-heading {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.3;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    opacity: 0.9;
    filter: brightness(1.1);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

.site-footer small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-control:focus {
    border-color: var(--dark);
    box-shadow: 0 0 0 0.2rem rgba(43, 43, 43, 0.15);
}

/* ============================================
   CONTENT OVERLAYS (pages with background images)
   ============================================ */

.content-overlay {
    background: rgba(255, 255, 255, 0.92);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   DRIVER CARDS (presentation page)
   ============================================ */

.conducteur-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

/* ============================================
   PAGE HERO (secondary pages)
   ============================================ */

.page-hero {
    background-color: #FFD700;
    padding: 3rem 0;
}

.page-hero h1 {
    color: black;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

/* ============================================
   CTA TELEPHONE
   ============================================ */

.cta-phone {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.cta-phone-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--dark);
    color: var(--white);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-phone-toggle:hover {
    background-color: var(--dark-lighter);
    transform: scale(1.05);
}

.cta-phone-numbers {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    min-width: 240px;
}

.cta-phone.open .cta-phone-numbers {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cta-phone-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border);
}

.cta-phone-link:last-child {
    border-bottom: none;
}

.cta-phone-link:hover {
    background-color: var(--light);
    color: var(--dark);
}

.cta-phone-link span {
    font-weight: 600;
    color: var(--dark);
}

@media (max-width: 576px) {
    .cta-phone {
        bottom: 1rem;
        right: 1rem;
    }

    .cta-phone-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .cta-phone-numbers {
        right: 0;
        min-width: 220px;
        max-width: calc(100vw - 2rem);
    }
}

/* ============================================
   UTILITY
   ============================================ */

.separator {
    width: 60px;
    height: 3px;
    background-color: var(--dark);
    margin: 1rem auto;
    border: none;
}

/* ============================================
   RESPONSIVE MOBILE GLOBAL
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }

    /* Page hero (présentation, médical, taxi, contact, mentions) */
    .page-hero {
        padding: 2rem 0;
    }

    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Cards */
    .card-custom {
        padding: 1.25rem 1rem;
    }

    /* Footer */
    .site-footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }

    .site-footer .col-md-4:last-child {
        text-align: center !important;
    }

    /* Overlays */
    .content-overlay {
        padding: 1.5rem 1rem;
    }

    /* Navbar logo */
    .navbar-logo {
        width: 55px;
        height: 55px;
    }

    /* Profil utilisateur — avatar centré au-dessus des infos */
    .card-body .col-md-4,
    .card-body .col-md-8 {
        text-align: center;
    }

    .card-body .col-md-4 {
        margin-bottom: 1rem;
    }

    /* Admin create / formulaires */
    .container-lg.mt-5,
    .container.mt-5 {
        margin-top: 2rem !important;
    }

    /* Admin — filtre chauffeur select */
    .filter-form select {
        width: 100% !important;
        min-width: unset !important;
    }

    /* Boutons pleine largeur sur mobile */
    .card-footer .btn {
        width: 100%;
    }
}
