/* ==========================================================
   Les Voies d'Améa — charte graphique
   Ivoire #F6F1E8 · Sable #DBC4B0 · Terracotta #C07A62
   Prune #5A3A56 · Vert sauge #9AA087 · Or chaud #D7B27A
   Titres : Cormorant Garamond · Textes : Montserrat
   ========================================================== */
:root {
  --ivoire: #F6F1E8;
  --sable: #DBC4B0;
  --terracotta: #C07A62;
  --prune: #5A3A56;
  --prune-fonce: #3E2640;
  --prune-nuit: #2E1A2D;
  --sauge: #9AA087;
  --or: #D7B27A;
  --or-clair: #F1D9A6;
  --texte: #3B2A39;
  --texte-doux: #6E5D69;
  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 18px;
  --ombre: 0 18px 40px -22px rgba(62, 38, 64, .45);
  --max: 1160px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--texte);
  background: var(--ivoire);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--prune); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--prune); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .8rem;
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-or { background: linear-gradient(135deg, var(--or-clair), var(--or)); color: var(--prune-fonce); box-shadow: 0 10px 24px -12px rgba(215, 178, 122, .9); }
.btn-or:hover { box-shadow: 0 14px 28px -12px rgba(215, 178, 122, 1); }
.btn-prune { background: var(--prune); color: var(--ivoire); }
.btn-prune:hover { background: var(--prune-fonce); }
.btn-ghost { border-color: rgba(246, 241, 232, .55); color: var(--ivoire); }
.btn-ghost:hover { background: rgba(246, 241, 232, .1); }
.btn svg { width: 18px; height: 18px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 1.1rem 0;
}
.site-header.solid, .site-header.light {
  background: rgba(46, 26, 45, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -14px rgba(0,0,0,.5);
  padding: .6rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ivoire); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
.brand-text small { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; font-family: var(--serif); opacity: .9; }
.brand-text strong { font-weight: 500; font-size: 1.45rem; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { color: var(--ivoire); text-decoration: none; font-size: .84rem; letter-spacing: .04em; opacity: .88; position: relative; }
.nav a:not(.btn):hover { opacity: 1; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--or); transform: scaleX(0); transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { padding: .6rem 1.2rem; font-size: .8rem; opacity: 1; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ivoire); padding: .4rem; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  color: var(--ivoire);
  background: var(--prune-nuit) url("/assets/hero.svg") center bottom / cover no-repeat;
  padding: 7rem 0 9rem;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, rgba(46,26,45,.35)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-logo { width: 150px; margin: 0 auto 1rem; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.hero .wordmark { font-family: var(--serif); line-height: 1; margin-bottom: 1.2rem; }
.hero .wordmark small { display: block; letter-spacing: .4em; font-size: clamp(1rem, 2.4vw, 1.5rem); text-transform: uppercase; }
.hero .wordmark span { display: block; font-size: clamp(3rem, 8vw, 5.6rem); letter-spacing: .04em; }
.hero .tagline { font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 1.6rem; }
.hero .lead { font-size: 1.05rem; max-width: 560px; margin: 0 auto 2rem; opacity: .92; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 1; color: var(--or-clair); opacity: .8; animation: float 2.6s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-50%, 6px); } }

section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }
.section-head p { color: var(--texte-doux); }
.bg-sable { background: linear-gradient(180deg, #EFE5D8, var(--ivoire)); }
.bg-prune { background: var(--prune-fonce); color: var(--ivoire); }
.bg-prune h2, .bg-prune h3 { color: var(--ivoire); }
.bg-prune .section-head p { color: rgba(246, 241, 232, .78); }
.texture { background-image: radial-gradient(rgba(215,178,122,.12) 1px, transparent 1px); background-size: 22px 22px; }

.voies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.voie {
  background: #FBF8F2; border: 1px solid rgba(215, 178, 122, .45); border-radius: var(--rayon);
  padding: 2.4rem 2rem 2rem; text-align: center; box-shadow: var(--ombre); position: relative;
}
.voie .ico { width: 74px; height: 74px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--or); color: var(--or); }
.voie .ico svg { width: 38px; height: 38px; }
.voie p { color: var(--texte-doux); font-size: .95rem; margin: 0; }

.tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.tarif {
  background: rgba(246, 241, 232, .04); border: 1px solid rgba(215, 178, 122, .35); border-radius: var(--rayon);
  padding: 1.8rem; display: flex; flex-direction: column; gap: .6rem; transition: border-color .25s, transform .25s;
}
.tarif:hover { border-color: var(--or); transform: translateY(-3px); }
.tarif.vedette { background: linear-gradient(160deg, rgba(215,178,122,.16), rgba(246,241,232,.03)); border-color: var(--or); }
.tarif-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tarif h3 { margin: 0; font-size: 1.55rem; }
.prix { font-family: var(--serif); font-size: 2rem; color: var(--or); white-space: nowrap; }
.prix.sur-demande { font-size: 1.05rem; font-style: italic; }
.duree { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sable); }
.tarif p { font-size: .92rem; color: rgba(246, 241, 232, .82); margin: 0; flex: 1; }
.badge { align-self: flex-start; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; background: var(--or); color: var(--prune-fonce); padding: .25rem .7rem; border-radius: 999px; font-weight: 600; }
.tarif .lien { color: var(--or-clair); font-size: .85rem; text-decoration: none; margin-top: .4rem; }
.tarif .lien:hover { text-decoration: underline; }
.infos-pratiques { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2rem; margin-top: 2.6rem; font-size: .86rem; color: rgba(246, 241, 232, .85); }
.infos-pratiques span { display: inline-flex; align-items: center; gap: .5rem; }
.infos-pratiques svg { width: 18px; height: 18px; color: var(--or); }

.apropos { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.apropos-visuel {
  aspect-ratio: 4 / 5; border-radius: 220px 220px var(--rayon) var(--rayon); overflow: hidden; position: relative;
  background: url("/assets/hero.svg") 70% bottom / cover; box-shadow: var(--ombre);
  display: grid; place-items: center;
}
.apropos-visuel img { width: 46%; filter: drop-shadow(0 8px 24px rgba(0,0,0,.3)); }
.apropos-visuel::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(241, 217, 166, .55); border-radius: 210px 210px 12px 12px; pointer-events: none; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--terracotta); margin-top: .4rem; }
.valeurs { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.valeurs li { display: flex; gap: .8rem; align-items: flex-start; }
.valeurs li::before { content: "✦"; color: var(--or); line-height: 1.7; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.etape { text-align: center; padding: 0 .5rem; }
.etape .num { font-family: var(--serif); font-size: 3.2rem; color: var(--or); line-height: 1; display: block; margin-bottom: .6rem; }
.etape p { color: var(--texte-doux); font-size: .94rem; }

.reserver-box {
  max-width: 860px; margin: 0 auto; text-align: center; border-radius: 28px; padding: clamp(2.4rem, 6vw, 4rem);
  background: linear-gradient(160deg, var(--prune), var(--prune-nuit)); color: var(--ivoire);
  border: 1px solid rgba(215, 178, 122, .5); box-shadow: var(--ombre); position: relative; overflow: hidden;
}
.reserver-box::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(215,178,122,.35), transparent 65%); }
.reserver-box h2 { color: var(--ivoire); }
.reserver-box p { opacity: .88; max-width: 560px; margin-inline: auto; }
.reserver-box .btn { margin-top: 1rem; }
.koalendar-embed { margin-top: 2rem; border-radius: 16px; overflow: hidden; background: #fff; display: none; position: relative; }
.koalendar-embed.on { display: block; }
.koalendar-embed iframe { width: 100%; height: 800px; border: 0; display: block; }
.petit { font-size: .8rem; opacity: .75; margin-top: 1rem; }

.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }
.carte-article {
  background: #FBF8F2; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid rgba(219, 196, 176, .7);
  transition: transform .25s;
}
.carte-article:hover { transform: translateY(-4px); }
.carte-article .vignette { aspect-ratio: 16 / 9; background: url("/assets/hero.svg") center bottom / cover; display: grid; place-items: center; }
.carte-article .vignette.alt { background: linear-gradient(140deg, var(--sauge), #7D846C); }
.carte-article .vignette.alt2 { background: linear-gradient(140deg, var(--terracotta), #9C5A46); }
.carte-article .vignette svg { width: 64px; color: var(--or-clair); opacity: .95; }
.carte-article .corps { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.meta { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .6rem; }
.carte-article h3 { font-size: 1.55rem; }
.carte-article p { color: var(--texte-doux); font-size: .93rem; flex: 1; }
.carte-article .lire { font-size: .85rem; color: var(--prune); font-weight: 500; }
.carte-article.bientot { opacity: .75; pointer-events: none; }

.insta { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.insta-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.insta-grille a { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; overflow: hidden; position: relative; color: var(--or-clair); }
.insta-grille a svg { width: 42%; }
.insta-grille a:nth-child(1) { background: url("/assets/hero.svg") 70% bottom / cover; }
.insta-grille a:nth-child(2) { background: var(--ivoire); color: var(--prune); border: 1px solid var(--sable); }
.insta-grille a:nth-child(3) { background: var(--terracotta); }
.insta-grille a:nth-child(4) { background: var(--sauge); }
.insta-grille a:nth-child(5) { background: var(--prune); }
.insta-grille a:nth-child(6) { background: var(--sable); color: var(--prune); }
.insta-grille a:hover::after { content: ""; position: absolute; inset: 0; background: rgba(46,26,45,.18); }
.insta-handle { font-family: var(--serif); font-size: 2rem; color: var(--terracotta); }

.site-footer { background: var(--prune-nuit); color: rgba(246, 241, 232, .8); padding: 4rem 0 calc(2rem + var(--safe-bottom)); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; }
.site-footer h4 { color: var(--or-clair); font-family: var(--sans); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(246, 241, 232, .85); text-decoration: none; }
.site-footer a:hover { color: var(--or-clair); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-bas { border-top: 1px solid rgba(215,178,122,.25); margin-top: 3rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .78rem; opacity: .7; }
.install-btn { display: none; margin-top: 1.2rem; }
.install-btn.on { display: inline-flex; }

.page-hero { background: var(--prune-nuit) url("/assets/hero.svg") center bottom / cover; color: var(--ivoire); text-align: center; padding: 10rem 0 6rem; }
.page-hero h1 { color: var(--ivoire); max-width: 900px; margin-inline: auto; font-weight: 400; }
.page-hero .meta { color: var(--or-clair); }
.page-hero p { max-width: 640px; margin: 0 auto; opacity: .9; font-weight: 300; }
.article { max-width: 720px; margin: 0 auto; padding: 4rem 0 2rem; font-size: 1.04rem; }
.article h2 { font-size: 2.1rem; margin-top: 2.4rem; }
.article .chapo { font-family: var(--serif); font-size: 1.45rem; line-height: 1.5; color: var(--prune); }
.article blockquote { margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 2px solid var(--or); background: #FBF8F2; font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--prune); border-radius: 0 12px 12px 0; }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: .5rem; }
.article li::marker { color: var(--or); }
.encart { background: linear-gradient(160deg, #EFE5D8, #FBF8F2); border: 1px solid var(--sable); border-radius: var(--rayon); padding: 2rem; margin: 3rem 0 1rem; text-align: center; }
.encart h3 { margin-bottom: .4rem; }
.retour { display: inline-flex; gap: .4rem; align-items: center; font-size: .86rem; text-decoration: none; margin-bottom: 1rem; }

.tabbar { display: none; }

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

@media (max-width: 960px) {
  .voies, .etapes { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .apropos, .insta { grid-template-columns: 1fr; }
  .apropos-visuel { max-width: 380px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: rgba(46, 26, 45, .98); flex-direction: column; justify-content: center; gap: 2rem;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-family: var(--serif); font-size: 1.8rem; }
  .nav .btn { font-family: var(--sans); font-size: 1rem; }
  .menu-toggle { position: relative; z-index: 60; }
  body { padding-bottom: calc(68px + var(--safe-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 40;
    background: rgba(46, 26, 45, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(215, 178, 122, .3);
    padding: .45rem .4rem calc(.45rem + var(--safe-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; color: rgba(246, 241, 232, .72); text-decoration: none; font-size: .64rem; letter-spacing: .04em; padding: .25rem 0; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active, .tabbar a:hover { color: var(--or-clair); }
  .tabbar a.cta svg { color: var(--or); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 7rem; }
  .scroll-hint { display: none; }
  .hero .tagline { font-size: .64rem; letter-spacing: .2em; }
  .reserver-box { padding-inline: 1rem; }
  .koalendar-embed iframe { height: 900px; }
}
@media (display-mode: standalone) {
  .site-header { padding-top: calc(.6rem + env(safe-area-inset-top, 0px)); }
  .install-btn { display: none !important; }
}
