/* Theme Maisoruhotes - reprise exacte de l'identite de l'application Vite
   (tokens, typographie Manrope, cartes, pastilles, heros, pied de page). */

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #14283e;
  --orange: #ff7b39;
  --ground: #f5f7f9;
  --surface: #e9eef3;
  --muted: #5c6a79;
  --line: #dde4ec;
  --chip: #eaf0f4;
  --chip-hover: #dce5ed;
  --accent-strong: #b54916;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(20, 40, 62, 0.1);
  --font: 'Manrope Variable', 'Manrope', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; border: 0; }
button, a { transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
button:active, .bouton:active { transform: scale(0.97); }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible { outline: 3px solid #d85416; outline-offset: 5px; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: #ffd0b6; color: var(--ink); }

/* Mise en page */

.entete, main, .pied {
  width: min(1320px, calc(100% - 80px));
  margin-inline: auto;
}

main { padding-bottom: 40px; }

/* En-tete */

.entete {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 10;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.6px;
}

.marque-point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 15px 0;
}

.nav a:hover { color: var(--accent-strong); }

/* Boutons */

.bouton {
  min-height: 49px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--orange);
  color: #182b3c;
}

.bouton:hover { background: #ff925b; transform: translateY(-2px); }

.bouton.secondaire { background: var(--surface); color: var(--ink); }
.bouton.secondaire:hover { background: #e0e6ec; transform: translateY(-2px); }

.lien {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.lien:hover { color: var(--accent-strong); border-bottom-color: currentColor; }

/* Heros */

.heros {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 620px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.heros-texte {
  padding: 76px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.heros h1 {
  font-size: clamp(44px, 4.4vw, 68px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.06;
  margin: 14px 0 0;
}

.heros .chapeau {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.8;
  color: #eef1f4;
  max-width: 520px;
}

.heros-image { position: relative; min-height: 320px; }
.heros-image img { height: 100%; position: absolute; inset: 0; object-position: center 58%; }
.heros-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    rgba(20, 40, 62, 0.92) 26%,
    rgba(20, 40, 62, 0.55) 52%,
    rgba(20, 40, 62, 0.12) 78%,
    rgba(20, 40, 62, 0) 100%
  );
}

.surtitre {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.heros .surtitre { color: #ffb993; }

.chapeau {
  font-size: 16px;
  line-height: 1.75;
  color: #4f6070;
  max-width: 720px;
}

.discret { font-size: 13px; color: #647180; line-height: 1.7; }

/* Recherche */

.recherche {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  padding: 10px 10px 10px 22px;
  max-width: 620px;
  box-shadow: 0 26px 58px rgba(7, 26, 50, 0.22);
}

.recherche input[type='search'] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  height: 44px;
}

.recherche input::placeholder { color: #7b8794; }
.recherche .bouton { min-height: 54px; }

/* Pastilles regions */

.villes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.villes a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.villes a:hover { background: #fff; color: var(--ink); }

/* Sections */

.section { padding-top: 94px; }

.section h2, .section-tete h2 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section h1, .section-tete h1 {
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.14;
}

.section > .chapeau { margin-top: 14px; }
.section > h2 + * { margin-top: 26px; }

.section-tete {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
}

/* Categories */

.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.categorie {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: #fff;
  border-radius: var(--radius);
  min-height: 132px;
  justify-content: flex-end;
}

.categorie:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.categorie-nom { font-size: 18px; font-weight: 650; letter-spacing: -0.3px; }
.categorie-lien { font-size: 13px; font-weight: 600; color: var(--muted); }
.categorie:hover .categorie-lien { color: var(--accent-strong); }

/* Grille et cartes */

.grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.carte-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.carte-tab {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 30px;
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.carte-tab:hover { background: var(--chip-hover); }
.carte-tab-active { background: var(--ink); color: #fff; }

.grille-plus { display: flex; justify-content: center; margin-top: 38px; }

.carte-annonce {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 8px 22px rgba(20, 40, 62, 0.045);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease;
}

.carte-annonce:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(20, 40, 62, 0.1);
}

.carte-image {
  display: block;
  position: relative;
  margin: 8px 8px 0;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 1.53;
  background: #e8edf1;
}

.carte-image img {
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.carte-image:hover img { transform: scale(1.045); }
.carte-image:focus-visible { outline-offset: -5px; }

.carte-corps { padding: 20px; }

.carte-corps h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; }
.carte-corps h3 a:hover { color: var(--accent-strong); }
.carte-corps .surtitre {
  margin-bottom: 7px;
  color: #657282;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.carte-corps .surtitre + h3 { margin-bottom: 8px; }

.carte-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.prix { font-size: 21px; font-weight: 750; letter-spacing: -0.6px; }

/* Filtres de l'annuaire */

.filtres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 18px;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 30px;
}

.filtres label, .formulaire label, .connexion label {
  display: grid;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
}

.filtres select, .filtres input,
.formulaire input, .formulaire select, .formulaire textarea,
.connexion input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9e1e7;
  border-radius: 10px;
  height: 48px;
  padding: 0 12px;
  background: #f8fafb;
  color: var(--ink);
  font-size: 14px;
}

.filtres select, .formulaire select { cursor: pointer; }

.formulaire textarea {
  height: auto;
  min-height: 120px;
  padding: 12px;
  line-height: 1.7;
  resize: vertical;
}

.filtres .bouton { min-height: 48px; }

/* Pagination */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

.pagination .page {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 30px;
  background: var(--chip);
  font-size: 13px;
  font-weight: 600;
}

.pagination .page:hover { background: var(--chip-hover); }

/* Etats vides */

.vide {
  background: var(--chip);
  border-radius: 24px;
  padding: 64px 24px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.vide h1, .vide h3 { font-size: 24px; font-weight: 600; }
.vide .chapeau { font-size: 14px; }
.vide .bouton { margin-top: 8px; }

/* Fiche annonce */

.fiche { padding-top: 44px; }

.fiche-tete { margin-top: 20px; }
.fiche-tete h1 {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.12;
  margin: 10px 0 12px;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.galerie-vignette {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1.4;
  background: var(--surface);
}

.galerie-vignette img { height: 100%; }

.fiche-corps {
  display: grid;
  grid-template-columns: 1.7fr 0.85fr;
  gap: 44px;
  margin-top: 44px;
  align-items: start;
}

.fiche-principal { min-width: 0; }
.fiche-principal section + section { margin-top: 34px; }
.fiche-principal h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.4px; margin-bottom: 14px; }

.fiche-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 24px;
}

.encart { background: #fff; border-radius: 18px; padding: 22px; }
.encart h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 14px; }
.encart p + p { margin-top: 8px; }

.encart dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  font-size: 14px;
}
.encart dt { color: var(--muted); }
.encart dd { margin: 0; font-weight: 650; }

.equipements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.equipements li { display: flex; gap: 10px; align-items: flex-start; }
.equipements li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 8px;
  flex-shrink: 0;
}

.carte-plan iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  display: block;
}

/* Contenu HTML herite (base de donnees) */

.riche { font-size: 15px; line-height: 1.8; color: #46586a; }
.riche > *:first-child { margin-top: 0; }
.riche p, .riche ul, .riche ol { margin: 0 0 1em; }
.riche h3 { font-size: 18px; margin: 22px 0 10px; color: var(--ink); }
.riche ul, .riche ol { padding-left: 22px; }
.riche li { margin-bottom: 6px; }
.riche a { color: var(--accent-strong); text-decoration: underline; }
.riche img, .riche iframe { max-width: 100%; border: 0; border-radius: 14px; }
.riche br { line-height: 2; }
.riche strong, .riche b { color: var(--ink); }

/* Appel a l'action */

.appel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  margin-top: 100px;
  padding: 48px 52px;
}

.appel h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.appel p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: #d1dae2;
  max-width: 460px;
}

/* Pied de page */

.pied {
  padding-top: 65px;
  padding-bottom: 27px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #647180;
}

/* Formulaire public */

.formulaire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  background: #fff;
  border-radius: 22px;
  padding: 30px;
}

.formulaire .pleine { grid-column: 1 / -1; }
.formulaire .bouton { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

.confirmation {
  background: #fff;
  border-radius: 22px;
  padding: 40px;
  margin-top: 30px;
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.message {
  background: #fff0ec;
  color: #9f2e13;
  padding: 14px;
  font-size: 13px;
  border-radius: 10px;
}

/* Raffinement public : composition et composants issus de la maquette Vite. */

.icone { display: block; flex-shrink: 0; }
.lien-evitement {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}
.lien-evitement:focus { top: 12px; }

/* En-tete et navigation active */
.entete { gap: 28px; }
.marque { font-size: 34px; letter-spacing: -1.8px; flex-shrink: 0; }
.marque-icone {
  width: 38px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--orange);
}
.marque-icone .icone { width: 25px; height: 25px; stroke-width: 2.2; }
.marque-nom { white-space: nowrap; }
.marque .marque-point {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--orange);
}
.marque-description {
  max-width: 62px;
  margin-left: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}
.nav { gap: 28px; }
.nav .nav-lien {
  position: relative;
  padding: 15px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav .nav-lien:hover { color: var(--accent-strong); }
.nav .nav-lien.nav-actif::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.nav-publication { background: var(--ink); color: #fff; }
.nav-publication:hover { background: #29475f; }
.nav-publication.nav-actif { box-shadow: 0 0 0 3px rgba(255, 123, 57, 0.28); }
.bouton.secondaire { background: var(--surface); color: var(--ink); }
.bouton.secondaire:hover { background: #e0e6ec; }
.lien { display: inline-flex; align-items: center; gap: 8px; }
.lien .icone { width: 16px; height: 16px; }

/* Heros photographique et recherche en surimpression */
.accueil-heros { position: relative; }
.heros {
  position: relative;
  display: block;
  height: 620px;
  min-height: 0;
  border-radius: 28px;
  isolation: isolate;
}
.heros-image { position: absolute; inset: 0; z-index: -2; min-height: 0; }
.heros-image::after { content: none; }
.heros-image img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-position: center 58%;
  animation: derive-photo 18s ease-out both;
}
.heros-voile {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      90deg,
      rgba(6, 19, 31, 0.88) 0%,
      rgba(6, 19, 31, 0.8) 30%,
      rgba(6, 19, 31, 0.6) 58%,
      rgba(6, 19, 31, 0.28) 80%,
      rgba(6, 19, 31, 0.08) 100%
    ),
    linear-gradient(0deg, rgba(6, 19, 31, 0.42) 0%, rgba(6, 19, 31, 0) 46%);
}
.heros-texte { display: block; padding: 66px 58px 0; }
.heros .surtitre { color: #ffb993; }
.heros h1 {
  max-width: 880px;
  margin: 16px 0 0;
  font-size: clamp(52px, 5.3vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.06;
  text-wrap: initial;
  text-shadow: 0 4px 32px rgba(6, 19, 31, 0.45);
}
.heros .chapeau {
  max-width: 610px;
  margin-top: 20px;
  color: #f0f2f4;
  font-size: 16px;
  line-height: 1.7;
}
.heros-bouton { min-height: 51px; margin-top: 24px; }
.villes {
  position: absolute;
  left: 58px;
  right: 40px;
  bottom: 96px;
  z-index: 2;
  max-width: calc(100% - 98px);
  margin: 0;
  gap: 8px;
}
.villes a { gap: 8px; background: rgba(13, 30, 45, 0.42); backdrop-filter: blur(16px); }
.ville-point { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.75; }
.recherche {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.85fr) auto;
  align-items: center;
  gap: 20px;
  width: calc(100% - 116px);
  max-width: none;
  margin: -48px auto 0;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(7, 26, 50, 0.16);
}
.recherche-champ { display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 4px; }
.recherche-champ > span:last-child { display: grid; flex: 1; gap: 5px; min-width: 0; }
.recherche-icone { display: grid; place-items: center; color: #77828b; }
.recherche-icone .icone { width: 21px; height: 21px; }
.champ-nom { color: var(--ink); font-size: 13px; font-weight: 700; }
.recherche input[type='search'], .recherche select {
  width: 100%;
  min-width: 0;
  height: 25px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #53606c;
  font-size: 13px;
  outline-offset: 3px;
}
.recherche input[type='search'] { flex: none; }
.recherche select { cursor: pointer; }
.recherche .recherche-bouton { min-height: 56px; padding-inline: 23px; }

/* Titres de sections et tuiles */
.section-tete > div > .surtitre { margin-bottom: 12px; }
.section-tete > div > h2 + p, .section-tete > div > h1 + p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.section-tete .lien { flex-shrink: 0; }
.categorie {
  position: relative;
  min-height: 152px;
  padding: 24px;
  gap: 9px;
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f8 100%);
  border: 1px solid #eef2f6;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.categorie-icone {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.categorie-nom { font-size: 20px; letter-spacing: -0.4px; }
.categorie-lien { display: inline-flex; align-items: center; gap: 7px; }
.categorie-lien .icone { width: 14px; height: 14px; }
.categorie:hover { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.categorie:hover .categorie-icone { background: var(--orange); color: var(--ink); }
.categorie:hover .categorie-lien { color: #d9e3ec; }

/* Cartes annonces et ligne de quatre caracteristiques */
.carte-etiquette {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.carte-entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.carte-type { color: #657282; font-size: 12px; white-space: nowrap; }
.carte-corps h3 a { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.carte-corps h3 a span { min-width: 0; }
.carte-corps h3 a .icone { width: 19px; height: 19px; margin-top: 1px; color: #5f7182; }
.carte-lieu { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #697584; font-size: 13px; line-height: 1.6; }
.carte-lieu .icone { width: 15px; height: 15px; }
.carte-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 18px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #edf1f4;
}
.fait { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #5c6a79; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.fait .icone { width: 16px; height: 16px; color: #8b98a5; }
.fait-texte { line-height: 1.2; }

/* Annuaire, filtres et pagination */
.annuaire, .publication { padding-top: 56px; }
.annuaire-total {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  align-self: flex-end;
  padding: 10px 17px;
  border: 1px solid #edf1f4;
  border-radius: 30px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.annuaire-total strong { color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }
.filtres { border: 1px solid #edf1f4; box-shadow: 0 8px 26px rgba(20, 40, 62, 0.035); }
.annuaire-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -8px 0 24px; color: var(--muted); font-size: 13px; }
.pagination { align-items: center; }
.pagination .page { min-width: 42px; justify-content: center; padding: 0 14px; }
.pagination .page.active { background: var(--ink); color: #fff; }
.pagination .page-direction { gap: 7px; padding-inline: 18px; }
.pagination-resume { margin-left: auto; color: var(--muted); font-size: 13px; }
.vide-icone, .confirmation-icone {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
}
.vide-icone .icone, .confirmation-icone .icone { width: 30px; height: 30px; }
.vide h2 { font-size: 24px; font-weight: 600; }
.vide .surtitre { color: var(--accent-strong); }

/* Fils d'Ariane et filtres de navigation SEO */
.fil {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}
.fil a { color: var(--muted); text-decoration: none; }
.fil a:hover { color: var(--ink); text-decoration: underline; }
.fil [aria-current='page'] { color: var(--ink); font-weight: 600; }
.filtres-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}
.filtres-liens.destinations { margin-top: -4px; }
.filtres-liens .puce {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid #e4eaef;
  border-radius: 999px;
  background: #fff;
  color: #46586a;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.filtres-liens .puce span { color: var(--muted); font-weight: 500; }
.filtres-liens .puce:hover { border-color: #c9d5df; color: var(--ink); }
.filtres-liens .puce.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.filtres-liens .puce.active span { color: #d8e0e7; }

/* Fiche detaillee */
.retour { margin-bottom: 4px; }
.fiche-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 24px; }
.fiche-lieu { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.fiche-prix {
  flex-shrink: 0;
  padding: 16px 20px;
  border-radius: 15px;
  background: #fff;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.galerie { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.galerie-vignette:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.galerie-vignette img { transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1); }
.galerie-vignette:hover img { transform: scale(1.025); }
.fiche-description .chapeau { color: #46586a; }
.encart { border: 1px solid #edf1f4; }
.equipements li { align-items: center; }
.equipements li::before { display: none; }
.equipements .icone { width: 16px; height: 16px; color: #2d7350; }
.contact-ligne { display: flex; align-items: center; gap: 10px; min-width: 0; }
.contact-ligne > .icone { color: var(--muted); }
.contact-ligne .lien { min-width: 0; overflow-wrap: anywhere; }

/* Appel a l'action et pied de page */
.appel { grid-template-columns: 1.15fr 1fr; padding: 0; }
.appel-texte { padding: 56px; }
.appel h2 { font-size: clamp(38px, 4vw, 54px); line-height: 1.13; }
.appel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.appel-texte p { margin-top: 20px; }
.appel-lien { padding: 12px 0; color: #f0f2f4; font-size: 13px; }
.appel-lien:hover { color: var(--orange); }
.appel-image { position: relative; min-height: 390px; }
.appel-image > img { position: absolute; inset: 0; height: 100%; }
.appel-note {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.pied { display: block; }
.pied-haut { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.pied-marque { font-size: 26px; letter-spacing: -1.3px; }
.pied-haut > p { color: var(--muted); font-size: 13px; }
.pied-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.pied-nav a { padding: 12px 0; font-size: 13px; font-weight: 600; }
.pied-nav a:hover { color: var(--accent-strong); }
.pied-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 40px; font-size: 13px; }

/* Reseaux sociaux du pied de page : logos officiels, couleur de marque au survol */
.pied-social { display: flex; align-items: center; gap: 10px; }
.social {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(20, 40, 62, 0.08);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.social .icone-marque { width: 20px; height: 20px; }
.social:hover, .social:focus-visible { transform: translateY(-2px); color: #fff; }
.social-instagram:hover, .social-instagram:focus-visible {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-facebook { color: #0866ff; }
.social-facebook:hover, .social-facebook:focus-visible { background: #0866ff; }
.social-instagram { color: #e1306c; }
.pied-cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

/* Panneau flottant de consentement (mesure d'audience) */
.consentement {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  gap: 12px;
  width: min(400px, calc(100% - 32px));
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  animation: consentement-entree 0.35s ease-out;
}
.consentement[hidden] { display: none; }
.consentement-titre { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.consentement p:not(.consentement-titre) { color: var(--muted); }
.consentement-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.consentement-actions .bouton { min-height: 44px; padding-inline: 22px; }
@keyframes consentement-entree { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .consentement { animation: none; } .social { transition: none; } }
@media (max-width: 560px) {
  .consentement { right: 16px; left: 16px; bottom: 16px; width: auto; }
  .consentement-actions .bouton { flex: 1; justify-content: center; }
}

/* Formulaire public et confirmation */
.publication-entete { max-width: 790px; }
.publication-entete .surtitre { margin-bottom: 14px; }
.publication-entete h1 { font-size: clamp(38px, 4vw, 54px); font-weight: 500; letter-spacing: -0.05em; }
.formulaire { max-width: 1050px; padding: 32px; border: 1px solid #edf1f4; }
.formulaire-note { padding-bottom: 20px; border-bottom: 1px solid #edf1f4; }
.formulaire-note h2 { font-size: 21px; font-weight: 650; letter-spacing: -0.4px; }
.formulaire-note p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.champ-aide { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.6; }
.formulaire input[type='file'] { height: auto; min-height: 48px; padding: 10px 12px; }
.formulaire-actions { display: flex; align-items: center; gap: 22px; margin-top: 4px; }
.formulaire-actions .bouton { grid-column: auto; margin: 0; }
.confirmation { max-width: 680px; border: 1px solid #edf1f4; }
.confirmation .surtitre { color: var(--accent-strong); }
.confirmation .bouton { justify-self: start; }

@keyframes derive-photo { from { transform: scale(1.035); } to { transform: scale(1); } }

/* Canvas « House Directory » : echelle typographique, marque, recherche et
   cartes alignees sur les plans Foundations / Property card du canvas. */
.marque-icone {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--orange);
}
.marque-icone .icone { width: 23px; height: 23px; stroke-width: 2.4; }
.pied-marque .marque-icone { width: 38px; height: 38px; }
.pied-marque .marque-icone .icone { width: 20px; height: 20px; }
.heros h1 { font-size: clamp(56px, 5.65vw, 81px); }
.recherche { padding: 18px; gap: 10px; border-radius: 30px; }
.recherche-champ {
  min-height: 64px;
  padding: 0 18px;
  border-radius: 20px;
  background: var(--ground);
}
.recherche-icone { color: var(--ink); }
.recherche input[type='search'], .recherche select {
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.recherche .recherche-bouton { min-height: 64px; padding-inline: 28px; border-radius: 20px; }
/* Ombre en couches teintee encre : contact net + halo diffus, plus profonde
   au survol pour un relief discret. */
.carte-annonce {
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(20, 40, 62, 0.06),
    0 6px 14px -4px rgba(20, 40, 62, 0.08),
    0 22px 40px -18px rgba(20, 40, 62, 0.2);
}
.carte-annonce:hover {
  box-shadow:
    0 2px 4px rgba(20, 40, 62, 0.06),
    0 14px 24px -8px rgba(20, 40, 62, 0.12),
    0 38px 64px -24px rgba(20, 40, 62, 0.3);
}
.carte-entete { flex-wrap: wrap; row-gap: 4px; }
.carte-image { margin: 0; border-radius: 0; }
.carte-etiquette {
  top: 16px;
  left: 16px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 30px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}
.carte-corps { padding: 20px 22px 22px; }
.carte-entete { align-items: baseline; margin-bottom: 10px; }
.prix { font-size: 27px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.15; }
.prix small { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.prix-demande { font-size: 18px; letter-spacing: -0.3px; }
.carte-type { color: var(--muted); font-size: 13px; font-weight: 600; }
.carte-corps h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.3px; line-height: 1.25; }
.carte-corps h3 a .icone { width: 21px; height: 21px; margin-top: 3px; color: var(--ink); }
.carte-lieu { color: var(--muted); font-weight: 600; }
.carte-pied { gap: 8px 18px; margin-top: 16px; padding-top: 14px; border-top-color: var(--surface); }
.fait { gap: 7px; color: var(--ink); font-size: 13px; font-weight: 600; }
.fait .icone { width: 18px; height: 18px; color: var(--ink); }
.pied-credit { text-decoration: underline; text-underline-offset: 3px; }
.pied-credit:hover { color: var(--accent-strong); }

/* Administration */

.connexion {
  max-width: 460px;
  margin: 64px auto;
  background: #fff;
  border-radius: 24px;
  padding: 34px;
  display: grid;
  gap: 16px;
}

.connexion h1 { font-size: 30px; font-weight: 650; letter-spacing: -0.8px; }
.connexion .bouton { justify-self: start; margin-top: 6px; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  font-size: 14px;
}

.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td { padding: 14px 16px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f7fafc; }

.etiquette {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.etiquette.publie { background: #e4f5ea; color: #1c6b3c; }
.etiquette.attente { background: #ffe9dc; color: #9a4415; }
.etiquette.archive { background: #e8edf1; color: #52606d; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.actions .bouton {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.actions .lien { font-size: 13px; }

/* Adaptations responsive, sans JavaScript. */

@media (min-width: 1600px) {
  .heros { height: 660px; }
  .heros-texte { padding-top: 82px; }
}

@media (max-width: 1150px) {
  .entete, main, .pied { width: calc(100% - 48px); }
  .entete { height: 90px; gap: 20px; }
  .marque-description { display: none; }
  .nav { gap: 21px; }
  .nav-publication { padding-inline: 17px; font-size: 13px; }
  .heros-texte { padding: 62px 40px 0; }
  .villes { left: 40px; max-width: calc(100% - 80px); }
  .recherche { width: calc(100% - 80px); padding: 18px; gap: 16px; }
  .grille { gap: 22px 16px; }
  .carte-corps { padding: 16px; }
  .carte-pied { gap: 7px; }
  .fait { gap: 5px; font-size: 12px; }
  .prix { font-size: 23px; }
  .categories { gap: 16px; }
  .fiche-corps { gap: 30px; }
  .appel-texte { padding: 42px 36px; }
}

@media (max-width: 900px) {
  .marque { font-size: 27px; letter-spacing: -1.2px; }
  .marque-icone { width: 38px; height: 38px; }
  .marque-icone .icone { width: 20px; height: 20px; }
  .nav { gap: 17px; }
  .nav .nav-lien { font-size: 13px; }
  .heros { height: 610px; }
  .heros-texte { padding: 58px 36px 0; }
  .heros h1 { font-size: 64px; }
  .villes { left: 36px; right: 30px; bottom: 100px; max-width: calc(100% - 66px); }
  .recherche { grid-template-columns: 1fr 1fr; width: calc(100% - 60px); padding: 20px; }
  .recherche-bouton { grid-column: 1 / -1; width: 100%; }
  .section { padding-top: 72px; }
  .annuaire, .publication { padding-top: 44px; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .carte-corps { padding: 19px; }
  .fait { font-size: 12px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtres { grid-template-columns: 1fr 1fr; }
  .filtres .bouton { grid-column: 1 / -1; justify-self: start; }
  .fiche-corps { grid-template-columns: 1fr; }
  .fiche-aside { position: static; grid-template-columns: 1fr 1fr; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-tete { flex-direction: column; align-items: flex-start; gap: 14px; }
  .appel { grid-template-columns: 1fr; }
  .appel-image { min-height: 310px; }
  .pied-nav { width: 100%; margin-left: 0; }
  .statistiques { grid-template-columns: 1fr 1fr; }
  .formulaire { grid-template-columns: 1fr; max-width: 700px; padding: 25px; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 700px) {
  .entete, main, .pied { width: calc(100% - 32px); }
  .entete { height: auto; min-height: 80px; padding: 15px 0 12px; flex-wrap: wrap; gap: 8px 12px; }
  .marque { font-size: 28px; letter-spacing: -1.35px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 24px; overflow-x: auto; }
  .nav .nav-lien { padding: 8px 0 10px; font-size: 13px; }
  .nav .nav-lien.nav-actif::after { bottom: 2px; }
  .nav-publication { width: 44px; min-height: 44px; margin-left: auto; padding: 0; border-radius: 50%; font-size: 0; gap: 0; }
  .nav-publication .icone { width: 20px; height: 20px; }
  .heros { height: 610px; border-radius: 22px; }
  .heros-image img { object-position: 62% center; }
  .heros-voile { background: linear-gradient(90deg, rgba(6, 19, 31, 0.72), rgba(6, 19, 31, 0.28)); }
  .heros-texte { padding: 44px 24px 0; }
  .heros h1 { font-size: clamp(42px, 9.5vw, 60px); line-height: 1.1; }
  .heros .chapeau { max-width: 300px; margin-top: 20px; font-size: 14px; line-height: 1.65; }
  .heros-bouton { min-height: 48px; margin-top: 22px; font-size: 13px; }
  .villes { left: 24px; right: 24px; bottom: 84px; max-width: calc(100% - 48px); gap: 7px; }
  .villes a { min-height: 37px; padding-inline: 13px; font-size: 12px; }
  .villes a:nth-child(n+5) { display: none; }
  .recherche { grid-template-columns: 1fr; width: calc(100% - 32px); margin-top: -48px; padding: 14px; gap: 8px; border-radius: 26px; }
  .recherche-champ { min-height: 58px; padding: 8px 16px; gap: 12px; border-radius: 18px; }
  .recherche input[type='search'], .recherche select { height: 27px; font-size: 14px; }
  .recherche .recherche-bouton { width: 100%; min-height: 54px; border-radius: 18px; }
  .section { padding-top: 60px; }
  .annuaire, .publication { padding-top: 38px; }
  .section-tete { gap: 15px; margin-bottom: 25px; }
  .section-tete h2, .section h2 { font-size: 29px; }
  .categories { grid-template-columns: 1fr; gap: 15px; }
  .categorie { min-height: 145px; }
  .grille { grid-template-columns: 1fr; gap: 23px; }
  .carte-corps { padding: 20px; }
  .carte-corps h3 { font-size: 20px; }
  .prix { font-size: 24px; }
  .carte-pied { gap: 8px; }
  .fait { font-size: 12px; }
  .filtres { grid-template-columns: 1fr; padding: 18px; }
  .filtres .bouton { width: 100%; }
  .annuaire-meta { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: -4px; }
  .annuaire-total strong { font-size: 22px; }
  .pagination-resume { width: 100%; margin: 8px 0 0; }
  .fiche { padding-top: 34px; }
  .fiche-tete { flex-direction: column; align-items: flex-start; gap: 18px; }
  .fiche-tete h1 { font-size: clamp(34px, 10vw, 44px); }
  .fiche-prix { font-size: 18px; }
  .galerie { gap: 10px; }
  .galerie-vignette:first-child { aspect-ratio: 1.35; }
  .fiche-corps { margin-top: 32px; }
  .fiche-aside { grid-template-columns: 1fr; }
  .appel { margin-top: 65px; border-radius: 22px; }
  .appel-texte { padding: 37px 27px; }
  .appel h2 { font-size: 39px; }
  .appel-actions { align-items: flex-start; gap: 12px; }
  .appel-image { min-height: 285px; }
  .appel-note { left: 18px; right: 18px; bottom: 18px; justify-content: center; padding-inline: 12px; }
  .pied { padding-top: 45px; }
  .pied-haut { gap: 20px; }
  .pied-haut > p { display: none; }
  .pied-nav { flex-wrap: wrap; gap: 8px 20px; }
  .pied-bas { flex-direction: column; gap: 12px; margin-top: 24px; }
  .formulaire { padding: 22px; }
  .formulaire-actions { flex-direction: column; align-items: flex-start; gap: 13px; }
  .confirmation { padding: 28px 22px; }
  .statistiques { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .marque { font-size: 25px; }
  .heros-texte { padding-inline: 20px; }
  .heros h1 { font-size: 39px; }
  .villes { left: 20px; right: 20px; }
  .carte-corps { padding: 16px; }
  .carte-pied { gap: 6px; }
  .fait { gap: 5px; font-size: 12px; }
  .fait .icone { width: 16px; height: 16px; }
  .appel h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Gestion des photos d'une annonce dans l'administration --- */
.medias-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.media {
  margin: 0;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
}
.media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}
.petit {
  min-height: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.petit:hover { border-color: var(--orange); color: #b54916; }
.petit.danger { color: #9f2e13; border-color: #f2c3b5; }
.petit.danger:hover { background: #fff0ec; }

.media-vide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  word-break: break-all;
}


/* Champs de formulaire alignes sur le canevas : surface claire, rayon 14px,
   halo orange au focus, fleche de liste et zone de depot pour les photos. */
:is(.filtres, .formulaire, .connexion) :is(input:not([type='file'], [type='hidden']), select, textarea) {
  appearance: none;
  -webkit-appearance: none;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #dbe3ea;
  border-radius: 14px;
  background-color: var(--ground);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(20, 40, 62, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
:is(.filtres, .formulaire, .connexion) textarea {
  height: auto;
  min-height: 132px;
  padding: 14px 16px;
  line-height: 1.65;
}
:is(.filtres, .formulaire, .connexion) :is(input, textarea)::placeholder { color: #8a96a3; opacity: 1; }
:is(.filtres, .formulaire, .connexion) :is(input:not([type='file']), select, textarea):hover {
  border-color: #c3cfda;
  background-color: #fff;
}
:is(.filtres, .formulaire, .connexion) :is(input:not([type='file']), select, textarea):focus {
  border-color: var(--orange);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 123, 57, 0.16);
}
:is(.filtres, .formulaire, .connexion) :is(input:not([type='file']), select, textarea):focus-visible {
  outline: 2px solid #d85416;
  outline-offset: 2px;
}
:is(.filtres, .formulaire, .connexion) select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314283e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
:is(.filtres, .formulaire, .connexion) input[type='number'] { -moz-appearance: textfield; }
:is(.filtres, .formulaire, .connexion) input::-webkit-inner-spin-button,
:is(.filtres, .formulaire, .connexion) input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
:is(.filtres, .formulaire, .connexion) input[type='search']::-webkit-search-decoration { -webkit-appearance: none; }
:is(.filtres, .formulaire, .connexion) :is(input, select, textarea):user-invalid { border-color: #c2410c; }

/* Zone de depot : l'input natif couvre toute la zone, donc glisser-deposer
   fonctionne sans JavaScript. */
.formulaire input[type='file'] {
  height: auto;
  min-height: 96px;
  padding: 24px 18px 24px 62px;
  border: 1.5px dashed #b9c6d2;
  border-radius: 18px;
  background-color: var(--ground);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7b39' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 22px center;
  background-size: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.formulaire input[type='file']:hover,
.formulaire input[type='file']:focus-visible {
  border-color: var(--orange);
  background-color: #fff7f2;
}
.formulaire input[type='file']::file-selector-button {
  margin-right: 12px;
  padding: 10px 18px;
  border: 0;
  border-radius: 30px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.formulaire input[type='file']:hover::file-selector-button { background: #22405f; }
.filtres .bouton { min-height: 52px; border-radius: 14px; }

@media (max-width: 700px) {
  :is(.filtres, .formulaire, .connexion) :is(input:not([type='file'], [type='hidden']), select) { height: 50px; font-size: 16px; }
  :is(.filtres, .formulaire, .connexion) textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.filtres, .formulaire, .connexion) :is(input, select, textarea),
  .formulaire input[type='file']::file-selector-button { transition: none; }
}

/* Fleches des boutons et liens : glissent dans leur direction au survol
   ou au focus clavier du parent. */
.fleche { transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1); }
:is(a, button):is(:hover, :focus-visible) .fleche-droite { transform: translateX(4px); }
:is(a, button):is(:hover, :focus-visible) .fleche-diagonale { transform: translate(3px, -3px); }
:is(a, button):is(:hover, :focus-visible) .fleche-gauche { transform: translateX(-4px); }
@media (prefers-reduced-motion: reduce) {
  .fleche { transition: none; }
  :is(a, button):is(:hover, :focus-visible) .fleche { transform: none; }
}

/* Listes deroulantes. Recherche d'accueil : meme chevron que les formulaires. */
.recherche select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314283e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 16px;
}

/* Liste ouverte : navigateurs compatibles avec le select personnalisable
   (appearance: base-select) ; les autres gardent la liste native. */
@supports (appearance: base-select) {
  /* :not([multiple]) egale la specificite de la regle des champs, qui
     impose appearance: none plus haut. */
  :is(.filtres, .formulaire, .connexion, .recherche) select:not([multiple]),
  :is(.filtres, .formulaire, .connexion, .recherche) select::picker(select) {
    appearance: base-select;
  }
  :is(.filtres, .formulaire, .connexion, .recherche) select:not([multiple]) {
    display: flex;
    align-items: center;
  }
  :is(.filtres, .formulaire, .connexion, .recherche) select::picker-icon { display: none; }
  :is(.filtres, .formulaire, .connexion, .recherche) select::picker(select) {
    min-width: anchor-size(width);
    max-height: min(340px, 60vh);
    margin-block: 8px;
    padding: 6px;
    border: 1px solid #e3e9ef;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow:
      0 2px 4px rgba(20, 40, 62, 0.06),
      0 14px 24px -8px rgba(20, 40, 62, 0.14),
      0 32px 56px -24px rgba(20, 40, 62, 0.28);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, overlay 0.18s allow-discrete, display 0.18s allow-discrete;
  }
  @starting-style {
    :is(.filtres, .formulaire, .connexion, .recherche) select:open::picker(select) {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
  :is(.filtres, .formulaire, .connexion, .recherche) option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }
  :is(.filtres, .formulaire, .connexion, .recherche) option:is(:hover, :focus-visible) {
    background: var(--ground);
    outline: none;
  }
  :is(.filtres, .formulaire, .connexion, .recherche) option:checked {
    background: #fff1e8;
    font-weight: 650;
  }
  :is(.filtres, .formulaire, .connexion, .recherche) option::checkmark {
    order: 1;
    margin-left: auto;
    color: var(--orange);
    font-weight: 700;
  }
  @media (prefers-reduced-motion: reduce) {
    :is(.filtres, .formulaire, .connexion, .recherche) select::picker(select) { transition: none; }
  }
}

/* Upload progress (assets/upload.js): per-photo ring + overall bar */
[hidden] { display: none !important; }
.up-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.up-tile { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 6px 18px rgba(20, 40, 62, 0.08); }
.up-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: filter 0.2s; }
.up-tile[data-state='ready'] img, .up-tile[data-state='sending'] img { filter: saturate(0.6) brightness(0.8); }
.up-tile figcaption { display: grid; padding: 8px 10px; font-size: 12px; }
.up-tile figcaption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.up-tile figcaption small { color: var(--muted); }
.up-ring {
  --p: 0;
  position: absolute; top: 10px; right: 10px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(255, 255, 255, 0.35) 0);
  box-shadow: 0 4px 12px rgba(20, 40, 62, 0.25);
}
.up-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(20, 40, 62, 0.82); }
.up-ring output { position: relative; color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.up-tile[data-state='done'] .up-ring { background: #1f9d63; }
.up-tile[data-state='error'] .up-ring { background: #c8102e; }
.up-total { display: flex; align-items: center; gap: 12px; }
.up-total progress { flex: 1; height: 10px; appearance: none; border: 0; border-radius: 99px; background: var(--chip); overflow: hidden; }
.up-total progress::-webkit-progress-bar { background: var(--chip); border-radius: 99px; }
.up-total progress::-webkit-progress-value { background: linear-gradient(90deg, #ff925b, var(--orange)); border-radius: 99px; transition: width 0.15s; }
.up-total progress::-moz-progress-bar { background: linear-gradient(90deg, #ff925b, var(--orange)); border-radius: 99px; }
.up-total output { min-width: 4ch; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.up-status { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.up-status:empty { display: none; }
.upload-failed .up-status { color: var(--accent-strong); }
.is-uploading .bouton[type='submit'] { opacity: 0.6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .up-tile img, .up-total progress::-webkit-progress-value { transition: none; } }

/* Mise en avant payante "A la une" et vedettes de l'accueil. */
.badge-une {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 30px;
  background: #ff7b39;
  color: #14283e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
}
.carte-image .badge-une { position: absolute; top: 13px; right: 13px; }
.heros-vedette {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: grid;
  gap: 6px;
  justify-items: start;
  max-width: min(340px, calc(100% - 56px));
  min-height: 44px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: #14283e;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(20, 40, 62, 0.22);
}
.heros-vedette strong { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.heros-vedette-lieu { font-size: 13px; color: #4b5d70; }
.heros-vedette-prix { font-size: 14px; font-weight: 700; }
.heros-vedette:hover strong { text-decoration: underline; }
.heros-vedette:focus-visible, .appel-vedette:focus-visible { outline: 3px solid #ff7b39; outline-offset: 3px; }
.appel-vedette { min-height: 44px; flex-wrap: wrap; text-decoration: none; color: inherit; }
.appel-vedette strong { overflow-wrap: anywhere; }
.appel-voir { text-decoration: underline; font-weight: 600; }
@media (max-width: 1150px) {
  .heros-vedette { max-width: 280px; }
  .heros-vedette-lieu { display: none; }
}
@media (max-width: 700px) {
  .heros-vedette {
    top: 14px; left: 20px; right: 20px; max-width: none;
    grid-auto-flow: column; justify-content: start; align-items: center;
    padding: 9px 14px; border-radius: 16px;
  }
  .heros-vedette strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .heros-vedette-prix { display: none; }
  .heros-avec-vedette .heros-texte { padding-top: 78px; }
}

