/* The Gatsby Estate — feuille de styles unique */

:root {
  --velours: #30360D;
  --neige: #C2D9FA;
  --creme: #FAE6B8;
  --papier: #FCF5E6;
  --olive: #918230;
  --rose: #F5BFBA;
  --framboise: #5E2138;
  --encre: #2A1418;
  --ligne: rgba(42, 20, 24, .18);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--papier); color: var(--encre); font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Logos (PNG utilisés comme masques, colorés par currentColor) */
.logo { display: block; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.logo--gatsby { --src: url(img/logo-gatsby.png); aspect-ratio: 640 / 610; }
.dessin--chalet { --src: url(img/dessin-chalet.png); aspect-ratio: 392 / 204; }
.dessin--villa { --src: url(img/dessin-villa.png); aspect-ratio: 372 / 180; }

/* Typographie */
.label { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: .88; letter-spacing: -.01em; }
.lien { display: inline-flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* En-tête */
.bandeau { background: var(--velours); color: var(--creme); text-align: center; padding: 8px var(--gutter); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.entete { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--gutter); background: var(--papier); border-bottom: 1px solid var(--ligne); }
.entete nav { display: flex; gap: 28px; }
.entete nav a, .langues, .entete-droite a { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.entete nav a:hover, .entete-droite a:hover { opacity: .6; }
.entete .logo { width: 62px; color: var(--velours); }
.entete-droite { display: flex; justify-content: flex-end; gap: 28px; align-items: center; }
.langues { display: flex; gap: 6px; }
.langues a { opacity: .4; }
.langues [aria-current] { opacity: 1; }
.burger { display: none; width: 32px; height: 32px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 5px; right: 5px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.burger::before { top: 11px; } .burger::after { bottom: 11px; }
.burger[aria-expanded="true"]::before { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"]::after { transform: translateY(-4.5px) rotate(-45deg); }
.menu-mobile { display: none; }

/* Pied de page */
.pied { background: var(--velours); color: var(--creme); padding: 72px var(--gutter) 28px; }
.pied-haut { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(250, 230, 184, .25); }
.pied .logo { width: 120px; color: var(--creme); }
.pied h2 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; opacity: .6; }
.pied li { list-style: none; margin-bottom: 6px; }
.pied a:hover { opacity: .6; }
.pied-bas { display: flex; justify-content: space-between; padding-top: 24px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }

/* ---------- Accueil ---------- */
.hero { position: relative; height: min(88vh, 820px); min-height: 520px; overflow: hidden; color: #fff; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, .05) 40%, rgba(20, 12, 8, .45)); }
.hero .logo { position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%, -50%); width: clamp(180px, 22vw, 300px); color: #fff; }
.hero-pied { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }

.manifeste { max-width: 980px; margin: 0 auto; padding: 120px var(--gutter) 100px; text-align: center; }
.manifeste .label { color: var(--olive); }
.manifeste .grand { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; margin: 28px 0 32px; text-wrap: balance; }
.manifeste .grand em { font-style: normal; color: var(--framboise); }
.manifeste .texte { max-width: 560px; margin: 0 auto; }

.collection { padding: 0 var(--gutter) 120px; scroll-margin-top: 80px; }
.collection-titre { display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--ligne); padding: 20px 0 32px; }
.collection-titre h2 { font-size: clamp(44px, 6vw, 88px); }
.grille { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.carte { position: relative; display: flex; flex-direction: column; padding: 22px; color: var(--c-texte); background: var(--c-fond); grid-column: span 4; min-height: 600px; transition: transform .5s var(--ease); }
.carte:hover { transform: translateY(-6px); }
.carte:nth-child(1) { grid-column: span 7; min-height: 760px; }
.carte:nth-child(2) { grid-column: span 5; min-height: 760px; margin-top: 90px; }
.carte:nth-child(4) { margin-top: 60px; }
.carte-haut { display: flex; justify-content: space-between; margin-bottom: 18px; }
.carte-photo { position: relative; overflow: hidden; flex: 1; min-height: 260px; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.carte:hover .carte-photo img { transform: scale(1.04); }
.carte-photo .dessin { position: absolute; right: 16px; bottom: 14px; width: 42%; color: #fff; }
.carte h3 { font-size: clamp(34px, 3.4vw, 52px); margin: 22px 0 14px; }
.carte:nth-child(-n+2) h3 { font-size: clamp(38px, 4.4vw, 68px); }
.carte-bas { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.carte-bas p { font-size: 13px; }

.destinations { background: var(--velours); color: var(--creme); padding: 100px var(--gutter); overflow: hidden; scroll-margin-top: 60px; }
.destinations .label { opacity: .6; }
.destinations ul { list-style: none; margin-top: 30px; }
.destinations li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(250, 230, 184, .25); }
.destinations li .display { font-size: clamp(44px, 8vw, 120px); }
.destinations li em { font-family: var(--script); font-style: normal; font-size: clamp(26px, 3vw, 40px); text-transform: none; color: var(--rose); margin-left: 12px; }
.destinations li .label { text-align: right; opacity: .75; }

.esprit { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; scroll-margin-top: 60px; }
.esprit img { width: 100%; height: 100%; object-fit: cover; }
.esprit-texte { background: var(--rose); color: var(--framboise); padding: 90px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.esprit-texte h2 { font-size: clamp(44px, 5vw, 76px); margin: 20px 0 40px; }
.esprit-texte ol { list-style: none; display: grid; gap: 22px; }
.esprit-texte li { display: grid; grid-template-columns: 44px 1fr; border-top: 1px solid rgba(94, 33, 56, .25); padding-top: 16px; }
.esprit-texte li b { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.esprit-texte li strong { display: block; font-weight: 500; margin-bottom: 4px; }

.contact { padding: 130px var(--gutter); text-align: center; background: var(--creme); scroll-margin-top: 60px; }
.contact .label { color: var(--olive); }
.contact h2 { font-size: clamp(52px, 8vw, 128px); margin: 24px 0; }
.contact h2 em, .reserver h2 em { font-family: var(--script); font-style: normal; text-transform: none; color: var(--framboise); display: block; }
.contact h2 em { font-size: .7em; margin-bottom: -.15em; }
.contact .mail { font-family: var(--serif); font-size: clamp(22px, 3vw, 40px); border-bottom: 1px solid; word-break: break-word; }
.contact-infos { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 48px; margin-top: 40px; }
.copier { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; border: 1px solid currentColor; padding: 10px 16px; }

/* ---------- Page bien ---------- */
.page-bien { --b-fond: var(--neige); --b-texte: var(--encre); }
.page-bien .ton { background: var(--b-fond); color: var(--b-texte); }
.fil { padding: 18px var(--gutter); display: flex; justify-content: space-between; gap: 16px; }
.fil a { opacity: .6; }
.fil a:hover { opacity: 1; }

.affiche { padding: 40px var(--gutter) 0; position: relative; overflow: hidden; }
.affiche h1 { display: flex; flex-direction: column; align-items: center; text-align: center; }
.affiche h1 > span { position: relative; z-index: 2; line-height: .82; }
.affiche-photo { position: relative; width: min(820px, 100%); margin: -.22em auto -.4em; }
.affiche-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 10px solid #fff; }
.affiche-photo .logo { position: absolute; right: -6%; bottom: -8%; width: 44%; color: #fff; }

.chiffres { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 60px var(--gutter) 50px; }
.chiffres div { border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); padding: 6px 18px; }
.chiffres div:first-child { border-left: 0; padding-left: 0; }
.chiffres b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; margin-top: 8px; }

.recit { display: grid; grid-template-columns: 4fr 7fr; gap: 60px; padding: 110px var(--gutter); }
.recit-intro h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; margin-top: 18px; text-wrap: balance; }
.recit-paras { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 48px; }
.recit-paras h3 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; padding-top: 14px; border-top: 1px solid var(--ligne); }
.equipements { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.equipements li { font-size: 12px; border: 1px solid var(--ligne); border-radius: 99px; padding: 5px 12px; }

.galerie { padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 12px; }
.galerie button { padding: 0; overflow: hidden; grid-column: span 3; grid-row: span 2; }
.galerie button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.galerie button:hover img { transform: scale(1.03); }
.galerie button:nth-child(1) { grid-column: span 4; grid-row: span 3; }
.galerie button:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.galerie button:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.galerie button:nth-child(4), .galerie button:nth-child(5), .galerie button:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.galerie button:nth-child(n+7):nth-child(odd):last-child { grid-column: span 6; }
.galerie-pied { padding: 16px var(--gutter) 0; display: flex; justify-content: space-between; }

.situation { display: grid; grid-template-columns: 5fr 7fr; margin-top: 110px; background: var(--velours); color: var(--creme); }
.situation-texte { padding: 80px clamp(24px, 5vw, 80px); }
.situation-texte .label { opacity: .6; }
.situation-texte h2 { font-size: clamp(44px, 5vw, 76px); margin: 18px 0 28px; }
.situation-texte ul { list-style: none; }
.situation-texte li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(250, 230, 184, .25); font-size: 14px; }
.situation-note { font-size: 13px; opacity: .7; }
.carte-geo { min-height: 520px; background: #E8E1D2; }
.carte-geo .leaflet-tile-pane { filter: grayscale(1) sepia(.35) contrast(.95); }
.pin { width: 18px; height: 18px; border-radius: 50%; background: var(--framboise); border: 3px solid var(--creme); box-shadow: 0 0 0 6px rgba(94, 33, 56, .25); }
.zone { fill: var(--framboise); }

.reserver { text-align: center; padding: 120px var(--gutter); }
.reserver h2 { font-size: clamp(48px, 7vw, 110px); margin: 20px 0 30px; }
.reserver h2 em { font-size: .6em; margin-bottom: -.1em; color: inherit; opacity: .85; }
.bouton { display: inline-block; background: var(--b-texte); color: var(--b-fond); padding: 18px 34px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: opacity .3s; }
.bouton:hover { opacity: .85; }
.reserver p { margin: 22px auto 0; font-size: 13px; max-width: 46ch; }

.autres { padding: 100px var(--gutter); }
.autres-liste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.autres-liste a { position: relative; overflow: hidden; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; background: var(--c-fond); color: var(--c-texte); }
.autres-liste img { position: absolute; inset: 16px 16px auto; width: calc(100% - 32px); height: 58%; object-fit: cover; }
.autres-liste .display { font-size: clamp(26px, 2.6vw, 40px); }

/* Bandeau d'avis (accueil et pages bien) */
.avis { padding: 100px 0; overflow: hidden; }
.avis-tete { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin: 0 var(--gutter); padding-top: 20px; border-top: 1px solid var(--ligne); }
.avis-tete h2 { font-size: clamp(44px, 6vw, 88px); }
.avis-note { display: flex; align-items: baseline; gap: 12px; }
.avis-note b { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 60px); line-height: 1; }
.avis-fleches { display: flex; gap: 8px; }
.avis-fleches button { width: 44px; height: 44px; border: 1px solid currentColor; font-size: 18px; }
.avis-piste { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 30%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 36px var(--gutter) 8px; scrollbar-width: none; }
.avis-piste::-webkit-scrollbar { display: none; }
.avis-carte { scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--a-fond, var(--creme)); color: var(--a-texte, var(--encre)); }
.avis-etoiles { letter-spacing: .25em; font-size: 13px; }
.avis-carte blockquote { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; flex: 1; }
.avis-carte footer > span:last-child:not(:first-child) { white-space: nowrap; font-weight: 500; }
.avis-carte footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: 12px; }
.avis-exemple { display: inline-block; align-self: flex-start; font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; border: 1px dashed currentColor; padding: 3px 8px; }
.page-bien .avis-carte { --a-fond: var(--b-fond); --a-texte: var(--b-texte); }

/* Visionneuse */
.visionneuse { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: rgba(20, 12, 10, .94); color: #fff; padding: 0; }
.visionneuse[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.visionneuse img { max-width: 100%; max-height: 86vh; margin: auto; object-fit: contain; }
.visionneuse button { height: 64px; font-size: 28px; }
.visionneuse .fermer { position: absolute; top: 12px; right: 16px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; height: auto; padding: 10px; }
.visionneuse .compteur { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; }

/* Mentions légales */
.legal { max-width: 760px; margin: 0 auto; padding: 100px var(--gutter); }
.legal h1 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 40px; }
.legal h2 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin: 36px 0 10px; padding-top: 14px; border-top: 1px solid var(--ligne); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .entete { grid-template-columns: auto 1fr auto; }
  .entete nav, .entete-droite .lien-entete { display: none; }
  .entete .logo { width: 48px; justify-self: center; }
  .burger { display: block; }
  .menu-mobile { position: fixed; z-index: 19; inset: 0; padding: 110px var(--gutter) 40px; background: var(--papier); flex-direction: column; gap: 6px; }
  .menu-mobile.ouvert { display: flex; }
  .menu-mobile a { font-family: var(--serif); text-transform: uppercase; font-size: 44px; line-height: 1.1; }
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .pied-bas { flex-direction: column; gap: 8px; }

  .hero { height: min(78vh, 640px); }
  .hero-pied { flex-direction: column; align-items: flex-start; }
  .manifeste { padding: 80px var(--gutter) 64px; }
  .collection-titre { flex-direction: column; align-items: flex-start; gap: 12px; }
  .grille { grid-template-columns: 1fr; gap: 16px; }
  .carte, .carte:nth-child(n) { grid-column: auto; min-height: 520px; margin-top: 0; padding: 16px; }
  .destinations li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .destinations li .label { text-align: left; }
  .esprit { grid-template-columns: 1fr; }
  .esprit img { height: 380px; }
  .esprit-texte { padding: 64px var(--gutter); }
  .contact { padding: 90px var(--gutter); }

  .fil .label:last-child { display: none; }
  .affiche { padding-top: 28px; }
  .affiche-photo img { border-width: 6px; }
  .chiffres { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 22px 0; padding: 48px var(--gutter) 40px; }
  .chiffres div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .chiffres div:nth-child(odd):last-child { grid-column: span 2; }
  .recit { grid-template-columns: 1fr; gap: 40px; padding: 72px var(--gutter); }
  .recit-paras { grid-template-columns: 1fr; gap: 32px; }
  .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .galerie button:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .galerie button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .galerie button:nth-child(even):last-child { grid-column: span 2; }
  .situation { grid-template-columns: 1fr; margin-top: 72px; }
  .situation-texte { padding: 64px var(--gutter); }
  .carte-geo { min-height: 340px; }
  .reserver { padding: 90px var(--gutter); }
  .autres-liste { grid-template-columns: repeat(2, 1fr); }
  .avis { padding: 72px 0; }
  .avis-piste { grid-auto-columns: 84%; gap: 12px; }
  .avis-fleches { display: none; }
}
