
/* =====================================================
   LVISITA - FEUILLE DE STYLE PRINCIPALE
   Compatible Bootstrap 5
   Responsive : ordinateur, tablette et smartphone
===================================================== */

/* =====================================================
   1. RESET GENERAL
===================================================== */

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

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

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

a {
    text-decoration: none;
}

/* =====================================================
   2. CONTENEURS
===================================================== */

.container {
    width: 100%;
    max-width: 1140px;
}

/* =====================================================
   3. HEADER / NAVBAR
===================================================== */

.navbar {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    font-size: 25px;
    font-weight: bold;
    color: #0879bd;
}

.navbar-brand:hover {
    color: #05649e;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 14px;
}

.navbar-nav .nav-link:hover {
    color: #0879bd;
}

/* =====================================================
   4. BOUTONS
===================================================== */

.btn-primary {
    background-color: #0879bd;
    border-color: #0879bd;
}

.btn-primary:hover {
    background-color: #05649e;
    border-color: #05649e;
}

.btn {
    border-radius: 8px;
}

/* =====================================================
   5. SECTION HERO
===================================================== */

.hero {
    width: 100%;
    max-width: 100%;
    padding: 55px 0;
    overflow-x: clip;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero .container {
    width: 100%;
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
}

.hero h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero p {
    color: #ffffff;
    font-size: 18px;
}

/* =====================================================
   6. FORMULAIRE DE RECHERCHE
===================================================== */

.search-form,
#searchForm {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: left;
    box-sizing: border-box;
}

/* Empêcher les colonnes Bootstrap de dépasser */

#searchForm .row {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#searchForm .row > div {
    min-width: 0;
}

/* Champs du formulaire */

#searchForm .form-control,
#searchForm .form-select,
#searchForm button {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#searchForm .form-control,
#searchForm .form-select {
    min-height: 45px;
    border-radius: 7px;
}

#searchForm label {
    font-weight: 600;
    margin-bottom: 7px;
    color: #444;
}

#searchForm button {
    min-height: 45px;
    white-space: normal;
}

/* =====================================================
   7. BOUTON GPS
===================================================== */

#gpsButton {
    width: 100%;
    min-height: 45px;
    border-radius: 7px;
    font-size: 14px;
}

#gpsMessage {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

/* =====================================================
   8. TITRES DES SECTIONS
===================================================== */

.section-title {
    color: #0879bd;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

/* =====================================================
   9. CARTES SPECIALITES
===================================================== */

.specialty-card {
    height: 100%;
    padding: 20px 15px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.specialty-card i {
    display: block;
    margin-bottom: 12px;
    color: #0879bd;
    font-size: 32px;
}

.specialty-card h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* =====================================================
   10. CARTES MEDECINS
===================================================== */

.doctor-card {
    height: 100%;
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}

.doctor-card img {
    display: block;
    width: 130px;
    height: 130px;
    margin: 0 auto 15px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #e8f4fb;
}

.doctor-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.doctor-card p {
    margin-bottom: 8px;
    color: #666;
}

/* =====================================================
   11. PROFIL MEDECIN
===================================================== */

.doctor-profile {
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.doctor-profile img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* =====================================================
   12. FORMULAIRES GENERAUX
===================================================== */

.form-control,
.form-select {
    max-width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: #0879bd;
    box-shadow: 0 0 0 0.2rem rgba(8, 121, 189, 0.15);
}

/* =====================================================
   13. SLIDER
===================================================== */

.carousel,
.carousel-inner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-item img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
}

/* =====================================================
   14. TABLEAUX
===================================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    max-width: 100%;
}

/* =====================================================
   15. FOOTER
===================================================== */

footer {
    width: 100%;
    margin-top: 40px;
    padding: 30px 15px;
    background-color: #0879bd;
    color: #ffffff;
    text-align: center;
}

footer a {
    color: #ffffff;
}

footer a:hover {
    color: #e2f3ff;
}

/* =====================================================
   16. RESPONSIVE TABLETTES
===================================================== */

@media (max-width: 991.98px) {

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 30px;
    }

    .search-form,
    #searchForm {
        padding: 18px;
    }

    .carousel-item img {
        height: 280px;
    }
}

/* =====================================================
   17. RESPONSIVE SMARTPHONES
===================================================== */

@media (max-width: 767.98px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero {
        width: 100%;
        padding: 25px 0;
    }

    .hero .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero h1 {
        font-size: 25px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 15px;
    }

    .search-form,
    #searchForm {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 20px 0 0;
        padding: 13px;
        border-radius: 10px;
    }

    #searchForm .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    #searchForm .row > div {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #searchForm .form-control,
    #searchForm .form-select,
    #searchForm button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 45px;
        font-size: 14px;
    }

    .section-title {
        font-size: 23px;
    }

    .doctor-card {
        padding: 15px;
    }

    .doctor-card img {
        width: 110px;
        height: 110px;
    }

    .carousel-item img {
        height: 200px;
    }

    footer {
        padding: 20px 12px;
        font-size: 14px;
    }
}

/* =====================================================
   18. PETITS SMARTPHONES
===================================================== */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 22px;
    }

    .search-form,
    #searchForm {
        padding: 10px;
    }

    #searchForm .form-control,
    #searchForm .form-select,
    #searchForm button {
        font-size: 13px;
    }

    .section-title {
        font-size: 21px;
    }
}


/* CORRECTION FORCEE DU FORMULAIRE MOBILE */
@media (max-width: 767px) {

    body,
    main,
    .hero,
    .hero .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #searchForm {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 20px 0 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    #searchForm * {
        max-width: 100%;
        box-sizing: border-box;
    }

    #searchForm .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}