.page{
    background-color: #F4EDE0;
    display:flex;
    flex-direction: row ;
    /* stretch : le bandeau vert épouse la hauteur réelle du contenu,
       plus de « trou » beige sous la barre de gauche */
    align-items: stretch;
    min-height: 100vh;
}

.ligne{
    display: flex;
    flex-direction: row;
    gap:2rem;
    color:#D9B36C;
    text-align: center;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

/* Survol d'une étape du récap */
.ligne:hover{
    color:#F4EDE0;
    background-color: rgba(217, 179, 108, 0.15);
    transform: translateX(4px);
}

/* Étape en cours : mise en évidence dans le récap de gauche */
.ligne.actif{
    color:#F4EDE0;
    background-color: rgba(217, 179, 108, 0.22);
}


.ligne.actif .numero{
    background-color:#D9B36C;
    border-color:#D9B36C;
    color:#16321F;
    font-weight: 700;
}


.bandeau-recap{
    width:20%;
    max-width: 400px;
    background-color: #16321F;
    display: flex;
    flex-direction: column;
    gap:2rem;
    align-items: center;
    justify-content: start;
    border-right: solid #D9B36C 4px;
    padding-bottom: 3rem;
    box-sizing: border-box;
}

.logo-recap{
    color:#D9B36C;
    border:dashed #D9B36C;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 3rem;
}

.titre{
    color:#e6dfc4;
}

/* Le récap compte jusqu'à 9 étapes : gap resserré pour que tout tienne */
.information{
    display:flex;
    flex-direction: column;
    gap:14px;
}

.numero{
    width:24px;
    height:24px;
    border-radius: 999px;
    border:solid #D9B36C 2px;
    display:flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trait{
    height: 100%;
    width:4px;
    background-color: #D9B36C;
}

.centre{
    width:60%;
    max-width: 800px;
    min-height: 560px;
    margin: 2rem auto;                 /* centré horizontalement dans l'espace restant */
    background-color:#e6dfc4;
    border:solid #D9B36C 2px;
    border-radius: 16px;
    padding: 2.5rem;
    box-sizing: border-box;
    /* Le formulaire est centré dans la case ; "safe center" bascule en
       haut de page quand une étape est plus grande que la case (pas de coupe) */
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    box-shadow: 0 12px 32px rgba(22, 50, 31, 0.18);
    transition: max-width 0.25s ease, width 0.25s ease;
}

/* Étape « Vos chambres » : le panneau s'élargit pour afficher
   plusieurs fiches côte à côte */
.centre.large{
    width: 88%;
    max-width: 1150px;
}

form{
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;   /* les étapes s'empilent, une seule visible */
    align-items: center;
}

.centre.large form{
    max-width: 1000px;
}

/* Le formulaire (ancien bloc) vit désormais dans le panneau central :
   chaque étape occupe toute la largeur du panneau. */
.bloc.etape{
    width: 100%;
    box-sizing: border-box;
}

/* Libellés des champs lisibles sur le fond vert foncé du panneau
   (on épargne les libellés des cases à cocher qui ont leur propre style) */
.centre form label:not(.case-checkbox){
    color: #16321F;
    align-self: flex-start;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

/* En-tête de chaque étape (logo + titres) : un peu d'air en dessous */
.colonne:first-child{
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

/* Boutons Suivant / Retour : bien détachés du contenu de l'étape */
.bloc.etape > .colonne:last-child{
    margin-top: 2rem;
}

/* ===== Informations à remplir disposées sur 2 colonnes ===== */
.grille-champs{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.25rem;
    width: 100%;
    margin-top: 1rem;
}

.champ{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;               /* empêche les champs de déborder de leur colonne */
}

/* Un élément qui doit occuper toute la largeur (critères, messages...) */
.pleine-largeur{
    grid-column: 1 / -1;
}

@media (max-width: 640px){
    .grille-champs{ grid-template-columns: 1fr; }   /* 1 colonne sur mobile */
    .centre{ width: 92%; padding: 1.5rem; }
    .centre.large{ width: 92%; padding: 1.5rem; }
}

/* ===== Mise en page sur téléphone / petite tablette =====
   Le récap passe au-dessus du formulaire, en une bande de numéros. */
@media (max-width: 860px){
    .page{
        flex-direction: column;
        align-items: stretch;
    }

    .bandeau-recap{
        width: 100%;
        max-width: none;
        gap: 1rem;
        padding-bottom: 1.2rem;
        border-right: none;
        border-bottom: solid #D9B36C 4px;
    }

    .logo-recap{ margin-top: 1.5rem; }

    .information{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 0 10px;
    }

    .ligne{
        gap: 0.5rem;
        padding: 4px 8px;
        font-size: 0.85rem;
    }

    .ligne:hover{ transform: none; }

    /* sur mobile, seul le libellé de l'étape en cours est affiché */
    .ligne .titre-recap{ display: none; }
    .ligne.actif .titre-recap{ display: block; }

    .centre{ margin: 1.2rem auto; }
}


/* logo + titre */
.logo-centre{
    color:#D9B36C;
    border:dashed  #D9B36C;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    display: flex;
    margin: 0;
}

.titre-centre{
    color:#16321F;
    font-size: clamp(1.25rem, 5vw, 1.625rem);   /* 20px → 26px */
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.sous-titre-centre{
    color:#16321F;
    opacity: 0.75;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

.colonne{
    display:flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    align-items: center;
}

/* champs texte */

.case-info{
    width: 100%;
    min-height: 44px;      /* zone tactile confortable */
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 8px;
    border: none;
    color: #16321F;
    font-size: 16px;       /* 16px minimum : empêche le zoom auto iOS */
    box-shadow: 0 6px 16px rgb(121, 120, 120);
}

/* Groupes de cases à cocher (type de logement / type de location) */

.groupe-cases{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
}

.case-checkbox{
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    min-height: 44px;
    border-radius: 8px;
    border: none;
    background-color: #F4EDE0;
    box-shadow: 0 6px 16px rgb(44, 44, 44);
    cursor: pointer;
    color: #16321F;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.case-checkbox:hover{
    background-color: #ece2d0;
    transform: translateY(-2px);
}

.case-checkbox input[type="checkbox"]{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.case-visuel{
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #D9B36C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-checkbox input[type="checkbox"]:checked + .case-visuel{
    background-color: #D9B36C;
    border-color: #16321F;
}

.case-checkbox input[type="checkbox"]:checked + .case-visuel::after{
    content: "";
    width: 10px;
    height: 10px;
    background-color: #16321F;
    border-radius: 2px;
}

.case-checkbox:has(input[type="checkbox"]:checked){
    background-color: #F4EDE0;
    border: none;
    box-shadow: 0 0 0 2px #D9B36C, 0 6px 16px rgb(44, 44, 44);
}

/* ===== Petite icône devant le libellé d'une case ===== */

.case-icone{
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #16321F;
    opacity: 0.55;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.case-checkbox:hover .case-icone{
    opacity: 0.85;
}

.case-checkbox:has(input[type="checkbox"]:checked) .case-icone{
    opacity: 1;
    color: #2e663f;
    transform: scale(1.08);
}

.case-texte{
    font-size: 1rem;
    font-weight: 400;
    /* les libellés reviennent à la ligne au lieu de déborder */
    white-space: normal;
    overflow-wrap: break-word;
    background-color: transparent;
}

/* Cases avec un texte long (ex. CGU) : idem */
.case-cgu .case-texte{
    white-space: normal;
}

/* Une case avec un titre + une description : les deux s'empilent */
.case-ligne{
    display:flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
    min-width: 0;              /* le texte revient à la ligne au lieu de déborder */
}

.case-ligne .case-texte{
    font-weight: 600;
    line-height: 1.25;
}

/* Description d'une case à cocher : plus petite et atténuée */
.case-aide{
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #16321F;
    opacity: 0.7;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Case sur deux lignes : la puce s'aligne en haut, pas au milieu */
.case-checkbox:has(.case-ligne){
    align-items: flex-start;
    padding: 0.9rem 1rem;
}

.case-checkbox:has(.case-ligne) .case-visuel{
    margin-top: 3px;
}

/* Choix décrits (type de location) : une case par ligne, pleine largeur */
.grille-choix{
    grid-template-columns: 1fr;
}

/* ===== Étape 7 : équipements rangés par catégorie ===== */

.categories-equipements{
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
    margin-top: 0.5rem;
}

.categorie-equipements{
    width: 100%;
}

.titre-categorie{
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    color: #16321F;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* petit filet doré qui prolonge le nom de la catégorie */
.titre-categorie::after{
    content: "";
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #D9B36C, rgba(217, 179, 108, 0));
}

/* La liste est longue : autant de colonnes que la largeur le permet
   (3 à 4 sur ordinateur, 1 sur téléphone) pour raccourcir la page. */
.categorie-equipements .grille-champs{
    margin-top: 0.6rem;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 0.7rem 0.8rem;
}

.categorie-equipements .case-checkbox{
    padding: 0.7rem 0.9rem;
}

/* Au-delà des 4 premiers, les équipements attendent le bouton « Voir les … » */
.categorie-equipements:not(.deplie) .case-checkbox.equipement-extra{
    display: none;
}

.btn-voir-plus{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    padding: 0.35rem 0.2rem;
    background: none;
    border: none;
    color: #2e663f;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-voir-plus:hover{
    color: #16321F;
    border-bottom-color: #D9B36C;
}

.btn-voir-plus .chevron{
    display: flex;
    width: 15px;
    height: 15px;
    transition: transform 0.25s ease;
}

.categorie-equipements.deplie .btn-voir-plus .chevron{
    transform: rotate(180deg);
}

/* Force du mot de passe : sous le champ "Mot de passe" uniquement.
   Une barre segmentée (un trait par critère) + les critères en gris discret. */

.force-mdp {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* Barre de force segmentée : chaque trait passe au vert
   dès que son critère est rempli (transition douce = « au fur et à mesure »). */
.criteres {
    list-style: none;   /* supprime les puces natives */
    padding: 0;         /* enlève le retrait par défaut */
    margin: 4px 0 0 0;
    width: 100%;
    display: flex;
    gap: 6px;                        /* espace entre les traits */
}

.criteres li {
    flex: 1;                         /* tous les traits de largeur égale */
    height: 6px;
    border-radius: 999px;
    background-color:#9a938a;       /* trait vide = gris discret */
    font-size: 0;                    /* on masque le libellé du <li> : seul le trait reste */
    line-height: 0;
    transition: background-color 0.35s ease;
}

.criteres li::before {
    content: none;                   /* plus de puce */
}

.criteres li.valide {
    background-color: #1f7a3d;       /* trait validé = vert */
}

/* Rappel des critères, en gris et discret */
.criteres-legende {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.35;
    color: #6f6a61;                  /* gris atténué mais lisible sur le beige */
    text-align: left;
}

/* Champ mot de passe + œil */

.champ-mdp{
    position: relative;
    width: 100%;
}

.champ-mdp .case-info{
    padding-right: 44px;
}

.btn-oeil{
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* Boutons */

.btn-connexion{
    width: 100%;
    max-width: 180px;
    min-height: 44px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 999px;
    border: none;
    box-shadow: 0 6px 16px rgb(44, 44, 44);
    margin-top: 0.5rem;
}

.btn-inscription{
    text-decoration: none;
    color:#16321F;
    width: 100%;
    max-width: 200px;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    box-shadow: 0 6px 16px rgba(22, 50, 31, 0.18);
    margin-top: 0.5rem;
    background-color: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: flex;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Bouton principal (Suivant / Inscription) au survol */
.btn-inscription:hover{
    background-color: #16321F;
    color: #F4EDE0;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(22, 50, 31, 0.3);
}

/* Bouton Retour = secondaire (contour discret) */
[id^="btn-retour-"]{
    background-color: transparent;
    color: #16321F;
    box-shadow: none;
    border: 2px solid rgba(22, 50, 31, 0.3);
}

[id^="btn-retour-"]:hover{
    background-color: #16321F;
    color: #F4EDE0;
    border-color: #16321F;
}

/* Champ adresse + suggestions de l'API Adresse */

.champ-adresse{
    position: relative;
    width: 100%;
}

.liste-adresses{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;              /* au-dessus de la carte Leaflet */
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
    max-height: 45vh;           /* liste scrollable sur petit écran */
    overflow-y: auto;
    background-color: #F4EDE0;
    border: solid 1px #D9B36C;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgb(44, 44, 44);
}

.liste-adresses li{
    padding: 12px;
    font-size: 0.875rem;
    color: #16321F;
    cursor: pointer;
    text-align: left;
}

.liste-adresses li:hover{
    background-color: #D9B36C;
}

/* Messages sous les champs : lisibles sur le fond beige du panneau */
.message-adresse{
    margin: 4px 0 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: #16321F;
}

/* Confirmation : vert foncé, bien contrasté sur le beige */
.message-adresse.ok{
    color: #176b33;
}

/* Erreur : vrai rouge, franc et lisible */
.message-adresse.erreur{
    color: #c1121f;
}

/* Champ de précision pour "Autre" (caché par défaut) */

.bloc-precision{
    display: none;
    width: 100%;
}

.bloc-precision.visible{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Photos du logement */

#photos{
    display: none;
}

.zone-photos{
    width: 100%;
    padding: 14px 12px;
    box-sizing: border-box;
    text-align: center;
    border: dashed 2px #D9B36C;
    border-radius: 8px;
    color: #16321F;
    cursor: pointer;
    font-size: 0.875rem;
}

.zone-photos:hover{
    color: #F4EDE0;
    border-color: #F4EDE0;
    background-color: #2e663f;
}

.apercu-photos{
    display: grid;
    /* grille auto : 3 à 4 vignettes par ligne selon la largeur */
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    width: 100%;
}

.apercu-photos img{
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    border: solid 1px #D9B36C;
}

/* Carte Leaflet */

.carte{
    width: 100%;
    aspect-ratio: 4 / 3;       /* hauteur proportionnelle à la largeur */
    max-height: 260px;
    border-radius: 8px;
    border: solid 1px #D9B36C;
    box-shadow: 0 6px 16px rgb(44, 44, 44);
    overflow: hidden;
    background-color: #0e1f14;
}

.carte:empty::before{
    content: "La carte apparaîtra ici une fois l'adresse choisie";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 16px;
    text-align: center;
    font-size: 0.8125rem;
    color: #D9B36C;
    opacity: 0.7;
}

/* Compteur de caractères sous un champ : jamais collé à la zone de saisie */
.compteur{
    font-size: 0.875rem;
    color:#16321F;
    align-self: flex-end;
    margin-top: 0.6rem;
}

/* Un champ et tout ce qui le commente (compteur, message) respirent */
.champ > .case-info,
.champ > textarea,
.champ > .champ-adresse,
.champ > .champ-mdp{
    margin-bottom: 0.15rem;
}

/* Compteurs de capacité (voyageurs, chambres, lits...) */

.groupe-compteurs{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
}

.ligne-compteur{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background-color: #F4EDE0;
    box-shadow: 0 6px 16px rgb(44, 44, 44);
    color: #16321F;
    font-size: 1rem;
}

.controle-compteur{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.btn-compteur{
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #16321F;
    background-color: transparent;
    color: #16321F;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-compteur:hover{
    background-color: #16321F;
    color: #F4EDE0;
}

.valeur-compteur{
    width: 36px;
    flex-shrink: 0;
    text-align: center;
    border: none;
    background: transparent;
    color: #16321F;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;   /* version standard : enlève l'avertissement */
}

.valeur-compteur::-webkit-outer-spin-button,
.valeur-compteur::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

#description-annonce{
    width: 100%;
    min-height: 160px;
    padding: 10px 12px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;         /* évite le zoom auto sur iOS */
    line-height: 1.4;
    text-align: left;
    resize: vertical;
    border-radius: 8px;
    border: none;
    box-shadow: 0 6px 16px rgb(44, 44, 44);
}

/* ===== Calendrier de disponibilité (Flatpickr) ===== */

.champ-cache{ display: none; }   /* input cible caché : seul le calendrier reste visible */

.flatpickr-calendar.inline{
    background: #F4EDE0;
    border: none;
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    padding: 8px;
    margin: 0 auto;              /* centré dans le bloc */
}

.flatpickr-months,
.flatpickr-month,
.flatpickr-current-month,
.flatpickr-weekday{
    background: #F4EDE0;
    color: #16321F;
    fill: #16321F;
}
.flatpickr-weekday{ font-weight: 700; }

.flatpickr-prev-month svg,
.flatpickr-next-month svg{ fill: #16321F; }
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg{ fill: #D9B36C; }

.flatpickr-day{ color: #16321F; border-radius: 8px; }
.flatpickr-day.today{ border-color: #D9B36C; }

.flatpickr-day:hover{
    background: #D9B36C;
    border-color: #D9B36C;
    color: #16321F;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange{
    background: #16321F !important;
    border-color: #16321F !important;
    color: #F4EDE0 !important;
    box-shadow: none !important;
}

.flatpickr-day.inRange{
    background: #E7DCC4;
    border-color: #E7DCC4;
    box-shadow: -5px 0 0 #E7DCC4, 5px 0 0 #E7DCC4;
    color: #16321F;
}

.flatpickr-day.flatpickr-disabled{ color: #b8b0a0; }

/* Le header responsive (menu hamburger) est entièrement géré dans
   commun.css — rien à redéfinir ici. */
/* ===== Étapes conditionnelles ===== */

/* Une ligne du récap ou un bloc réservé au logement entier, quand il ne
   s'applique pas (étape 8 en logement entier, prix global en partagé). */
.masquee{ display: none !important; }

/* Message d'erreur renvoyé par le PHP après un rechargement */
.erreur-php{
    width: 100%;
    margin: 0.5rem 0 0 0;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 8px;
    background-color: rgba(193, 18, 31, 0.10);
    border: solid 1px #c1121f;
    color: #a00d18;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
}

/* ===== Étape 9 : les chambres, 4 fiches par page ===== */

.liste-chambres{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

/* une seule colonne quand le panneau est étroit (téléphone, tablette) */
@media (max-width: 820px){
    .liste-chambres{ grid-template-columns: 1fr; }
}

.carte-chambre{
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.1rem 1.2rem;
    border-radius: 12px;
    background-color: #F4EDE0;
    box-shadow: 0 6px 16px rgba(44, 44, 44, 0.35);
    border-left: solid 4px #D9B36C;
}

.entete-chambre{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.numero-chambre{
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background-color: #16321F;
    color: #F4EDE0;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.titre-chambre{
    color: #16321F;
    font-size: 1rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Deux colonnes dans la carte, une seule sur mobile */
.grille-chambre{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem;
    width: 100%;
}

.grille-chambre .champ label{
    color: #16321F;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Les champs d'une carte sont plus discrets que ceux du panneau central */
.grille-chambre .case-info{
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px #D9B36C;
}

.grille-chambre .case-checkbox{
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px #D9B36C;
    min-height: 40px;
    padding: 0.5rem 0.8rem;
}

.grille-chambre .case-checkbox:hover{
    background-color: #fbf6ec;
    transform: none;
}

.grille-chambre .case-checkbox:has(input[type="checkbox"]:checked){
    background-color: #ffffff;
    box-shadow: inset 0 0 0 2px #D9B36C;
}

/* Champ de dates : ouvert au clic, pas de curseur texte */
.dispo-chambre{
    cursor: pointer;
    background-color: #ffffff;
}

/* Calendrier flatpickr ouvert à l'intérieur de la carte (option static) */
.carte-chambre .flatpickr-calendar{
    background: #F4EDE0;
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    max-width: 100%;
}

/* --- Pagination des chambres (4 fiches par page) --- */

.pagination-chambres{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    margin-top: 1.2rem;
}

.btn-page{
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 2px solid rgba(22, 50, 31, 0.3);
    background-color: transparent;
    color: #16321F;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-page:hover:not(:disabled){
    background-color: #16321F;
    color: #F4EDE0;
    border-color: #16321F;
}

.btn-page:disabled{
    opacity: 0.35;
    cursor: default;
}

.indicateur-page{
    color: #16321F;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 92px;
    text-align: center;
}

.puces-chambres{
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.puce-chambre{
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background-color: rgba(22, 50, 31, 0.25);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.puce-chambre.active{
    background-color: #16321F;
    transform: scale(1.3);
}

/* Sur téléphone la fiche garde ses 2 colonnes (ce sont de petits nombres) :
   la carte reste compacte, seuls les champs .pleine-largeur s'étalent. */
@media (max-width: 640px){
    .carte-chambre{ padding: 0.9rem 0.9rem 1rem; }
    .grille-chambre{ gap: 0.7rem 0.7rem; }
    .grille-chambre .champ label{ font-size: 0.82rem; }
    .pagination-chambres{ gap: 0.5rem; }
    .indicateur-page{ min-width: 78px; font-size: 0.82rem; }
}