/* lacsalagou.com — design system "Terres rouges" */
/* Une affiche de plein air : terre rouge permienne, eau turquoise, soleil ocre.
   Typo massive, angles vifs, bandes de strates. Rien de doux, tout est franc. */
:root {
  --craie: #F5EBDC;       /* fond clair, poussiere de calcaire */
  --terre: #221410;       /* texte, quasi-noir brun */
  --terre-2: #6E5648;     /* texte secondaire */
  --ruffe: #A43C22;       /* rouge des ruffes */
  --ruffe-2: #7E2D18;     /* rouge sombre, strates */
  --lac: #1F7A77;         /* turquoise du lac */
  --ocre: #D99A4E;        /* ocre du soleil */
  --ligne: rgba(34, 20, 16, .2);
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1340px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--craie);
  color: var(--terre);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--lac); color: var(--craie); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .03em; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hide-m { display: inline; }
@media (max-width: 760px) { .hide-m { display: none; } }

/* ---- bandes de strates (motif signature) ---- */
.strata { display: grid; grid-template-rows: 10px 7px 5px 8px; }
.strata i { display: block; }
.strata i:nth-child(1) { background: var(--ruffe); }
.strata i:nth-child(2) { background: var(--ruffe-2); }
.strata i:nth-child(3) { background: var(--ocre); }
.strata i:nth-child(4) { background: var(--lac); }

/* ---- barre maquette ---- */
.mockbar { position: fixed; inset: auto 0 0 0; z-index: 90; background: var(--terre); color: var(--craie); font: 500 12.5px/1.4 var(--mono); padding: 7px var(--pad); text-align: center; }
.mockbar a { color: inherit; }
body.has-mockbar { padding-bottom: 34px; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 80; background: color-mix(in srgb, var(--craie) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--terre); }
.head-in { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; color: var(--ruffe); }
.brand .name { display: block; font: 800 19px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.brand .tag { display: block; font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--terre-2); margin-top: 4px; }
nav.main { display: flex; gap: 20px; margin-left: auto; }
nav.main a { text-decoration: none; font: 600 13.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--terre-2); padding: 8px 0; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
nav.main a:hover { color: var(--terre); border-color: var(--lac); }
@media (max-width: 940px) { nav.main { display: none; } }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; font: 700 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border: 2px solid var(--terre); transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; cursor: pointer; background: none; color: var(--terre); box-shadow: 3px 3px 0 var(--terre); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--terre); }
.btn-ruffe { background: var(--ruffe); color: var(--craie); border-color: var(--terre); }
.btn-lac { background: var(--lac); color: var(--craie); }
.btn-craie { background: var(--craie); color: var(--terre); }

/* ---- hero ---- */
.hero { position: relative; min-height: 90svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero .ph { position: absolute; inset: 0; z-index: -2; }
.hero .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34,20,16,.25), transparent 35%, rgba(34,20,16,.72) 88%); }
.hero-in { position: relative; width: 100%; padding-top: 120px; padding-bottom: clamp(30px, 6vh, 60px); color: var(--craie); }
.coords { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--ocre); margin-bottom: 10px; }
.hero h1 { font: 800 clamp(52px, 10.5vw, 150px)/.92 var(--display); letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 16px; }
.hero h1 .l2 { display: block; color: var(--ocre); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 40px; align-items: end; }
@media (max-width: 980px) { .hero-row { grid-template-columns: 1fr; } }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 54ch; margin: 0 0 22px; }

/* meteo du vent */
.windcard { background: var(--terre); border: 2px solid var(--craie); padding: 18px 20px; display: grid; gap: 10px; color: var(--craie); }
.windcard .top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.tag-ex { font: 700 10px/1 var(--mono); letter-spacing: .12em; color: var(--terre); background: var(--ocre); padding: 3px 6px; }
.windcard .big { font: 800 40px/1 var(--display); }
.windcard .big small { font: 500 14px/1 var(--sans); margin-left: 6px; }
.windcard .rows { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; opacity: .9; }
.windcard .rows b { color: var(--ocre); }

/* formulaire de resa */
.booking { display: flex; flex-wrap: wrap; gap: 10px; background: color-mix(in srgb, var(--terre) 80%, transparent); backdrop-filter: blur(6px); border: 2px solid var(--craie); padding: 12px; }
.booking .field { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--craie); color: var(--terre); flex: 1 1 130px; }
.booking .field .ico { color: var(--ruffe); }
.booking label { display: block; font: 600 10px/1 var(--mono); letter-spacing: .1em; color: var(--terre-2); text-transform: uppercase; margin-bottom: 3px; }
.booking input, .booking select { border: 0; background: none; color: var(--terre); font: 600 14px/1.2 var(--sans); width: 100%; outline: none; }
.booking .btn { flex: 1 1 100%; justify-content: center; border-color: var(--craie); box-shadow: 3px 3px 0 rgba(245, 235, 220, .5); }
@media (min-width: 700px) { .booking .btn { flex: 0 0 auto; } }

.credit { position: absolute; right: 12px; top: 10px; z-index: 5; font: 400 10.5px/1.3 var(--mono); color: var(--craie); background: rgba(34, 20, 16, .55); padding: 3px 8px; }

/* ---- sections ---- */
.sec { padding: clamp(60px, 8.5vw, 110px) 0; }
.sec-head { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--terre-2); margin-bottom: clamp(22px, 4vw, 42px); }
.sec-head .num { background: var(--terre); color: var(--craie); padding: 4px 8px; font-weight: 700; }
.sec-head::after { content: ""; flex: 1; height: 2px; background: var(--terre); }
h2 { font: 800 clamp(34px, 5vw, 66px)/.98 var(--display); letter-spacing: -.015em; text-transform: uppercase; margin: 0; }
h2 .alt { color: var(--ruffe); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 60px); align-items: start; margin-bottom: clamp(26px, 4vw, 48px); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-grid p { color: var(--terre-2); max-width: 52ch; margin: 0 0 16px; }

/* ---- geologie : la coupe ---- */
.geol { background: var(--terre); color: var(--craie); }
.geol h2 { color: var(--craie); }
.geol h2 .alt { color: var(--ocre); }
.geol .intro-grid p { color: #CBB9A8; }
.geo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
@media (max-width: 860px) { .geo-grid { grid-template-columns: 1fr; } }
.geo-ph { position: relative; overflow: hidden; border: 2px solid var(--craie); min-height: 320px; }
.geo-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chrono { display: grid; gap: 0; border: 2px solid var(--craie); }
.era { display: grid; grid-template-columns: 110px minmax(0, 1fr); border-bottom: 1px solid rgba(245, 235, 220, .25); }
.era:last-child { border-bottom: 0; }
.era .when { font: 700 13px/1.3 var(--mono); padding: 14px 12px; border-right: 1px solid rgba(245, 235, 220, .25); color: var(--ocre); }
.era .what { padding: 14px 16px; }
.era .what b { display: block; font: 700 16px/1.3 var(--sans); margin-bottom: 2px; }
.era .what span { font-size: 13.5px; color: #CBB9A8; line-height: 1.5; }

/* ---- activites : grandes tuiles ---- */
.acts { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; border: 2px solid var(--terre); }
.act { position: relative; grid-column: span 4; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; text-decoration: none; border-right: 2px solid var(--terre); }
.act:last-child { border-right: 0; }
@media (max-width: 860px) { .act { grid-column: span 12; border-right: 0; border-bottom: 2px solid var(--terre); } .act:last-child { border-bottom: 0; } }
.act .ph { position: absolute; inset: 0; z-index: -1; }
.act .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.act:hover .ph img { transform: scale(1.05); }
.act .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(34,20,16,.85), rgba(34,20,16,.05) 55%); }
.act .in { position: relative; padding: 18px; color: var(--craie); }
.act .k { font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--ocre); }
.act h3 { font: 800 26px/1 var(--display); text-transform: uppercase; margin: 6px 0 6px; }
.act p { margin: 0; font-size: 13.5px; opacity: .9; max-width: 34ch; }

/* ---- dormir ---- */
.stays { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.stay { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; overflow: hidden; text-decoration: none; grid-column: span 4; isolation: isolate; border: 2px solid var(--terre); box-shadow: 5px 5px 0 var(--terre); transition: transform .2s var(--ease), box-shadow .2s; }
.stay:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--terre); }
@media (max-width: 860px) { .stay { grid-column: span 12 !important; } }
.stay .ph { position: absolute; inset: 0; z-index: -1; }
.stay .ph img { width: 100%; height: 100%; object-fit: cover; }
.stay .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(34,20,16,.85) 0%, rgba(34,20,16,.05) 55%); }
.stay .in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 16px; color: var(--craie); }
.stay h3 { font: 800 24px/1 var(--display); text-transform: uppercase; margin: 0 0 4px; }
.stay .meta { opacity: .9; font-size: 13px; }
.stay .go { display: grid; place-items: center; width: 40px; height: 40px; background: var(--craie); color: var(--terre); flex: none; transition: background .2s; }
.stay:hover .go { background: var(--ocre); }

/* ---- tour du lac ---- */
.tour-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 920px) { .tour-grid { grid-template-columns: 1fr; } }
.tour-ph { position: relative; overflow: hidden; border: 2px solid var(--terre); box-shadow: 6px 6px 0 var(--ruffe); }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 2px solid var(--ligne); }
.step::before { counter-increment: step; content: "0" counter(step); font: 800 22px/1 var(--display); color: var(--ruffe); }
.step h3 { font: 700 18px/1.25 var(--sans); margin: 0 0 2px; }
.step p { margin: 0; color: var(--terre-2); font-size: 14px; }
.step .km { font: 700 13px/1 var(--mono); color: var(--lac); white-space: nowrap; }

/* ---- journal ---- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--terre); background: #fff; text-decoration: none; box-shadow: 5px 5px 0 var(--terre); transition: transform .2s var(--ease), box-shadow .2s; }
a.post:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--terre); }
.post .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; border-bottom: 2px solid var(--terre); }
.post .ph img { width: 100%; height: 100%; object-fit: cover; }
.post .in { padding: 16px 18px 20px; display: grid; gap: 7px; }
.post .mono { color: var(--ruffe); font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.post h3 { font: 800 21px/1.1 var(--display); text-transform: uppercase; margin: 0; }
.post p { margin: 0; color: var(--terre-2); font-size: 14px; line-height: 1.5; }
.post.soon { opacity: .55; }
.post.soon .mono { color: var(--terre-2); }

/* ---- cta + footer ---- */
.cta-band { position: relative; isolation: isolate; padding: clamp(70px, 10vw, 120px) 0; overflow: hidden; color: var(--craie); }
.cta-band .ph { position: absolute; inset: 0; z-index: -2; }
.cta-band .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(34, 20, 16, .62); }
.cta-band h2 { color: var(--craie); margin-bottom: 26px; max-width: 18ch; }
.cta-band h2 .alt { color: var(--ocre); }
footer { border-top: 2px solid var(--terre); padding: 38px 0 46px; color: var(--terre-2); font-size: 13.5px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer a { color: inherit; }
footer .mono { font-size: 12px; }
#credits-list { margin: 10px 0 0; padding: 0 0 0 18px; display: grid; gap: 4px; max-width: 72ch; }
details > summary { cursor: pointer; }

/* ---- article ---- */
.article-hero { position: relative; min-height: 64svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; color: var(--craie); }
.article-hero .ph { position: absolute; inset: 0; z-index: -2; }
.article-hero .ph img { width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34,20,16,.3), rgba(34,20,16,.85)); }
.article-hero .wrap { width: 100%; padding-bottom: 40px; padding-top: 120px; }
.article-hero h1 { font: 800 clamp(36px, 6vw, 80px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.015em; margin: 10px 0 14px; }
.article-hero h1 .alt { color: var(--ocre); }
.article-body { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--pad) 30px; }
.article-body > p:first-child { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; }
.article-body p { color: #4A382E; line-height: 1.75; }
.article-body h2 { font-size: clamp(24px, 3vw, 34px); margin: 1.6em 0 .5em; }
.article-body figure { margin: 2em 0; position: relative; overflow: hidden; border: 2px solid var(--terre); }
.article-body figcaption { font: 400 12.5px/1.5 var(--mono); color: var(--terre-2); padding: 10px 14px; background: #fff; border-top: 2px solid var(--terre); }
.article-body .note { border: 2px solid var(--terre); border-left: 8px solid var(--lac); background: #fff; padding: 16px 20px; }
.article-body .note .mono { color: var(--lac); font-weight: 700; }
.aff-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border: 2px solid var(--terre); background: #fff; padding: 20px 22px; margin: 2.2em 0; box-shadow: 5px 5px 0 var(--terre); }
.aff-cta b { font: 800 19px/1.25 var(--display); text-transform: uppercase; display: block; }
.aff-cta span { color: var(--terre-2); font-size: 13.5px; }

/* ---- reveals ---- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---- calque liens affilies ---- */
body.show-aff .aff { outline: 3px dashed var(--ocre); outline-offset: 3px; position: relative; }
body.show-aff .aff::before { content: "Stay22 · " attr(data-n); position: absolute; top: -10px; left: -6px; z-index: 60; background: var(--ocre); color: var(--terre); font: 700 10px/1 var(--mono); padding: 4px 7px; }
