/* ============================================================
   inscriptionHote.css — formulaire "Devenir hôte" (multi-étapes)
   Responsive : bloc fluide plafonné, champs de 44px minimum
   (confort tactile), textes qui reviennent à la ligne, carte et
   aperçus photos qui s'adaptent à la largeur.
   ============================================================ */

/* Conteneur : marge latérale garantie sur mobile */
.centre{
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

form{
    width: 100%;
    display: flex;
    flex-direction: column;   /* les étapes s'empilent, une seule visible */
    align-items: center;
}

/* Centre de la page */

.bloc{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;                       /* fluide en dessous */
    padding: clamp(1.25rem, 5vw, 2rem) clamp(1rem, 4vw, 1.5rem);
    margin: clamp(1.5rem, 6vw, 4rem) auto;
    border-radius: 14px;
    gap: clamp(1rem, 3vw, 1.5rem);
    background-color: #16321F;
    color:#F4EDE0;
    border: solid  #D9B36C ;
}

/* 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:#F4EDE0;
    font-size: clamp(1.25rem, 5vw, 1.625rem);   /* 20px → 26px */
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.sous-titre-centre{
    color: #F4EDE0;
    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;
    font-size: 16px;       /* 16px minimum : empêche le zoom auto iOS */
    box-shadow: 0 6px 16px rgb(44, 44, 44);
}

/* 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.8rem;
    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);
}

.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;
}

/* Critères de mot de passe */

.criteres li {
    color: #999;                 /* gris = pas encore validé */
    transition: color 0.2s;      /* effet doux */
}
.criteres li.valide {
    color: #1e8449;              /* vert = validé */
}

.criteres {
    list-style: none;   /* supprime les puces natives */
    padding-left: 0;    /* enlève le retrait par défaut */
    margin: 0;
    width: 100%;
    font-size: 0.875rem;
    text-align: left;
}

.criteres li::before {
    content: "•";           /* la puce grise par défaut */
    display: inline-block;
    width: 1.4em;           /* largeur fixe = texte aligné */
    text-align: center;
}

.criteres li.valide::before {
    content: "✓";   /* le point devient un check */
}

/* 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:#000000;
    width: 100%;
    max-width: 180px;
    min-height: 44px;
    font-size: 1rem;
    border-radius: 999px;
    border: none;
    box-shadow: 0 6px 16px rgb(44, 44, 44);
    margin-top: 0.5rem;
    background-color: #ffffff;
    align-items: center;
    justify-content: center;
    display: flex;
}

/* 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;
}

.message-adresse{
    margin: 0;
    font-size: 0.875rem;
    text-align: center;
}

.message-adresse.ok{
    color: #7fd98c;
}

.message-adresse.erreur{
    color: #e07a5f;
}

/* 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: #D9B36C;
    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{
    font-size: 0.875rem;
    color: #D9B36C;
    align-self: flex-end;
}

/* 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. */