/* Charte contemporaine : grandes photos, linéale expressive, neutres clairs, accent sauge, touche lavande. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../polices/bricolage-grotesque.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../polices/dm-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --fond: #fbfaf7;
  --surface: #ffffff;
  --gris: #f1efea;
  --trait: #e3e0d8;
  --encre: #171614;
  --encre-doux: #5d5a54;
  --sauge: #4f6b55;
  --sauge-clair: #e4ebe2;
  --lavande: #ece8f4;
  --lavande-fonce: #6b5f8f;
  --titres: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --texte: "DM Sans", system-ui, sans-serif;
  --rayon: 22px;
  --marge: clamp(16px, 5vw, 72px);
  --large: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.0625rem/1.65 var(--texte); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--encre); text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--titres); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .45em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icone { width: 26px; height: 26px; color: var(--sauge); flex: none; }
.petit { font-size: .9rem; color: var(--encre-doux); }
.etiquette { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sauge); margin-bottom: 1.1em; }
.intro { color: var(--encre-doux); max-width: 560px; font-size: 1.08rem; }

/* Boutons : Airbnb et Contact ont exactement le même style */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .8em 1.6em; border-radius: 999px; font: 600 1rem/1.2 var(--texte); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.bouton .icone { width: 19px; height: 19px; color: currentColor; }
.bouton-principal { background: var(--encre); color: #fff; }
.bouton-principal:hover { background: var(--sauge); }
.entete .bouton-principal { background: #fff; color: var(--encre); }
.entete .bouton-principal:hover { background: var(--sauge-clair); }
.bouton-plein { background: var(--sauge); color: #fff; width: 100%; }
.bouton-plein:hover { background: var(--encre); }
.bouton-clair { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton-clair:hover { background: var(--encre); color: #fff; }
.bouton-petit { min-height: 42px; padding: .5em 1.2em; font-size: .95rem; background: var(--encre); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .bouton { flex: 1 1 200px; }
.actions-colonne { flex-direction: column; max-width: 360px; }
.actions-colonne .bouton { flex: none; }

/* Barre : transparente sur la photo, pleine après défilement */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--fond); }
.barre { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 14px max(var(--marge), env(safe-area-inset-right, 0px)) 14px max(var(--marge), env(safe-area-inset-left, 0px)); color: #fff; transition: background .25s, color .25s, box-shadow .25s; }
.barre.pleine { background: rgba(251, 250, 247, .97); color: var(--encre); box-shadow: 0 1px 0 var(--trait); }
.marque { font: 600 1.3rem/1 var(--titres); letter-spacing: -0.02em; color: inherit; text-decoration: none; margin-right: auto; white-space: nowrap; }
.menu { display: none; gap: 26px; }
.menu a, .langue { color: inherit; text-decoration: none; font-size: .95rem; opacity: .85; }
.menu a:hover, .langue:hover { opacity: 1; text-decoration: underline; }
.barre:not(.pleine) .bouton-petit { background: #fff; color: var(--encre); }

/* En-tête plein écran */
.entete { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--encre); }
.entete-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .12) 42%, rgba(0, 0, 0, .78) 100%), linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 65%); }
.entete-texte { position: relative; z-index: 1; padding: 0 var(--marge) clamp(40px, 8vh, 96px); max-width: 980px; }
.entete h1 { color: #fff; font-size: clamp(2.7rem, 8vw, 6.2rem); line-height: .98; letter-spacing: -0.035em; }
.surtitre { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 0, 0, .35); padding: .45em 1em; border-radius: 999px; margin-bottom: 1.4em; }
.surtitre .icone { width: 16px; height: 16px; color: #fff; }
.accroche { font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 620px; margin-bottom: 1.8em; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.entete .actions { max-width: 560px; }

/* Atouts */
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: clamp(20px, 3vw, 40px); max-width: var(--large); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--marge) 0; }
.atout { border-top: 1px solid var(--encre); padding-top: 18px; }
.atout-titre { font-size: 1.25rem; margin: .7em 0 .3em; }
.atout p { margin: 0; color: var(--encre-doux); font-size: .97rem; }

/* Sections */
.section { padding: clamp(64px, 10vw, 128px) var(--marge); max-width: var(--large); margin: 0 auto; }
.tete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.tete-section h2 { margin: 0; max-width: 720px; }
.tete-section .intro { margin: 0; }
.maison { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
.maison-texte p { color: var(--encre-doux); font-size: 1.08rem; }
.points { list-style: none; padding: 0; margin: 1.6em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.points li { background: var(--lavande); color: var(--lavande-fonce); border-radius: 999px; padding: .35em 1em; font-size: .92rem; font-weight: 600; }
.maison-photo { margin: 0; }
.maison-photo img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Formules (Roussas) */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.carte { background: var(--surface); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--trait); }
.carte img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.carte-corps { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.carte-corps p { color: var(--encre-doux); flex: 1; }

/* Équipements */
.equipements-fond { background: var(--gris); }
.grille-equipements { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.equipement { background: var(--surface); border-radius: 18px; padding: 26px; }
.equipement h3 { margin-top: .9em; }
.equipement p { color: var(--encre-doux); font-size: .97rem; margin: 0; }

/* Galerie */
.mosaique { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vignette { padding: 0; border: 0; background: var(--gris); border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vignette:hover img { transform: scale(1.03); }
.vignette:focus-visible { outline: 3px solid var(--sauge); outline-offset: 2px; }
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.visionneuse::backdrop { background: rgba(10, 10, 9, .94); }
.visionneuse img { width: 100%; height: 100%; object-fit: contain; }
.visionneuse button { position: absolute; background: rgba(255, 255, 255, .14); border: 0; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.visionneuse button .icone { color: #fff; }
.v-fermer { top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.v-prec { left: calc(10px + env(safe-area-inset-left, 0px)); top: 50%; }
.v-suiv { right: calc(10px + env(safe-area-inset-right, 0px)); top: 50%; }

/* Avis */
.grille-avis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 20px; }
.un-avis { margin: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; display: flex; flex-direction: column; color: var(--encre-doux); font-size: .99rem; }
.un-avis footer { margin-top: auto; padding-top: 1.2em; display: flex; align-items: center; gap: 12px; color: var(--encre); font-size: .93rem; }
.initiale { width: 40px; height: 40px; border-radius: 50%; background: var(--sauge-clair); color: var(--sauge); display: grid; place-items: center; font: 700 1rem/1 var(--titres); flex: none; }
.un-avis footer div span { color: var(--encre-doux); display: block; font-size: .85rem; }

/* Autre gîte */
.autre-gite-fond { padding: 0 var(--marge); }
.autre-gite { max-width: var(--large); margin: 0 auto; background: var(--sauge); color: #fff; border-radius: calc(var(--rayon) + 8px); padding: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.autre-gite h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .2em; }
.autre-gite p { margin: 0; max-width: 560px; opacity: .9; }
.autre-gite .bouton-clair { color: #fff; border-color: #fff; }
.autre-gite .bouton-clair:hover { background: #fff; color: var(--sauge); }

/* Autour */
.lieux { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.lieu { background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.lieu-haut { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.distance { font-weight: 700; font-size: .85rem; background: var(--sauge-clair); color: var(--sauge); padding: .3em .8em; border-radius: 999px; font-variant-numeric: tabular-nums; }
.prix { font-size: .85rem; color: var(--encre-doux); }
.lieu p { color: var(--encre-doux); font-size: .96rem; flex: 1; }
.lieu a { font-weight: 600; font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 24px 64px; }
.faq-liste details { border-bottom: 1px solid var(--trait); }
summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.6rem/1 var(--titres); color: var(--sauge); }
details[open] summary::after { content: "−"; }
details p { color: var(--encre-doux); margin-top: -4px; }

/* Contact */
.contact-fond { background: var(--encre); color: #fff; }
.contact { display: grid; gap: 40px; }
.contact h2 { color: #fff; }
.contact-gauche > p { color: rgba(255, 255, 255, .78); font-size: 1.08rem; max-width: 460px; }
.contact .etiquette { color: #b6c9b9; }
.contact .bouton-principal { background: #fff; color: var(--encre); }
.contact .bouton-principal:hover { background: var(--sauge-clair); }
.contact .actions-colonne { margin: 1.8em 0; }
.contact .petit { color: rgba(255, 255, 255, .6); }
.formulaire { background: var(--surface); color: var(--encre); border-radius: var(--rayon); padding: clamp(22px, 4vw, 40px); }
.champs { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
.champs label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.champs input, .champs select, .champs textarea { font: inherit; font-weight: 400; color: var(--encre); border: 1px solid var(--trait); border-radius: 12px; padding: .75em .9em; background: var(--fond); width: 100%; min-width: 0; }
.champs input:focus, .champs select:focus, .champs textarea:focus { outline: 2px solid var(--sauge); outline-offset: 1px; border-color: transparent; }
.formulaire .petit { color: var(--encre-doux); }
.piege { position: absolute; left: -9999px; }
.resultat { margin: 1em 0 0; font-weight: 600; }
.resultat.ok { color: var(--sauge); }
.resultat.erreur { color: #a3341f; }

/* Pages annexes (mentions légales, merci, 404) */
.annexe main { padding-top: 140px; max-width: 760px; }
.texte-annexe h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.texte-annexe h2 { font-size: 1.4rem; margin-top: 1.6em; }
.texte-annexe p { color: var(--encre-doux); }

/* Pied de page */
.pied { background: var(--encre); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .12); padding: 28px max(var(--marge), env(safe-area-inset-right, 0px)) 36px max(var(--marge), env(safe-area-inset-left, 0px)); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.pied a { color: #fff; }
.pied p { margin: 0; }

@media (min-width: 640px) {
  .mosaique { grid-template-columns: repeat(3, 1fr); }
  .champs { grid-template-columns: 1fr 1fr; }
  .champs .large { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .menu { display: flex; }
  .maison { grid-template-columns: 1fr 1fr; }
  .mosaique { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .mosaique .vignette:first-child { grid-column: span 2; grid-row: span 2; }
  .faq { grid-template-columns: .8fr 1.2fr; }
  .contact { grid-template-columns: .9fr 1.1fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
