:root {
  /* Les noms "clay" sont conservés pour ne rien casser : clay = bleu principal */
  --kf-cream: #F0F2F5;        /* fond de page */
  --kf-cream-deep: #E4E6EB;   /* bordures, fonds discrets */
  --kf-ink: #1C1E21;          /* texte principal */
  --kf-ink-soft: #65676B;     /* texte secondaire */
  --kf-clay: #0B5FD8;         /* bleu principal */
  --kf-clay-dark: #0A4FB4;    /* bleu au survol */
  --kf-clay-tint: #E7F0FD;    /* bleu très clair */
  --kf-green: #3D6B4F;
  --kf-green-dark: #2C4F3A;
  --kf-green-tint: #E1EBE4;
  --kf-radius: 1rem;
  --kf-radius-lg: 1.4rem;
  --kf-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--kf-cream);
  color: var(--kf-ink);
  font-family: var(--kf-font);
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: var(--kf-font);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--kf-ink);
}

p, li { color: var(--kf-ink-soft); }
a { color: var(--kf-clay); }
a:hover { color: var(--kf-clay-dark); }

/* ─── NAVBAR ─── */
.navbar { background-color: #fff !important; border-bottom: 1px solid var(--kf-cream-deep); }
.navbar-brand { font-size: 1.4rem; display: flex; align-items: center; gap: .5rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--kf-clay); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.navbar-nav .nav-link { font-size: 15px; font-weight: 600; color: var(--kf-ink) !important; }
.navbar-nav .nav-link:hover { color: var(--kf-clay) !important; }

/* ─── BOUTONS ─── */
.btn { border-radius: 50px; font-weight: 600; }
.btn-clay { background-color: var(--kf-clay); border-color: var(--kf-clay); color: #fff; }
.btn-clay:hover { background-color: var(--kf-clay-dark); border-color: var(--kf-clay-dark); color: #fff; }
.btn-outline-clay { color: var(--kf-clay); border-color: var(--kf-clay); }
.btn-outline-clay:hover { background-color: var(--kf-clay); border-color: var(--kf-clay); color: #fff; }
.btn-green { background-color: var(--kf-green); border-color: var(--kf-green); color: #fff; }
.btn-green:hover { background-color: var(--kf-green-dark); border-color: var(--kf-green-dark); color: #fff; }

/* ─── HERO ─── */
.hero { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--kf-cream-deep); }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; max-width: 720px; }

.search-bar {
  background: #fff;
  border: 1px solid var(--kf-cream-deep);
  border-radius: var(--kf-radius-lg);
  box-shadow: 0 14px 34px -20px rgba(43,38,33,.35);
  padding: 1.25rem;
}

/* ─── CARTES ANNONCES (style compact, sans favoris) ─── */
.listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  background: transparent;
  border: none;
  transition: transform .25s ease;
}
.listing-card:hover {
  transform: translateY(-2px);
}

.listing-card .photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--kf-radius);
  overflow: hidden;
  background: var(--kf-cream-deep);
  margin-bottom: .6rem;
}
.listing-card .photo-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.listing-card:hover .photo-wrap img { transform: scale(1.04); }

.listing-card .statut-pill {
  position: absolute; top: .6rem; left: .6rem;
  background: #fff; color: var(--kf-green-dark);
  font-size: .72rem; font-weight: 600;
  padding: .3rem .65rem; border-radius: 50px;
  box-shadow: 0 2px 8px rgba(43,38,33,.18);
}

.listing-card .lieu { font-weight: 600; font-size: .95rem; color: var(--kf-ink); }
.listing-card .type-bien { font-size: .85rem; color: var(--kf-ink-soft); margin: .1rem 0 .3rem; }
.listing-card .prix { font-size: .9rem; color: var(--kf-ink); margin-bottom: .6rem; }
.listing-card .prix strong { font-weight: 600; }
/* ============================================
   CARTE ANNONCE — style Airbnb
   ============================================ */
.listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform .25s ease;
}
.listing-card:hover {
  transform: translateY(-3px);
}

/* Actions (boutons) — grille 2x2 stable */
.listing-card .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.listing-card .btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  min-height: 38px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--kf-cream-deep);
  white-space: nowrap;
  overflow: hidden;
  transition: background-color .15s ease, border-color .15s ease;
}

.listing-card .btn-action i {
  font-size: 0.85em;
  flex-shrink: 0;
}

.listing-card .btn-action span,
.listing-card .btn-action {
  text-overflow: ellipsis;
}

/* Le bouton Visiter prend toute la largeur (2ᵉ ligne) */
.listing-card .btn-action.visiter {
  grid-column: 1 / -1;
}
.btn-action.visiter {
    background: var(--kf-clay-tint);
    color: var(--kf-clay-dark);
    border: 1px solid #C9DDF8;
}

.btn-action.visiter:hover {
    background: #D6E6FB;
    color: #083D8C;
}
.listing-card .btn-action.appeler { color: var(--kf-clay-dark); }
.listing-card .btn-action.appeler:hover { background-color: var(--kf-clay-tint); border-color: var(--kf-clay-tint); }
.listing-card .btn-action.whatsapp { color: var(--kf-green-dark); }
.listing-card .btn-action.whatsapp:hover { background-color: var(--kf-green-tint); border-color: var(--kf-green-tint); }

/* ─── FORMULAIRES ─── */
.form-label { font-weight: 600; font-size: .92rem; }
.form-control, .form-select { border-radius: .6rem; border-color: #CED0D4; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--kf-clay); box-shadow: 0 0 0 .2rem rgba(11,95,216,.2); }
.card { border: 1px solid var(--kf-cream-deep) !important; border-radius: var(--kf-radius-lg) !important; }

/* ─── ETAT VIDE ─── */
.empty-state { border: 1px dashed var(--kf-cream-deep); border-radius: var(--kf-radius-lg); padding: 3rem 1.5rem; text-align: center; }

/* ─── FOOTER ─── */
footer.bg-dark { background-color: var(--kf-ink) !important; }
footer p, footer li, footer span { color: #CED0D4; }
footer .text-clay { color: #8AB4F8 !important; }
footer ul li a { text-decoration: none; color: #CED0D4; transition: padding-left .2s ease, color .2s ease; }
footer ul li a:hover { color: #fff; padding-left: 4px; }

/* ─── WHATSAPP FLOTTANT ─── */
.btn-whatsapp-flottant {
  position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: #fff !important;
  width: 58px; height: 58px; border-radius: 50px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; z-index: 9999; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(37,211,102,.6);
  transition: all .3s ease;
}
.btn-whatsapp-flottant:hover { background-color: #20ba5a; transform: scale(1.08) translateY(-3px); }

/* ─── TABLEAU DE BORD ─── */
.annonce-ligne {
  border: 1px solid var(--kf-cream-deep);
  border-radius: var(--kf-radius);
  padding: 1rem;
  margin-bottom: .75rem;
}
.badge-statut { font-size: .75rem; font-weight: 600; padding: .35rem .7rem; border-radius: 50px; }
.badge-statut.active { background: var(--kf-green-tint); color: var(--kf-green-dark); }
.badge-statut.expiree { background: #eee; color: #555; }
.badge-statut.louee { background: var(--kf-clay-tint); color: var(--kf-clay-dark); }
.listing-card .photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--kf-radius);
  overflow: hidden;
  background: var(--kf-cream-deep);
  margin-bottom: .6rem;
}
.listing-card .photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;              /* ← carré comme les plateformes modernes */
  border-radius: var(--kf-radius-lg);
  overflow: hidden;
  background: var(--kf-cream-deep);
  margin-bottom: .75rem;
  box-shadow: 0 4px 14px -8px rgba(43,38,33,.25);
}
.listing-card .lieu,
.listing-card .type-bien,
.listing-card .prix {
  padding-left: .25rem;      /* petit alignement optique avec l'image */
  padding-right: .25rem;
}
/* ============================================
   GRILLE ANNONCES — style plateforme moderne
   ============================================ */

/* Mobile très petit : 2 colonnes compactes */
@media (max-width: 480px) {
 section .row.g-4:not(.fiche-detail) > [class*="col-"] {
    flex: 0 0 auto;
    width: 50%;
    padding-left: .4rem;
    padding-right: .4rem;
  }
  section .row.g-4:not(.fiche-detail){
    --bs-gutter-x: .8rem;
    --bs-gutter-y: 1.2rem;
  }
  .listing-card .lieu { font-size: .82rem; }
  .listing-card .type-bien { font-size: .72rem; }
  .listing-card .prix { font-size: .8rem; }
  .listing-card .btn-action {
    font-size: .7rem;
    padding: .4rem .3rem;
    min-height: 36px;
  }
  .listing-card .photo-wrap {
    border-radius: 1rem;
    margin-bottom: .5rem;
  }
}

/* Mobile large : 2 colonnes */
@media (min-width: 481px) and (max-width: 767px) {
  section .row.g-4 > [class*="col-"] {
    flex: 0 0 auto;
    width: 50%;
  }
}

/* Tablette : 3 colonnes */
@media (min-width: 768px) and (max-width: 1199px) {
  section .row.g-4 > [class*="col-"] {
    flex: 0 0 auto;
    width: 33.3333%;
  }
}

/* Desktop : 4 colonnes */
@media (min-width: 1200px) {
  section .row.g-4 > [class*="col-"] {
    flex: 0 0 auto;
    width: 25%;
  }
}
/* ============================================
   CARROUSEL ANNONCE
   ============================================ */

.annonce-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--kf-radius-lg);
  overflow: hidden;
  background: var(--kf-cream-deep);
  box-shadow: 0 14px 34px -20px rgba(43, 38, 33, .35);
}

@media (max-width: 768px) {
  .annonce-carousel {
    aspect-ratio: 4 / 3;
  }
}

/* Piste qui contient toutes les images côte à côte */
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .4s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Compteur en haut à droite */
.carousel-counter {
  position: absolute;
  top: .85rem;
  right: .85rem;
  background: rgba(43, 38, 33, .72);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 50px;
  z-index: 3;
}

/* Flèches */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--kf-ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px -6px rgba(43, 38, 33, .4);
  transition: transform .2s ease, background .2s ease;
  z-index: 3;
}

.carousel-prev { left: .75rem; }
.carousel-next { right: .75rem; }

.carousel-prev:hover,
.carousel-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

/* Points indicateurs */
.carousel-dots {
  position: absolute;
  bottom: .85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  padding: .35rem .6rem;
  background: rgba(43, 38, 33, .65);
  border-radius: 50px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* Mobile : flèches plus discrètes, points plus gros */
@media (max-width: 575px) {
  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: .85rem;
  }
  .carousel-prev { left: .5rem; }
  .carousel-next { right: .5rem; }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }

  .carousel-counter {
    font-size: .72rem;
    padding: .25rem .55rem;
    top: .6rem;
    right: .6rem;
  }
}
/* Logo dans la barre de navigation */
.navbar-brand img {
    height: 45px;        /* Hauteur fixe du logo */
    width: auto;         /* Largeur automatique pour garder les proportions */
    max-width: 100%;     /* Évite tout débordement */
    object-fit: contain; /* Garde l'image entière sans déformation */
    vertical-align: middle; /* Aligne verticalement avec le texte */
    margin-right: 10px;  /* Espace entre le logo et le nom du site */
}

/* Alignement du texte à côté du logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    text-decoration: none;
        color: var(--kf-clay);
}

/* Version mobile : logo plus petit */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 35px;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
}
/* Grille des photos */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 10px;
}

/* Case individuelle */
.photo-slot {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f8f9fa;
}

.photo-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* État vide (pointillés + flèche) */
.photo-slot-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.photo-slot:hover .photo-slot-empty {
        border-color: var(--kf-clay);
    color: var(--kf-clay);
    background: var(--kf-clay-tint);
}

/* Aperçu de l'image */
.photo-slot-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Bouton supprimer */
.photo-slot-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.photo-slot-remove:hover {
    background: var(--kf-clay);
}


/* Case remplie : on cache le vide */
.photo-slot.filled .photo-slot-empty {
    display: none;
}

/* Mobile : 2 colonnes */
@media (max-width: 576px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ============================================
   STATISTIQUES
   ============================================ */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #F0F0F0;
    transition: all 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E3A8A;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.85rem;
    color: #64748B;
}

/* ============================================
   BARRE DE FILTRES
   ============================================ */
.filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #F0F0F0;
}

/* ============================================
   LIGNES D'ANNONCES AMÉLIORÉES
   ============================================ */
.annonces-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.annonce-ligne-modern {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #F0F0F0;
    border-radius: 14px;
    padding: 12px;
    transition: all 0.2s ease;
}

.annonce-ligne-modern:hover {
    border-color: var(--kf-clay);
    box-shadow: 0 4px 16px rgba(11, 95, 216, 0.1);
}

/* Photo miniature */
.annonce-thumb {
    display: block;
    width: 90px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: #F1F5F9;
    flex-shrink: 0;
}

.annonce-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Infos */
.annonce-infos {
    min-width: 0;
}

.annonce-titre {
    font-weight: 700;
        color: var(--kf-ink);
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.annonce-meta {
    font-size: 0.85rem;
    color: #64748B;
}

.annonce-meta strong {
    color: var(--kf-clay);
    font-weight: 700;
}

/* Badges */
.annonce-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Actions */
.annonce-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.annonce-actions .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .annonce-ligne-modern {
        grid-template-columns: 70px 1fr;
        grid-template-areas:
            "thumb infos"
            "thumb badges"
            "actions actions";
        gap: 10px;
        padding: 12px;
    }
    
    .annonce-thumb {
        grid-area: thumb;
        width: 70px;
        height: 60px;
    }
    
    .annonce-infos { grid-area: infos; }
    .annonce-badges {
        grid-area: badges;
        flex-direction: row;
        align-items: flex-start;
    }
    .annonce-actions {
        grid-area: actions;
        justify-content: flex-end;
        border-top: 1px solid #F0F0F0;
        padding-top: 10px;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #F0F0F0;
}
/* Personnage qui danse sur la page de connexion */
.dancing-owner {
  font-size: 70px;
  text-align: center;
  line-height: 1;
  margin-bottom: 10px;
  animation: dance 1s infinite ease-in-out;
}

@keyframes dance {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50%      { transform: rotate(8deg) scale(1.15); }
}

/* Version plus petite sur mobile */
@media (max-width: 576px) {
  .dancing-owner {
    font-size: 50px;
  }
}
.dancing-owner {
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.15));
}
/* ============================================
   MODAL VIDÉO — Version responsive
   ============================================ */

/* Desktop : modal limité à 800px, centré */
#videoModalGlobal .modal-dialog,
#videoModal .modal-dialog {
    max-width: 800px;
    width: calc(100% - 30px);
    margin: 30px auto;
}

#videoModalGlobal .modal-content,
#videoModal .modal-content {
    border: none;
    border-radius: var(--kf-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(43, 38, 33, 0.35);
}

#videoModalGlobal .modal-header,
#videoModal .modal-header {
    background: var(--kf-ink);
    color: #fff;
    border-bottom: none;
    padding: 12px 18px;
}

#videoModalGlobal .modal-title,
#videoModal .modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin: 0;
}

#videoModalGlobal .btn-close,
#videoModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.2s;
}

#videoModalGlobal .btn-close:hover,
#videoModal .btn-close:hover {
    opacity: 1;
}

#videoModalGlobal .modal-body,
#videoModal .modal-body {
    background: #000;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* La vidéo s'adapte à la largeur du modal, sans dépasser 70vh */
#videoModalGlobal video,
#videoModal video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    background: #000;
    object-fit: contain;
}

/* Tablette */
@media (max-width: 991px) {
    #videoModalGlobal .modal-dialog,
    #videoModal .modal-dialog {
        max-width: 90%;
    }
    #videoModalGlobal video,
    #videoModal video {
        max-height: 60vh;
    }
}

/* Mobile : modal plein écran, vidéo plein largeur */
@media (max-width: 575px) {
    #videoModalGlobal .modal-dialog,
    #videoModal .modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    #videoModalGlobal .modal-content,
    #videoModal .modal-content {
        border-radius: 0;
        width: 100%;
    }
    #videoModalGlobal .modal-header,
    #videoModal .modal-header {
        padding: 10px 14px;
    }
    #videoModalGlobal .modal-title,
    #videoModal .modal-title {
        font-size: 0.85rem;
    }
    #videoModalGlobal video,
    #videoModal video {
        max-height: none;
        width: 100%;
        height: auto;
    }
}
/* ============================================
   FORMULAIRE PAR ÉTAPES (dépôt d'annonce)
   ============================================ */
.form-etapes-progression {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
.form-etapes-progression .etape-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.form-etapes-progression .etape-cercle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--kf-cream-deep);
  color: var(--kf-ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid var(--kf-cream-deep);
  transition: all .25s ease;
  z-index: 2;
}
.form-etapes-progression .etape-item.active .etape-cercle {
  background: var(--kf-clay);
  border-color: var(--kf-clay);
  color: #fff;
}
.form-etapes-progression .etape-item.complete .etape-cercle {
  background: var(--kf-green);
  border-color: var(--kf-green);
  color: #fff;
}
.form-etapes-progression .etape-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--kf-ink-soft);
  margin-top: .4rem;
  text-align: center;
}
.form-etapes-progression .etape-item.active .etape-label { color: var(--kf-ink); }
.form-etapes-progression .etape-ligne {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--kf-cream-deep);
  z-index: 1;
}
.form-etapes-progression .etape-item:last-child .etape-ligne { display: none; }
.form-etapes-progression .etape-item.complete .etape-ligne { background: var(--kf-green); }

.etape-panneau { display: none; }
.etape-panneau.active { display: block; animation: fadeInEtape .3s ease; }
@keyframes fadeInEtape {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-etapes-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-etapes-nav .btn-precedent { flex: 0 0 auto; }
.form-etapes-nav .btn-suivant,
.form-etapes-nav .btn-publier { flex: 1; }
/* ============================================
   INDICATEUR PAYS
   ============================================ */

.pays-indicateur {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-pays {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--kf-clay-tint);
    color: var(--kf-clay-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(11, 95, 216, 0.25);
}

.changer-pays {
    font-size: 0.85rem;
    color: var(--kf-ink-soft);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.changer-pays:hover {
    color: var(--kf-clay);
}.criteres-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:.6rem}
.critere-tuile{position:relative;display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.8rem .4rem;border:2px solid #ddd;border-radius:12px;background:#fff;color:#666;font-size:.9rem;cursor:pointer}
.critere-tuile > i:first-child{font-size:1.4rem}
.critere-tuile[data-etat="oui"]{border-color:var(--kf-green);color:var(--kf-green)}
.critere-tuile[data-etat="non"]{border-color:#c0392b;color:#c0392b}
.critere-tuile[data-etat="non"] span{text-decoration:line-through}
.critere-badge{position:absolute;top:6px;right:8px;font-size:.8rem}
.critere-tuile[data-etat="oui"] .critere-badge::before{content:"\f00c"}
.critere-tuile[data-etat="non"] .critere-badge::before{content:"\f00d"}
.bloc-repliable {
  border: 1px solid var(--kf-cream-deep);
  border-radius: 12px;
  padding: 0 1rem;
  background: #fff;
}
.bloc-repliable summary {
  cursor: pointer;
  font-weight: 700;
  padding: .85rem 0;
  list-style: none;
  display: flex;
  align-items: center;
}
.bloc-repliable summary::-webkit-details-marker { display: none; }
.bloc-repliable summary::after {
  content: "\f078";
   font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: auto;
  font-size: .8rem;
  transition: transform .2s;
}
.bloc-repliable[open] summary::after { transform: rotate(180deg); }
.bloc-repliable[open] { padding-bottom: 1rem; }

/* Respecte le réglage "réduire les animations" du téléphone */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
/* ─── BANDEAU PROPRIÉTAIRES (haut du site) ─── */


/* ─── BANDEAU PROPRIÉTAIRES (haut du site) ─── */
.bandeau-gratuit {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--kf-clay-dark), var(--kf-clay));
  padding: .8rem 0;
}

/* Reflet lumineux qui traverse le bandeau */
.bandeau-gratuit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  animation: bandeauReflet 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bandeauReflet {
  0%        { left: -60%; }
  55%, 100% { left: 130%; }
}

.bandeau-gratuit-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}

/* Badge vert qui bouge */
.bandeau-badge {
  background: #16a34a;
  color: #fff;
  font-weight: 900;
  font-size: clamp(.7rem, 3.8vw, 2rem);
  padding: .2rem .9rem;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  white-space: nowrap;
  animation: badgePop 1.8s ease-in-out infinite;
}
@keyframes badgePop {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50%      { transform: rotate(2deg) scale(1.08); }
}

.bandeau-texte {
  color: #fff;
  font-size: clamp(.65rem, 3vw, 1.35rem);
  line-height: 1.2;
  flex: 1 1 0;
  min-width: 0;
}
.bandeau-texte strong { color: #ffd23f; }

/* Bouton jaune qui pulse */
.bandeau-btn {
  background: #ffd23f;
  color: #1C1E21;
  font-weight: 800;
  font-size: clamp(.62rem, 2.8vw, 1rem);
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  padding: .65rem 1.6rem;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  animation: btnPulse 2s infinite;
  transition: transform .15s ease, background .15s ease;
}
.bandeau-btn:hover {
  background: #ffe07a;
  color: #1C1E21;
  transform: translateY(-2px);
}
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,210,63,.7), 0 6px 16px rgba(0,0,0,.3); }
  70%  { box-shadow: 0 0 0 14px rgba(255,210,63,0), 0 6px 16px rgba(0,0,0,.3); }
  100% { box-shadow: 0 0 0 0 rgba(255,210,63,0), 0 6px 16px rgba(0,0,0,.3); }
}

/* Fine barre grise dessous */
.sous-bandeau {
  background: var(--kf-cream);
  border-bottom: 1px solid var(--kf-cream-deep);
  padding: .5rem 0;
  font-size: .9rem;
}
.sous-bandeau a { font-weight: 600; text-decoration: none; color: var(--kf-clay); }
.sous-bandeau a:hover { color: var(--kf-clay-dark); }

/* Téléphone : même aperçu, tout reste sur une ligne en plus petit */
@media (max-width: 767px) {
  .bandeau-gratuit { padding: .55rem 0; }
  .bandeau-gratuit-inner { gap: .4rem; }
  .bandeau-badge { padding: .15rem .5rem; border-radius: 8px; }
  .bandeau-btn {
    padding: .45rem .7rem;
    max-width: 34%;
  }
  .sous-bandeau { font-size: .8rem; padding: .35rem 0; }
}

/* ─── ANIMATION DU TEXTE DU BANDEAU ─── */

/* La phrase glisse depuis la droite à chaque chargement de page */
.bandeau-texte {
  animation: texteEntree .8s ease-out both;
}
@keyframes texteEntree {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* « Publiez gratuitement. » : un reflet de couleur passe en boucle sur les lettres */
.bandeau-texte strong {
  background: linear-gradient(90deg, #ffd23f 0%, #ffffff 45%, #ffd23f 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: texteBrille 2.5s linear infinite, texteRebond 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes texteBrille {
  from { background-position: 200% 0; }
  to   { background-position: 0% 0; }
}
@keyframes texteRebond {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* Le petit lien de la barre grise clignote doucement */
.sous-bandeau a {
  display: inline-block;
  animation: lienClignote 2.2s ease-in-out infinite;
}
@keyframes lienClignote {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}.zp-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.vig-photo{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;border:1px solid #e5e7eb;animation:apVig .25s ease-out}
.vig-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .2s}
.vig-photo.retire img{opacity:.35;filter:grayscale(1)}
.vig-x{position:absolute;top:6px;right:6px;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:16px;line-height:1;cursor:pointer;z-index:2}
.vig-x:hover{background:rgba(0,0,0,.85)}
.vig-annuler{display:none;position:absolute;left:50%;bottom:8px;transform:translateX(-50%);font-size:12px;padding:3px 10px;border:1px solid #ccc;border-radius:8px;background:#fff;cursor:pointer;z-index:2}
.vig-photo.retire .vig-annuler{display:block}
.vig-photo.retire .vig-x{display:none}
.vig-photo.principale::after{content:"Principale";position:absolute;left:0;right:0;bottom:0;padding:3px 0;text-align:center;font-size:11px;background:var(--clay,#c96442);color:#fff}
.vig-photo.retire.principale::after{display:none}
.vig-ajout{aspect-ratio:1;border:1.5px dashed #b8bec8;border-radius:12px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;color:#6b7280;cursor:pointer;padding:0;transition:.15s}
.vig-ajout:hover{border-color:var(--clay,#c96442);color:#111;background:#fafafa}
.vig-ajout i{font-size:24px}
@keyframes apVig{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:none}}
.vid-carte,.vid-nouvelle{position:relative;max-width:480px;margin-bottom:10px;border-radius:12px;overflow:hidden;border:1px solid #e5e7eb;background:#000;animation:apVig .25s ease-out}
.vid-carte video,.vid-nouvelle video{display:block;width:100%;max-height:300px;transition:opacity .2s}
.vid-carte.retire video{opacity:.3;filter:grayscale(1)}
.vid-carte.retire .vig-annuler{display:block}
.vid-carte.retire .vig-x{display:none}
.vid-infos{padding:6px 10px;font-size:12px;color:#fff;background:#222}
.vid-ajout{width:100%;max-width:480px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px 16px;border:1.5px dashed #b8bec8;border-radius:12px;background:transparent;color:#6b7280;cursor:pointer;transition:.15s}
.vid-ajout:hover{border-color:var(--clay,#c96442);color:#111;background:#fafafa}
.vid-ajout i{font-size:26px}
.vid-ajout small{font-size:12px}/* ===== PARTENAIRES (défilement avant le pied de page) ===== */
.partenaires-section{padding:2.5rem 0 1.5rem;background:#fff;border-top:1px solid var(--kf-cream-deep);margin-top:3rem}
.partenaires-section + footer{margin-top:0 !important}
.partenaires-titre{font-size:1.1rem;font-weight:700;text-align:center;color:var(--kf-ink);margin-bottom:1.25rem}
.partenaires-fenetre{overflow:hidden;padding:.5rem 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.partenaires-piste{display:flex;width:max-content;gap:3rem;margin:0;padding:0;list-style:none;animation:partenaires-defile var(--duree,30s) linear infinite}
.partenaires-fenetre:hover .partenaires-piste,.partenaires-fenetre:focus-within .partenaires-piste{animation-play-state:paused}
.partenaire{flex:0 0 auto;display:flex;align-items:center;justify-content:center;height:64px}
.partenaire a{display:flex;align-items:center}
.partenaire img{height:56px;width:auto;max-width:160px;object-fit:contain;filter:grayscale(1);opacity:.75;transition:filter .2s,opacity .2s}
.partenaire a:hover img,.partenaire a:focus img,.partenaire > img:hover{filter:none;opacity:1}
@keyframes partenaires-defile{to{transform:translateX(calc(-50% - 1.5rem))}}
@media (prefers-reduced-motion:reduce){
  .partenaires-piste{animation:none;flex-wrap:wrap;width:auto;justify-content:center}
  .partenaire[aria-hidden="true"]{display:none}
  .partenaires-fenetre{-webkit-mask-image:none;mask-image:none}
}

/* ============================================
   INCITATION À PUBLIER
   ============================================ */
.carte-publier {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; height: 100%; min-height: 240px; padding: 1.25rem;
  text-align: center; text-decoration: none; color: var(--kf-ink);
  background: var(--kf-clay-tint); border: 2px dashed var(--kf-clay);
  border-radius: var(--kf-radius-lg); transition: transform .25s ease;
}
.carte-publier:hover { transform: translateY(-3px); color: var(--kf-ink); }
.carte-publier i { font-size: 2rem; color: var(--kf-clay); }
.carte-publier span { font-size: .85rem; color: var(--kf-ink-soft); }
.carte-publier .carte-publier-action { margin-top: .4rem; font-weight: 700; color: var(--kf-clay-dark); }

.bloc-publier {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
  padding: 2.5rem; background: #fff; border: 1px solid var(--kf-cream-deep);
  border-radius: var(--kf-radius-lg);
}
.bloc-publier h2 { font-size: 1.75rem; margin-bottom: .6rem; }
.bloc-publier-intro p { color: var(--kf-ink-soft); margin-bottom: 1.25rem; }
.bloc-publier-atouts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: .9rem; }
.bloc-publier-atouts i { color: var(--kf-green); margin-right: .25rem; }
.bloc-publier-etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.bloc-publier-etapes li { display: flex; gap: .85rem; align-items: flex-start; color: var(--kf-ink-soft); font-size: .92rem; }
.bloc-publier-etapes strong { display: block; color: var(--kf-ink); }
.bloc-publier-etapes span {
  flex: 0 0 2.1rem; height: 2.1rem; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--kf-clay-tint); color: var(--kf-clay-dark); font-weight: 700;
}
@media (max-width: 767px) {
  .bloc-publier { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.5rem; }
  .bloc-publier h2 { font-size: 1.4rem; }
  .bloc-publier-intro .btn { width: 100%; }
  .carte-publier { min-height: 200px; padding: 1rem; }
}

/* ============================================
   MARKETPLACE
   ============================================ */
.mp-categories { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; }
.mp-categories .btn { flex: 0 0 auto; }
.mp-photo-principale { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #1C1E21; border-radius: var(--kf-radius-lg); overflow: hidden; }
.mp-photo-principale img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mp-vignettes { display: flex; gap: .5rem; overflow-x: auto; margin-top: .6rem; }
.mp-vignettes button { flex: 0 0 72px; height: 72px; padding: 0; border: none; border-radius: .6rem; overflow: hidden; background: none; }
.mp-vignettes img { width: 100%; height: 100%; object-fit: cover; }
.mp-photo-retrait { position: relative; display: block; width: 84px; height: 84px; cursor: pointer; }
.mp-photo-retrait img { width: 100%; height: 100%; object-fit: cover; border-radius: .6rem; }
.mp-photo-retrait input { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; }
.listing-card .lieu { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mp-video { display: block; width: 100%; max-height: 480px; background: #1C1E21; border-radius: var(--kf-radius-lg); }

#formVendre .iti { display: block; width: 100%; }
