/* Layout : une seule page, bandes pleine largeur. Univers de la charte : crème, vert olive, bordeaux, trait dessiné. Volontairement mono-thème (papier crème). */
:root {
  --creme: #fbecda;
  --creme-2: #f4dfc4;
  --olive: #2b2f1f;
  --olive-2: #4a4f38;
  --bordeaux: #5f1b21;
  --bordeaux-2: #7b2a31;
  --trait: #d8c2a3;
  --f-titre: "Marcellus", "Trajan Pro", Georgia, serif;
  --f-texte: "EB Garamond", Garamond, Georgia, serif;
  --f-machine: "Courier Prime", "Courier New", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--creme); color: var(--olive); font-family: var(--f-texte); font-size: 19px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bordeaux); }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.machine { font-family: var(--f-machine); letter-spacing: .04em; }
.eyebrow { font-family: var(--f-machine); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--bordeaux); }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: 23px; }
p { margin: 0; }

/* Bandeau haut */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--creme); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--creme) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--trait); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--olive); }
.brand img { width: 26px; }
.brand span { font-family: var(--f-titre); font-size: 22px; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 22px; font-family: var(--f-machine); font-size: 14px; }
.nav a { color: var(--olive); text-decoration: none; }
.nav a:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-block; font-family: var(--f-machine); font-size: 15px; letter-spacing: .04em; text-decoration: none; padding: 12px 20px; border: 1.5px solid var(--bordeaux); color: var(--creme); background: var(--bordeaux); border-radius: 2px; transition: background .15s; }
.btn:hover { background: var(--bordeaux-2); }
.btn.ghost { background: transparent; color: var(--bordeaux); }
.btn.ghost:hover { background: var(--creme-2); }
.nav .btn { padding: 8px 14px; font-size: 13.5px; color: var(--creme); }
.nav .btn:hover { color: var(--creme); text-decoration: none; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
.nav .btn { white-space: nowrap; }
.brand { min-width: 0; }
@media (max-width: 560px) {
  .top .wrap { padding-block: 10px; gap: 10px; }
  .brand img { width: 22px; }
  .brand span { font-size: 18px; letter-spacing: .04em; }
  .nav .btn { padding: 7px 11px; font-size: 12.5px; letter-spacing: .02em; }
}
@media (max-width: 370px) { .brand span { font-size: 15px; } .nav .btn { padding: 6px 9px; font-size: 12px; } }

/* Ouverture */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--bordeaux); }
.hero .lead { font-size: clamp(20px, 2.2vw, 24px); margin-top: 22px; max-width: 34ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .zone { margin-top: 26px; font-family: var(--f-machine); font-size: 14px; color: var(--olive-2); }
.hero-art { position: relative; justify-self: center; width: min(100%, 330px); }
.hero-art img { width: 100%; transform: rotate(4deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: marche 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes marche { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-6px); } }
}
.hero-art .stamp { position: absolute; left: -36px; bottom: 26px; background: var(--creme); border: 1.5px solid var(--olive); padding: 8px 12px; font-family: var(--f-machine); font-size: 13px; line-height: 1.35; transform: rotate(-5deg); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: 150px; order: -1; justify-self: start; }
  .hero-art .stamp { left: auto; right: -150px; bottom: 30px; }
}

/* Citation */
.ronsard { border-block: 1px solid var(--trait); padding-block: 26px; text-align: center; }
.ronsard p { font-family: var(--f-machine); font-style: italic; color: var(--bordeaux); font-size: clamp(15px, 1.8vw, 18px); }
.ronsard span { display: block; font-style: normal; font-size: 13px; margin-top: 6px; color: var(--olive-2); }

section { padding-block: clamp(56px, 8vw, 96px); }
.head { display: grid; gap: 12px; max-width: 640px; margin-bottom: 44px; }
.head p { font-size: 20px; color: var(--olive-2); }

/* Promesse */
.promesses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--olive); }
.promesse { padding: 26px 26px 6px 0; display: grid; gap: 10px; align-content: start; }
.promesse + .promesse { padding-left: 26px; border-left: 1px solid var(--trait); }
.promesse .n { font-family: var(--f-machine); font-size: 13px; color: var(--bordeaux); }
@media (max-width: 760px) {
  .promesses { grid-template-columns: 1fr; }
  .promesse, .promesse + .promesse { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--trait); }
}

/* Comment ça marche */
.etapes-bande { background: var(--creme-2); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; counter-reset: e; }
.etapes::before { content: ""; position: absolute; top: 22px; left: 22px; right: calc((100% - 88px) / 5 + 22px - 22px); border-top: 2px dashed var(--olive-2); opacity: .45; }
.etape { position: relative; display: grid; gap: 10px; align-content: start; counter-increment: e; }
.etape::before { content: counter(e); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--creme); border: 1.5px solid var(--olive); font-family: var(--f-machine); font-weight: 700; font-size: 17px; position: relative; }
.etape h3 { font-size: 21px; }
.etape p { font-size: 17px; }
.etape .prix { font-family: var(--f-machine); font-size: 13.5px; color: var(--bordeaux); }
@media (max-width: 900px) {
  .etapes { grid-template-columns: 1fr; gap: 26px; }
  .etapes::before { top: 22px; bottom: 22px; left: 22px; right: auto; border-top: 0; border-left: 2px dashed var(--olive-2); }
  .etape { grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; }
  .etape::before { grid-row: span 3; }
}

/* Le club */
.club { background: var(--olive); color: var(--creme); }
.club .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.club .eyebrow { color: #e8b9a6; }
.club h2 { margin-top: 12px; }
.club .texte { display: grid; gap: 18px; font-size: 20px; }
.club .texte p:first-child { font-size: 24px; font-family: var(--f-titre); line-height: 1.35; }
.club .art { justify-self: center; width: min(100%, 230px); background: var(--creme); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 34px; }
@media (max-width: 760px) { .club .wrap { grid-template-columns: 1fr; } .club .art { width: 160px; padding: 24px; justify-self: start; } }

/* Domaines */
.domaines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.domaine { border: 1.5px solid var(--olive); padding: 26px; display: grid; gap: 10px; background: color-mix(in srgb, var(--creme) 60%, white); }
.domaine .lieu { font-family: var(--f-machine); font-size: 13.5px; color: var(--bordeaux); }
.domaine p { font-size: 18px; }
.domaine-plus { margin-top: 26px; font-size: 19px; max-width: 62ch; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.regions span { font-family: var(--f-machine); font-size: 13px; border: 1px solid var(--olive-2); padding: 4px 10px; border-radius: 20px; }
@media (max-width: 700px) { .domaines { grid-template-columns: 1fr; } }

/* Qui suis-je */
.moi .wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; border: 1.5px dashed var(--olive-2); display: grid; place-items: center; text-align: center; font-family: var(--f-machine); font-size: 13px; color: var(--olive-2); padding: 20px; background: var(--creme-2); }
.moi .texte { display: grid; gap: 16px; font-size: 20px; }
.moi .signature { font-family: var(--f-machine); color: var(--bordeaux); font-size: 15px; }
.portrait-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 40% 18%; border: 1.5px solid var(--olive); filter: sepia(.18); }
@media (max-width: 760px) { .moi .wrap { grid-template-columns: 1fr; } .portrait, .portrait-img { max-width: 280px; } }

/* Rejoindre */
.rejoindre { background: var(--bordeaux); color: var(--creme); text-align: center; }
.rejoindre .wrap { display: grid; gap: 22px; justify-items: center; max-width: 760px; }
.rejoindre .eyebrow { color: #f1c9b9; }
.rejoindre p { font-size: 21px; max-width: 46ch; }
.rejoindre .btn { background: var(--creme); color: var(--bordeaux); border-color: var(--creme); font-size: 16px; padding: 14px 26px; }
.rejoindre .btn:hover { background: var(--creme-2); }
.adhesion, .merci { width: 100%; background: var(--creme); color: var(--olive); padding: clamp(20px, 4vw, 34px); text-align: left; display: grid; gap: 16px; border-radius: 2px; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.champ { display: grid; gap: 5px; min-width: 0; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-family: var(--f-machine); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--olive-2); }
.champ label span { text-transform: none; letter-spacing: 0; }
.champ input, .champ textarea { font: inherit; font-size: 18px; color: var(--olive); background: #fffaf2; border: 1px solid var(--trait); border-bottom: 1.5px solid var(--olive-2); border-radius: 2px; padding: 9px 11px; width: 100%; min-width: 0; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--bordeaux); outline-offset: 1px; }
.champ textarea { resize: vertical; }
.coche { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.4; }
.coche input { margin-top: 4px; accent-color: var(--bordeaux); width: 17px; height: 17px; flex: none; }
.adhesion .btn { justify-self: start; background: var(--bordeaux); color: var(--creme); border-color: var(--bordeaux); }
.adhesion .btn:hover { background: var(--bordeaux-2); }
.adhesion .btn:disabled { opacity: .6; cursor: wait; }
.rejoindre .form-err { color: var(--bordeaux); font-family: var(--f-machine); font-size: 14px; max-width: none; }
.merci h3 { color: var(--bordeaux); }
.merci p { font-size: 19px; max-width: none; }
@media (max-width: 600px) { .champs { grid-template-columns: 1fr; } }
.contact { font-family: var(--f-machine); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.contact span { user-select: all; }

/* Pied */
footer { padding-block: 40px 48px; font-size: 15px; color: var(--olive-2); }
footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; }
footer img { width: 150px; }
footer .legal { display: grid; gap: 10px; }
footer .sante { font-family: var(--f-machine); font-size: 13.5px; color: var(--olive); border-top: 1px solid var(--trait); padding-top: 12px; }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } footer img { width: 120px; } }

/* Vérification de l'âge */
.age { position: fixed; inset: 0; z-index: 50; background: var(--creme); display: grid; place-items: center; overflow-y: auto; padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.age-box { max-width: 420px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.age-box img { width: 150px; }
.age-box h2 { font-size: 30px; }
.age-box .choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.age-box .non { font-size: 15px; color: var(--olive-2); }

/* ---- Multi-pages ---- */
.top .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand liens btn"; align-items: center; gap: 12px 28px; }
.brand { grid-area: brand; }
.liens { grid-area: liens; display: flex; justify-content: flex-end; gap: 26px; font-family: var(--f-machine); font-size: 14px; }
.liens a { color: var(--olive); text-decoration: none; white-space: nowrap; padding-block: 4px; border-bottom: 1.5px solid transparent; }
.liens a:hover { color: var(--bordeaux); }
.liens a[aria-current="page"] { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }
.top .btn { grid-area: btn; padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 760px) {
  .top .wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand btn" "liens liens"; padding-block: 10px 0; }
  .liens { justify-content: space-between; gap: 14px; font-size: 13px; border-top: 1px solid var(--trait); padding-block: 6px 7px; overflow-x: auto; }
}
@media (max-width: 560px) { .top .btn { padding: 7px 11px; font-size: 12.5px; letter-spacing: .02em; } }

.page-head { padding-block: clamp(44px, 7vw, 84px) clamp(28px, 4vw, 44px); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(38px, 5.6vw, 62px); max-width: 18ch; }
.page-head p { font-size: clamp(19px, 2vw, 22px); color: var(--olive-2); max-width: 52ch; }
.page-head + section { padding-top: 0; }

/* Accueil : portes d'entrée */
.portes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.porte { display: grid; gap: 10px; align-content: start; padding: 26px; border: 1.5px solid var(--olive); text-decoration: none; color: var(--olive); background: color-mix(in srgb, var(--creme) 60%, white); transition: background .15s, transform .15s; }
.porte:hover { background: var(--creme-2); }
.porte .n { font-family: var(--f-machine); font-size: 13px; color: var(--bordeaux); }
.porte p { font-size: 18px; }
.porte .suite { font-family: var(--f-machine); font-size: 14px; color: var(--bordeaux); margin-top: 6px; }
@media (max-width: 860px) { .portes { grid-template-columns: 1fr; } }

/* Le club : en pratique */
.pratique { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--olive); }
.pratique li { padding: 18px 22px 18px 0; border-bottom: 1px solid var(--trait); display: grid; gap: 4px; }
.pratique li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--trait); }
.pratique strong { font-family: var(--f-titre); font-weight: 400; font-size: 22px; color: var(--bordeaux); }
.pratique span { font-size: 18px; }
@media (max-width: 700px) { .pratique { grid-template-columns: 1fr; } .pratique li:nth-child(even) { padding-left: 0; border-left: 0; } }
.note-cgv { margin-top: 20px; font-size: 17px; color: var(--olive-2); }

/* Bande d'appel */
.appel { padding-block: clamp(48px, 7vw, 80px); }
.appel .wrap { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 760px; }

/* Vignerons : pêle-mêle */
.pelemele { list-style: none; margin: 0; padding: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px; }
.tuile { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 22px; text-align: center; background: color-mix(in srgb, var(--creme) 55%, white); border: 1.5px solid var(--olive); box-shadow: 3px 4px 0 var(--trait); transform: rotate(var(--r, 0deg)); transition: transform .2s; }
.tuile:nth-child(4n+1) { --r: -2.5deg; } .tuile:nth-child(4n+2) { --r: 1.8deg; } .tuile:nth-child(4n+3) { --r: -1deg; } .tuile:nth-child(4n) { --r: 2.6deg; }
.tuile:hover { transform: rotate(0deg) scale(1.03); }
@media (prefers-reduced-motion: reduce) { .tuile, .tuile:hover { transition: none; } }
.tuile { position: relative; }
.tuile img { position: absolute; left: 12%; top: 10%; width: 76%; height: 80%; object-fit: contain; }
.tuile span { font-family: var(--f-titre); font-size: 24px; line-height: 1.15; }
.tuile.suite { background: transparent; border-style: dashed; box-shadow: none; }
.tuile.suite span { font-family: var(--f-machine); font-size: 15px; color: var(--bordeaux); }
.vivante { margin-top: 56px; max-width: 620px; display: grid; gap: 12px; }
.vivante h2 { font-size: clamp(26px, 3.4vw, 34px); }
.vivante p { font-size: 20px; }
@media (max-width: 480px) { .pelemele { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .tuile { padding: 12px; } .tuile span { font-size: 19px; } }

/* Pages légales */
.doc .wrap { max-width: 760px; }
.doc .maj { font-family: var(--f-machine); font-size: 13px; color: var(--olive-2); margin: 0 0 8px; }
.doc h2 { font-size: 24px; line-height: 1.2; margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--trait); }
.doc p, .doc ul { margin: 0 0 12px; font-size: 18px; line-height: 1.6; }
.doc ul { padding-left: 22px; } .doc li { margin-bottom: 4px; }
.doc blockquote { margin: 12px 0; padding: 14px 18px; background: var(--creme-2); border-left: 3px solid var(--bordeaux); font-size: 17px; }
.trou { background: #f6d7d2; padding: 0 4px; border-radius: 2px; }
