/* =========================================================================
   L'Agence Taghazout — feuille de style unique.
   Aucun outil de compilation : ce fichier est servi tel quel.
   ========================================================================= */

:root {
  --brand: #0f766e;
  --accent: #f59e0b;

  /* Neutres à peine réchauffés : ni jaunes (le crème salissait le corail du
     logo), ni bleutés (un gris froid jurait avec lui). Le fond s'efface au
     profit des photos et de la couleur de marque. */
  --sand-50: #f5f4f2;
  --sand-100: #edebe7;
  --sand-200: #e2dfd9;
  --sand-300: #cdc9c1;
  --ink-500: #726d65;
  --ink-700: #494540;
  --ink-900: #191715;

  /* Une couleur par type d'opération : la location porte la couleur du logo,
     la vente la couleur d'accent réglée dans l'administration. Les
     encadrements des fiches en découlent. */
  --rent: var(--brand);
  --sale: var(--accent);
  /* Fonds sombres chauds : le gris bleuté d'origine ternissait les couleurs
     de marque posées à côté. */
  --deep: #17120e;
  --deep-2: #241b13;

  --font-display: 'Outfit', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Encadrements des blocs. Sur le site public ils dérivent de la couleur
     principale (celle du logo) ; l'administration garde la couleur d'accent,
     qui y fonctionne bien. Les séparateurs internes restent neutres, sinon
     les listes deviennent illisibles. */
  --frame: color-mix(in srgb, var(--brand) 42%, var(--sand-300));
  --frame-strong: color-mix(in srgb, var(--brand) 65%, var(--sand-300));
  --frame-rent: color-mix(in srgb, var(--rent) 45%, var(--sand-300));
  --frame-rent-strong: color-mix(in srgb, var(--rent) 70%, var(--sand-300));
  --frame-sale: color-mix(in srgb, var(--sale) 42%, var(--sand-200));
  --frame-sale-strong: color-mix(in srgb, var(--sale) 66%, var(--sand-200));
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
}

body.admin {
  --frame: color-mix(in srgb, var(--accent) 45%, #ffffff);
  --frame-strong: color-mix(in srgb, var(--accent) 62%, #ffffff);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.02em; }

p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; }
ul { list-style: none; }
img, video, iframe { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.9em; }
::selection { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------- Utilitaires */

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding-top: 6rem; }
.section-top { padding-top: 3rem; padding-bottom: 3rem; }
.stack > * + * { margin-top: 1.25rem; }
.row { display: flex; align-items: center; gap: 0.625rem; }
.row.wrap, .wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.push-right { margin-left: auto; }
.muted { color: var(--ink-500); }
.small { font-size: 0.8125rem; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.75rem; }
.prose { font-size: 1.0625rem; line-height: 1.8; color: var(--ink-700); }
.ref {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.6875rem; color: var(--ink-500); margin-right: 0.35rem;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--ink-500);
}
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; opacity: 0.5; }
.eyebrow-light { color: rgb(255 246 238 / 0.6); }
.eyebrow-center { justify-content: center; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.7s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid transparent; border-radius: 9999px;
  padding: 0.6875rem 1.375rem;
  font-family: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1.25rem;
  letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(0.9); transform: translateY(-1px); }
.btn-dark {
  background: linear-gradient(140deg, var(--deep-2), var(--deep));
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.btn-dark:hover:not(:disabled) {
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 26%, var(--deep-2)), var(--deep-2));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 75%, transparent);
}
.btn-ghost { border-color: var(--sand-300); background: #fff; color: var(--ink-700); }
.btn-ghost:hover:not(:disabled) { background: var(--sand-100); border-color: var(--ink-500); }
.btn-danger { border-color: #fecaca; background: #fff; color: #dc2626; }
.btn-danger:hover:not(:disabled) { background: #fef2f2; }
.btn-white { background: #fff; color: var(--ink-900); }
.btn-white:hover { background: rgb(255 246 238 / 0.85); }
.btn-outline-light { border-color: rgb(255 246 238 / 0.25); color: #fff; }
.btn-outline-light:hover { background: rgb(255 246 238 / 0.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 0.375rem 0.8125rem; font-size: 0.75rem; }
.btn-xs { padding: 0.25rem 0.625rem; font-size: 0.6875rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------- Formulaires */

input, select, textarea, button { font-family: inherit; font-size: 1rem; }

.field-group { display: block; }
.field-group > label, .field-label {
  display: block; margin-bottom: 0.375rem;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--ink-500);
}
.field-group input:not([type='checkbox']):not([type='color']):not([type='file']),
.field-group select,
.field-group textarea,
.inline-form input,
.feed-row input,
.booking-edit input,
.booking-edit select,
.media-actions input,
input[readonly].mono {
  width: 100%; border-radius: 0.875rem; border: 1px solid var(--sand-300);
  background: #fff; padding: 0.6875rem 0.9375rem;
  font-size: 0.875rem; color: var(--ink-900); outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
textarea { resize: vertical; line-height: 1.6; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus,
.inline-form input:focus, .feed-row input:focus, .booking-edit input:focus, .media-actions input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, white);
}
.field-hint { margin-top: 0.375rem; font-size: 0.75rem; color: var(--ink-500); }
.field-wide { grid-column: 1 / -1; }
.field-narrow { max-width: 14rem; }

.checkbox { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; }
.checkbox input { width: 1rem; height: 1rem; accent-color: var(--brand); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.color-row { display: flex; gap: 0.5rem; }
.color-row input[type='color'] {
  width: 3.5rem; height: 2.75rem; padding: 0.25rem;
  border: 1px solid var(--sand-300); border-radius: 0.875rem; background: #fff; cursor: pointer;
}
.bordered-top { border-top: 1px solid var(--sand-200); padding-top: 1.25rem; }

/* ------------------------------------------------------------------ Chips */

.chip {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 500; line-height: 1.1rem; white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.chip-brand { background: var(--brand); color: #fff; }
.chip-rent { background: var(--rent); color: #fff; }
.chip-sale { background: var(--sale); color: #fff; }
/* Posées sur une photo, elles ont besoin d'un léger décollement. */
.card-badge.chip-rent, .card-badge.chip-sale { box-shadow: 0 2px 10px rgb(23 18 14 / 0.35); }
.chip-accent-soft { background: #fef3c7; color: #92400e; }
.chip-outline { border: 1px solid var(--sand-300); color: var(--ink-700); }
.chip-live { background: #d1fae5; color: #047857; }
.chip-draft { background: var(--sand-100); color: var(--ink-500); }
.chip-import { background: #e0f2fe; color: #0369a1; }
.chip-reserve { background: #ffe4e6; color: #be123c; }
.chip-option { background: #fef3c7; color: #92400e; }
.chip-bloque { background: rgba(118, 123, 134, 0.18); color: var(--ink-500); }
.chip-glass {
  background: rgb(23 18 14 / 0.45); color: #fff;
  border: 1px solid rgb(255 246 238 / 0.2);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

/* ----------------------------------------------------------------- Entête */

.site-header { position: sticky; top: 0; z-index: 40; padding: 0.75rem 0.75rem 0; }
.header-bar {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.625rem 0.75rem; border-radius: 9999px;
  background: rgb(255 255 255 / 0.74);
  border: 1px solid rgb(255 255 255 / 0.6);
  box-shadow: 0 8px 30px -12px rgb(23 18 14 / 0.18);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.brand { display: flex; align-items: center; gap: 0.75rem; padding-left: 0.25rem; min-width: 0; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-name { display: block; font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand-tagline { display: none; font-size: 0.6875rem; color: var(--ink-500); }
.logo-img { width: auto; object-fit: contain; }
.logo-mono {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 1rem; background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 500;
}
.header-nav { display: none; align-items: center; }
.nav-link { position: relative; border-radius: 9999px; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-700); }
.nav-link::after {
  content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.4rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
/* Appel direct. Sur mobile la place manque pour le numéro entier : il se
   réduit à une pastille ronde, sans quoi il déborde sur le nom de l'agence. */
.header-phone { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; padding: 0; }
.header-phone svg { width: 1.125rem; height: 1.125rem; flex: 0 0 auto; }
.header-phone-text { display: none; }
.header-nav-mobile {
  max-width: 72rem; margin: 0.5rem auto 0; display: flex; gap: 0.25rem;
  overflow-x: auto; padding: 0.375rem 0.5rem; border-radius: 9999px;
  background: rgb(255 255 255 / 0.74);
  border: 1px solid rgb(255 255 255 / 0.6);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  scrollbar-width: none;
}
.header-nav-mobile::-webkit-scrollbar { display: none; }
.header-nav-mobile a { flex: 0 0 auto; border-radius: 9999px; padding: 0.375rem 0.875rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-700); }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .header-nav-mobile { display: none; }
  .site-header { padding: 1.25rem 1.25rem 0; }
}
@media (min-width: 1024px) {
  .brand-tagline { display: block; }
  .header-phone { width: auto; height: auto; padding: 0.6875rem 1.375rem; }
  .header-phone-text { display: inline; }
}

/* -------------------------------------------------------------------- Hero */

.hero-wrap { padding: 0.75rem 0.75rem 0; }
@media (min-width: 640px) { .hero-wrap { padding: 0.75rem 1.25rem 0; } }
.hero { position: relative; overflow: hidden; border-radius: 2rem; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  /* Deux couches : la première assombrit la colonne de gauche où se trouve
     le texte, la seconde le bas où se trouvent les compteurs. La photo reste
     lisible à droite. */
  background:
    linear-gradient(to right, rgb(23 18 14 / 0.86), rgb(23 18 14 / 0.5) 48%, rgb(23 18 14 / 0.12)),
    linear-gradient(to top, rgb(23 18 14 / 0.62), rgb(23 18 14 / 0) 55%);
}
.hero-gradient {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 45%, var(--deep-2)) 55%, var(--deep-2));
}
.hero-content {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 34rem; padding-top: 7rem; padding-bottom: 3.5rem; color: #fff;
}
.hero-content h1 { margin-top: 1.5rem; max-width: 48rem; color: #fff; }
.hero-lead { margin-top: 1.5rem; max-width: 34rem; color: rgb(255 246 238 / 0.75); line-height: 1.65; }
.hero-stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.hero-stat { border-left: 1px solid rgb(255 246 238 / 0.2); padding-left: 0.75rem; }
.hero-stat-value { font-family: var(--font-display); font-size: 1.5rem; }
.hero-stat-label { margin-top: 0.125rem; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(255 246 238 / 0.55); }
@media (min-width: 640px) {
  .hero-content { min-height: 38rem; padding-left: 2.5rem; padding-right: 2.5rem; }
  .hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; }
  .hero-stat { padding-left: 1rem; }
  .hero-stat-value { font-size: 1.875rem; }
  .hero-stat-label { font-size: 0.75rem; }
}

/* ------------------------------------------------------ Barre de recherche */

.search-wrap { max-width: 56rem; margin: -2.5rem auto 0; padding: 0 1.25rem; position: relative; z-index: 5; }
.search-card {
  border-radius: var(--radius-lg); border: 2px solid var(--frame); background: #fff;
  padding: 0.625rem; box-shadow: 0 24px 60px -30px rgb(23 18 14 / 0.35);
}
.search-modes { display: flex; gap: 0.25rem; padding: 0.375rem; }
.search-mode {
  border: 0; border-radius: 9999px; padding: 0.375rem 1.25rem;
  background: transparent; color: var(--ink-500); font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.search-mode.is-active { background: var(--brand); color: #fff; }
.search-fields { display: grid; gap: 0.5rem; }
.search-field { padding: 0.5rem 0.625rem; }
.search-field label {
  display: block; margin-bottom: 0.25rem;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--ink-500);
}
.search-field input, .search-field select {
  width: 100%; border: 0; background: transparent; padding: 0;
  font-size: 0.875rem; color: var(--ink-900); outline: none;
}
.search-submit { margin: 0.375rem; }
.search-card.is-sale .search-field.for-rent { display: none; }

@media (min-width: 640px) {
  .search-fields { grid-template-columns: 1.3fr 1fr 1fr 0.9fr auto; align-items: end; gap: 0.375rem; }
  .search-card.is-sale .search-fields { grid-template-columns: 1.4fr 1fr 1fr auto; }
  .search-field { border-right: 1px solid var(--sand-200); }
  /* Dernier champ visible : pas de filet, sinon il double celui du bouton. */
  .search-field:last-of-type { border-right: 0; }
  .search-card.is-sale .search-field:nth-child(3) { border-right: 0; }
  .search-submit { padding: 0.875rem 1.75rem; }
}

/* ------------------------------------------------------------ Section head */

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-head h2 { margin-top: 1rem; }
.section-aside { max-width: 20rem; font-size: 0.875rem; line-height: 1.6; color: var(--ink-500); }

.grid-cards { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------ Carte de bien */

.card-link { display: block; height: 100%; }
.property-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius-lg); border: 2px solid var(--frame); background: #fff;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.property-card.is-rent { border-color: var(--frame-rent); }
.property-card.is-sale { border-color: var(--frame-sale); }
.card-link:hover .property-card.is-rent { border-color: var(--frame-rent-strong); }
.card-link:hover .property-card.is-sale { border-color: var(--frame-sale-strong); }

.property-row.is-rent { border-color: var(--frame-rent); }
.property-row.is-sale { border-color: var(--frame-sale); }

.card-link:hover .property-card {
  transform: translateY(-6px); border-color: var(--frame-strong);
  box-shadow: 0 24px 50px -24px rgb(23 18 14 / 0.28);
}
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.06); }
.card-noimage { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--ink-500); }
.card-scrim { position: absolute; inset-inline: 0; bottom: 0; height: 8rem; background: linear-gradient(to top, rgba(0,0,0,0.65), transparent); }
.card-badge { position: absolute; left: 0.875rem; top: 0.875rem; }
.card-counts { position: absolute; right: 0.875rem; top: 0.875rem; display: flex; gap: 0.375rem; }
.card-price { position: absolute; left: 1rem; right: 1rem; bottom: 0.875rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
.card-price-value { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.card-price-label { padding-bottom: 0.25rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.card-kind { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-500); }
.card-title { margin: 0.5rem 0 1rem; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--sand-200); padding-top: 0.875rem; font-size: 0.875rem; color: var(--ink-500); }
.card-arrow { font-size: 1.125rem; color: var(--brand); transition: transform 0.3s var(--ease); }
.card-link:hover .card-arrow { transform: translateX(4px); }

/* -------------------------------------------------------------- Catalogues */

.page-head { max-width: 42rem; }
.page-head h1 { margin-top: 1.25rem; }
.page-intro { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-500); }

.filter-bar {
  margin-top: 3rem; display: grid; gap: 0.5rem; padding: 0.625rem;
  border-radius: var(--radius-lg); border: 2px solid var(--frame); background: #fff;
  box-shadow: 0 16px 40px -32px rgb(23 18 14 / 0.5);
}
.filter-field { padding: 0.5rem 0.75rem; }
.filter-field label {
  display: block; margin-bottom: 0.25rem;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--ink-500);
}
.filter-field input, .filter-field select {
  width: 100%; border: 0; background: transparent; padding: 0;
  font-size: 0.875rem; color: var(--ink-900); outline: none;
}
.filter-submit { margin: 0.375rem; }
@media (min-width: 640px) { .filter-bar { grid-template-columns: repeat(2, 1fr); } .filter-submit { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .filter-bar { grid-template-columns: 1.4fr 1fr 1fr 0.9fr 1fr auto; align-items: end; gap: 0; }
  .filter-bar.with-people { grid-template-columns: 1.25fr 1fr 1fr 0.85fr 0.95fr 1fr auto; }
  .filter-field { border-right: 1px solid var(--sand-200); }
  .filter-field:last-of-type { border-right: 0; }
  .filter-submit { grid-column: auto; padding: 0.875rem 1.75rem; }
}

.listing-meta { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: var(--ink-500); }
.listing-meta a { text-decoration: underline; text-underline-offset: 4px; }
.listing-meta a:hover { color: var(--ink-900); }

.empty-box { margin-top: 2rem; border-radius: var(--radius-lg); border: 2px dashed var(--frame-strong); padding: 4rem 1.5rem; text-align: center; }
.empty-title { font-family: var(--font-display); font-size: 1.5rem; }
.empty-box p:not(.empty-title) { margin: 0.75rem auto 0; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: var(--ink-500); }
.empty-box .btn { margin-top: 1.5rem; }
.empty-state { padding: 7rem 1.25rem; text-align: center; }
.empty-state h2 { margin-top: 1.25rem; }
.empty-state p { margin: 1rem auto 0; max-width: 28rem; color: var(--ink-500); }
.empty-state .btn { margin-top: 2rem; }

/* ------------------------------------------------------------ Fiche du bien */

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-500); }
.breadcrumb em { font-style: normal; color: var(--ink-900); }
.breadcrumb span { opacity: 0.4; }
.property-head { margin-bottom: 2rem; max-width: 42rem; }
.property-head h1 { margin-top: 1.25rem; }
.property-address { margin-top: 1rem; color: var(--ink-500); }

.gallery { display: grid; gap: 1rem; }
.gallery-grid { display: grid; gap: 0.5rem; }
.gallery-main { overflow: hidden; border-radius: var(--radius-lg); }
.gallery-main img { width: 100%; max-height: 32rem; object-fit: cover; }
.gallery-side { position: relative; display: none; overflow: hidden; border-radius: var(--radius-lg); }
.gallery-side img { width: 100%; height: 100%; min-height: 7.5rem; object-fit: cover; }
.gallery-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.875rem; font-weight: 600; }
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
  .gallery-main { grid-column: span 3; grid-row: span 2; }
  .gallery-side { display: block; }
}
.gallery-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs a { flex: 0 0 auto; width: 6rem; height: 4rem; overflow: hidden; border-radius: 0.75rem; border: 2px solid var(--frame); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-videos { display: grid; gap: 1rem; }
@media (min-width: 640px) { .gallery-videos { grid-template-columns: repeat(2, 1fr); } }
.video-card { margin: 0; overflow: hidden; border-radius: var(--radius-lg); border: 2px solid var(--frame); background: #fff; }
.video-card iframe, .video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-card figcaption { padding: 0.5rem 1rem; font-size: 0.75rem; color: var(--ink-500); }
.gallery-empty { display: flex; aspect-ratio: 16 / 9; align-items: center; justify-content: center; border-radius: var(--radius-lg); border: 2px dashed var(--frame-strong); color: var(--ink-500); }

.property-layout { margin-top: 3.5rem; display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .property-layout { grid-template-columns: 1fr 23.75rem; } }
.property-main > * + * { margin-top: 3.5rem; }
.property-main h2 { margin-top: 1rem; }
.property-main .prose { margin-top: 1.5rem; }
.property-aside { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .property-aside { position: sticky; top: 7rem; align-self: start; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; border-block: 1px solid var(--sand-200); padding-block: 2rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-500); }
.fact-value { margin-top: 0.375rem; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em; }

.amenities { margin-top: 1.5rem; display: grid; gap: 0 2.5rem; }
@media (min-width: 640px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
.amenities li { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--sand-200); padding: 0.75rem 0; font-size: 0.9375rem; color: var(--ink-700); }
.amenity-mark { font-size: 0.7rem; color: var(--brand); }

.map { margin-top: 1.5rem; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); border: 2px solid var(--frame); }

.contact-card { border-radius: var(--radius-lg); border: 2px solid var(--frame); background: #fff; padding: 1.75rem; }
.contact-card h2 { font-size: 1.5rem; line-height: 1.3; }
.contact-card > p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; }
.contact-buttons { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; }
.contact-buttons.row { flex-direction: row; flex-wrap: wrap; }
.contact-hours { margin-top: 1.5rem; border-top: 1px solid var(--sand-200); padding-top: 1rem; font-size: 0.75rem; color: var(--ink-500); }

/* ------------------------------------------------------------------ Tarifs */

.price-card { overflow: hidden; border-radius: var(--radius-lg); border: 2px solid var(--frame); background: #fff; }
.price-head { border-bottom: 1px solid var(--sand-200); padding: 1.75rem 1.75rem 1.25rem; }
.price-list { padding: 0 1.75rem; }
.price-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--sand-200); }
.price-list li:last-child { border-bottom: 0; }
.price-label { font-size: 0.875rem; color: var(--ink-700); }
.price-sub { display: block; margin-top: 0.125rem; font-size: 0.75rem; color: var(--ink-500); }
.price-value { flex: 0 0 auto; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.03em; }
.price-value-empty { flex: 0 0 auto; font-size: 0.875rem; font-style: italic; color: var(--ink-500); }
.price-charges { border-top: 1px solid var(--sand-200); padding: 1rem 1.75rem; font-size: 0.75rem; line-height: 1.6; color: var(--ink-500); }
.price-card-dark {
  border-color: transparent;
  color: #fff;
  padding: 1.75rem;
  background:
    radial-gradient(130% 95% at 100% 0%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 62%),
    linear-gradient(140deg, var(--deep-2), var(--deep));
}
.price-on-request { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.875rem; letter-spacing: -0.03em; color: var(--brand); }
.price-note { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: rgb(255 246 238 / 0.6); }

/* -------------------------------------------------------------- Calendrier */

.calendar-card { border-radius: var(--radius-lg); border: 2px solid var(--frame); background: #fff; padding: 1.5rem; }
.calendar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.calendar-nav { display: flex; gap: 0.25rem; }
.calendar-months { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .calendar-months { grid-template-columns: repeat(2, 1fr); } }
.calendar-title { margin-bottom: 0.5rem; text-align: center; font-family: var(--font-display); font-size: 1rem; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.calendar-weekdays span { padding: 0.25rem 0; text-align: center; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; color: var(--ink-500); }
.calendar-grid { margin-top: 0.25rem; }
.cal-day {
  display: flex; align-items: center; justify-content: center;
  height: 2.5rem; border: 0; border-radius: 0.75rem;
  font-family: inherit; font-size: 0.875rem;
}
button.cal-day { cursor: pointer; }
.cal-empty { height: 2.5rem; }
.cal-libre { background: rgba(209, 250, 229, 0.7); color: #065f46; }
.cal-reserve { background: #ffe4e6; color: #be123c; }
.cal-option { background: #fef3c7; color: #92400e; }
.cal-bloque { background: rgba(118, 123, 134, 0.18); color: var(--ink-500); }
/* Bleu : période importée d'une plateforme (Airbnb, Booking…). Administration uniquement. */
.cal-import { background: #dbeafe; color: #1d4ed8; }
.cal-past { opacity: 0.45; }
.cal-today { box-shadow: 0 0 0 2px var(--brand); }
.calendar-legend { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--sand-200); padding-top: 1rem; font-size: 0.75rem; color: var(--ink-500); }
.calendar-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.dot {
  width: 0.8rem; height: 0.8rem; border-radius: 0.3rem;
  display: inline-block; flex: none;
  box-shadow: inset 0 0 0 1px rgb(23 18 14 / 0.14);
}

/* --------------------------------------------------------------- Contact */

.contact-layout { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1.1fr; } }
.contact-panel { border-radius: var(--radius-lg); border: 2px solid var(--frame); background: #fff; padding: 2rem; }
.contact-list { margin-top: 1.5rem; }
.contact-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--sand-200); padding: 1rem 0; }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-500); }
.contact-list dd { margin: 0; text-align: right; font-size: 0.9375rem; font-weight: 500; }
.contact-list dd a:hover { color: var(--brand); }
.contact-map, .contact-map-empty { width: 100%; min-height: 24rem; border-radius: var(--radius-lg); border: 2px solid var(--frame); }
.contact-map-empty { display: flex; align-items: center; justify-content: center; border-style: dashed; padding: 3rem; text-align: center; font-size: 0.875rem; color: var(--ink-500); }

.about-card { display: grid; gap: 2.5rem; border-radius: 2rem; border: 2px solid var(--frame); background: #fff; padding: 2rem; }
.about-card-spaced { margin-top: 1.5rem; }
@media (min-width: 640px) { .about-card { padding: 3.5rem; } }
@media (min-width: 1024px) { .about-card { grid-template-columns: 0.8fr 1.2fr; } }
.about-card h2 { margin-top: 1rem; }

/* ------------------------------------------------------------------- 404 */

.notfound { display: flex; min-height: 60vh; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.notfound-code { font-family: var(--font-display); font-size: 4rem; color: var(--brand); }
.notfound h1 { margin-top: 1rem; }
.notfound > p { margin-top: 0.75rem; max-width: 28rem; color: var(--ink-500); }
.notfound-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* -------------------------------------------------------------- Pied de page */

.site-footer {
  margin-top: 6rem;
  color: rgb(255 246 238 / 0.72);
  background:
    radial-gradient(85% 60% at 100% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%),
    radial-gradient(65% 50% at 0% 100%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    linear-gradient(172deg, var(--deep-2), var(--deep));
}
.site-footer .container { padding-top: 5rem; padding-bottom: 3rem; }
.footer-cta { border-bottom: 1px solid rgb(255 246 238 / 0.1); padding-bottom: 3.5rem; }
.footer-cta-row { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.footer-cta h2 { max-width: 36rem; color: #fff; font-size: clamp(1.75rem, 4vw, 3rem); }
.footer-cta-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-cta-buttons .btn { padding: 0.875rem 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.footer-tagline { margin-top: 0.75rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.6; }
.site-footer h3 { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: rgb(255 246 238 / 0.4); }
.site-footer ul { margin-top: 1.25rem; display: grid; gap: 0.625rem; font-size: 0.875rem; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgb(255 246 238 / 0.45); }
.footer-legal { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid rgb(255 246 238 / 0.1); padding-top: 2rem; font-size: 0.75rem; color: rgb(255 246 238 / 0.4); }
@media (min-width: 640px) { .footer-legal { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ==========================================================================
   Administration
   ========================================================================== */

.admin-shell { max-width: 84rem; margin: 0 auto; display: grid; gap: 1.5rem; padding: 1.5rem 1.25rem 4rem; }
@media (min-width: 1024px) { .admin-shell { grid-template-columns: 16rem 1fr; } }
.admin-side { min-width: 0; }
.admin-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.admin-brand-name { display: block; font-family: var(--font-display); font-size: 1rem; }
.admin-brand-sub { font-size: 0.75rem; color: var(--ink-500); }
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav-link { border-radius: 0.875rem; padding: 0.625rem 0.875rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-700); }
.admin-nav-link:hover { background: var(--sand-100); }
.admin-nav-link.is-active { background: var(--brand); color: #fff; }
.admin-nav-foot { margin-top: 1rem; border-top: 1px solid var(--sand-200); padding-top: 1rem; }
.admin-nav-foot a { display: block; border-radius: 0.875rem; padding: 0.625rem 0.875rem; font-size: 0.875rem; color: var(--ink-500); }
.admin-nav-foot a:hover { background: var(--sand-100); }
.admin-logout { display: block; width: 100%; border: 0; border-radius: 0.875rem; padding: 0.625rem 0.875rem; background: transparent; text-align: left; font-size: 0.875rem; color: #dc2626; cursor: pointer; }
.admin-logout:hover { background: #fef2f2; }
.admin-main { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }

.admin-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.admin-head h1 { font-size: 1.75rem; }
.admin-head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.back-link { font-size: 0.875rem; color: var(--ink-500); }
.back-link:hover { color: var(--brand); }

.alert { border-radius: 0.875rem; padding: 0.75rem 1rem; font-size: 0.875rem; }
.alert-succes { background: #d1fae5; color: #047857; }
.alert-erreur { background: #fef2f2; color: #b91c1c; }

.panel { border-radius: var(--radius); border: 2px solid var(--frame); background: #fff; padding: 1.25rem; }
.panel-warn { border-color: #fde68a; background: #fffbeb; }
.panel-warn .btn { margin-top: 1rem; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head a { font-size: 0.875rem; color: var(--brand); }
.panel h2 { font-size: 1.125rem; }

.admin-columns { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .admin-columns { grid-template-columns: repeat(2, 1fr); } }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { border-radius: var(--radius); border: 2px solid var(--frame); background: #fff; padding: 1.25rem; transition: box-shadow 0.2s; }
.stat-card:hover { box-shadow: 0 8px 24px -16px rgba(12,14,17,0.4); }
.stat-value { font-family: var(--font-display); font-size: 1.875rem; color: var(--brand); }
.stat-label { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-500); }

.divided-list { margin-top: 1rem; }
.divided-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--sand-200); padding: 0.625rem 0; font-size: 0.875rem; }
.divided-list li:last-child { border-bottom: 0; }
.divided-list a { font-weight: 500; }
.divided-list a:hover { color: var(--brand); }
.divided-list .muted { display: block; font-weight: 400; }
.divided-list.compact li { padding: 0.5rem 0; }
.hint-list { margin-top: 1rem; border-top: 1px solid var(--sand-200); padding-top: 1rem; display: grid; gap: 0.25rem; font-size: 0.875rem; }
.hint-list a { color: var(--ink-500); }
.hint-list a:hover { color: var(--brand); }

.tabs { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1px solid var(--sand-200); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; border-bottom: 2px solid transparent; padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-500); }
.tab:hover { color: var(--ink-700); }
.tab.is-active { border-bottom-color: var(--brand); color: var(--ink-900); }

.two-columns { display: grid; gap: 1rem; }
.three-columns, .four-columns, .six-columns { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .two-columns { grid-template-columns: repeat(2, 1fr); }
  .three-columns { grid-template-columns: repeat(3, 1fr); }
  .four-columns { grid-template-columns: repeat(2, 1fr); }
  .six-columns { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .four-columns { grid-template-columns: repeat(4, 1fr); }
  .six-columns { grid-template-columns: repeat(6, 1fr); }
}

.sticky-bar { position: sticky; bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; border-radius: var(--radius); border: 2px solid var(--frame); background: rgba(255,255,255,0.95); padding: 0.75rem; box-shadow: 0 12px 32px -16px rgba(12,14,17,0.35); backdrop-filter: blur(8px); }

.preview-box { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; border-radius: var(--radius); border: 2px solid var(--frame); background: var(--sand-50); padding: 1rem; }
.preview-box-wide { display: block; padding: 0; overflow: hidden; }
.preview-box-wide .checkbox { padding: 0.75rem 1rem; }
.preview-logo { height: 4rem; width: auto; object-fit: contain; }
.preview-hero { width: 100%; height: 7rem; object-fit: cover; }

.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.tabs-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.inline-form { margin-left: auto; display: flex; gap: 0.5rem; }
.inline-form input { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }

.property-rows { display: grid; gap: 0.75rem; }
.property-row { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .property-row { flex-direction: row; align-items: center; } }
.property-row-thumb { flex: 0 0 auto; height: 6rem; width: 100%; overflow: hidden; border-radius: 0.875rem; background: var(--sand-100); }
@media (min-width: 640px) { .property-row-thumb { width: 9rem; } }
.property-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.property-row-thumb span { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--ink-500); }
.property-row-body { flex: 1; min-width: 0; }
.property-row-title { margin-top: 0.375rem; font-family: var(--font-display); font-size: 1.125rem; }
.property-row-body .muted { font-size: 0.875rem; }
.property-row-actions { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.property-row-price { font-family: var(--font-display); font-size: 1.125rem; color: var(--brand); }

.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; border-radius: var(--radius); border: 2px dashed var(--frame-strong); background: var(--sand-50); padding: 1rem; }
.upload-row input[type='file'] { flex: 1 1 16rem; font-size: 0.8125rem; }
.upload-row input[type='url'] { flex: 1 1 20rem; border-radius: 0.875rem; border: 1px solid var(--sand-300); background: #fff; padding: 0.625rem 0.875rem; font-size: 0.8125rem; }
.upload-row .field-hint { flex: 1 1 100%; margin: 0; }

.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.media-grid-wide { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.media-card { overflow: hidden; border-radius: var(--radius); border: 2px solid var(--frame); }
.media-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--sand-100); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-cover-badge { position: absolute; left: 0.5rem; top: 0.5rem; }
.media-video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.media-actions { display: grid; gap: 0.5rem; padding: 0.75rem; }
.media-actions input { padding: 0.375rem 0.625rem; font-size: 0.75rem; }

.price-rows { display: grid; gap: 0.75rem; }
.price-row { display: grid; gap: 0.75rem; border-radius: var(--radius); border: 2px solid var(--frame); padding: 0.75rem; }
@media (min-width: 768px) { .price-row { grid-template-columns: 1fr 10rem 1fr auto; align-items: end; } }

.amenity-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.amenity-check { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.75rem; border: 2px solid var(--frame); padding: 0.5rem 0.75rem; font-size: 0.875rem; cursor: pointer; }
.amenity-check input { accent-color: var(--brand); }
.amenity-check:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, white); }

.booking-form { border-radius: var(--radius); border: 2px solid var(--frame); background: var(--sand-50); padding: 1rem; display: grid; gap: 0.75rem; }
.booking-rows { display: grid; gap: 0.5rem; }
.booking-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; border: 2px solid var(--frame); border-radius: var(--radius); padding: 0.625rem; }
.booking-edit input, .booking-edit select { flex: 1 1 8rem; padding: 0.375rem 0.625rem; font-size: 0.8125rem; }
.booking-imported { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; border-radius: var(--radius); background: var(--sand-50); padding: 0.75rem; font-size: 0.875rem; }

/* Chaque bien est repliable : la page reste lisible avec beaucoup d'annonces. */
.feed-details { border-radius: var(--radius); border: 2px solid var(--frame); }
.feed-details + .feed-details { margin-top: 0.5rem; }
.feed-details > summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
  padding: 0.875rem 1rem; cursor: pointer; list-style: none;
  border-radius: var(--radius); transition: background-color 0.15s;
}
.feed-details > summary::-webkit-details-marker { display: none; }
.feed-details > summary:hover { background: var(--sand-50); }
.feed-details > summary::before {
  content: '›'; display: inline-block; width: 0.75rem;
  font-size: 1.125rem; line-height: 1; color: var(--ink-500);
  transition: transform 0.2s var(--ease);
}
.feed-details[open] > summary::before { transform: rotate(90deg); }
.feed-details[open] > summary { border-bottom: 1px solid var(--sand-200); border-radius: var(--radius) var(--radius) 0 0; }
.feed-summary-title { font-weight: 500; }
.feed-summary-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-left: auto; }
.feed-body { padding: 1rem; display: grid; gap: 0.875rem; }
.feed-open-link { font-size: 0.8125rem; }
.feed-open-link a { color: var(--ink-500); }
.feed-open-link a:hover { color: var(--brand); }
.feed-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.feed-head a { font-size: 0.875rem; color: var(--ink-500); }
.feed-head a:hover { color: var(--brand); }
.feed-form { display: grid; gap: 0.75rem; }
.feed-row { display: grid; gap: 0.5rem; }
@media (min-width: 768px) { .feed-row { grid-template-columns: 11rem 1fr; align-items: end; } }
.feed-status { grid-column: 1 / -1; font-size: 0.75rem; color: var(--ink-500); }
.feed-status.is-ok { color: #047857; }
.feed-status.is-error { color: #b91c1c; }
.feed-export { border-top: 1px solid var(--sand-200); padding-top: 0.875rem; }
.feed-export .row { margin-top: 0.5rem; }

.help-box { border-radius: var(--radius); background: var(--sand-50); padding: 1rem; font-size: 0.875rem; }
.help-box summary { cursor: pointer; font-weight: 600; }
.help-box p, .help-box ol { margin-top: 0.75rem; }
.help-box ol { padding-left: 1.25rem; list-style: decimal; display: grid; gap: 0.25rem; }

.planning-scroll { overflow-x: auto; }
.planning { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.75rem; }
.planning th { padding: 0.5rem 0; text-align: center; font-weight: 500; color: var(--ink-500); }
.planning th.is-today { color: var(--brand); font-weight: 700; }
.planning-name { position: sticky; left: 0; z-index: 1; background: #fff; padding: 0.375rem 0.5rem; text-align: left; max-width: 14rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planning td { padding: 1px; }
.plan-cell { display: block; height: 1.5rem; min-width: 0.875rem; border-radius: 0.25rem; }
.plan-libre { background: #d1fae5; }
.plan-reserve { background: #fda4af; }
.plan-option { background: #fcd34d; }
.plan-bloque { background: #b3b9c4; }
.plan-import { background: #93c5fd; }

/* --------------------------------------------------------------- Connexion */

.login-wrap { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 4rem 1.25rem; }
.login-box { width: 100%; max-width: 22rem; }
.login-head { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-bottom: 2rem; text-align: center; }
.login-head h1 { font-size: 1.5rem; }
.login-head p { font-size: 0.875rem; color: var(--ink-500); }
.login-form { border-radius: var(--radius); border: 2px solid var(--frame); background: #fff; padding: 1.5rem; display: grid; gap: 1rem; }
.login-hint { text-align: center; font-size: 0.75rem; color: var(--ink-500); }
.login-back { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--ink-500); }
.login-back a:hover { color: var(--brand); }

/* ==========================================================================
   Ouverture animée (page d'accueil, une fois par visite)

   Masquée par défaut : sans JavaScript, ou dès la deuxième page, le site
   s'affiche immédiatement. L'état final du voile est `visibility: hidden`
   avec `animation-fill-mode: forwards` — même si le script s'interrompt,
   la page redevient utilisable toute seule.
   ========================================================================== */

.intro { display: none; }

.intro-on .intro {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  background: var(--sand-50);
  animation: intro-out 0.6s var(--ease) 4.4s forwards;
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: 1.5rem;
}

.intro .logo-img,
.intro .logo-mono {
  /* La hauteur vient du gabarit ; on borne la largeur pour ne jamais
     déborder sur un écran étroit ou avec un logo très large. */
  max-width: 86vw;
  animation: intro-rise 1.4s var(--ease) both;
}

/* ------------------------- Assemblage en puzzle ------------------------- */

.puzzle { position: relative; }

/* Invisible pendant l'assemblage : elle ne sert qu'à donner ses dimensions
   au bloc, puis prend le relais des tuiles une fois le puzzle terminé. */
.puzzle-ghost {
  width: auto;
  max-width: 86vw;
  opacity: 0;
  animation: puzzle-reveal 0.35s var(--ease) 2.75s forwards;
}

.puzzle-pieces {
  position: absolute;
  inset: 0;
  animation: puzzle-hide 0.35s var(--ease) 2.75s forwards;
}

.puzzle-piece {
  position: absolute;
  background-image: var(--logo);
  background-repeat: no-repeat;
  background-size: var(--bg-size);
  animation: puzzle-in 0.9s var(--ease) both;
  will-change: transform, opacity;
}

@keyframes puzzle-in {
  from {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.55);
  }
  to { opacity: 1; transform: none; }
}

@keyframes puzzle-reveal { to { opacity: 1; } }
@keyframes puzzle-hide { to { opacity: 0; } }

.intro-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 3.4vw, 2.25rem);
  letter-spacing: -0.03em;
  text-align: center;
  animation: intro-rise 1.4s var(--ease) 0.25s both;
}

.intro-line {
  display: block;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  animation: intro-line 0.6s var(--ease) 2.9s forwards;
}

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes intro-line {
  to { width: clamp(6rem, 14vw, 11rem); }
}

@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}

/* Le script saute déjà l'animation dans ce cas ; garde-fou si la classe
   a été posée avant que la préférence ne change. */
@media (prefers-reduced-motion: reduce) {
  .intro-on .intro { display: none; }
}

/* ==========================================================================
   Page de maintenance — reprend la composition de l'ouverture animée.
   ========================================================================== */

.maintenance {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--sand-50);
  text-align: center;
}

.maintenance-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 34rem;
}

.maintenance .logo-img,
.maintenance .logo-mono { max-width: 86vw; }

.maintenance h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.maintenance p {
  color: var(--ink-500);
  line-height: 1.7;
}

.maintenance-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
