/**
 * Custom CSS pour Kings Corner Hotel
 * Hero avec image de fond + Navbar visible + Logo + Carte Google Maps
 */

/* Fix Navbar - Transparente en haut, Blanche au scroll */
.header {
    background: transparent !important;
    position: fixed !important; /* Fixed au lieu de sticky pour passer par-dessus les hero */
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease-in-out;
}

/* Couleur du texte et logo quand fond transparent (Haut de page) */
.header .button,
.header a {
    color: white !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); /* Ombre pour garantir la lisibilité sur des images claires */
    transition: all 0.3s ease-in-out;
}

.header__logo img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Rend le logo blanc quand transparent */
    transition: all 0.3s ease;
}

/* État SCROLLÉ (La classe .is-sticky est ajoutée dynamiquement par le thème via main.js) */
.header.is-sticky, .header.is-scroll, .header.is-in-view {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Couleur du texte et logo quand fond blanc (Scrollé) */
.header.is-sticky .button,
.header.is-sticky a,
.header.is-scroll .button,
.header.is-scroll a {
    color: #122223 !important;
}

.header.is-sticky .header__logo img,
.header.is-scroll .header__logo img {
    filter: none; /* Logo retrouve ses couleurs d'origine sur fond blanc */
}

/* Style du logo dans le footer */
.footer img {
    max-width: 260px;
    width: auto;
    height: auto;
}

/* Style du logo dans le menu mobile */
.menuFullScreen__bottom img {
    max-width: 200px !important;
    width: auto;
    height: auto;
}

/* Custom CSS hero section supprimé; on utilise hero--page désormais */

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__bg__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    padding: 200px 0;
}

.hero__title {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__text {
    font-size: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Styles pour la section de contact avec carte Google Maps */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.contact-info i {
    display: inline-block;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 991px) {
    .hero__title {
        font-size: 50px;
    }

    .hero__content {
        padding: 150px 0;
    }

    .header__logo img {
        max-height: 90px;
    }

    .contact-info {
        margin-top: 40px;
        padding-left: 0 !important;
    }
}

@media (max-width: 575px) {
    .hero__title {
        font-size: 36px;
    }

    .hero__text {
        font-size: 16px;
    }

    .hero__content {
        padding: 100px 0;
    }

    .header__logo img {
        max-height: 70px;
    }

    .footer img {
        max-width: 200px;
    }

    .map-container iframe {
        height: 400px !important;
    }
}

/* Image Cover Helper */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Styles pour les boutons de paiement */
.payment-method-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.payment-method-btn:hover {
    border-color: var(--color-accent-1);
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Style pour reCAPTCHA centré */
.g-recaptcha {
    display: inline-block;
}

/* Standardiser la hauteur de tous les en-têtes de pages (hero--page) pour qu'ils aient la même taille */
.hero--page {
    position: relative;
    overflow: hidden;
    min-height: 100vh !important; /* Prend exactement la taille de l'écran */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero--page .hero__content {
    width: 100%;
    /* Utilisation de Flexbox pour centrer parfaitement le contenu textuel au milieu */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0px !important; /* Retiré pour que flexbox centre parfaitement au milieu exact */
    padding-bottom: 0px !important;
}

/* Reduire légèrement la taille globale des textes dans les bannières */
.hero--page .hero__title {
    font-size: 2.8rem !important; /* Plus petit que 3.5rem original */
    line-height: 1.2;
    margin-bottom: 1rem !important;
}

.hero--page .hero__subtitle {
    font-size: 0.75rem !important; /* Plus petit */
    margin-bottom: 0.8rem !important;
}

.hero--page .hero__description {
    font-size: 1rem !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Styles pour le nouveau formulaire de réservation (cercles dorés fins) */
.btn-counter-new {
    width: 36px;
    height: 36px;
    border: 1px solid #D4A051;
    border-radius: 50%;
    background: white;
    color: #D4A051;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-counter-new span {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    margin-top: -2px; /* Ajustement vertical fin du + et - */
}

.btn-counter-new:hover {
    background-color: #D4A051;
    color: white;
    transform: scale(1.05);
}

.btn-counter-new:active {
    transform: scale(0.95);
}

/* Masquer les flèches du champ number natif */
.js-adults-count, .js-children-count {
    width: 30px; 
    text-align: center; 
    border: none; 
    font-size: 16px; 
    font-weight: 700; 
    color: #122223;
    -moz-appearance: textfield;
}

.js-adults-count::-webkit-outer-spin-button,
.js-adults-count::-webkit-inner-spin-button,
.js-children-count::-webkit-outer-spin-button,
.js-children-count::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 991px) {
    .hero--page {
        min-height: 100vh !important;
    }

    .hero--page .hero__content {
        padding-top: 80px !important;
    }
    
    .hero--page .hero__title {
        font-size: 2.2rem !important;
    }
}

/* Affichage des listes dans les articles de blog */
ul.my-custom-list {
    list-style-type: disc !important;
    list-style-position: inside !important;
    padding-left: 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
}

ul.my-custom-list li {
    list-style-type: disc !important;
    display: list-item !important;
    margin-bottom: 0.5rem !important;
    color: inherit;
}