/* ==========================================================================
   Locations Sainte-Anne — feuille de style unique
   Charte issue du flyer d'origine et des photos réelles des 3 biens.
   Ordre : 1 polices · 2 jetons · 3 base · 4 mise en page · 5 en-tête
           6 pied de page · 7 composants · 8 emblèmes · 9 utilitaires
   ========================================================================== */

/* ---------- 1. Polices (hébergées en local, aucun service tiers) ---------- */

@font-face {
  font-family: 'Yellowtail';
  src: url('../fonts/yellowtail-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-400-800.woff2') format('woff2-variations'),
       url('../fonts/bricolage-400-800.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-400-700.woff2') format('woff2-variations'),
       url('../fonts/karla-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Jetons ---------- */

:root {
  /* Couleurs — vert dominant du flyer, crème du papier, hibiscus en accent rare */
  --vert-canopee:  #0F3A2A;
  --vert-feuille:  #1D6349;
  --vert-clair:    #2E8A62;
  --creme:         #FCF7EC;
  --creme-pur:     #FFFDF8;
  --sable:         #F0E4CE;
  --sable-fonce:   #E0CDAB;
  --hibiscus:      #D03F58;   /* 04/09/2026 : 2 % plus foncé que le #D4405A du flyer, pour un contraste de 4,65 : 1 avec le blanc des boutons (Lighthouse exigeait 4,5) */
  --hibiscus-sombre: #A82A41;
  --lagon:         #2E9E9B;
  --lagon-pale:    #D0E8E7;   /* le lagon éclairci — fond du formulaire (02/09/2026) */
  --bois:          #B98A55;
  --encre:         #101C17;
  --encre-doux:    #4A5F55;

  /* Rôles */
  --fond:          var(--creme);
  --texte:         var(--encre);
  --texte-doux:    var(--encre-doux);
  --trait:         rgba(15, 58, 42, 0.14);
  --trait-fort:    rgba(15, 58, 42, 0.28);

  /* Typographie */
  --script:  'Yellowtail', 'Segoe Script', cursive;
  --titre:   'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --corps:   'Karla', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Échelle fluide : mobile d'abord, s'ouvre jusqu'au grand écran */
  --t-xs:  0.78rem;
  --t-sm:  0.9rem;
  --t-md:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --t-lg:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --t-xl:  clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --t-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  --t-3xl: clamp(2.6rem, 1.7rem + 4.2vw, 5rem);

  /* Rythme */
  --pas: 0.5rem;
  --marge-page: clamp(1.15rem, 4vw, 3rem);
  --largeur: 1180px;
  --largeur-texte: 62ch;
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Formes */
  --arrondi-sm: 6px;
  --arrondi:    14px;
  --arrondi-lg: 26px;
  --ombre:      0 1px 2px rgba(16, 28, 23, .05), 0 8px 24px -12px rgba(16, 28, 23, .18);
  --ombre-forte: 0 2px 4px rgba(16, 28, 23, .06), 0 24px 48px -20px rgba(16, 28, 23, .32);

  --transition: 200ms cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. Base ---------- */

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: var(--t-md);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* garde-fou : la page ne déborde jamais latéralement */
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); font-weight: 700; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { margin: 0 0 1em; max-width: var(--largeur-texte); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--vert-feuille); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--hibiscus-sombre); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--hibiscus);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--lagon); color: #fff; }

/* ---------- 4. Mise en page ---------- */

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge-page);
}

.enveloppe--etroite { max-width: 760px; }

.section { padding-block: var(--section-y); }
.section--vert { background: var(--vert-canopee); color: var(--creme); }
.section--sable { background: var(--sable); }

/* Fond du formulaire de demande, sur les 4 pages — choix du PM du 02/09/2026,
   après comparaison de trois teintes rendues sur la vraie page. Ce n'est pas une
   couleur neuve : c'est --lagon, le turquoise de la charte, simplement éclairci.
   ⚠️ Composant partagé par les 4 pages : sa place est ici, pas dans le <style>
   de chaque page. */
.section--lagon { background: var(--lagon-pale); }

.section--vert h1, .section--vert h2, .section--vert h3 { color: var(--creme-pur); }
.section--vert a { color: var(--sable); }
.section--vert a:hover { color: #fff; }

/* Grille des biens : empilée sur mobile, côte à côte sur ordinateur */
.grille-biens {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}

/* Bandeau « tôle » — écho au toit ondulé des bungalows et de O'Morne.
   Sert de séparateur entre les sections plutôt qu'un trait générique. */
.tole {
  height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--vert-canopee) 0 2px,
    transparent 2px 9px
  );
  opacity: 0.35;
}

.section--vert + .tole,
.tole--clair {
  background-image: repeating-linear-gradient(
    90deg,
    var(--sable-fonce) 0 2px,
    transparent 2px 9px
  );
  opacity: 0.6;
}

/* ---------- 5. En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 247, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}

/* Logotype sur deux lignes : le mot en script, le lieu en capitales dessous.
   Tient à 320 px, où « Sainte-Anne · Guadeloupe » ne passerait pas sur une ligne. */
.marque {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-family: var(--script);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--vert-canopee);
  text-decoration: none;
  padding-block: 0.4rem;
  white-space: nowrap;
}

.marque:hover { color: var(--vert-feuille); }
.marque__lieu {
  font-family: var(--titre);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.nav { display: none; }

.nav__liste {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__lien {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--titre);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--texte);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.nav__lien:hover,
.nav__lien[aria-current='page'] {
  color: var(--vert-canopee);
  border-bottom-color: var(--hibiscus);
}

.nav__lien .embleme { flex: none; }

/* Bouton d'ouverture du menu — visible sur mobile seulement */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--trait-fort);
  border-radius: var(--arrondi-sm);
  cursor: pointer;
}

.burger__trait {
  display: block;
  height: 2px;
  background: var(--vert-canopee);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded='true'] .burger__trait:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__trait:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__trait:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau mobile */
.menu-mobile {
  display: none;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--trait);
}

.menu-mobile[data-ouvert='true'] { display: block; }

.menu-mobile__liste {
  margin: 0;
  padding: 0.5rem 0 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.menu-mobile__lien {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.5rem;
  font-family: var(--titre);
  font-weight: 500;
  color: var(--texte);
  text-decoration: none;
  border-radius: var(--arrondi-sm);
}

.menu-mobile__lien:hover { background: var(--sable); color: var(--vert-canopee); }
.menu-mobile__lien[aria-current='page'] { background: var(--sable); color: var(--vert-canopee); }

/* ---------- 6. Pied de page ---------- */

.pied {
  background: var(--vert-canopee);
  color: var(--sable);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}

.pied a { color: var(--creme-pur); }

.pied__grille {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(240, 228, 206, 0.18);
}

.pied__titre {
  font-family: var(--titre);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 228, 206, 0.6);
  margin: 0 0 0.85rem;
}

.pied__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.pied__liste a { text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; }
.pied__liste a:hover { text-decoration: underline; }

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: var(--t-sm);
  color: rgba(240, 228, 206, 0.65);
}

/* ---------- 7. Composants ---------- */

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  font-family: var(--titre);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

.bouton:hover { transform: translateY(-1px); }
.bouton:active { transform: translateY(0); }

.bouton--plein {
  background: var(--hibiscus);
  color: #fff;
}
.bouton--plein:hover { background: var(--hibiscus-sombre); color: #fff; }

.bouton--vert {
  background: var(--vert-canopee);
  color: var(--creme-pur);
}
.bouton--vert:hover { background: var(--vert-feuille); color: #fff; }

.bouton--contour {
  background: transparent;
  border-color: var(--trait-fort);
  color: var(--vert-canopee);
}
.bouton--contour:hover { border-color: var(--vert-canopee); background: var(--creme-pur); }

/* Sur fond sombre ou photographique, le bouton contour doit s'éclaircir —
   sinon il devient invisible. Vaut pour les bandeaux d'accueil et de bien. */
.section--vert .bouton--contour,
.accueil .bouton--contour,
.banniere .bouton--contour {
  border-color: rgba(240, 228, 206, 0.55);
  color: var(--creme-pur);
}
.section--vert .bouton--contour:hover,
.accueil .bouton--contour:hover,
.banniere .bouton--contour:hover {
  border-color: var(--creme-pur);
  background: rgba(252, 247, 236, 0.14);
  color: #fff;
}

/* Depuis le retrait du voile des bandeaux de logement (01/09/2026), le bouton
   contour se pose directement sur la photo. Un simple filet crème y disparaît :
   il lui faut un fond à lui. Ne concerne que .banniere — l'accueil garde son voile. */
.banniere .bouton--contour,
.accueil .bouton--contour {
  background: rgba(12, 40, 29, 0.46);
  border-color: rgba(252, 247, 236, 0.85);
}
.banniere .bouton--contour:hover,
.accueil .bouton--contour:hover {
  background: rgba(12, 40, 29, 0.68);
}

/* Surtitre — sert à situer, pas à décorer */
.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--titre);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.surtitre::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--hibiscus);
}

.section--vert .surtitre { color: rgba(240, 228, 206, 0.75); }

/* Titre en script — utilisé avec parcimonie */
.script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}

/* Étiquette de lieu */
.lieu {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--titre);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-feuille);
}

/* Carte d'un bien */
.carte {
  display: flex;
  flex-direction: column;
  background: var(--creme-pur);
  border: 1px solid var(--trait);
  border-radius: var(--arrondi);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}

.carte:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-forte);
  color: inherit;
}

.carte__image {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--sable);
}

.carte__corps { padding: 1.25rem 1.35rem 1.5rem; display: grid; gap: 0.5rem; }

.carte__nom {
  font-family: var(--script);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--vert-canopee);
  margin: 0;
}

.carte__prix {
  font-family: var(--titre);
  font-weight: 700;
  font-size: var(--t-lg);
  color: var(--encre);
}

.carte__prix small {
  font-family: var(--corps);
  font-weight: 400;
  font-size: var(--t-sm);
  color: var(--texte-doux);
}

/* Bloc « bon à savoir » et listes de faits */
.faits {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--trait);
}

.faits > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--trait);
}

.faits dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--texte-doux);
  margin: 0;
}
.faits dd { margin: 0; font-weight: 600; text-align: right; }

/* Encadré d'avertissement honnête (ex. l'escalier de O'Morne) */
.note {
  padding: 1rem 1.15rem;
  background: var(--sable);
  border-left: 3px solid var(--bois);
  border-radius: 0 var(--arrondi-sm) var(--arrondi-sm) 0;
  font-size: var(--t-sm);
}

.note strong { color: var(--vert-canopee); }

/* ---------- 8. Emblèmes ---------- */
/* Trois illustrations en couleur : un papillon aux ailes orangées, un colibri
   madère à gorge rouge, un morne coiffé d'une kaz au toit rouge.
   Christel a nommé ses biens d'après le vivant — c'est la signature du site.
   Les couleurs sont dans le SVG lui-même : rien à hériter du texte. */

.embleme {
  width: 1.5em;
  height: 1.5em;
  flex: none;
  vertical-align: middle;
}

.embleme--lg { width: 3.25rem; height: 3.25rem; }
.embleme--xl { width: 6rem;    height: 6rem; }

/* Sur fond vert foncé ou sur photo, le vert du colibri et du morne se perdrait :
   on les pose sur un disque crème, comme un cachet. */
.embleme--disque {
  background: var(--creme);
  border-radius: 50%;
  padding: 0.2em;
  box-sizing: content-box;
  box-shadow: 0 1px 3px rgba(16, 28, 23, .25);
}

/* ---------- 9. Utilitaires ---------- */

.pile { display: grid; gap: var(--pas); }
.pile--md { gap: 1rem; }
.pile--lg { gap: 1.75rem; }

.rangee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.relatif { position: relative; }
.centre { text-align: center; }
.centre p { margin-inline: auto; }

.mesure { max-width: var(--largeur-texte); }

.texte-doux { color: var(--texte-doux); }
.texte-sm { font-size: var(--t-sm); }

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--vert-canopee);
  color: var(--creme-pur);
  border-radius: 0 0 var(--arrondi-sm) 0;
  text-decoration: none;
}

.saut-contenu:focus { left: 0; color: var(--creme-pur); }

.visuellement-cache {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 10. Points de rupture ---------- */
/* Mobile d'abord. On n'élargit qu'à partir du moment où le contenu le mérite. */

@media (min-width: 40em) {          /* 640px — grande tablette portrait */
  .grille-biens { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 56em) {          /* 896px — ordinateur */
  .nav { display: block; }
  .burger { display: none; }
  .menu-mobile { display: none !important; }

  .grille-biens { grid-template-columns: repeat(3, 1fr); }
  .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }

  .marque { font-size: 1.8rem; }
  .marque__lieu { font-size: 0.66rem; }
  .entete__barre { min-height: 78px; }
}

@media (min-width: 75em) {          /* 1200px — grand écran */
  :root { --largeur: 1240px; }
}

/* ---------- 11. Préférences utilisateur ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .carte:hover, .bouton:hover { transform: none; }
}

@media print {
  .entete, .pied, .burger, .menu-mobile { display: none; }
  body { background: #fff; }
}

/* ═══════════════════════════════════════════════════════════════════════
   10. Contenu des pages de biens — ajouté au Lot 2
   ═══════════════════════════════════════════════════════════════════════ */

/* ---------- Équipements privatifs ---------- */
.equipements {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40em) { .equipements { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .equipements { grid-template-columns: repeat(3, 1fr); } }

.equip {
  padding: 1.15rem 1.3rem;
  background: var(--creme-pur);
  border: 1px solid var(--trait);
  border-radius: var(--arrondi);
}

.equip__titre {
  margin: 0 0 0.65rem;
  font-family: var(--titre);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vert-feuille);
}

.equip ul, .partage ul { margin: 0; padding: 0; list-style: none; }

.equip li, .partage li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--t-sm);
  line-height: 1.5;
}
.equip li + li, .partage li + li { margin-top: 0.4rem; }

.equip li::before, .partage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  background: var(--vert-clair);
  border-radius: 50%;
}

/* ---------- Équipements PARTAGÉS ----------
   Volontairement distincts des privatifs : fond sable, filet en pointillés
   couleur bois. Un visiteur ne doit jamais les prendre pour des privatifs. */
.partage {
  padding: 1.3rem 1.45rem;
  background: var(--sable);
  border: 1.5px dashed var(--bois);
  border-radius: var(--arrondi);
}

.partage__titre {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  font-family: var(--titre);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--vert-canopee);
}

.partage__intro {
  margin: 0 0 0.9rem;
  font-size: var(--t-sm);
  color: var(--texte-doux);
  max-width: 56ch;
}

.partage__liste {
  display: grid;
  gap: 0.4rem 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40em) { .partage__liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .partage__liste { grid-template-columns: repeat(3, 1fr); } }

.partage li::before { background: var(--bois); }

/* ---------- Galerie ---------- */
.galerie {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 46em) { .galerie { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

.galerie figure { margin: 0; }

.galerie img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--sable);
  border-radius: var(--arrondi);
  box-shadow: var(--ombre);
}

.galerie figcaption {
  margin-top: 0.45rem;
  font-size: var(--t-xs);
  line-height: 1.4;
  color: var(--texte-doux);
}

/* Une galerie posée sur le vert canopée : les légendes passent en crème. */
.section--vert .galerie figcaption { color: rgba(252, 247, 236, 0.8); }

/* ---------- Exemple de calcul du prix ---------- */
.calcul {
  padding: 1.25rem 1.45rem;
  background: var(--vert-canopee);
  color: var(--creme);
  border-radius: var(--arrondi);
  max-width: 30rem;
}

/* ---------- Citation du propriétaire ---------- */
.citation {
  margin: 0;
  padding-left: 1.15rem;
  border-left: 3px solid var(--vert-clair);
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--texte);
  max-width: 56ch;
}

.citation p + p { margin-top: 0.7rem; }

/* ---------- Deux colonnes : texte + encadré ---------- */
.duo {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 56em) { .duo { grid-template-columns: 1.35fr 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════
   11. Conversion — ajouté au Lot 3 (02/09/2026)
   ═══════════════════════════════════════════════════════════════════════ */

/* ---------- Barre de contact fixe — mobile uniquement (3.1) ----------
   Sur ordinateur, l'en-tête est déjà collant et porte le bouton « Nous
   écrire » : la barre serait redondante. Sur mobile, l'en-tête ne montre
   que la marque et le menu — dès qu'on descend, plus aucun moyen de
   joindre Christel. C'est ce trou que la barre comble.
   Deux boutons, pas trois : à 320 px, trois deviennent illisibles. */

.barre-contact {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;                       /* au-dessus de l'en-tête (50), sous le lien d'évitement (100) */
  display: flex;
  gap: 0.55rem;
  padding: 0.6rem var(--marge-page);
  /* La marge de sécurité des iPhone récents, sinon la barre passe sous
     l'indicateur d'accueil et les boutons deviennent inatteignables. */
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(252, 247, 236, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--trait);
}

.barre-contact .bouton {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0.5rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Le pied de page se termine juste où la barre commence : on lui rend la
   place, sinon la barre masque le dernier trait du pied. On l'ajoute au
   pied — et non au corps — pour que le vert file jusqu'en bas de l'écran. */
@media (max-width: 55.999em) {
  /* Ciblé sur les pages qui portent réellement la barre : le tableau de bord
     interne n'en a pas, il n'a donc pas à réserver la place. */
  body:has(.barre-contact) .pied {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 56em) {
  .barre-contact { display: none; }
}

/* À l'impression, une barre flottante n'a aucun sens. */
@media print {
  .barre-contact { display: none; }
}

/* ---------- Formulaire de demande (3.4) ---------- */

.form-demande {
  background: var(--creme-pur);
  border: 1px solid var(--trait);
  border-radius: var(--arrondi);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  max-width: 44rem;
}

.form-demande__grille {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .form-demande__grille { grid-template-columns: 1fr 1fr; }
  .form-demande__large  { grid-column: 1 / -1; }
}

.champ { display: flex; flex-direction: column; gap: 0.4rem; }

.champ__etiquette {
  font-family: var(--titre);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--vert-canopee);
}

/* Le mot « facultatif » plutôt qu'un astérisque sur les champs obligatoires :
   on rassure au lieu de contraindre. */
.champ__note {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--texte-doux);
  text-transform: none;
}

.champ input,
.champ select,
.champ textarea {
  font-family: var(--corps);
  font-size: 1rem;                   /* 16 px : en dessous, l'iPhone zoome tout seul */
  color: var(--texte);
  background: var(--creme);
  border: 1.5px solid var(--trait-fort);
  border-radius: var(--arrondi-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.champ textarea { resize: vertical; min-height: 6.5rem; }

.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  outline: none;
  border-color: var(--vert-clair);
  box-shadow: 0 0 0 3px rgba(46, 138, 98, 0.18);
}

/* Un champ en défaut : le rouge hibiscus, doublé du message écrit dessous.
   Jamais la couleur seule — elle ne dit rien à qui ne la distingue pas. */
.champ input[aria-invalid='true'],
.champ select[aria-invalid='true'],
.champ textarea[aria-invalid='true'] {
  border-color: var(--hibiscus);
  background: rgba(212, 64, 90, 0.04);
}

.champ__erreur {
  font-size: var(--t-sm);
  color: var(--hibiscus-sombre);
  min-height: 0;
}

.champ__erreur:empty { display: none; }

/* Le piège à robots (3.7) : invisible pour l'œil, invisible pour les
   lecteurs d'écran, mais bien présent dans le code — donc rempli par les
   robots, qui remplissent tout ce qu'ils trouvent. */
.piege-robot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-demande__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 1.5rem;
}

.form-demande__mention {
  font-size: var(--t-sm);
  color: var(--texte-doux);
  margin: 0;
  max-width: 34ch;
}

.form-demande__envoi[aria-busy='true'] { opacity: 0.65; pointer-events: none; }

/* Message d'état sous le formulaire : erreur d'envoi, ou attente de clé. */
.form-demande__etat {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--arrondi-sm);
  font-size: var(--t-sm);
  border-left: 3px solid var(--hibiscus);
  background: rgba(212, 64, 90, 0.07);
  color: var(--texte);
}

.form-demande__etat:empty { display: none; }

/* ---------- Confirmation (3.6) ----------
   Elle remplace le formulaire : on ne laisse pas le visiteur se demander
   si sa demande est partie, ni la renvoyer trois fois. */

.confirmation {
  background: var(--vert-canopee);
  color: var(--creme-pur);
  border-radius: var(--arrondi);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  max-width: 44rem;
}

.confirmation__titre {
  font-family: var(--script);
  font-size: var(--t-xl);
  color: var(--creme-pur);
  margin: 0 0 0.75rem;
}

.confirmation p { color: rgba(240, 228, 206, 0.92); margin: 0 0 0.75rem; }
.confirmation p:last-child { margin-bottom: 0; }
.confirmation strong { color: var(--creme-pur); }

/* Les liens de secours dans la confirmation : sur fond vert profond, ils
   doivent s'éclaircir, sinon ils disparaissent. */
.confirmation a {
  color: var(--creme-pur);
  text-underline-offset: 3px;
}
.confirmation a:hover { color: #fff; }


/* ---------- 12. Liens croisés entre logements (Lot 4, tâche 4.7) ----------
   Sur une page de logement, on propose les DEUX autres. La grille des biens de
   l accueil monte à 3 colonnes dès 56em : avec deux cartes seulement, la rangée
   resterait bancale, un tiers vide à droite. D où cette grille à part, qui
   s arrête à 2 colonnes. Composant partagé par les 3 pages : sa place est ici,
   pas dans le <style> de chaque page. */

.grille-deux {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .grille-deux { grid-template-columns: repeat(2, 1fr); }
}
