/* Reset simple */
/* Reset simple */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
}

.pwa-install-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: linear-gradient(135deg, #143b63 0%, #245e99 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pwa-install-text strong {
  font-size: 14px;
}

.pwa-install-text span {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-install-btn {
  min-height: 38px;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, 0.28);
  background: #f7f4ee;
  color: #143b63;
}

.pwa-install-close {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* Conteneur principal (centré avec marges latérales) */
#principale {
  width: 860px;              /* largeur fixe du contenu */
  margin: 0 150px;           /* marges de chaque côté */
  border: 4px solid black;
  background-color: #fff;
  min-height: auto;
}

body.is-standalone {
  background-color: #fff;
}

body.is-standalone #principale {
  min-height: auto;
}

#barre2recherche {
  min-height: 60px;
  border: 4px solid green;
  background-color: #d9d9d9;
  text-align: center;
  position: sticky;
  top: 120px;
  z-index: 8;
  padding: 8px 15px;
}

/* Zone centrale: empilement vertical des rectangles */
#centre {
  margin-top: 20px;
  border: 4px solid orange;
  background-color: #fafafa;
  padding: 20px;
  display: block;            /* important: pas de grid, pas de flex wrap */
}

#grille-annonces {
  margin-top: 20px;
  border: 4px solid orange;
  background-color: #fafafa;
  padding: 20px;

  display: grid;
  grid-template-columns: repeat(4, 200px);
  grid-auto-rows: 220px;
  gap: 15px;
  justify-content: center;
}

.carre {
  position: relative;
  border: 4px solid purple;
  background-color: #ddd;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Overlay sur l'image */
.carre-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 33%;                        /* 1/3 de la hauteur */
  background-color: rgba(0, 0, 0, 0.6); /* lisibilité sur image */
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  box-sizing: border-box;
}

/* Ville (haut de l'overlay) */
.overlay-ville {
  font-weight: bold;
  font-size: 14px;
}

/* Ligne bas : prix / date */
.overlay-bas {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* Carte annonce */
.rectangle {
  width: 100%;
  height: 220px;
  border: 4px solid purple;
  background-color: #ffffff;
  margin-bottom: 15px;

  display: flex;
  align-items: center;
  padding: 15px;
  gap: 15px;
}

/* Photo principale */
.annonce-photo {
  width: 180px;
  height: 180px;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Contenu annonce */
.annonce-contenu {
  flex: 1;
  height: 180px;                 /* même hauteur que la photo */
  display: flex;
  flex-direction: column;
}

/* Titre */
.annonce-titre-ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.annonce-titre {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 6px;
}

.annonce-reference {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-align: right;
  white-space: nowrap;
}

/* Ligne de séparation */
.annonce-separateur {
  height: 1px;
  background-color: #ccc;
  margin-bottom: 6px;
}

/* Description limitée à 3 lignes */
.annonce-description {
  font-size: 14px;
  color: #333;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 3;        /* max 3 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Infos bas alignées avec le bas de l'image */
.annonce-infos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  margin-top: auto;             /* 👈 clé de l’alignement bas */
  width: 100%;
  gap: 12px;
}

.annonce-info-prix {
  flex: 1 1 25%;
  text-align: left;
}

.annonce-info-surface {
  flex: 1 1 25%;
  text-align: center;
}

.annonce-info-ville {
  flex: 1 1 25%;
  text-align: center;
}

.annonce-info-date {
  flex: 1 1 25%;
  text-align: right;
}

/* Pied de page */
#pied2page {
  height: 100px;
  border: 4px solid brown;
  background-color: #cccccc;
  text-align: center;
  line-height: 100px;
}

.pied-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 16px 6px;
}

.pied-infos {
  padding: 0 16px 14px;
  line-height: 1.4;
}

/* Titre : structure flexible */
#titre {
  height: 70px;
  border: 4px solid red;
  background-color: #f2f2f2;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  line-height: normal; /* on enlève le line-height global */
}

.site-logo {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: flex-start;
}

.site-logo img {
  display: block;
  max-height: 52px;
  width: auto;
  max-width: 100%;
}

.site-logo-text {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  margin: 0;
}

.site-logo-text a {
  color: inherit;
  text-decoration: none;
}

/* Bloc des actions utilisateur */
#actions-utilisateur {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
}

/* Chaque action */
.action {
  cursor: pointer;
}

#menu {
  min-height: 60px;
  border: 4px solid blue;
  background-color: #e6e6e6;
  position: sticky;
  top: 60px;
  z-index: 9;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 15px;
}

#menu-navigation {
  display: flex;
  flex-direction: row-reverse;   /* droite -> gauche */
  align-items: center;           /* CENTRAGE VERTICAL */
  gap: 20px;
  height: 100%;
}

#banniere-publicitaire {
  width: 100%;
  min-height: 156px;
  padding: 12px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 45%),
    linear-gradient(120deg, #707980 0%, #8d979d 45%, #b4bcc1 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  overflow: hidden;
}

.banniere-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

#banniere-publicitaire img {
  display: block;
  max-width: 100%;
  height: 144px;
  width: auto;
}

.banniere-contenu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  color: #fff;
}

.banniere-badge {
  padding: 5px 12px;
  background-color: #f26a1b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-7deg);
  transform-origin: left center;
}

.banniere-accroche {
  margin: 0;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 540px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.banniere-sous-texte {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  max-width: 560px;
  color: #f5f7f8;
}

.banniere-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background-color: rgba(18, 60, 102, 0.25);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* Triangle gauche */
.nav-prev {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid #000;
}

/* Triangle droit */
.nav-next {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #000;
}

#barre2recherche {
  min-height: 60px;
  border: 4px solid green;
  background-color: #d9d9d9;
  position: sticky;
  top: 120px;
  z-index: 8;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
}

/* Conteneur de recherche */
#recherche {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}

/* Champ de recherche */
#recherche input {
  height: 28px;
  padding: 0 8px;
}

/* Bouton valider */
.btn-valider {
  cursor: pointer;
  font-weight: bold;
}

/* Titre de page dans le centre */
#titre-page {
  width: 100%;
  min-height: 60px;
  border: 4px solid #444;
  background-color: #eeeeee;

  display: flex;
  align-items: center;              /* centrage vertical */
  justify-content: space-between;   /* gauche / droite */

  padding: 0 15px;
  font-weight: bold;
  margin-bottom: 20px;
}

.titre-page-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.titre-page-label {
  min-width: 0;
}

.titre-page-vpn-warning {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #b8651a;
  background: #fff2e2;
  color: #7a3d00;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.titre-page-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.titre-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border-strong);
  border-radius: 3px;
  background: #fffdfb;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.titre-page-reference {
  color: inherit;
  font-weight: 700;
}

/* Pagination */
#pagination {
  font-weight: normal;
}

/* Conteneur global barre recherche */
#recherche-zone {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Actions à droite */
#actions-recherche {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Boutons carrés */
.action-carre {
  width: 34px;
  height: 34px;
  border: 2px solid #333;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}

.action-carre:hover {
  background-color: #eaeaea;
}

/* Flèches */
.fleche-haut {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #000;
  margin-bottom: 2px;
}

.fleche-bas {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #000;
}

/* Overlay sur l'image */
.carre-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 33%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  box-sizing: border-box;
}

/* Ville (haut de l'overlay) */
.overlay-ville {
  font-weight: bold;
  font-size: 14px;
}

.bloc-annonce {
  display: flex;
  gap: 20px;
}

.bloc-annonce-detail {
  align-items: flex-start;
  gap: 24px;
}

.col-gauche {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.image-principale {
  width: 400px;
  height: 300px;
  border: 4px solid gray;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.annonce-photo-principale-viewer {
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.annonce-photo-principale-viewer img {
  display: block;
}

.bloc-annonce.is-image-expanded {
  align-items: flex-start;
}

.bloc-annonce.is-image-expanded .col-gauche {
  width: 100%;
  align-items: stretch;
}

.bloc-annonce.is-image-expanded .infos-annonce {
  display: none;
}

.bloc-annonce.is-image-expanded .image-principale {
  width: 100%;
  max-width: 100%;
  height: min(70vh, 760px);
}

.bloc-annonce.is-image-expanded .annonce-photo-principale-viewer {
  cursor: zoom-out;
}

.bloc-annonce.is-image-expanded .annonce-photo-principale-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}

.annonce-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(3px);
}

.annonce-photo-nav-prev {
  left: 12px;
}

.annonce-photo-nav-next {
  right: 12px;
}

.annonce-photo-nav:hover {
  background: rgba(15, 23, 42, 0.46);
}

.btn-contacter {
  width: 400px;
  height: 60px;
  border: 4px solid #007BFF;
  background-color: #cce5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}

.btn-contacter:hover {
  background-color: #99ccff;
}

.infos-annonce {
  flex: 1;
  border: 1px solid #ddd8d0;
  padding: 20px;
  background: linear-gradient(180deg, #fffefe 0%, #fbf7f1 100%);
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.annonce-caracteristiques-card {
  width: calc(100% - 40px);
  max-width: 100%;
  margin: 16px auto 0;
  padding: 18px 20px;
  box-sizing: border-box;
  border: 1px solid #e1ddd7;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.annonce-caracteristiques-card p:first-child {
  margin-top: 0;
}

.annonce-caracteristiques-card p:last-child {
  margin-bottom: 0;
}

.infos-annonce p {
  margin: 8px 0;
}

.photos-supplementaires {
  margin-top: 5px;
  border: 4px solid teal;
  background-color: #fff;
  padding: 10px;
  margin-bottom: 5px;
}

.photos-supplementaires h2 {
  margin-top: 0;
}

.miniatures {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.miniature {
  width: 120px;
  height: 120px;
  border: 4px solid #999;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.section {
  border: 4px solid #999;
  background-color: #fff;
  padding: 15px;
  margin-bottom: 5px;
}

.section h2 {
  margin-top: 0;
  font-size: 18px;
}

#pied2page {
  height: 100px;
  border: 4px solid brown;
  background-color: #cccccc;
  text-align: center;
  line-height: 100px;
}

/* Zone des boutons d'action en bas de page profil */
#actions-profil {
  border: 4px solid #555;
  background-color: #f0f0f0;
  padding: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.btn-action {
  padding: 10px 20px;
  border: 2px solid #333;
  background-color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.btn-action:hover {
  background-color: #eaeaea;
}

/* =============================== */
/* FORMULAIRE REPONDRE ANNONCE */
/* =============================== */

.form-reponse-annonce .grille-coordonnees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-reponse-annonce input {
  padding: 8px;
  border: 2px solid #ccc;
}

.form-reponse-annonce input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-reponse-annonce select,
.annonce-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.annonce-form select,
#recherche input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#recherche select,
.contact-annonce-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.contact-annonce-form select,
.login-field input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  min-height: 40px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none;
}

select::-ms-expand {
  display: none;
}

.form-field-xs,
.form-field-sm,
.form-field-md,
.form-field-lg,
.form-field-xl,
.form-field-full {
  width: 100%;
  max-width: 100%;
  justify-self: start;
}

.form-field-xs {
  max-width: 10ch;
}

.form-field-3digits {
  width: calc(3ch + 24px);
  max-width: calc(3ch + 24px);
}

.form-field-4digits {
  width: calc(4ch + 24px);
  max-width: calc(4ch + 24px);
}

.form-field-6digits {
  width: calc(6ch + 24px);
  max-width: calc(6ch + 24px);
}

.form-field-surface {
  width: calc(9ch + 24px);
  max-width: calc(9ch + 24px);
}

.form-field-10digits {
  width: calc(10ch + 24px);
  max-width: calc(10ch + 24px);
}

.form-field-sm {
  max-width: 16ch;
}

.form-field-md {
  max-width: 24ch;
}

.form-field-lg {
  max-width: 34ch;
}

.form-field-xl {
  max-width: 48ch;
}

.password-field.form-field-sm,
.password-field.form-field-md,
.password-field.form-field-lg,
.password-field.form-field-xl,
.password-field.form-field-full {
  width: 100%;
  max-width: 100%;
}

.password-field.form-field-sm {
  max-width: 16ch;
}

.password-field.form-field-md {
  max-width: 24ch;
}

.password-field.form-field-lg {
  max-width: 34ch;
}

.password-field.form-field-xl {
  max-width: 48ch;
}

.form-reponse-annonce textarea {
  width: 100%;
  min-height: 220px;
  padding: 10px;
  resize: vertical;
  border: 2px solid #ccc;
  font-family: Arial, sans-serif;
  margin-bottom: 20px;
}

.form-reponse-annonce .actions {
  text-align: right;
}

.form-reponse-annonce button {
  padding: 10px 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* =============================== */
/* RECAPITULATIF ANNONCE */
/* =============================== */

.recap-annonce .contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.recap-annonce .image-annonce {
  width: 120px;
  height: 120px;
  border: 4px solid teal;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.grille-annonces {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 90px));
  grid-auto-rows: 390px;
  column-gap: 20px;
  row-gap: 5px;
  justify-content: start;
}

.annonce-submit-carree {
  display: block;
  width: 100%;
  height: 100%;
}

.carre-annonce {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #d6d6d6;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-align: left;
  box-sizing: border-box;
}

.annonce-photo-carree {
  width: 100%;
  height: 120px;
  flex: 0 0 120px;
  background: #f2f2f2;
}

.annonce-contenu-carre {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.annonce-titre-carre {
  font-size: 15px;
  font-weight: 700;
  color: #1f2933;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  max-height: calc(1.3em * 4);
}

.annonce-description-carre {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
  flex: 0 0 auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  min-height: calc(1.4em * 4);
  max-height: calc(1.4em * 4);
}

.annonce-separateur-carre {
  width: 100%;
  flex: 0 0 auto;
}

.annonce-infos-carre {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #111827;
  font-weight: 600;
  margin-top: auto;
}

.annonce-surface-carre {
  text-align: left;
}

.annonce-infos-carre-ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.annonce-ville-carre {
  margin-left: auto;
  text-align: right;
}

.profil-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.details-profil {
  flex: 1;
}

.photo-profil {
  width: 200px;
  height: 200px;
  border: 4px solid teal;
  background-color: #ddd;

  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}

.photo-profil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-profil-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.photo-profil-link:hover img {
  opacity: 0.88;
}

/* =============================== */
/* FORMULAIRE AJOUT ANNONCE */
/* =============================== */
.annonce-form {
  max-width: 100%;
}

/* Sections plus respirantes */
.annonce-form .section {
  margin-bottom: 25px;
  padding: 20px;
}

/* Titres */
.annonce-form h2 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 6px;
  margin-bottom: 15px;
}

/* Labels */
.annonce-form label {
  display: block;
  font-weight: bold;
  margin: 12px 0 6px;
}

/* Inputs */
.annonce-form input,
.annonce-form select,
.annonce-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #ccc;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.annonce-form select,
.form-reponse-annonce select {
  min-height: 40px;
  background-color: #fffdfb;
}

.annonce-form textarea {
  min-height: 180px;
}

.annonce-account-type-choice {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}

.annonce-account-type-choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: bold;
  cursor: pointer;
}

.annonce-account-type-choice input[type="radio"] {
  width: auto;
  margin: 0;
}

.annonce-address-blur {
  display: inline-block;
  filter: blur(5px);
  user-select: none;
}

.infos-generales-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: end;
}

.infos-generales-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.infos-generales-grid .form-field-xs,
.infos-generales-grid .form-field-sm,
.infos-generales-grid .form-field-md {
  max-width: none;
}

@media (max-width: 700px) {
  .infos-generales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Grille 2 colonnes */
.grille-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.adresse-cp-ville {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.adresse-cp-ville > input {
  flex: 0 0 16ch;
}

.adresse-code-postal-wrapper {
  position: relative;
  flex: 0 0 16ch;
  width: 16ch;
  max-width: 16ch;
}

.adresse-code-postal-wrapper > input {
  width: 100%;
  max-width: 100%;
}

.adresse-cp-ville > .ville-wrapper {
  flex: 0 0 24ch;
}

.adresse-departement-row {
  display: block;
  width: min(45ch, 100%);
}

.adresse-pays-inline {
  color: #333;
  font-weight: 600;
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}



/* =============================== */
/* FORMULAIRE CONNEXION */
/* (SCOPÉ – AUCUN CONFLIT GLOBAL) */
/* =============================== */

.login-form-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.login-form {
  width: 420px;
  border: 4px solid #999;
  background-color: #ffffff;
  padding: 20px;
}

/* Titre */
.login-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 6px;
}

/* Champs */
.login-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.login-field label {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

.login-field input {
  padding: 8px 10px;
  border: 2px solid #ccc;
  font-size: 14px;
}

/* Actions */
.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* Bouton connexion */
.login-submit {
  padding: 10px 26px;
  font-size: 15px;
  font-weight: bold;
  border: 2px solid #333;
  background-color: #007BFF;
  color: #ffffff;
  cursor: pointer;
}

.login-submit:hover {
  background-color: #005ec2;
}

/* Lien oublié */
.login-forgot {
  font-size: 13px;
  text-decoration: none;
  color: #333;
}

.login-forgot:hover {
  text-decoration: underline;
}

/* Boutons qui ressemblent à du texte */
.action-texte {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  text-align: right;
}

/* Optionnel : léger feedback UX */
.action-texte:hover {
  text-decoration: underline;
}

.actions-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.retrieve-form {
  margin-top: 12px;
}

.connexion-back-form {
  margin-top: 10px;
}

.connexion-back-form .btn-link {
  display: block;
  width: 100%;
  text-align: left;
}

.auth-flash {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 3px;
  font-weight: 600;
}

.auth-flash-success {
  background: #e8f7e8;
  color: #136c13;
  border: 1px solid #9bd19b;
}

.auth-flash-error {
  background: #fdeaea;
  color: #a11a1a;
  border: 1px solid #e8a2a2;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: #5f6b76;
  line-height: 1;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #1f2933;
}

.password-toggle-icon,
.password-toggle-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.password-toggle-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.statut-connecte {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #2e7d32;
}

.pastille-verte {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #2ecc71;
  border-radius: 3px;
  margin-right: 6px;
}

#actions-utilisateur .statut-connecte {
  display: inline-flex;
  align-items: center;
  height: auto;
  overflow: visible;
}

#actions-utilisateur .pastille-verte {
  flex-shrink: 0;
}

.menu-texte-accroche {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  padding: 10px 0;
}

.bloc-proprietaire .champ {
  margin-bottom: 8px;
}

.grille-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Aération des champs – Adresse & Propriétaire */
.adresse-bien input,
.adresse-bien select,
.adresse-bien textarea,
.bloc-proprietaire input,
.bloc-proprietaire select,
.bloc-proprietaire textarea {
  margin-bottom: 10px;
}

#recherche {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

#recherche button,
#recherche select,
#recherche input {
  height: 36px;
  max-width: 100%;
}

#recherche select,
#recherche input {
  padding: 0 10px;
}

#pied2page {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: auto;
  min-height: 0;
  padding: 12px 20px;
  background-color: #f2f2f2;
  border-top: 1px solid #ddd;
  font-size: 14px;
  line-height: normal;
}

/* Bloc gauche */
.pied-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.pied-options form {
  display: block;
  margin: 0;
}

/* Boutons texte */
.pied-link {
  display: inline-flex;
  background: none;
  border: none;
  padding: 0;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  text-decoration: none;
}

.pied-link:hover {
  text-decoration: underline;
}

/* Bloc infos */
.pied-infos {
  color: #666;
  text-align: left;
}

.annonce-submit {
  all: unset;
  width: 100%;
  cursor: pointer;
}

.annonce-form-wrapper {
  width: 100%;
}

.annonce-form-wrapper-home-featured {
  width: 100%;
}

.featured-rotator {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #f1c28d;
  background: linear-gradient(180deg, #fff8ef 0%, #fffdf9 100%);
}

.featured-rotator-header {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a4f00;
}

.featured-rotator-track {
  position: relative;
  min-height: 250px;
}

.featured-rotator-slide {
  display: none;
}

.featured-rotator-slide.is-active {
  display: block;
}

.featured-rotator-card {
  margin-bottom: 0;
}

.pagination-horizontale {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pagination-horizontale-form {
  margin: 0;
}

.pagination-horizontale-btn {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  background: #fff;
  color: var(--color-primary-dark);
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
}

.pagination-horizontale-btn.is-disabled {
  opacity: 0.35;
}

button.pagination-horizontale-btn {
  cursor: pointer;
}

.pagination-horizontale-texte {
  min-width: 92px;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.admin-stat-card {
  border: 2px solid #555;
  background: #f7f7f7;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-annonce-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  line-height: 1.4;
}

.admin-annonce-summary span {
  min-width: 0;
}

.admin-search-hint {
  max-width: 1120px;
  margin: 16px auto 22px;
  padding: 14px 18px;
  border: 2px solid #555;
  background: #f7f7f7;
  color: var(--color-primary-dark);
}

.admin-annonce-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #d7dbe0;
}

.admin-annonce-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-annonce-badges-carre {
  margin-top: 10px;
}

.admin-annonce-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d7dbe0;
  border-radius: 999px;
  background: #f7f7f7;
  color: var(--color-primary-dark);
  font-size: 13px;
  line-height: 1;
}

.admin-annonce-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.admin-title-toggle-form {
  margin: 0;
}

.admin-title-toggle {
  min-width: 112px;
}

.admin-stat-card-featured {
  background: linear-gradient(180deg, #fcfcfc 0%, #efefef 100%);
}

.admin-stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary-dark);
}

.admin-stat-label {
  font-size: 14px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat-substats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.admin-stat-subitem {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-subvalue {
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.admin-stat-sublabel {
  font-size: 13px;
  color: #4a4a4a;
}

/* bouton carré (rappel si pas déjà présent) */
.action-carre {
  width: 32px;
  height: 32px;
  border: 2px solid #000;
  background: #fff;
  position: relative;
  cursor: pointer;
  padding: 4px;
}

/* 2 barres horizontales */
.action-carre .bar {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 4px;
  background: #000;
}

.action-carre .bar1 {
  top: 9px;
}

.action-carre .bar2 {
  bottom: 9px;
}

.login-forgot {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* SELECT VILLE — largeur maîtrisée */
.select-ville {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 1.8em;
}

.ville-wrapper {
  position: relative;
  display: inline-block;
  width: min(35ch, 100%);
  max-width: 100%;
  flex: 0 1 35ch;
  min-width: 18ch;
}

.departement-wrapper,
.code-postal-wrapper {
  width: 110px;
  flex: 0 0 110px;
  min-width: 110px;
}

.search-field-compact {
  width: 140px;
  flex: 0 0 140px;
  min-width: 140px;
}

.search-field-price-wrapper {
  width: 108px;
  flex: 0 0 108px;
  min-width: 108px;
}

.search-field-type-wrapper {
  width: 140px;
  flex: 0 0 140px;
  min-width: 140px;
}

.search-field-type {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 16px;
  font-family: inherit;
}

#type-bien-recherche option {
  font: inherit;
  font-size: 16px;
  font-family: inherit;
}

.search-alert-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-orange);
  background: var(--color-orange-soft);
  color: var(--color-orange-dark);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.search-alert-button:hover {
  background: #edc19f;
  border-color: var(--color-orange-dark);
  color: var(--color-orange-dark);
}

.search-alert-button.is-hidden {
  display: none;
}

.alertes-list {
  display: grid;
  gap: 14px;
}

.alerte-card {
  border: 1px solid #d7dbe0;
  border-radius: 3px;
  background: #fff;
  padding: 16px 18px;
}

.alerte-card.is-inactive {
  opacity: 0.72;
}

.alerte-card-header h3 {
  margin: 0 0 4px;
  color: var(--color-primary-dark);
}

.alerte-card-meta {
  margin: 0 0 12px;
  color: var(--color-text-soft);
  font-size: 14px;
}

.alerte-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.alerte-card-count-badge {
  margin-left: auto;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--color-primary-dark);
  border: 1px solid #d7dbe0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}

.alerte-card-count-badge.is-new {
  background: #1f9d55;
  border-color: #1f9d55;
  color: #fff;
}

.contact-annonce-form {
  max-width: 760px;
  margin: 8px auto 24px;
  border: 1px solid #d7dbe0;
  border-radius: 3px;
  background: #f7f8fa;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  min-width: 0;
}

.contact-annonce-form h2 {
  margin: 0;
  padding: 20px 24px 4px;
  font-size: 20px;
  line-height: 1.2;
  color: #1f2933;
}

.contact-intro {
  margin: 0;
  padding: 0 24px 16px;
  color: #66707a;
  line-height: 1.45;
  border-bottom: 1px solid #e1e5ea;
}

.contact-annonce-form form {
  background: #ffffff;
  padding: 20px 24px 24px;
  min-width: 0;
}

.contact-annonce-form .contact-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 14px;
  margin-bottom: 20px;
  min-width: 0;
}

.contact-annonce-form .contact-champ {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.contact-annonce-form .contact-champ-large {
  grid-column: 1 / -1;
}

.contact-annonce-form label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.contact-annonce-form input,
.contact-annonce-form select,
.contact-annonce-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d4d9df;
  border-radius: 3px;
  background: #ffffff;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.4;
  font-family: Arial, sans-serif;
  color: #1f2933;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-annonce-form input::placeholder,
.contact-annonce-form textarea::placeholder {
  color: #98a2af;
}

.contact-annonce-form input:focus,
.contact-annonce-form select:focus,
.contact-annonce-form textarea:focus {
  outline: none;
  border-color: #6b7280;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.12);
}

.contact-valeur {
  min-height: 44px;
  border: 1px solid #d8dde3;
  border-radius: 3px;
  background: #f3f4f6;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  color: #24303c;
  box-shadow: none;
}

.contact-annonce-form .contact-message {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 2px;
  min-width: 0;
}

.contact-annonce-form .contact-message textarea {
  min-height: 220px;
  resize: none;
}

.contact-annonce-form .contact-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  min-width: 0;
}

.contact-annonce-form button {
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #1f2933;
  border-radius: 3px;
  background: #1f2933;
  color: #fff;
  cursor: pointer;
  box-shadow: none;
}

.contact-annonce-form button:hover {
  background: #111827;
}

.contact-annonce-form .btn-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d6dbe1;
  border-radius: 3px;
  background: #ffffff;
  color: #4b5563;
  text-decoration: none;
}

.contact-annonce-form .btn-action:hover {
  background: #f3f4f6;
}

@media (max-width: 720px) {
  .annonce-photo-nav {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .contact-annonce-form form {
    padding: 18px;
  }

  .contact-annonce-form .contact-grille {
    grid-template-columns: 1fr;
  }

  .contact-annonce-form .contact-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .contact-annonce-form button,
  .contact-annonce-form .btn-action {
    justify-content: center;
    width: 100%;
  }

  .contact-annonce-form .contact-message textarea {
    min-height: 160px;
  }
}

.message-admin-envoye {
  max-width: 760px;
  margin: 8px auto 24px;
  border: 1px solid #d7dbe0;
  border-radius: 3px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.message-admin-envoye h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #1f2933;
}

.message-admin-envoye .message-statut {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 16px;
  padding: 0 12px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
}

.message-admin-envoye .message-statut.is-success {
  background: #eef6ef;
  color: #24613a;
}

.message-admin-envoye .message-statut.is-error {
  background: #fbefef;
  color: #9b2c2c;
}

.message-admin-envoye .message-confirmation {
  margin: 0 0 18px;
  color: #5f6973;
  line-height: 1.5;
}

.message-admin-envoye .message-recap {
  border: 1px solid #e3e7ec;
  border-radius: 3px;
  background: #f9fafb;
  overflow: hidden;
}

.message-admin-envoye .message-ligne {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid #e6eaef;
}

.message-admin-envoye .message-ligne:first-child {
  border-top: none;
}

.message-admin-envoye .message-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.message-admin-envoye .message-valeur {
  color: #1f2933;
  line-height: 1.5;
  word-break: break-word;
}

.message-admin-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.message-admin-envoye .btn-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d6dbe1;
  border-radius: 3px;
  background: #ffffff;
  color: #4b5563;
  text-decoration: none;
}

.message-admin-envoye .btn-action:hover {
  background: #f3f4f6;
}

@media (max-width: 720px) {
  .message-admin-envoye {
    padding: 18px;
  }

  .message-admin-envoye .message-ligne {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .message-admin-actions {
    justify-content: stretch;
  }

  .message-admin-envoye .btn-action {
    justify-content: center;
    width: 100%;
  }
}

.form-actions-droite {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
  float: right;
}

.menu-messages {
  position: relative;
}

.badge-messages {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: red;
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================== */
/* RESET GLOBAL */
/* =============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
}

/* =============================== */
/* CONTENEUR PRINCIPAL */
/* =============================== */
#principale {
  width: 860px;
  background-color: #ffffff;
}

/* =============================== */
/* GRILLE DES ANNONCES — 4 x 4 */
/* =============================== */
.grille-annonces {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: 390px;
  row-gap: 5px;
  column-gap: 20px;
  padding: 15px 0;
  background-color: transparent;
  overflow: visible;
}

.grille-annonces-accueil-carree {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: stretch;
}

.grille-annonces-accueil-carree .annonce-submit-carree {
  width: 100%;
  max-width: none;
}

.grille-annonces-accueil-carree .carre-annonce {
  width: 100%;
  max-width: none;
}

/* =============================== */
/* FORMULAIRE = CASE DE GRILLE */
/* =============================== */
.grille-annonces form {
  width: 100%;
  height: 100%;
}

/* =============================== */
/* LE CARRÉ (BOUTON) */
/* =============================== */
.carre {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  border: 1px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}
/* =============================== */
/* MODULE PHOTOS — AJOUT ANNONCE */
/* =============================== */

#annonce-form .annonce-photos-miniatures {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: nowrap;
}

#annonce-form .annonce-photo-slot {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  position: relative;
  flex: 0 0 90px;
  overflow: hidden;
}

#annonce-form .annonce-photo-slot label {
  display: block;
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
}

#annonce-form .annonce-photo-slot img {
  display: block;
  width: 90px !important;
  min-width: 90px !important;
  max-width: 90px !important;
  height: 90px !important;
  min-height: 90px !important;
  max-height: 90px !important;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 3px;
  transition: opacity .15s ease;
}

#annonce-form .annonce-photo-slot:hover img {
  opacity: .85;
}

#annonce-form .annonce-photo-slot.is-active {
  border: 2px solid #1f2933;
  border-radius: 3px;
}

#annonce-form .annonce-photo-slot.is-active img {
  border-color: #1f2933;
}

#annonce-form .annonce-photo-slot.is-dragover {
  outline: 2px dashed #1f6feb;
  outline-offset: 2px;
}

#annonce-form .annonce-photo-slot.is-dragover img {
  opacity: .72;
}

.annonce-photos-miniatures-viewer {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  gap: 12px;
  justify-content: center;
}

.annonce-miniatures-bloc {
  width: 100%;
  max-width: 400px;
}

.annonce-photo-thumb {
  width: 90px;
  height: 90px;
  min-width: 90px;
  max-width: 90px;
  min-height: 90px;
  max-height: 90px;
  position: relative;
  flex: 0 0 90px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.annonce-photo-thumb img {
  display: block;
  width: 90px;
  height: 90px;
  min-width: 90px;
  max-width: 90px;
  min-height: 90px;
  max-height: 90px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 3px;
  transition: opacity .15s ease, transform .15s ease, border-color .15s ease;
}

.annonce-photo-thumb:hover img {
  opacity: .9;
  transform: scale(1.02);
}

.annonce-photo-thumb.is-active {
  border-color: #1f2933;
}

.annonce-photo-thumb.is-active img {
  border-color: #1f2933;
}

#annonce-form .annonce-photo-delete-btn {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: none;
  background: #d40000;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 2;
  padding: 0;
  line-height: 1;
}

#annonce-form .annonce-photo-slot.has-tmp:hover .annonce-photo-delete-btn {
  opacity: 1;
  transform: scale(1);
}

#profil-form .section {
  margin-bottom: 25px;
  padding: 20px;
}

#profil-form h2 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 6px;
  margin-bottom: 15px;
}

.profil-photo-editor {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.profil-photo-slot {
  width: 160px;
  height: 160px;
  position: relative;
  overflow: hidden;
}

.profil-photo-slot label {
  display: block;
  width: 160px;
  height: 160px;
  cursor: pointer;
}

.profil-photo-slot img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 3px;
}

.profil-photo-slot.has-tmp:hover .annonce-photo-delete-btn {
  opacity: 1;
  transform: scale(1);
}

.profil-photo-help {
  margin: 0;
}

.annonce-photo-delete-btn.is-hidden {
  display: none !important;
}

/* =============================== */
/* THEME PROFESSIONNEL */
/* =============================== */

:root {
  --color-primary: #1f4e5f;
  --color-primary-dark: #173b48;
  --color-accent: #c97c5d;
  --color-accent-dark: #a9654a;
  --color-orange: #d97a32;
  --color-orange-dark: #b96224;
  --color-orange-soft: #f3d2bb;
  --color-surface: #ffffff;
  --color-surface-soft: #f7f3ee;
  --color-surface-muted: #eef2f3;
  --color-border: #d6dee1;
  --color-border-strong: #b4c2c8;
  --color-text: #20303a;
  --color-text-soft: #5f6d76;
  --color-success: #2f7a58;
  --shadow-soft: 0 10px 30px rgba(31, 78, 95, 0.08);
  --shadow-card: 0 8px 24px rgba(19, 34, 39, 0.08);
  --radius-md: 3px;
  --radius-lg: 3px;
}

body {
  font-family: "Avenir Next", "Trebuchet MS", Verdana, sans-serif;
  background:
    linear-gradient(180deg, #c5d0d6 0%, #b4c0c7 32%, #a8b4bc 100%);
  color: var(--color-text);
}

body.accueil-annonces-empty {
  background: #f4efe8;
}

#principale {
  width: min(1100px, calc(100vw - 48px));
  margin: 24px auto;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

#titre {
  border: none;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 0 22px;
  top: 0;
  z-index: 30;
}

#menu {
  border: none;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0 22px;
  top: 136px;
  z-index: 20;
}

#barre2recherche {
  border: none;
  background: linear-gradient(180deg, #fbf8f4 0%, #f1ebe4 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 18px;
  top: 68px;
  z-index: 25;
}

#centre {
  border: none;
  background:
    linear-gradient(180deg, rgba(122, 130, 136, 0.12) 0%, rgba(94, 102, 108, 0.18) 100%);
  margin-top: 0;
  padding: 22px;
}

#recherche-zone {
  justify-content: flex-end;
}

#recherche {
  justify-content: flex-end;
  margin-left: auto;
}

#actions-recherche {
  margin-left: 0;
}

#titre-page {
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  border-radius: 3px;
  color: var(--color-primary-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#pagination {
  color: var(--color-text-soft);
  font-weight: 600;
}

.action,
.btn-action,
.login-submit,
.btn-contacter,
.contact-annonce-form button {
  border-radius: 3px;
}

.btn-action,
.login-submit,
.contact-annonce-form button {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-action:hover,
.login-submit:hover,
.contact-annonce-form button:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 8px 18px rgba(31, 78, 95, 0.16);
  transform: translateY(-1px);
}

.menu-item,
.btn-valider {
  color: #fff;
  border-radius: 3px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 4px;
  border: none;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  position: relative;
  transition: color .18s ease;
}

.btn-valider {
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid #f26a1b;
  background: linear-gradient(180deg, #ff8f3a 0%, #f26a1b 100%);
  box-shadow: 0 8px 18px rgba(242, 106, 27, 0.24);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.menu-item:hover,
.btn-valider:hover {
  transform: translateY(-1px);
}

.menu-item:active,
.btn-valider:active {
  transform: translateY(0);
}

.btn-valider:hover {
  background: linear-gradient(180deg, #ff7e22 0%, #e35d12 100%);
  border-color: #e35d12;
  box-shadow: 0 10px 20px rgba(242, 106, 27, 0.32);
}

.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.menu-item:hover {
  background: transparent;
  color: var(--color-primary-dark);
  box-shadow: none;
}

.menu-item:hover::after,
.menu-item:focus-visible::after,
.menu-item.is-active::after {
  transform: scaleX(1);
}

.menu-messages {
  padding-right: 22px;
}

.menu-item.is-active {
  background: transparent;
  color: var(--color-primary-dark);
  box-shadow: none;
}

.btn-danger {
  border-color: #9f3d32;
  background: #9f3d32;
}

.btn-danger:hover {
  background: #7f2f26;
  border-color: #7f2f26;
}

.btn-validation-toggle {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn-validation-toggle:hover {
  transform: translateY(-1px);
}

.btn-validation-toggle.is-active {
  border-color: #1b8f43;
  background: #1b8f43;
  color: #fff;
}

.btn-validation-toggle.is-active:hover {
  background: #157137;
  border-color: #157137;
}

.btn-validation-toggle.is-inactive {
  border-color: #b33636;
  background: #b33636;
  color: #fff;
}

.btn-validation-toggle.is-inactive:hover {
  background: #8d2b2b;
  border-color: #8d2b2b;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-dashboard-card {
  border: 1px solid #d7dbe0;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-dashboard-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-soft);
}

.admin-dashboard-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
}

.admin-dashboard-meta {
  font-size: 13px;
  color: var(--color-text-soft);
}

.admin-dashboard-dual-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.admin-dashboard-split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.admin-dashboard-revenue {
  text-align: right;
}

.admin-pack-grant-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-pack-select {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d7dbe0;
  border-radius: 3px;
  background: #fff;
  color: var(--color-primary-dark);
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-annonces-grille .carre-annonce {
  height: 100%;
}

.action-carre {
  border: 1px solid var(--color-border-strong);
  background: #fff;
  color: var(--color-primary-dark);
  border-radius: 3px;
}

.action-carre:hover {
  background: #f3f7f8;
  border-color: var(--color-primary);
}

.action-carre svg,
.action-carre rect {
  fill: currentColor;
}

.fleche-haut {
  border-bottom-color: currentColor;
}

.fleche-bas {
  border-top-color: currentColor;
}

.rectangle,
.carre-annonce,
.section,
.infos-annonce,
.photos-supplementaires,
.login-form,
.message-admin-envoye,
.contact-annonce-form,
#actions-profil {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
}

.rectangle {
  padding: 18px;
}

.annonce-photo,
.image-principale,
.recap-annonce .image-annonce,
.photo-profil,
.annonce-photo-carree {
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  border-radius: 3px;
  overflow: hidden;
}

.annonce-titre,
.annonce-titre-carre,
.contact-annonce-form h2,
.message-admin-envoye h2 {
  color: var(--color-primary-dark);
}

.infos-annonce h1,
.annonce-titre,
.annonce-titre-carre {
  margin-top: 0;
}

.infos-annonce h1 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

.annonce-detail-title {
  margin-left: 20px;
}

.annonce-detail-offset {
  margin-left: 10px;
}

.annonce-description,
.annonce-description-carre,
.contact-intro,
.message-admin-envoye .message-confirmation,
.pied-infos,
.profil-photo-help {
  color: var(--color-text-soft);
}

.annonce-separateur {
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(201, 124, 93, 0.12) 100%);
  height: 2px;
}

.annonce-infos,
.annonce-infos-carre,
.infos-annonce p strong,
.section h2,
.login-title {
  color: var(--color-primary-dark);
}

.section h2,
.annonce-form h2,
#profil-form h2,
.login-title {
  border-bottom-color: rgba(31, 78, 95, 0.16);
}

.form-reponse-annonce input,
.form-reponse-annonce select,
.form-reponse-annonce textarea,
.annonce-form input,
.annonce-form select,
.annonce-form textarea,
.login-field input,
#recherche input,
#recherche select,
.contact-annonce-form input,
.contact-annonce-form select,
.contact-annonce-form textarea {
  border: 1px solid var(--color-border-strong);
  border-radius: 3px;
  background: #fffdfb;
  color: var(--color-text);
}

.form-reponse-annonce input:focus,
.form-reponse-annonce select:focus,
.form-reponse-annonce textarea:focus,
.annonce-form input:focus,
.annonce-form select:focus,
.annonce-form textarea:focus,
.login-field input:focus,
#recherche input:focus,
#recherche select:focus,
.contact-annonce-form input:focus,
.contact-annonce-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 95, 0.12);
}

#actions-profil {
  background: linear-gradient(180deg, #fcfaf7 0%, #f4efe8 100%);
}

#pied2page {
  background: #f4efe8;
  border: none;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
}

.pied-link,
.btn-link,
.login-forgot,
.action-texte {
  color: var(--color-primary-dark);
}

#actions-utilisateur .action-texte,
#actions-utilisateur .action {
  color: #ffffff;
  background: none;
  border: none;
  box-shadow: none;
}

#actions-utilisateur button.action,
#actions-utilisateur button.action-texte {
  color: #ffffff;
  background: none;
  border: none;
  box-shadow: none;
}

#actions-utilisateur .action-texte:hover,
#actions-utilisateur .action:hover {
  color: #ffffff;
  background: none;
  border: none;
  box-shadow: none;
}

.badge-messages {
  background: var(--color-accent);
  color: #fff;
}

.statut-connecte {
  color: #d4a017;
}

.pastille-verte {
  background-color: #d4a017;
}

.menu-message,
.menu-texte-accroche {
  color: var(--color-text-soft);
}

.menu-navigation-guest {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.menu-message {
  flex: 1 1 auto;
  text-align: left;
}

@media (max-width: 980px) {
  #principale {
    width: calc(100vw - 24px);
    margin: 12px auto;
    border-radius: 3px;
  }

  #centre,
  #barre2recherche {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.infos-annonce-detail {
  margin-left: 0;
  padding-left: 0;
}

.section-compact-top {
  margin-top: 5px;
}

.actions-profil-detail {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.annonce-validite-label {
  display: inline-flex;
  flex: 1 0 100%;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d9dee3;
  background: #ffffff;
  color: #23313f;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.annonce-validite-label.is-warning {
  border-color: #e3c16b;
  background: #fff3d6;
  color: #b42318;
}

.annonce-jours-restants-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  align-self: flex-start;
  margin-left: 0;
  padding: 0 14px 0 0;
  border: 1px solid #d4d9df;
  background: #f7f9fb;
  color: #23313f;
  font-weight: 700;
  white-space: nowrap;
}

.annonce-expire-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff3d6;
  color: #8c5b00;
  border: 1px solid #e8c56c;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.annonce-status-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 3px;
  font-weight: 600;
}

.annonce-status-banner.is-warning {
  background: #fff3d6;
  color: #7c5200;
  border: 1px solid #e3c16b;
}

.annonce-status-banner.is-success {
  background: #e8f7e8;
  color: #136c13;
  border: 1px solid #9bd19b;
}

.annonce-status-banner.is-highlight {
  background: #fff1df;
  color: #924b00;
  border: 1px solid #f0b36f;
}

.annonce-pack-line {
  font-weight: 600;
  color: #184a7a;
}

.annonce-pack-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffedd8;
  color: #9a4f00;
  border: 1px solid #f1b26a;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.rectangle.is-featured-annonce-home,
.carre-annonce.is-featured-annonce-home {
  border-color: #f28c28;
  border-width: 5px;
  box-shadow: 0 16px 30px rgba(242, 140, 40, 0.18);
}

.carre-annonce.is-featured-annonce-home {
  background: linear-gradient(180deg, #fff8f1 0%, #ffffff 100%);
}

.pack-owner-actions {
  width: 100%;
  border: 1px solid #e1d2bf;
  background: linear-gradient(180deg, #fffaf3 0%, #f7efe3 100%);
  padding: 16px;
}

.pack-owner-section {
  margin-top: 16px;
}

.pack-owner-actions-title {
  margin-bottom: 12px;
  font-weight: 700;
  color: #5c3b00;
}

.pack-owner-actions-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
}

.pack-owner-actions-grid form {
  margin: 0;
  display: inline-flex;
}

.notice-page {
  max-width: 760px;
  margin: 0 auto;
}

.notice-card {
  padding: 26px 28px;
  border: 1px solid rgba(31, 78, 95, 0.14);
  background: linear-gradient(180deg, #fffdf8 0%, #f5efe4 100%);
  box-shadow: 0 18px 34px rgba(31, 78, 95, 0.08);
}

.notice-card-success {
  background: linear-gradient(180deg, #f9fff9 0%, #edf7ef 100%);
}

.notice-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.14);
  color: #7a5a00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice-price {
  margin: 6px 0 14px;
  font-size: 18px;
  color: var(--color-primary-dark);
}

.alerte-create-form {
  margin-top: 18px;
}

.alerte-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}

.alerte-title-block label {
  font-weight: 700;
}

.alerte-title-input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 2px solid #ccc;
  box-sizing: border-box;
}

.alerte-create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.notice-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text);
}

.notice-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.notice-list li:last-child {
  margin-bottom: 0;
}

.pack-payment-layout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.pack-payment-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pack-payment-sidebar {
  flex: 0 0 280px;
}

.pack-payment-shell {
  background: #ffffff;
  border: 1px solid #dddfe3;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 14px;
}

.pack-payment-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  border: 1px solid #e0c39e;
  background: linear-gradient(180deg, #fffaf3 0%, #f8ecda 100%);
  position: sticky;
  top: 150px;
}

.pack-payment-price {
  font-size: 34px;
  font-weight: 800;
  color: #9a4f00;
}

.pack-payment-type {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b5b45;
}

.pack-payment-note {
  margin: 0;
  color: #4f4a42;
  line-height: 1.5;
}

.pack-app-payment-notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #d8b46e;
  background: #fff8e8;
  color: #5c3b00;
  line-height: 1.45;
}

.pack-payment-form {
  margin: 0;
}

.pack-payment-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pack-payment-cb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b3a82 0%, #2a7bd8 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pack-payment-paypal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #003087 0%, #009cde 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pack-provider-placeholders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pack-provider-pill {
  padding: 8px 10px;
  border: 1px solid #d9cdbd;
  background: #fff;
  color: #5b6570;
  font-size: 12px;
  font-weight: 700;
}

.pack-provider-pill.is-disabled {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .pack-payment-layout {
    flex-direction: column;
  }

  .pack-payment-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }

  .pack-payment-cta {
    position: static;
  }
}

.annonce-photo-slot-placeholder {
  width: 90px;
  height: 90px;
  min-width: 90px;
  max-width: 90px;
  position: relative;
  overflow: hidden;
  flex: 0 0 90px;
}

.annonce-photo-placeholder-image {
  display: block;
  width: 90px;
  height: 90px;
  min-width: 90px;
  max-width: 90px;
  min-height: 90px;
  max-height: 90px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 3px;
}

@media (max-width: 900px) {
  #titre,
  #barre2recherche,
  #menu {
    position: static;
  }

  #menu {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #menu-navigation {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 12px;
  }

  #recherche-zone,
  #recherche {
    justify-content: stretch;
  }

  #recherche {
    margin-left: 0;
  }

  .bloc-annonce {
    flex-direction: column;
  }

  .col-gauche,
  .infos-annonce {
    width: 100%;
  }

  .image-principale,
  .btn-contacter {
    width: 100%;
    max-width: 100%;
  }

  .image-principale {
    height: clamp(240px, 52vw, 360px);
  }

  .infos-annonce-detail {
    padding-left: 16px;
  }
}

@media (max-width: 720px) {
  body.mobile-auth-chrome-hidden #barre2recherche,
  body.mobile-auth-chrome-hidden #menu {
    display: none;
  }

  body {
    display: block;
  }

  #principale {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
  }

  #titre {
    min-height: auto;
    height: auto;
    padding: 14px 14px 12px;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .site-logo {
    width: 100%;
    height: auto;
  }

  .site-logo-text {
    font-size: 26px;
    line-height: 1.05;
  }

  #actions-utilisateur {
    width: 100%;
    align-items: flex-start;
    gap: 6px;
  }

  #menu {
    padding: 10px 14px 12px;
  }

  #menu-navigation,
  .menu-navigation-guest {
    width: 100%;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
  }

  .menu-navigation-guest {
    flex-direction: column;
  }

  .menu-item {
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(31, 78, 95, 0.12);
    background: #fbf8f4;
  }

  .menu-item::after {
    bottom: 5px;
  }

  #barre2recherche {
    padding: 12px 14px;
  }

  #recherche {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ville-wrapper,
  #recherche select,
  .search-alert-button,
  .btn-valider {
    width: 100%;
    max-width: 100%;
  }

  .ville-wrapper {
    min-width: 0;
    flex: 1 1 auto;
  }

  #actions-recherche {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
  }

  .action-carre {
    width: calc(25% - 6px);
    min-width: 0;
    height: 40px;
  }

  #recherche .select-ville,
  #recherche .search-field-type {
    height: 40px;
    min-height: 40px;
    line-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  #centre {
    padding: 14px;
  }

  #titre-page {
    min-height: auto;
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .titre-page-main {
    width: 100%;
    align-items: flex-start;
  }

  .titre-page-vpn-warning {
    font-size: 12px;
  }

  .titre-page-right {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .titre-page-label {
    white-space: normal;
  }

  .rectangle {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }

  .annonce-photo {
    width: 100%;
    height: 200px;
  }

  .annonce-contenu {
    height: auto;
    min-height: 0;
  }

  .annonce-titre-ligne {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .annonce-reference {
    text-align: left;
  }

  .annonce-description {
    -webkit-line-clamp: 4;
  }

  .annonce-infos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    align-items: start;
  }

  .annonce-info-prix,
  .annonce-info-surface,
  .annonce-info-ville,
  .annonce-info-date {
    text-align: left;
  }

  .grille-annonces {
    grid-template-columns: repeat(auto-fill, minmax(90px, 90px));
    grid-auto-rows: 390px;
    gap: 12px;
    padding: 6px 0 0;
    justify-content: center;
  }

  .grille-annonces-accueil-carree {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
  }

  .grille-annonces-accueil-carree .annonce-submit-carree,
  .grille-annonces-accueil-carree .carre-annonce {
    width: 100%;
  }

  .carre-annonce {
    min-height: 100%;
  }

  .annonce-photo-carree {
    height: 132px;
    flex-basis: 132px;
  }

  .annonce-contenu-carre {
    padding: 10px;
    gap: 8px;
  }

  .annonce-titre-carre {
    font-size: 14px;
  }

  .annonce-description-carre {
    -webkit-line-clamp: 3;
    min-height: calc(1.4em * 3);
    max-height: calc(1.4em * 3);
  }

  .pagination-horizontale {
    gap: 8px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-substats {
    grid-template-columns: 1fr;
  }

  .pagination-horizontale-btn {
    min-width: 40px;
    height: 40px;
  }

  .bloc-annonce {
    gap: 14px;
  }

  .col-gauche {
    gap: 12px;
  }

  .btn-contacter {
    min-height: 52px;
    height: auto;
    padding: 0 16px;
    font-size: 16px;
  }

  .infos-annonce,
  .section,
  #actions-profil {
    padding: 14px;
  }

  #actions-profil {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #actions-profil form,
  #actions-profil > a {
    width: 100%;
    margin: 0;
  }

  #actions-profil .btn-action,
  #actions-profil > a.btn-action {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .infos-annonce-detail {
    padding-left: 14px;
  }

  .annonce-photos-miniatures-viewer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
  }

  .annonce-miniatures-bloc {
    max-width: 100%;
    padding: 12px;
  }

  .annonce-photo-thumb,
  .annonce-photo-slot-placeholder {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
    flex: 1 1 auto;
  }

  .annonce-photo-thumb img,
  .annonce-photo-placeholder-image {
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    max-height: none;
  }

  .profil-info {
    flex-direction: column;
    align-items: stretch;
  }

  #annonce-form .annonce-photos-miniatures {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 520px) {
  #pied2page {
    flex-direction: column;
    gap: 12px;
    padding: 14px 14px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .pied-options,
  .pied-infos {
    width: 100%;
  }

  .pied-options {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pied-options form {
    width: 100%;
  }

  .pied-link {
    display: block;
    width: 100%;
    text-align: left;
  }

  .menu-navigation-guest {
    gap: 10px;
    align-items: stretch;
  }

  .menu-navigation-guest form {
    width: 100%;
  }

  .menu-navigation-guest .menu-item {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .menu-message {
    line-height: 1.45;
  }

  .notice-page {
    padding-left: 0;
    padding-right: 0;
  }

  .notice-card {
    padding: 18px 16px;
  }

  .pwa-install-banner {
    display: flex;
  }

  body.is-standalone .pwa-install-banner {
    display: none;
  }

  body.is-standalone #principale {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .actions-ligne {
    justify-content: flex-end;
  }

  .retrieve-form {
    margin-top: 14px;
  }

  .retrieve-form .btn-link {
    display: block;
    width: 100%;
    text-align: left;
    white-space: normal;
  }

  .site-logo-text {
    font-size: 22px;
  }

  #banniere-publicitaire {
    min-height: auto;
    padding: 16px 14px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
  }

  .banniere-logo {
    justify-content: center;
  }

  #banniere-publicitaire img {
    height: 88px;
    width: auto;
    margin: 0 auto;
  }

  .banniere-contenu {
    align-items: stretch;
    gap: 10px;
    text-align: left;
  }

  .banniere-badge {
    align-self: flex-start;
    transform: none;
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .banniere-accroche {
    max-width: none;
    font-size: 21px;
    line-height: 1.2;
  }

  .banniere-sous-texte {
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
  }

  .banniere-contenu form {
    width: 100%;
  }

  .banniere-cta {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
  }

  .grille-annonces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 320px;
    gap: 10px;
    justify-content: stretch;
  }

  .grille-annonces-accueil-carree {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .grille-annonces-accueil-carree .annonce-submit-carree,
  .grille-annonces-accueil-carree .carre-annonce {
    width: 100%;
  }

  .annonce-photo {
    height: 188px;
  }

  .annonce-photo-carree {
    height: 112px;
    flex-basis: 112px;
  }

  .annonce-contenu-carre {
    padding: 8px;
    gap: 6px;
  }

  .annonce-titre-carre {
    font-size: 13px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.3em * 3);
  }

  .annonce-description-carre {
    font-size: 12px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: calc(1.4em * 2);
    max-height: calc(1.4em * 2);
  }

  .annonce-infos-carre {
    font-size: 11px;
    gap: 3px;
  }

  .annonce-infos {
    grid-template-columns: 1fr;
  }

  #actions-recherche {
    flex-wrap: wrap;
  }

  .action-carre {
    width: calc(50% - 4px);
  }

  .titre-page-right {
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .pwa-install-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .pwa-install-actions {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    margin-bottom: 12px;
  }

  .annonce-form .section,
  .notice-card,
  .pack-payment-shell,
  .infos-annonce,
  #actions-profil,
  .contact-annonce-form form,
  .message-admin-envoye,
  .login-form {
    padding: 16px;
  }

  .annonce-form h2,
  .section h2,
  .infos-annonce h1 {
    line-height: 1.2;
  }

  .form-reponse-annonce .grille-coordonnees,
  .grille-2,
  .infos-generales-grid,
  .contact-annonce-form .contact-grille,
  .admin-stats-grid,
  .admin-stat-substats {
    grid-template-columns: 1fr;
  }

  .form-field-xs,
  .form-field-sm,
  .form-field-md,
  .form-field-lg,
  .form-field-xl,
  .form-field-full,
  .form-field-3digits,
  .form-field-4digits,
  .form-field-6digits,
  .form-field-surface,
  .form-field-10digits,
  .password-field.form-field-sm,
  .password-field.form-field-md,
  .password-field.form-field-lg,
  .password-field.form-field-xl,
  .password-field.form-field-full {
    width: 100%;
    max-width: 100%;
  }

  .adresse-cp-ville,
  .login-actions,
  .actions-ligne,
  .message-admin-actions,
  .contact-annonce-form .contact-actions,
  .pied-options,
  .pack-owner-actions-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .adresse-cp-ville {
    gap: 10px;
  }

  .adresse-code-postal-wrapper,
  .adresse-code-postal-wrapper > input,
  .adresse-cp-ville > input,
  .adresse-cp-ville > .ville-wrapper,
  .adresse-departement-row,
  .ville-wrapper,
  .departement-wrapper,
  .code-postal-wrapper,
  .pack-payment-main,
  .pack-payment-sidebar,
  .pack-payment-shell,
  .notice-page,
  .contact-annonce-form,
  .message-admin-envoye,
  .login-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .adresse-pays-inline {
    align-self: flex-start;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .pack-owner-actions {
    padding: 14px;
  }

  .pack-owner-actions-grid {
    overflow: visible;
  }

  .pack-owner-actions-grid form {
    width: 100%;
    display: flex;
  }

  .pack-owner-actions-grid .btn-action,
  .message-admin-envoye .btn-action,
  .contact-annonce-form .btn-action,
  .contact-annonce-form button,
  .search-alert-button,
  .login-submit,
  .btn-action {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .pack-payment-layout {
    gap: 14px;
  }

  .pack-payment-cta {
    padding: 18px 16px;
  }

  .pack-payment-price {
    font-size: 28px;
  }

  .alerte-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .alerte-card-actions form {
    width: 100%;
  }

  .notice-list {
    padding-left: 18px;
  }

  .login-form-wrapper {
    margin: 20px 0;
    padding: 0 14px;
  }

  .login-actions {
    gap: 12px;
  }

  .action-texte,
  .login-forgot,
  .btn-link {
    text-align: left;
  }

  .featured-rotator,
  .annonce-miniatures-bloc {
    padding: 12px;
  }

  .featured-rotator-track {
    min-height: 0;
  }

  .annonce-validite-label,
  .annonce-jours-restants-label {
    white-space: normal;
    text-align: center;
    justify-content: center;
    padding: 10px 14px;
  }
}

@media (max-width: 520px) {
  #centre,
  #barre2recherche,
  #menu,
  #titre {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-logo-text {
    font-size: 22px;
  }

  .annonce-photo {
    height: 180px;
  }

  .image-principale {
    height: clamp(220px, 64vw, 300px);
  }

  .grille-annonces,
  .grille-annonces-accueil-carree {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .grille-annonces form,
  .annonce-submit-carree,
  .carre-annonce,
  .grille-annonces-accueil-carree .annonce-submit-carree,
  .grille-annonces-accueil-carree .carre-annonce {
    width: 100%;
    max-width: 100%;
  }

  .annonce-photo-carree {
    height: 180px;
    flex-basis: 180px;
  }

  .notice-card,
  .pack-payment-shell,
  .annonce-form .section,
  .section,
  .infos-annonce,
  #actions-profil {
    padding: 12px;
  }
}
