/* =======================================================================
   hotelbl — Système de design « éditorial premium »
   Chargé APRÈS tailwind.min.css.

   Trois objectifs tenus en même temps :
     1. Esthétique : typographie serif, beaucoup d'air, cartes sobres.
     2. Performance : aucun webfont bloquant, aucune image décorative lourde.
     3. Navigation agentique (Lighthouse) : focus visibles, cibles nommables,
        et surtout ZÉRO décalage de mise en page (CLS) — voir §7.
   ======================================================================= */

/* ------------------------------------------------------------------ *
 * 1. Jetons de design
 * ------------------------------------------------------------------ */
:root {
  --ink:        #191612;  /* texte principal */
  --ink-soft:   #5B544A;  /* texte secondaire */
  --ink-faint:  #7C7264;  /* légendes */
  --line:       #E7E2D9;  /* filets */
  --paper:      #FBFAF8;  /* fond de page */
  --surface:    #FFFFFF;  /* cartes */
  --sand:       #F4F1EC;  /* fond alterné */
  --accent:     #A4562A;  /* cuivre */
  --accent-ink: #874323;
  --accent-wash:#FDF7F2;
  --gold:       #D4AF37;

  --radius:     14px;
  --radius-sm:  10px;

  --shadow-sm:  0 1px 2px rgba(25,22,18,.04);
  --shadow:     0 2px 10px rgba(25,22,18,.05);
  --shadow-lg:  0 12px 36px rgba(25,22,18,.09);

  --step:       clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
}

/* ------------------------------------------------------------------ *
 * 2. Base & typographie
 *
 * Les polices sont chargées en non-bloquant. Le risque, c'est le décalage
 * au moment où la vraie police remplace celle de secours (mauvais pour le CLS,
 * et le CLS est justement un critère de la navigation agentique).
 * Solution : des polices de secours aux métriques ajustées, qui occupent
 * quasiment la même place que les vraies. Le remplacement devient invisible.
 * ------------------------------------------------------------------ */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia');
  size-adjust: 103%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}

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

body {
  font-family: 'Inter', 'Inter Fallback', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .font-serif {
  font-family: 'Fraunces', 'Fraunces Fallback', Georgia, Cambria, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;           /* évite les titres avec un mot orphelin */
}

h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { text-wrap: pretty; }

.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* Petite majuscule d'introduction, signature du style éditorial */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--step);
}
.wrap--narrow { max-width: 760px; }

.section      { padding-block: clamp(2.5rem, 1.5rem + 3vw, 5rem); }
.section--sand{ background: var(--sand); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 2.5rem;
}

/* ------------------------------------------------------------------ *
 * 3. Accessibilité — prérequis de la « navigation agentique »
 *    Un agent lit l'arbre d'accessibilité. Le focus doit être visible et
 *    aucun élément interactif ne doit être masqué à l'arbre.
 * ------------------------------------------------------------------ */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Masquage VISUEL uniquement : le contenu reste lisible par les agents et les
   lecteurs d'écran. Ne jamais utiliser display:none pour ça. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0; top: -100%;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------------ *
 * 4. En-tête
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;             /* hauteur fixe -> pas de décalage au chargement */
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.brand__name {
  font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 0.25rem;
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-mobile { display: none; border-top: 1px solid var(--line); }
.nav-mobile[data-open="true"] { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.nav-mobile a:last-child { border-bottom: 0; }

@media (max-width: 820px) {
  .nav        { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ------------------------------------------------------------------ *
 * 5. Hero
 * ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(360px, 46vh, 520px);   /* hauteur réservée -> CLS = 0 */
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .62;
}
/* Dégradé de lisibilité : garantit le contraste du texte quelle que soit la photo */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top,
              rgba(20,17,14,.92) 0%,
              rgba(20,17,14,.55) 42%,
              rgba(20,17,14,.15) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 1rem + 4vw, 3.5rem);
  color: #fff;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: #E2AE85; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  color: rgba(255,255,255,.82);
  font-size: 0.95rem;
}
.hero__meta strong { color: #fff; font-weight: 600; }
.dot { color: rgba(255,255,255,.4); }

/* ------------------------------------------------------------------ *
 * 6. Formulaire de recherche / filtres
 * ------------------------------------------------------------------ */
.searchbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}
/* Remonté sur le hero, mais SANS marge négative fantaisiste :
   la marge est réservée dans le flux, donc aucun décalage. */
.searchbar--float { margin-top: -2.75rem; position: relative; z-index: 2; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  align-items: end;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field > label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  min-height: 46px;             /* hauteur stable, quel que soit le contenu */
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field select:hover { border-color: #CFC6B8; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(164,86,42,.13);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%237C7264' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  min-height: 40px;
}
.check:hover { border-color: #CFC6B8; }
.check input { accent-color: var(--accent); margin: 0; }
.check:has(input:checked) {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

/* ------------------------------------------------------------------ *
 * Boutons
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  min-height: 48px;             /* cible confortable, et hauteur constante */
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #322C25; }

.btn--full { width: 100%; }
.btn--sm { min-height: 40px; padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* ------------------------------------------------------------------ *
 * 7. Cartes hôtel — conçues pour un CLS nul
 *
 *    Le conteneur d'image a un ratio FIXE (aspect-ratio) et les <img>
 *    portent width/height. La place est donc réservée avant même que
 *    l'image n'arrive : rien ne bouge, ni pour l'œil ni pour un agent.
 * ------------------------------------------------------------------ */
.grid-hotels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #DBD3C7;
  transform: translateY(-3px);
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;          /* réserve la hauteur : zéro décalage */
  background: var(--sand);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__price {
  position: absolute;
  right: 0.75rem; bottom: 0.75rem;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.card__price span { font-weight: 400; color: var(--ink-faint); font-size: 0.8rem; }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
  padding: 1.15rem 1.25rem 1.35rem;
}
.card__stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; line-height: 1; }
.card__title { font-size: 1.1rem; line-height: 1.3; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  /* Hauteur bornée à 2 lignes : toutes les cartes s'alignent, rien ne saute. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.35rem; }
.chip {
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: var(--sand);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------ *
 * 8. Contenu éditorial (blog, CGV, texte SEO)
 * ------------------------------------------------------------------ */
.prose { max-width: 72ch; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.75rem; color: var(--ink); }
.prose h3 { margin-top: 2rem; color: var(--ink); }
.prose p  { font-size: 1.05rem; line-height: 1.75; }
.prose a:not(.btn):not(.cta-button) { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: 0.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  font-size: 1.2rem;
  color: var(--ink);
  font-style: italic;
}
.prose img { border-radius: var(--radius); }

/* ------------------------------------------------------------------ *
 * 9. FAQ
 * ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 1.8px solid var(--ink-faint);
  border-bottom: 1.8px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform .25s;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--accent); }
.faq .faq__answer { padding-bottom: 1.5rem; color: var(--ink-soft); max-width: 72ch; }

/* ------------------------------------------------------------------ *
 * 10. Pied de page
 * ------------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
  margin-top: clamp(3rem, 2rem + 3vw, 6rem);
}
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.site-footer h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}
.footer-list { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.95rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.87rem;
  color: rgba(255,255,255,.5);
}
.socials { display: flex; gap: 0.5rem; }
.socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  transition: background .2s, border-color .2s;
}
.socials a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

/* ------------------------------------------------------------------ *
 * 11. Divers
 * ------------------------------------------------------------------ */
/* Autocomplétion : superposée en `absolute`, donc elle ne pousse RIEN. */
.autocomplete-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
}
.autocomplete-suggestions div,
.autocomplete-suggestions li {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.93rem;
}
.autocomplete-suggestions div:hover,
.autocomplete-suggestions li:hover,
.autocomplete-suggestions .active { background: var(--sand); }

/* L'indicateur de chargement occupe une hauteur fixe en permanence :
   il ne fait donc pas « sauter » la page quand il apparaît/disparaît. */
#loading-indicator {
  min-height: 56px;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.count { color: var(--ink-faint); font-size: 0.95rem; }

/* Bloc de texte repliable */
.description-container { position: relative; }
.description-content { transition: max-height .35s ease; }
.read-more-text {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.read-more-text:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ *
 * 12. Blog & pages secondaires
 *
 * Ces pages utilisaient de longues chaînes de classes Tailwind répétées.
 * Elles ont été remplacées par ces quelques classes sémantiques, définies
 * une seule fois ici : le site devient cohérent, et le HTML lisible.
 * ------------------------------------------------------------------ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  margin-bottom: 2rem;
}
.panel-title { font-size: 1.45rem; margin-bottom: 1.25rem; }

.page-title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  margin-bottom: 1.25rem;
  text-align: center;
}

/* Cartes du blog : mêmes règles que les cartes hôtel.
   L'image reçoit un ratio fixe -> aucun décalage au chargement. */
.card__img,
.article-card img,
.author-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--sand);
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.article-card-content { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.article-card-content h2,
.article-card-content h3,
.article-card h2,
.article-card h3 { font-size: 1.15rem; line-height: 1.35; }
.article-card a { color: var(--ink); text-decoration: none; }
.article-card a:hover { color: var(--accent); }
.article-card-content p { color: var(--ink-soft); font-size: .93rem; }
.read-more { color: var(--accent); font-weight: 600; font-size: .9rem; text-decoration: none; margin-top: auto; }
.read-more:hover { text-decoration: underline; }

.price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .18s;
}
.cta-button:hover { background: var(--accent-ink); color: #fff; }

/* Contenu d'article : mise en forme éditoriale sans toucher au HTML généré. */
.blog-content { color: var(--ink-soft); }
.blog-content > p,
.blog-content > ul,
.blog-content > ol,
.blog-content > blockquote { max-width: 72ch; }
.blog-content p  { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.15rem; }
.blog-content h2 { margin: 2.75rem 0 1rem; color: var(--ink); }
.blog-content h3 { margin: 2rem 0 .75rem; color: var(--ink); }
.blog-content a:not(.btn):not(.cta-button) { color: var(--accent); text-underline-offset: 3px; }
.blog-content ul { list-style: disc; padding-left: 1.35rem; margin-bottom: 1.15rem; }
.blog-content ol { list-style: decimal; padding-left: 1.35rem; margin-bottom: 1.15rem; }
.blog-content li + li { margin-top: .4rem; }
.blog-content strong { color: var(--ink); font-weight: 600; }
.blog-content img { border-radius: var(--radius); margin-block: 1.5rem; }
.blog-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  margin-block: 1.5rem;
}

.profile-picture { border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.author-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.pagination { display: flex; gap: .4rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 2.5rem; }
.pagination a, .pagination span {
  display: grid; place-items: center;
  min-width: 42px; min-height: 42px;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .93rem;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .active,
.pagination span.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pagination .disabled,
.pagination span.disabled { opacity: .4; pointer-events: none; }

.category-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.category-filter a {
  display: inline-flex; align-items: center;
  min-height: 40px;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  transition: border-color .15s, color .15s, background .15s;
}
.category-filter a:hover { border-color: var(--ink); color: var(--ink); }
.category-filter a.active {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

/* Grilles de cartes */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }

/* Cartes du blog construites avec <img> en enfant direct de .card */
.card > .card__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.15rem 1.25rem 1.35rem; }
.card__body .card__foot { margin-top: auto; }
.card__desc { font-size: .93rem; color: var(--ink-soft); }

/* Pages « construction » et « redirection » */
.container-construction,
.redirect-container {
  max-width: 560px;
  margin: 4rem auto;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.construction-icon { font-size: 3rem; margin-bottom: 1rem; }
.progress-bar-container {
  height: 6px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.progress-bar { height: 100%; background: var(--accent); border-radius: 999px; }
.pulsate-text { animation: pulsate 2s ease-in-out infinite; }
@keyframes pulsate { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.social-icon { display: grid; place-items: center; width: 38px; height: 38px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .article-card:hover { transform: none; }
}

/* ------------------------------------------------------------------ *
 * 13. Formulaire de contact
 * ------------------------------------------------------------------ */
.field-stack { display: flex; flex-direction: column; gap: 1.25rem; max-width: 620px; }
.field-stack > div { display: flex; flex-direction: column; gap: .4rem; }
.field-stack label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field-stack input,
.field-stack textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.field-stack input { min-height: 48px; }
.field-stack textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field-stack input:focus,
.field-stack textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(164,86,42,.13);
}

/* ------------------------------------------------------------------ *
 * 14. Filet de sécurité CLS
 *
 * Certaines images ont une URL construite en PHP : impossible de connaître
 * leurs dimensions à l'écriture du HTML. Ces règles réservent quand même
 * leur place, pour qu'aucune arrivée d'image ne décale la mise en page.
 * ------------------------------------------------------------------ */
img { max-width: 100%; }
img[width][height] { height: auto; }

/* Images de contenu sans dimensions connues : ratio réservé par défaut. */
.card img:not([width]),
.article-card img:not([width]),
.blog-content img:not([width]) {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  background: var(--sand);
}
.profile-picture:not([width]) { aspect-ratio: 1; width: 100%; height: auto; }

/* ------------------------------------------------------------------ *
 * 15. Boutons dans du contenu éditorial
 *
 * `.blog-content a` et `.prose a` sont plus spécifiques que `.cta-button` :
 * ils recoloraient le texte des boutons en cuivre… sur un fond cuivre.
 * Résultat : bouton illisible. On verrouille la couleur du texte des boutons,
 * quel que soit le conteneur.
 * ------------------------------------------------------------------ */
a.cta-button,
.blog-content a.cta-button,
.prose a.cta-button,
.article-card a.cta-button {
  color: #fff;
  background: var(--accent);
  text-decoration: none;
}
a.cta-button:hover,
.blog-content a.cta-button:hover,
.prose a.cta-button:hover { color: #fff; background: var(--accent-ink); }

a.btn--primary,
.blog-content a.btn--primary,
.prose a.btn--primary { color: #fff; }

a.btn--ghost,
.blog-content a.btn--ghost,
.prose a.btn--ghost { color: var(--ink); text-decoration: none; }

a.btn--dark,
.blog-content a.btn--dark,
.prose a.btn--dark { color: #fff; }

/* Le « 👉 » du bouton : purement décoratif, il ne doit pas gêner la lecture
   du libellé par un lecteur d'écran ou un agent. */
.cta-button .animate-finger-point { display: inline-block; }

/* ------------------------------------------------------------------ *
 * 16. Animations d'appel à l'action
 *
 * Elles vivaient dans les <style> des pages, supprimés lors de la refonte.
 * Restaurées ici, en version plus sobre (le style éditorial ne crie pas)
 * et désactivées si l'utilisateur demande moins d'animations.
 * ------------------------------------------------------------------ */
@keyframes bl-finger-point {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
.animate-finger-point {
  display: inline-block;
  animation: bl-finger-point 1.4s ease-in-out infinite;
}

@keyframes bl-vibrate {
  0%, 92%, 100% { transform: translateX(0); }
  94%, 98%      { transform: translateX(-1.5px); }
  96%           { transform: translateX(1.5px); }
}
.vibrate { animation: bl-vibrate 3s ease-in-out infinite; }

@keyframes bl-pulse-subtle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(164, 86, 42, .35); }
  50%      { box-shadow: 0 0 0 4px rgba(164, 86, 42, .12); }
}
.animate-pulse-subtle { animation: bl-pulse-subtle 2.2s ease-in-out infinite; }

/* ------------------------------------------------------------------ *
 * 17. Fiche hôtel (blog/article.php)
 *
 * Ces classes étaient utilisées dans le HTML mais n'ont JAMAIS eu de style,
 * ni avant ni après la refonte : les éléments s'affichaient donc bruts.
 * On leur donne enfin une mise en forme, cohérente avec le reste.
 * ------------------------------------------------------------------ */
.hotel-title {
  font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: .5rem;
}
.hotel-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
  margin-block: 1.5rem;
}
.hotel-rating { color: var(--gold); letter-spacing: .08em; }
.hotel-address {
  color: var(--ink-faint);
  font-size: .95rem;
}
.hotel-address::before {
  content: '⌖ ';
  color: var(--accent);
}
.hotel-description { color: var(--ink-soft); line-height: 1.75; }
.hotel-equipments {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  padding: 0;
}
.hotel-equipments li,
.hotel-equipments span {
  background: var(--sand);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .82rem;
}

/* Étoiles */
.stars { color: var(--gold); letter-spacing: .08em; }

/* Flèches de pagination */
.prev-page, .next-page { font-weight: 600; }

/* `text-md` n'existe pas dans Tailwind (c'est `text-base`) : la classe ne faisait
   rien. On la définit plutôt que de la retirer de tous les gabarits. */
.text-md { font-size: 1rem; line-height: 1.6; }

/* ------------------------------------------------------------------ *
 * 18. Note et avis — le principal déclencheur de clic
 *
 * Sur un site d'hébergement, « 8,9 · Fabuleux · 1 240 avis » pèse plus lourd
 * dans la décision que les étoiles. La donnée était déjà extraite et mise en
 * cache, mais n'était affichée nulle part.
 * ------------------------------------------------------------------ */
.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.score__value {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  padding: 0 .4rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px 8px 8px 2px;   /* clin d'œil à la « bulle » d'avis */
  font-size: .88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.score__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: .72rem;
  color: var(--ink-faint);
}
.score__text strong {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
}

/* Une très bonne note mérite d'être signalée : l'accent attire l'œil. */
.card:has(.score__value) .score__value { background: var(--ink); }

/* ------------------------------------------------------------------ *
 * 19. Séjour (hero) — le portail d'entrée, réduit à 3 champs
 * ------------------------------------------------------------------ */
.stay-grid {
  display: grid;
  /* Destination · Arrivée · Départ · Voyageurs · Bouton
     La destination est plus large : c'est le champ qu'on lit en premier. */
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}
.field--city   { min-width: 0; }
.field--action { min-width: 210px; }

/* Tablette : la destination prend toute la largeur, le reste se répartit. */
@media (max-width: 1080px) {
  .stay-grid { grid-template-columns: 1fr 1fr 1fr; }
  .field--city   { grid-column: 1 / -1; }
  .field--action { grid-column: 1 / -1; min-width: 0; }
}

@media (max-width: 640px) {
  .stay-grid { grid-template-columns: 1fr 1fr; }
  .field--city { grid-column: 1 / -1; }
}

.stay-hint {
  margin: 1rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-faint);
  line-height: 1.5;
}
/* Une fois les dates saisies, on confirme ce qui partira vers Booking :
   le visiteur sait qu'il n'aura pas à ressaisir. */
.stay-hint--set {
  color: var(--accent-ink);
  background: var(--accent-wash);
  border-top-color: var(--accent);
  margin-inline: -1.25rem;
  margin-bottom: -1.25rem;
  padding: .9rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ------------------------------------------------------------------ *
 * 20. Raffinement — après les résultats, pas avant
 *
 * Les filtres étaient un barrage d'entrée : on demandait au visiteur de
 * décider avant de lui avoir montré un seul hôtel. Ce sont des outils de
 * raffinement, ils sont donc au-dessus de la liste, repliés par défaut.
 * <details> fonctionne sans JavaScript et expose nativement son état ouvert/fermé
 * dans l'arbre d'accessibilité — ce que lit un agent.
 * ------------------------------------------------------------------ */
.refine {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 2rem;
}
.refine > summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-size: .95rem;
  min-height: 52px;
}
.refine > summary::-webkit-details-marker { display: none; }
.refine__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--ink);
}
.refine__hint {
  color: var(--ink-faint);
  font-size: .88rem;
}
.refine > summary::after {
  content: '';
  margin-left: auto;
  width: 9px; height: 9px;
  border-right: 1.8px solid var(--ink-faint);
  border-bottom: 1.8px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform .25s;
}
.refine[open] > summary::after { transform: rotate(-135deg); }
.refine[open] > summary { border-bottom: 1px solid var(--line); }

.refine__panel { padding: 1.5rem 1.25rem; }

.refine__amenities {
  border: 0;
  padding: 1.25rem 0 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}
.refine__amenities legend {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0;
  margin-bottom: .7rem;
}

.refine__actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1.5rem;
}

@media (max-width: 620px) {
  .refine__hint { display: none; }
}

/* ------------------------------------------------------------------ *
 * 21. Prix sous le bouton d'article
 *
 * Ce bloc est inséré par PHP juste après chaque CTA de l'article.
 * Il ne s'affichait jamais : le XPath cherchait class="cta-button" à
 * l'identique, alors que les articles utilisent "cta-button vibrate".
 * ------------------------------------------------------------------ */
.price-info {
  margin-top: .6rem;
  font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.price-info:empty { display: none; }   /* prix à 0 : on n'affiche rien du tout */

/* Le CTA d'article et son prix forment un bloc : on les centre ensemble. */
.blog-content .cta-button + .price-info,
.prose .cta-button + .price-info { text-align: center; }
