.bg-black {
    background-color: #000 !important;
}

.navbar-brand .logo-img {
    max-height: 50px;
    width: auto;
    display: block;
    position: relative;
}

.banner-fullpage {
    width: 100%;
    min-height: calc(100vh - 76px); /* avant : height: 100vh (le header sticky prend de la place) */
    background: linear-gradient(to bottom, #0000009e, rgb(34 29 29 / 20%)), url('/templates/img/bg6.webp') center center / cover no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.titre-p,
.titre-p h1,
.titre-p p {
    text-align: left !important;
}

.titre-ville {
    padding-top: 20px !important;
}

.banner-fullpage h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    text-align: left;
}

.banner-fullpage p {
    font-size: 1.0rem;
    margin-bottom: 0rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    text-align: left;
}

.banner-fullpage .btn-primary {
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 6px 12px #2125298a;
    transition: background-color 0.3s ease;
}

.banner-fullpage .btn-primary:hover {
    background-color: #4a00e0;
    box-shadow: 0 6px 12px #2125298a;
}

@media (max-width: 768px) {
    .banner-fullpage h1 {
        font-size: 2.2rem;
    }
    .banner-fullpage p {
        font-size: 1.1rem;
    }
}

/* ============================================================
   FORMULAIRES DE RÉSERVATION / RECHERCHE PRINCIPALE
   ============================================================ */
.banner-fullpage form .form-label,
.banner-fullpage form label {
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    margin-bottom: 5px;
}

.banner-fullpage form .form-control,
.banner-fullpage form .form-select {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: 0.3s ease;
}

.banner-fullpage form .form-control:focus,
.banner-fullpage form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
    outline: none;
}

form .btn-primary {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(120deg, #ffc720, #f7bc11);
    color: #000;
    border: none;
    transition: background 0.3s ease;
}

form .btn-primary:hover {
    background: linear-gradient(135deg, #ffc720, #f7bc11, #fdd152);
    color: #000;
    box-shadow: 0 4px 10px rgb(17, 0, 0);
}

@media (min-width: 768px) {
    form .col-md-3,
    form .col-md-2 {
        margin-bottom: 0 !important;
        text-align: left;
        color: #fff !important;
    }
    form .col-button {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {
    form .col-button {
        margin-top: 10px;
    }
    form .btn-primary {
        width: 100%;
    }
}

/* CARDS CARS & HOVER */
.car-info i { margin-right: 5px; }
.price-day { font-weight: bold; font-size: 15px; color: #0d6efd; padding-top: 5px; }
.cara { font-size: 11px; margin-bottom: 12px; }
.smilaire { font-size: 11px; margin-bottom: 5px; }
.car-info { font-size: 0.9rem; color: #555; }
.price-total { font-weight: bold; color: #198754; font-size: 1.1rem; padding-top: 5px; }
.info-book { font-size: 11px; margin-bottom: 5px; }
.info-caution { font-size: 11px; padding-top: 5px; }

.mb-41,
.h-1001 {
    transition: box-shadow .3s ease-out, transform .3s ease-out;
    transform-origin: center;
    transform: scale(1,1);
}

.mb-41:hover,
.h-1001:hover {
    background: #f9f8f5 !important;
    box-shadow: 0 4px 22px 2.4px rgba(0,0,0,.12);
    transform: scale(1.03,1.03);
}

.filter form label,
.res form label,
.cont form label {
    color: #000 !important;
}

@media (max-width: 767.98px) {
    .offre { margin-bottom: 20px; }
    .banner-fullpage h1 { padding-top: 20px; }
    .navbar-brand .logo-img {
        max-height: 30px;
        width: auto;
        display: block;
        position: relative;
    }
}

/* EXTRAS & CLIENT CONTAINER */
.form-check-inline {
    margin: 6px 13px 6px 6px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.2s;
}

.form-check-inline:hover {
    background-color: #eef6ff;
}

.form-check-input {
    transform: scale(1.2);
    margin-right: 6px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
}

.extras-container,
.client-container,
.det-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f8f9fa;
}

.extras-container {
    margin-top: 15px;
}

.mb-3 {
    margin-bottom: 15px !important;
}

.client-container .form-control,
.det-container .form-control {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: 0.3s ease;
}

.client-container label {
    color: #000 !important;
    font-weight: 600;
    margin-bottom: 5px;
}

/* BOUTON BLOG */
.btn-blog {
    display: inline-block;
    padding: 8px 18px;
    background: #ff0012;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    width: max-content;
}

.btn-blog:hover {
    background: #e40212;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.det-caution {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0px 10px 20px 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #d8ebd4;
}

.det-total {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0px 10px 20px 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #e2eaf2;
}

.my-5 h2 {
    margin-bottom: 20px;
}

hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: var(--bs-border-width, 1px) solid;
    opacity: .25;
}

.h-100 img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}

.btn-gold {
    background: linear-gradient(135deg, #212529, #4b5b68);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* avant : all */
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #4b5b68, #212529);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
    color: #fff;
    text-decoration: none;
}

.det-totals {
    color: #878686;
    font-size: 10px;
}

.ville-page a {
    text-decoration: none !important;
    color: #fff !important;
}

/* FLOATING BUTTONS */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
}

.btn-floating {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; /* avant : all */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-floating.call {
    background-color: #ffc107;
    color: #000 !important;
}

.btn-floating.call:hover {
    background-color: #e9b006;
}

.btn-floating.whatsapp {
    background-color: #25d366;
}

.btn-floating.whatsapp:hover {
    background-color: #1eb85a;
}

@media (max-width: 576px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    .btn-floating {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ============================================================
   CORRECTIF SPECIFIQUE BLOG & SIDEBAR
   ============================================================ */
.sidebar-widget form .form-control {
    padding: 6px 12px !important;
    font-size: 14px !important;
    height: auto !important;
}

.sidebar-widget form .btn {
    padding: 6px 14px !important;
}

.sidebar-widget p,
.sidebar-widget div {
    margin-bottom: 0;
    line-height: 1.3 !important;
}

/* ============================================================
   CORRECTIF FORCE POUR LA BARRE DE RECHERCHE DU BLOG
   ============================================================ */
body .sidebar-widget form .form-control,
body .widget_search form .form-control,
body form.search-form .form-control,
body input[type="search"],
body input[name="s"] {
    padding: 6px 12px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

body .sidebar-widget form .btn,
body .widget_search form .btn,
body form.search-form .btn {
    padding: 6px 14px !important;
    height: 38px !important;
    min-height: 38px !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .sidebar-widget form,
body .widget_search form,
body form.search-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
}

body .sidebar-widget,
body .widget_search {
    margin-bottom: 25px !important;
    padding: 15px !important;
}

/* ============================================================
   BLOG - MISE EN PAGE DES ARTICLES
   ============================================================ */
body article {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

body article p {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    line-height: 1.6 !important;
}

body article h2 {
    margin-top: 28px !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

body article > h2:first-child {
    margin-top: 0 !important;
}

body article h3 {
    margin-top: 22px !important;
    margin-bottom: 10px !important;
    line-height: 1.35 !important;
}

body article ul,
body article ol {
    margin-top: 5px !important;
    margin-bottom: 16px !important;
    padding-left: 25px;
    line-height: 1.6 !important;
}

body article li {
    margin-bottom: 5px !important;
    line-height: 1.6 !important;
}

body article > *:first-child {
    margin-top: 0 !important;
}

body article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

body article a {
    line-height: inherit;
}

body article blockquote {
    margin: 20px 0;
    padding: 12px 20px;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    body article {
        font-size: 15px;
        line-height: 1.55;
    }
    body article p {
        margin-bottom: 12px !important;
        line-height: 1.55 !important;
    }
    body article h2 {
        margin-top: 24px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }
    body article h3 {
        margin-top: 20px !important;
        margin-bottom: 8px !important;
    }
    body article ul,
    body article ol {
        margin-bottom: 14px !important;
        padding-left: 22px;
    }
}

/* ==========================================
   HEADER COLLANT (version anglais)
   Reste visible en haut au défilement, mais dans le flux de la page :
   plus de chevauchement, plus besoin de décaler la bannière ou le body.
   ========================================== */
header,
.navbar {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}
/* ===== Chiffres clés (+10 000 / +350 / +20 / +25) : en gras partout, 2 par ligne sur mobile ===== */
.display-5.text-primary, .display-5.text-success, .display-5.text-warning, .display-5.text-danger,
.ex-chiffre { font-weight: 700 !important; letter-spacing: -.5px; white-space: nowrap; line-height: 1.1; }
@media (max-width: 767.98px) {
  .row:has(> [class*="col-md-3"] > .display-5.text-success) { display: flex; flex-wrap: wrap; }
  .row:has(> [class*="col-md-3"] > .display-5.text-success) > [class*="col-md-3"] { flex: 0 0 50%; max-width: 50%; margin-bottom: 1.25rem !important; }
  .row:has(> [class*="col-md-3"] > .display-5.text-success) .display-5 { font-size: clamp(1.9rem, 9vw, 2.6rem); margin-bottom: .2rem; }
  .row:has(> [class*="col-md-3"] > .display-5.text-success) .text-muted { font-size: .9rem; line-height: 1.25; }
}

/* ==========================================================
   Pages modèles : bloc photo et bloc fiche alignés (même hauteur)
   + bloc « Contact direct » propre sur mobile
   ========================================================== */
@media (min-width: 768px) {
  .row:has(> [class*="col-"] > .car-card > .car-img) { align-items: stretch !important; }
  .row:has(> [class*="col-"] > .car-card > .car-img) > [class*="col-"]:has(> .car-card) {
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
  }
  .row:has(> [class*="col-"] > .car-card > .car-img) > [class*="col-"] > .car-card {
    flex: 1 1 auto;
  }
  .car-card:has(> .car-img:only-child) {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .car-card > .car-img:only-child {
    height: auto !important;
    max-height: 100%;
    object-fit: contain;
  }
}
@media (max-width: 767.98px) {
  .row:has(> [class*="col-"] > .car-card > .car-img) > [class*="col-"] > .car-card { margin-top: 20px; }
  .car-card .btn-reserver { display: block; margin-top: 20px; text-align: center; }
  .contact-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }
  .contact-links > strong { grid-column: 1 / -1; margin: 0 !important; }
  .contact-links > a.btn {
    width: auto !important;
    flex: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 10px 6px !important;
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
}
