:root {
  --terre: #b4532a;
  --terre-fonce: #8e3d1c;
  --foret: #1f3a2d;
  --foret-clair: #2f5a44;
  --sable: #f6f1e7;
  --sable-fonce: #ebe2d1;
  --encre: #1c211d;
  --gris: #5b635c;
  --blanc: #fffdf9;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); color: var(--encre); background: var(--blanc); line-height: 1.6; font-size: 17px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--terre); margin-bottom: .9em; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 4vw, 40px); color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.nav.solid { background: rgba(255, 253, 249, .96); color: var(--encre); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); backdrop-filter: blur(8px); }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.brand span { font-weight: 400; font-style: italic; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav .cta { padding: 9px 18px; border: 1.5px solid currentColor; border-radius: 999px; }
.nav .cta:hover { text-decoration: none; background: var(--terre); border-color: var(--terre); color: #fff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 25, 18, .45) 0%, rgba(15, 25, 18, .15) 35%, rgba(15, 25, 18, .8) 100%); }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 140px clamp(16px, 4vw, 40px) 48px; }
.hero .eyebrow { color: #f3c9a8; }
.hero h1 { max-width: 16ch; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--terre); color: #fff; }
.btn.primary:hover { background: var(--terre-fonce); }
.btn.ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .25); background: rgba(15, 25, 18, .35); backdrop-filter: blur(6px); }
.facts li { padding: 22px clamp(16px, 4vw, 40px); border-right: 1px solid rgba(255, 255, 255, .18); }
.facts li:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; }
.facts span { font-size: .88rem; opacity: .9; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.tinted { background: var(--sable); }
.intro { max-width: 760px !important; text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.intro p:last-child { color: var(--gris); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 7vw, 96px); }
.split:last-child { margin-bottom: 0; }
.split.reverse figure { order: 2; }
.split figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--sable-fonce); }
.split p { color: var(--gris); }
.split h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.ticks li { padding: 10px 0 10px 30px; border-top: 1px solid var(--sable-fonce); position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--terre); }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.card { background: var(--blanc); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; height: auto; }
.card div { padding: 24px; }
.card p { color: var(--gris); margin: 0; }
.escales { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.escale { position: relative; border-radius: 18px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; }
.escale img { position: absolute; inset: 0; }
.escale::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(15, 25, 18, .85)); }
.escale div { position: relative; z-index: 1; padding: 28px; }
.escale .eyebrow { color: #f3c9a8; }
.escale p:last-child { margin: 0; opacity: .92; }

/* Bandeau préservation */
.band { position: relative; color: #fff; padding: clamp(90px, 14vw, 180px) clamp(16px, 4vw, 40px); overflow: hidden; }
.band > img { position: absolute; inset: 0; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 40, 30, .9) 0%, rgba(20, 40, 30, .6) 55%, rgba(20, 40, 30, .25) 100%); }
.band-inner { max-width: var(--max); margin: 0 auto; }
.band-inner > * { max-width: 640px; }
.band .eyebrow { color: #f3c9a8; }
.band p { font-size: 1.08rem; opacity: .95; }

/* Capital */
.capital { display: flex; height: 92px; border-radius: 16px; overflow: hidden; margin-bottom: 40px; font-size: .9rem; }
.capital > div { display: flex; flex-direction: column; justify-content: center; padding: 0 24px; color: #fff; }
.capital strong { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.cap-keep { flex: 51; background: var(--foret); }
.cap-open { flex: 49; background: var(--terre); }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.way { border: 1px solid var(--sable-fonce); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; background: var(--blanc); }
.way.featured { background: var(--foret); color: #fff; border-color: var(--foret); }
.way .cap { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terre); font-weight: 600; margin-bottom: 1.2em; }
.way .cap strong { font-family: var(--serif); font-size: 2.4rem; letter-spacing: 0; display: block; text-transform: none; line-height: 1.1; }
.way.featured .cap { color: #f3c9a8; }
.way p { color: var(--gris); }
.way.featured p:not(.cap) { color: rgba(255, 255, 255, .85); }
.way dl { margin: 0 0 1.2em; }
.way dl div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.way dt { opacity: .8; }
.way dd { margin: 0; font-weight: 600; }
.way a { margin-top: auto; padding-top: 12px; font-weight: 600; text-decoration: none; color: var(--terre); }
.way.featured a { color: #f3c9a8; }
.way a:hover { text-decoration: underline; text-underline-offset: 5px; }
.legal { font-size: .85rem; color: var(--gris); margin-top: 32px !important; max-width: 860px !important; text-align: center; }

/* Contact */
form { max-width: 720px !important; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
label.wide, form .btn, .hint { grid-column: 1 / -1; }
input, select, textarea { font: inherit; font-weight: 400; padding: 13px 14px; border: 1px solid #cfc6b4; border-radius: 10px; background: var(--blanc); color: var(--encre); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--terre); outline-offset: 1px; }
form .btn { justify-self: start; }
.hint { font-size: .85rem; color: var(--gris); margin: 0; }

/* Pied de page */
footer { background: var(--foret); color: rgba(255, 255, 255, .85); padding: 48px clamp(16px, 4vw, 40px); font-size: .9rem; }
footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; color: #fff; }
.foot p { margin: 0; }
footer summary { cursor: pointer; }
footer details p { margin-top: 10px; opacity: .8; }

/* Apparition */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Mobile */
@media (max-width: 860px) {
  .burger { display: block; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--blanc); color: var(--encre); padding: 8px 16px 20px; display: none; box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 14px 4px; border-bottom: 1px solid var(--sable-fonce); }
  .nav .cta { margin-top: 14px; text-align: center; border-bottom: 1.5px solid currentColor; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(2) { border-right: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .split, .cards, .escales, .ways { grid-template-columns: 1fr; }
  .split.reverse figure { order: 0; }
  .capital { height: auto; flex-direction: column; }
  .capital > div { padding: 16px 20px; }
  form { grid-template-columns: 1fr; }
}

/* Sélecteur de langue */
.langs { display: flex; gap: 2px; padding-left: 20px; border-left: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.langs button { font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .06em; background: none; border: 0; color: inherit; padding: 6px 8px; border-radius: 6px; cursor: pointer; opacity: .65; }
.langs button:hover { opacity: 1; }
.langs button[aria-pressed="true"] { opacity: 1; background: var(--terre); color: #fff; }
@media (max-width: 1020px) { .nav nav { gap: 18px; } .langs { padding-left: 12px; } }
@media (max-width: 860px) { .langs { border-left: 0; padding: 16px 0 0; justify-content: center; gap: 8px; } .langs button { padding: 10px 14px; font-size: .9rem; } }

/* Contact en attente */
.soon { text-align: center; font-weight: 600; color: var(--foret); margin: 0 auto; }
form[hidden] { display: none; }

/* Page décompte et inscription */
.launch { position: relative; min-height: 100svh; color: #fff; display: flex; align-items: center; padding: 110px clamp(16px, 4vw, 40px) 56px; }
.launch > img { position: fixed; inset: 0; z-index: -2; }
.launch::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(15, 25, 18, .82), rgba(15, 25, 18, .55)); }
.launch-inner { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.launch .eyebrow { color: #f3c9a8; }
.launch h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); text-wrap: balance; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; max-width: 520px; }
.count div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; padding: 18px 6px 14px; text-align: center; backdrop-filter: blur(6px); }
.count strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.count span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.reg { background: var(--blanc); color: var(--encre); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.reg h2 { font-size: 1.7rem; margin-bottom: .8em; }
.reg form { max-width: none !important; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
label.check input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--terre); }
.trap { position: absolute; left: -9999px; }
.msg { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.msg.ok { background: #e3efe6; color: var(--foret); }
.msg.err { background: #f9e3da; color: var(--terre-fonce); }
[hidden] { display: none !important; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.soon + .soon { margin-top: 20px; }
.launch-page .nav:not(.solid) { background: linear-gradient(180deg, rgba(15, 25, 18, .5), transparent); }
@media (max-width: 860px) { .launch-inner { grid-template-columns: 1fr; } .count { gap: 8px; } }

/* Mentions légales */
.doc { max-width: 760px; margin: 0 auto; padding: 130px clamp(16px, 4vw, 40px) 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1em; }
.doc h2 { font-size: 1.3rem; margin: 2.2em 0 .5em; padding-top: 1.2em; border-top: 1px solid var(--sable-fonce); }
.doc p { color: var(--gris); }
.todo { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: #f9e3da; color: var(--terre-fonce); padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
footer > p a, .hint a { text-underline-offset: 4px; }

/* Bloc pleine largeur (cérémonies) */
.escale.wide { grid-column: 1 / -1; min-height: 380px; }
.escale.wide div { max-width: 720px; }

/* Onglets thématiques */
html { scroll-padding-top: 124px; }
.nav { flex-wrap: wrap; padding-bottom: 10px; }
.tabs { flex-basis: 100%; display: flex; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 8px 15px; border-radius: 999px; font-size: .92rem; font-weight: 500; text-decoration: none; opacity: .88; }
.tabs a:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.tabs a[aria-current="page"] { background: var(--terre); color: #fff; opacity: 1; }
.hero-inner { padding-top: 190px; }

.banner { position: relative; color: #fff; min-height: 58vh; display: flex; align-items: flex-end; padding: 200px clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px); overflow: hidden; }
.banner > img { position: absolute; inset: 0; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 25, 18, .6) 0%, rgba(15, 25, 18, .35) 40%, rgba(15, 25, 18, .85) 100%); }
.banner-inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.banner-inner > * { max-width: 720px; }
.banner .eyebrow { color: #f3c9a8; }
.banner h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); text-wrap: balance; }
.banner p:last-child { font-size: 1.08rem; opacity: .95; margin-bottom: 0; }

.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }
.themes .card div { padding: 20px; }
.themes .card h3 { font-size: 1.15rem; }
.themes .card p { font-size: .93rem; }
.ways.two, .cards.two { grid-template-columns: 1fr 1fr; }
.cards.two { margin-bottom: 0; }
.subhead { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: clamp(40px, 6vw, 64px) auto 24px; }
.signup { background: var(--sable-fonce); text-align: center; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.legal-page .nav, .launch-page .nav { padding-bottom: 16px; }
@media (max-width: 1100px) { .themes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .themes, .ways.two, .cards.two { grid-template-columns: 1fr; }
  .nav nav { top: 100%; }
  .banner { min-height: 50vh; padding-top: 170px; }
  .hero-inner { padding-top: 170px; }
}
