/* cirquedemafate.com — design system "L'ile dans l'ile" */
/* Un cirque sans route : brume d'altitude, vert cardamome, basalte, rouge
   helicoptere. Courbes de niveau, slab de montagne, mono d'aviation. */
:root {
  --brume: #EEF1EC;       /* brume du matin, fond de page */
  --basalte: #252B2A;     /* texte, remparts le soir */
  --basalte-2: #6E7A74;   /* texte secondaire */
  --cardamome: #587D57;   /* verts des ilets */
  --canne: #C2993F;       /* paille de canne, chemins */
  --helico: #C2554A;      /* rouge des rotations, actions */
  --rempart: #51707E;     /* bleu-gris des lointains */
  --ligne: rgba(37, 43, 42, .17);
  --serif: "Bitter", Georgia, serif;
  --sans: "Mulish", system-ui, sans-serif;
  --mono: "B612 Mono", ui-monospace, monospace;
  --r: 12px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--brume); color: var(--basalte); font: 400 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--cardamome); color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; }
.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; } }

/* courbes de niveau */
.topo { height: 30px; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='30' viewBox='0 0 260 30'%3E%3Cg fill='none' stroke='%23587D57' stroke-opacity='.55'%3E%3Cpath d='M0 24 C 40 18 70 26 110 20 S 200 24 260 16'/%3E%3Cpath d='M0 16 C 50 10 90 18 130 12 S 210 16 260 8'/%3E%3Cpath d='M0 8 C 45 4 85 10 125 5 S 215 9 260 2'/%3E%3C/g%3E%3C/svg%3E"); background-repeat: repeat-x; }

.mockbar { position: fixed; inset: auto 0 0 0; z-index: 90; background: var(--basalte); color: var(--brume); font: 400 12px/1.4 var(--mono); padding: 7px var(--pad); text-align: center; }
.mockbar a { color: inherit; }
body.has-mockbar { padding-bottom: 34px; }

.site-head { position: sticky; top: 0; z-index: 80; background: color-mix(in srgb, var(--brume) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.head-in { display: flex; align-items: center; gap: 28px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; color: var(--cardamome); }
.brand .name { display: block; font: 700 19px/1 var(--serif); }
.brand .tag { display: block; font: 400 9.5px/1 var(--mono); letter-spacing: .14em; color: var(--basalte-2); margin-top: 4px; }
nav.main { display: flex; gap: 22px; margin-left: auto; }
nav.main a { text-decoration: none; font: 700 13.5px/1 var(--sans); color: var(--basalte-2); padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
nav.main a:hover { color: var(--basalte); border-color: var(--helico); }
@media (max-width: 920px) { nav.main { display: none; } }
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 9px; padding: 12px 20px; font: 800 14px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: all .25s var(--ease); cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-helico { background: var(--helico); color: #fff; }
.btn-helico:hover { background: #A94439; }
.btn-basalte { background: var(--basalte); color: var(--brume); }
.btn-ligne { border-color: var(--basalte); color: var(--basalte); background: none; }

/* hero */
.hero { position: relative; min-height: 92svh; 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% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(37,43,42,.34), rgba(37,43,42,.05) 42%, rgba(37,43,42,.8) 92%); }
.hero-in { position: relative; width: 100%; padding: 130px 0 clamp(30px, 6vh, 60px); color: #fff; }
.kicker { font: 400 11px/1.6 var(--mono); letter-spacing: .14em; color: #E4C87E; margin-bottom: 12px; text-transform: uppercase; }
.hero h1 { font: 800 clamp(40px, 6.4vw, 92px)/1.02 var(--serif); margin: 0 0 16px; max-width: 16ch; }
.hero h1 em { font-style: italic; font-weight: 400; color: #BFD9B4; }
.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(16.5px, 1.5vw, 19.5px); line-height: 1.6; max-width: 54ch; margin: 0 0 22px; }
.booking { display: flex; flex-wrap: wrap; gap: 10px; background: color-mix(in srgb, #ffffff 94%, transparent); border-radius: var(--r); padding: 12px; box-shadow: 0 18px 46px rgba(37, 43, 42, .32); color: var(--basalte); }
.booking .field { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 9px; background: var(--brume); border: 1px solid var(--ligne); flex: 1 1 135px; }
.booking .field .ico { color: var(--cardamome); }
.booking label { display: block; font: 400 9px/1 var(--mono); letter-spacing: .1em; color: var(--basalte-2); text-transform: uppercase; margin-bottom: 3px; }
.booking input, .booking select { border: 0; background: none; color: var(--basalte); font: 700 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; } }
/* tableau de marche */
.marchecard { background: rgba(37, 43, 42, .82); backdrop-filter: blur(8px); border: 1.5px solid rgba(238, 241, 236, .3); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 8px; }
.marchecard .top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: #E4C87E; }
.marchecard .row { display: flex; gap: 12px; align-items: baseline; font-size: 13.5px; border-top: 1px dashed rgba(238, 241, 236, .3); padding-top: 8px; }
.marchecard .row:first-of-type { border-top: 0; padding-top: 0; }
.marchecard .row b { font: 700 14px/1.3 var(--serif); min-width: 86px; color: #BFD9B4; }

.credit { position: absolute; right: 12px; top: 10px; z-index: 5; font: 400 10px/1.3 var(--mono); color: #fff; background: rgba(37, 43, 42, .55); padding: 3px 8px; border-radius: 5px; }
.hero .credit, .cta-band .credit { top: auto; bottom: 10px; }

.sec { padding: clamp(60px, 8.5vw, 108px) 0; }
.sec-head { display: flex; gap: 12px; align-items: baseline; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--basalte-2); margin-bottom: clamp(22px, 4vw, 40px); }
.sec-head .num { color: var(--helico); font-weight: 700; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--ligne); align-self: center; }
h2 { font: 800 clamp(31px, 4.3vw, 54px)/1.06 var(--serif); margin: 0; }
h2 em { font-style: italic; font-weight: 400; color: var(--cardamome); }
.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, 46px); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-grid p { color: var(--basalte-2); max-width: 52ch; margin: 0 0 16px; }

/* ilets : cartes */
.ilets { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.ilet { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border-radius: var(--r); overflow: hidden; text-decoration: none; isolation: isolate; grid-column: span 4; }
.ilet.tall { grid-column: span 8; min-height: 380px; }
@media (max-width: 880px) { .ilet, .ilet.tall { grid-column: span 12 !important; } }
.ilet .ph { position: absolute; inset: 0; z-index: -1; }
.ilet .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ilet:hover .ph img { transform: scale(1.045); }
.ilet .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28, 33, 32, .86) 0%, rgba(28, 33, 32, .05) 55%); }
.ilet .in { position: relative; padding: 18px; color: var(--brume); }
.ilet .alt { position: absolute; top: 14px; right: 14px; font: 700 11px/1 var(--mono); background: rgba(238, 241, 236, .92); color: var(--basalte); border-radius: 6px; padding: 6px 9px; }
.ilet .k { font: 400 10px/1 var(--mono); letter-spacing: .14em; color: #E4C87E; display: block; margin-bottom: 6px; }
.ilet h3 { font: 800 25px/1.1 var(--serif); margin: 0 0 5px; }
.ilet p { margin: 0; font-size: 13.5px; opacity: .92; max-width: 52ch; }

/* entrees du cirque : section sombre */
.portes { background: var(--basalte); color: var(--brume); }
.portes h2 { color: var(--brume); }
.portes h2 em { color: #E4C87E; }
.portes .sec-head { color: #9FAAA4; }
.portes .intro-grid p { color: #B9C3BD; }
.voies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .voies { grid-template-columns: 1fr; } }
.voie { background: rgba(238, 241, 236, .07); border: 1.5px solid rgba(238, 241, 236, .25); border-radius: var(--r); padding: 22px; display: grid; gap: 9px; align-content: start; }
.voie .k { font: 700 10.5px/1 var(--mono); letter-spacing: .14em; color: #E4C87E; }
.voie h3 { font: 800 21px/1.15 var(--serif); margin: 0; }
.voie .stats { display: flex; gap: 14px; font-family: var(--mono); font-size: 11.5px; color: #BFD9B4; }
.voie p { margin: 0; font-size: 14px; line-height: 1.55; color: #C9D2CC; }

.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; }
@media (max-width: 880px) { .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(28, 33, 32, .86) 0%, rgba(28, 33, 32, .05) 55%); }
.stay .in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 18px; color: var(--brume); }
.stay .k { font: 400 10px/1 var(--mono); letter-spacing: .14em; color: #E4C87E; }
.stay h3 { font: 800 23px/1.1 var(--serif); margin: 5px 0 4px; }
.stay .meta { opacity: .88; font-size: 13.5px; }
.stay .go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brume); color: var(--basalte); flex: none; transition: all .25s var(--ease); }
.stay:hover .go { background: var(--helico); color: #fff; transform: translateX(3px); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 1px solid var(--ligne); background: #fff; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
a.post:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(37, 43, 42, .14); }
.post .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post .ph img { width: 100%; height: 100%; object-fit: cover; }
.post .in { padding: 17px 18px 20px; display: grid; gap: 7px; }
.post .mono { color: var(--helico); font-weight: 700; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.post h3 { font: 800 20px/1.2 var(--serif); margin: 0; }
.post p { margin: 0; color: var(--basalte-2); font-size: 14px; line-height: 1.5; }
.post.soon { opacity: .55; }
.post.soon .mono { color: var(--basalte-2); }

.faq details { border-bottom: 1px solid var(--ligne); padding: 15px 0; max-width: 820px; }
.faq summary { cursor: pointer; font: 800 16.5px/1.4 var(--sans); }
.faq p { margin: 10px 0 2px; color: var(--basalte-2); }

.cta-band { position: relative; isolation: isolate; padding: clamp(74px, 10vw, 128px) 0; text-align: center; overflow: hidden; color: #fff; }
.cta-band .ph { position: absolute; inset: 0; z-index: -2; }
.cta-band .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 33, 32, .6); }
.cta-band h2 { color: #fff; margin-bottom: 26px; }
.cta-band h2 em { color: #E4C87E; }

footer { border-top: 1px solid var(--ligne); padding: 40px 0 46px; color: var(--basalte-2); font-size: 13.5px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer a { color: inherit; }
footer .mono { font-size: 10.5px; }
#credits-list { margin: 10px 0 0; padding: 0 0 0 18px; display: grid; gap: 4px; max-width: 72ch; }
details > summary { cursor: pointer; }

.article-hero { position: relative; min-height: 62svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; color: #fff; }
.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(37,43,42,.36), rgba(37,43,42,.84)); }
.article-hero .wrap { width: 100%; padding-bottom: 42px; padding-top: 120px; }
.article-hero h1 { font: 800 clamp(34px, 5.2vw, 70px)/1.02 var(--serif); margin: 10px 0 14px; }
.article-hero h1 em { font-style: italic; font-weight: 400; color: #BFD9B4; }
.article-body { max-width: 740px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--pad) 30px; }
.article-body > p:first-child { font-size: clamp(18px, 1.9vw, 20.5px); line-height: 1.62; }
.article-body p { color: #46514B; line-height: 1.75; }
.article-body h2 { font-size: clamp(24px, 3vw, 33px); margin: 1.6em 0 .5em; }
.article-body figure { margin: 2em 0; position: relative; border-radius: var(--r); overflow: hidden; }
.article-body figcaption { font: 400 11.5px/1.6 var(--mono); color: var(--basalte-2); padding: 10px 2px 0; }
.article-body .note { border-left: 4px solid var(--canne); background: #fff; border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; }
.article-body .note .mono { color: var(--canne); font-weight: 700; }
.aff-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: #fff; border-radius: var(--r); padding: 20px 22px; margin: 2.2em 0; box-shadow: 0 12px 32px rgba(37, 43, 42, .12); }
.aff-cta b { font: 800 18px/1.3 var(--serif); display: block; }
.aff-cta span { color: var(--basalte-2); font-size: 13.5px; }

[data-reveal] { opacity: 0; transform: translateY(20px); 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; } }

body.show-aff .aff { outline: 2px dashed var(--canne); 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(--canne); color: #fff; font: 700 10px/1 var(--mono); padding: 4px 7px; border-radius: 4px; }
