/* pitondelafournaise.com — design system "Le volcan vivant" */
/* Un poste d'observation : nuit chaude de basalte, orange de lave, vert des
   fougeres de la Plaine des Palmistes. Donnees d'observatoire, lueurs, isothermes. */
:root {
  --basalte: #140E0A;     /* fond de page, nuit chaude */
  --scorie: #241812;      /* panneaux */
  --cendre: #3A2A20;      /* bords, lignes claires */
  --nuage: #EFE9E2;       /* texte principal */
  --nuage-2: #B2A598;     /* texte secondaire */
  --lave: #FF4D12;        /* orange lave, actions */
  --braise: #FFB03A;      /* jaune incandescent, donnees */
  --fougere: #7FA06A;     /* vert des hauts */
  --ligne: rgba(239, 233, 226, .14);
  --display: "Syne", sans-serif;
  --sans: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 12px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--basalte);
  color: var(--nuage);
  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(--lave); color: var(--basalte); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hide-m { display: inline; }
@media (max-width: 760px) { .hide-m { display: none; } }

/* ---- barre maquette ---- */
.mockbar { position: fixed; inset: auto 0 0 0; z-index: 90; background: var(--lave); color: var(--basalte); font: 600 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(--basalte) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.head-in { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 36px; height: 36px; color: var(--lave); }
.brand .name { display: block; font: 700 18px/1 var(--display); letter-spacing: .02em; }
.brand .tag { display: block; font: 500 9.5px/1 var(--mono); letter-spacing: .16em; color: var(--nuage-2); margin-top: 4px; }
nav.main { display: flex; gap: 22px; margin-left: auto; }
nav.main a { text-decoration: none; font: 500 14px/1 var(--sans); color: var(--nuage-2); padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
nav.main a:hover { color: var(--nuage); border-color: var(--lave); }
@media (max-width: 920px) { nav.main { display: none; } }
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 11px 20px; font: 600 14.5px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform .25s var(--ease), background .2s, box-shadow .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-lave { background: var(--lave); color: #1A0D06; box-shadow: 0 0 24px rgba(255, 77, 18, .35); }
.btn-lave:hover { background: #FF6530; box-shadow: 0 0 34px rgba(255, 77, 18, .5); }
.btn-nuage { background: var(--nuage); color: var(--basalte); }
.btn-ligne { border-color: var(--ligne); color: var(--nuage); }
.btn-ligne:hover { border-color: var(--nuage); }

/* ---- hero ---- */
.hero { position: relative; min-height: 94svh; 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% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,14,10,.55) 0%, rgba(20,14,10,.08) 40%, rgba(20,14,10,.92) 88%); }
.hero-in { position: relative; width: 100%; padding-top: 130px; padding-bottom: clamp(30px, 6vh, 64px); }
.coords { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; color: var(--braise); margin-bottom: 12px; }
.hero h1 { font: 800 clamp(44px, 7.6vw, 108px)/.98 var(--display); letter-spacing: -.01em; margin: 0 0 18px; max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--lave), var(--braise)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 40px; align-items: end; }
@media (max-width: 1000px) { .hero-row { grid-template-columns: 1fr; } }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 54ch; color: var(--nuage); margin: 0 0 22px; }

/* tableau d'etat du volcan */
.statuscard { background: color-mix(in srgb, var(--scorie) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--cendre); border-radius: var(--r); overflow: hidden; }
.statuscard .top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--cendre); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--nuage-2); }
.tag-ex { font: 700 10px/1 var(--mono); letter-spacing: .12em; color: var(--basalte); background: var(--braise); border-radius: 4px; padding: 3px 6px; }
.statuscard .rows { display: grid; }
.statuscard .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px dashed var(--cendre); font-size: 14px; }
.statuscard .row:last-child { border-bottom: 0; }
.statuscard .row .k { color: var(--nuage-2); }
.statuscard .row .v { font-family: var(--mono); font-size: 13px; }
.v.ok { color: var(--fougere); }
.v.warn { color: var(--braise); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fougere); margin-right: 7px; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 160, 106, .6); } 70% { box-shadow: 0 0 0 9px rgba(127, 160, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 160, 106, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* formulaire de resa */
.booking { display: flex; flex-wrap: wrap; gap: 10px; background: color-mix(in srgb, var(--scorie) 82%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--cendre); border-radius: var(--r); padding: 12px; }
.booking .field { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 9px; background: var(--basalte); border: 1px solid var(--cendre); flex: 1 1 130px; }
.booking .field .ico { color: var(--braise); }
.booking label { display: block; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--nuage-2); text-transform: uppercase; margin-bottom: 3px; }
.booking input, .booking select { border: 0; background: none; color: var(--nuage); font: 500 14px/1.2 var(--sans); width: 100%; outline: none; }
.booking .btn { flex: 1 1 100%; justify-content: center; }
@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: rgba(239, 233, 226, .75); background: rgba(20, 14, 10, .5); padding: 3px 8px; border-radius: 6px; }
.hero .credit, .cta-band .credit { top: auto; bottom: 10px; }

/* ---- sections ---- */
.sec { padding: clamp(60px, 9vw, 115px) 0; }
.sec-head { display: flex; gap: 14px; align-items: baseline; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--nuage-2); margin-bottom: clamp(24px, 4vw, 44px); }
.sec-head .num { color: var(--lave); font-weight: 700; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--ligne); align-self: center; }
h2 { font: 700 clamp(32px, 4.6vw, 58px)/1.04 var(--display); letter-spacing: -.01em; margin: 0; }
h2 em { font-style: normal; background: linear-gradient(90deg, var(--lave), var(--braise)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 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(--nuage-2); max-width: 52ch; margin: 0 0 16px; }

/* manifeste + stats */
.manifesto { background: var(--scorie); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.statement { font: 600 clamp(24px, 3.1vw, 38px)/1.3 var(--display); margin: 0 0 34px; max-width: 30ch; }
.statement em { font-style: normal; color: var(--braise); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--basalte); border: 1px solid var(--cendre); border-radius: var(--r); padding: 20px; }
.stat b { display: block; font: 800 34px/1 var(--display); background: linear-gradient(90deg, var(--lave), var(--braise)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.stat span { color: var(--nuage-2); font-size: 14px; line-height: 1.5; }

/* ---- la rando : profil altimetrique ---- */
.profile { background: var(--scorie); border: 1px solid var(--cendre); border-radius: var(--r); padding: 22px 22px 8px; overflow: hidden; }
.profile svg { display: block; width: 100%; height: auto; }
.waypoints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
@media (max-width: 860px) { .waypoints { grid-template-columns: repeat(2, 1fr); } }
.wp { padding: 12px 4px 16px; }
.wp .alt { font: 700 17px/1 var(--mono); color: var(--braise); }
.wp b { display: block; font: 600 15px/1.3 var(--sans); margin: 6px 0 3px; }
.wp span { font-size: 12.5px; color: var(--nuage-2); line-height: 1.45; }
.rando-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.fact { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--cendre); border-radius: 999px; padding: 9px 16px; font: 500 13.5px/1 var(--sans); color: var(--nuage); }
.fact .ico { color: var(--braise); width: 16px; height: 16px; }

/* ---- dormir ---- */
.stays { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.stay { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; border-radius: var(--r); overflow: hidden; text-decoration: none; grid-column: span 4; isolation: isolate; border: 1px solid var(--cendre); }
@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; transition: transform .8s var(--ease); }
.stay:hover .ph img { transform: scale(1.045); }
.stay .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,14,10,.9) 0%, rgba(20,14,10,.08) 55%); }
.stay .in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 18px; }
.stay .k { font: 600 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--braise); }
.stay h3 { font: 700 22px/1.1 var(--display); margin: 5px 0 4px; }
.stay .meta { color: var(--nuage-2); font-size: 13.5px; }
.stay .go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--nuage); color: var(--basalte); flex: none; transition: background .2s, transform .25s var(--ease), box-shadow .2s; }
.stay:hover .go { background: var(--lave); color: #1A0D06; transform: translateX(3px); box-shadow: 0 0 20px rgba(255, 77, 18, .4); }

/* ---- venir / conseils ---- */
.venir { background: var(--scorie); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .routes { grid-template-columns: 1fr; } }
.route { background: var(--basalte); border: 1px solid var(--cendre); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.route .ico { width: 26px; height: 26px; color: var(--lave); }
.route h3 { font: 700 19px/1.2 var(--display); margin: 0; }
.route .mono { color: var(--braise); }
.route p { margin: 0; color: var(--nuage-2); font-size: 14px; line-height: 1.5; }

/* ---- journal ---- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 1px solid var(--cendre); background: var(--scorie); text-decoration: none; transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
a.post:hover { transform: translateY(-3px); border-color: var(--lave); box-shadow: 0 10px 40px rgba(255, 77, 18, .12); }
.post .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post .ph img { width: 100%; height: 100%; object-fit: cover; }
.post .in { padding: 18px 18px 20px; display: grid; gap: 8px; }
.post .mono { color: var(--lave); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.post h3 { font: 700 20px/1.25 var(--display); margin: 0; }
.post p { margin: 0; color: var(--nuage-2); font-size: 14px; line-height: 1.5; }
.post.soon { opacity: .55; }
.post.soon .mono { color: var(--nuage-2); }

/* ---- cta + footer ---- */
.cta-band { position: relative; isolation: isolate; padding: clamp(70px, 10vw, 130px) 0; text-align: center; overflow: hidden; }
.cta-band .ph { position: absolute; inset: 0; z-index: -2; }
.cta-band .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 14, 10, .66); }
.cta-band h2 { margin-bottom: 26px; }
footer { border-top: 1px solid var(--ligne); padding: 40px 0 46px; color: var(--nuage-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: 11.5px; }
#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; }
.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(20,14,10,.4), rgba(20,14,10,.9)); }
.article-hero .wrap { width: 100%; padding-bottom: 40px; padding-top: 120px; }
.article-hero h1 { font: 800 clamp(34px, 5.6vw, 72px)/1 var(--display); letter-spacing: -.01em; margin: 10px 0 14px; }
.article-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--lave), var(--braise)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.article-body { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) var(--pad) 30px; }
.article-body > p:first-child { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; color: var(--nuage); }
.article-body p { color: var(--nuage-2); line-height: 1.75; }
.article-body h2 { font-size: clamp(24px, 3vw, 34px); margin: 1.6em 0 .5em; color: var(--nuage); }
.article-body figure { margin: 2em 0; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--cendre); }
.article-body figcaption { font: 400 12.5px/1.5 var(--mono); color: var(--nuage-2); padding: 10px 14px; background: var(--scorie); }
.article-body .note { border-left: 3px solid var(--lave); background: var(--scorie); border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; color: var(--nuage); }
.article-body .note .mono { color: var(--braise); }
.aff-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border: 1px solid var(--cendre); background: var(--scorie); border-radius: var(--r); padding: 20px 22px; margin: 2.2em 0; }
.aff-cta b { font: 700 18px/1.3 var(--display); display: block; }
.aff-cta span { color: var(--nuage-2); font-size: 13.5px; }

/* ---- reveals ---- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s 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: 2px dashed var(--braise); 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(--braise); color: var(--basalte); font: 700 10px/1 var(--mono); padding: 4px 7px; border-radius: 5px; }
