/*
* Theme : Fancy a Game of Golf
* Auteur: Frédéric MILLIARÈDE - BESCH
*/
/* Fancy a Game of Golf? : surcouche Bootstrap 5.3 */
:root {
  --green: #396145;
  --green-2: #4d7a5a;
  --fairway: #bfdcae;
  --dot: #d4e5c0;
  --sand: #efe0b0;
  --water: #b8d8ec;
  --flag: #e42521;
  --paper: #fbf8f1;
  --paper-2: #f3efe3;
  --ink: #1f2a1f;
  --muted: #5d665b;
  --radius: 18px;
  --bs-body-font-family: "bakerie-rough", "Bakerie Rough", system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-link-color-rgb: 57, 97, 69;
  --bs-link-hover-color-rgb: 228, 37, 33;
}
/* police manuscrite : base relevée de 16 px à 19 px (+2 pt environ), tout le texte en rem suit */
html { font-size: 118.75%; }
body { background: var(--paper); color: var(--ink); }
/* images ni glissables ni sélectionnables */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
h1, h2, h3, .display-title, .navbar-brand span { font-family: "quayside", "Quayside", Georgia, serif; }
h1, h2, h3, .display-title { font-weight: 400; }
a { text-underline-offset: 3px; }

/* grille de points du plateau de jeu */
.board-dots {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 2px, transparent 2.4px);
  background-size: 24px 24px;
}

/* ---------- en-tête ---------- */
.site-header { background: rgba(251, 248, 241, .92); backdrop-filter: blur(8px); border-bottom: 1px solid #e6e0d0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 400; color: var(--green); }
.navbar-brand span { font-size: 1.1rem; }
@media (max-width: 400px) { .navbar-brand span { display: none; } }
.nav-link { font-weight: 500; color: var(--ink); }
.nav-link:hover { color: var(--flag); }
.flag { width: 30px; height: auto; vertical-align: middle; }
.flag-lg { width: 44px; }
.btn-lang { border: 0; background: transparent; padding: .3rem .4rem; font-weight: 700; font-size: .85rem; }
.btn-lang:hover, .btn-lang:focus-visible, .btn-lang.show { background: transparent; color: var(--green); }
.dropdown-menu { border-radius: 12px; border-color: #e6e0d0; padding: .4rem; }
.dropdown-item { border-radius: 8px; display: flex; align-items: center; gap: .6rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--fairway); color: var(--ink); }

/* ---------- boutons ---------- */
.btn-buy { background: var(--flag); color: #fff; border: 0; border-radius: 999px; font-weight: 700; padding-inline: 1.4rem; box-shadow: 0 4px 0 #a3170f; transition: transform .12s, box-shadow .12s; }
.btn-buy:hover, .btn-buy:focus-visible { background: #c91e1a; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 #a3170f; }
.btn-buy:active { transform: translateY(2px); box-shadow: 0 2px 0 #a3170f; }
.btn-ghost { border: 2px solid var(--green); color: var(--green); border-radius: 999px; font-weight: 700; padding-inline: 1.4rem; background: #fff; }
.btn-ghost:hover { background: var(--green); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 4.5rem 0 6rem; overflow: hidden; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--green); margin-bottom: .6rem; }
.display-title { font-weight: 400; line-height: 1.02; letter-spacing: -.02em; color: var(--green); font-size: clamp(2.3rem, 5.2vw, 4rem); }
.hero-sub { font-family: "quayside", "Quayside", Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--ink); margin: .5rem 0 1.2rem; }
.hero .lead { max-width: 36rem; color: var(--muted); }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.badges li { background: #fff; border: 1.5px dashed #b9cfa9; border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .9rem; }
.cover-wrap { position: relative; display: inline-block; }
/* mockup 3D fourni avec son ombre : aucun effet ajouté */
.cover { width: 100%; max-width: 560px; height: auto; }
.stamp { position: absolute; top: 8%; right: -6%; background: var(--paper); color: var(--flag); border: 3px solid var(--flag); border-radius: 50%; width: 84px; height: 84px; display: grid; place-items: center; font-family: "quayside", "Quayside", Georgia, serif; font-weight: 400; font-size: 1.05rem; transform: rotate(12deg); }
.shot { position: absolute; left: 0; right: 0; bottom: 6px; height: 110px; pointer-events: none; }
.shot-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.shot-line path { fill: none; stroke: var(--green-2); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .6; vector-effect: non-scaling-stroke; }
.shot-tee { position: absolute; left: 1.5%; bottom: 0; width: 34px; height: auto; z-index: 2; }
.shot-flag { position: absolute; right: 2%; bottom: 0; width: 60px; height: auto; z-index: 2; }

/* mode avancé */
.wind-card { margin-top: 2rem; display: flex; gap: 1.4rem; align-items: center; background: #fff; border: 2px dashed var(--dot); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.wind-card h3 { color: var(--green); }
.wind-card p { color: var(--muted); }
.wind-arrows { flex: none; display: flex; gap: .3rem; align-items: center; }
.wind-arrows img { width: 34px; height: auto; }
@media (max-width: 575px) { .wind-card { flex-direction: column; align-items: flex-start; } }

/* arbres du final */
.trees { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.6rem, 3vw, 2rem); margin-top: 3rem; }
.trees img { height: 72px; width: auto; }
.trees img:nth-child(odd) { height: 88px; }

/* ---------- sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background-color: var(--paper-2); }
.section-alt.board-dots { background-color: var(--paper-2); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--green); margin-bottom: .6rem; }
.section-intro { color: var(--muted); max-width: 40rem; margin-bottom: 2.5rem; font-size: 1.08rem; }
.narrow { max-width: 820px; }

.step-card, .club-card, .bandit-card { background: #fff; border: 1px solid #e6e0d0; border-radius: var(--radius); padding: 1.6rem 1.4rem; transition: transform .2s, box-shadow .2s; }
.step-card:hover, .bandit-card:hover, .club-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 14px 30px -18px rgba(31, 42, 31, .4); }
.step-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; font-family: "quayside", "Quayside", Georgia, serif; font-weight: 400; font-size: 1.3rem; margin-bottom: 1rem; }
.step-card p, .club-card p, .bandit-card p { color: var(--muted); }

.club-card img { width: 56px; height: 56px; object-fit: contain; margin-bottom: .7rem; }
.club-range { font-weight: 700; color: var(--flag) !important; margin-bottom: .6rem; }
.gauge { height: 10px; border-radius: 99px; background: var(--paper-2); margin-bottom: .9rem; overflow: hidden; }
.gauge::after { content: ""; display: block; height: 100%; width: calc(var(--fill) * 100%); background: repeating-linear-gradient(90deg, var(--green-2) 0 14px, #fff 14px 16px); }
.terrain-note { margin-top: 1.4rem; padding: .9rem 1.1rem; border-left: 4px solid var(--sand); background: #fff; border-radius: 0 12px 12px 0; }
.spread, .lifestyle { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 40px -24px rgba(31, 42, 31, .5); }

.bandit-card { text-align: center; }
.bandit-card img { width: 96px; height: 96px; object-fit: contain; margin-bottom: .8rem; }
.bandit-card:hover img { animation: wobble .5s ease; }
@keyframes wobble { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

.feature { display: flex; gap: .9rem; }
.feature .dot { flex: none; width: 14px; height: 14px; margin-top: .35rem; border-radius: 50%; background: var(--fairway); box-shadow: 0 0 0 4px #fff, 0 0 0 5px #b9cfa9; }
.feature p { color: var(--muted); }

.accordion { --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 14px; --bs-accordion-active-bg: var(--fairway); --bs-accordion-active-color: var(--ink); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(57, 97, 69, .25); --bs-accordion-border-color: #e6e0d0; }
.accordion-button { font-weight: 700; font-family: "bakerie-rough", "Bakerie Rough", system-ui, sans-serif; }
.accordion-body { color: var(--muted); }

.final { padding: 5.5rem 0; border-top: 1px solid #e6e0d0; }
.final .lead { color: var(--muted); }

.site-footer { background: var(--paper-2); color: var(--muted); padding: 1.8rem 0; font-size: .9rem; border-top: 1px solid #e6e0d0; }
.site-footer .mibe img { height: 46px; width: auto; }

/* ---------- module d'achat ---------- */
.scorecard { border: 0; border-radius: 20px; background: var(--paper); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); }
.scorecard .modal-title { color: var(--green); }
.buy-list { display: grid; gap: .5rem; }
.buy-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; background: #fff; border: 1px solid #e6e0d0; border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.buy-row:hover { border-color: var(--green-2); transform: translateX(3px); color: var(--ink); }
.buy-row.is-current { border: 2px solid var(--green-2); background: #f4f9f1; }
.buy-lang { font-weight: 700; flex: 1; }
.buy-go { font-weight: 700; color: var(--flag); font-size: .9rem; }
.buy-row.is-soon { pointer-events: none; opacity: .55; }
.buy-row.is-soon .buy-go { color: var(--muted); }

/* ---------- page racine ---------- */
.root-page { min-height: 100vh; display: grid; place-items: center; }
.root-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.5rem; }
.root-lang { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; background: #fff; border: 1px solid #e6e0d0; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.bandit-card img[src*="pente-"] { width: 52px; height: 96px; }

/* ---------- section vent (mode avancé) ---------- */
.section-wind { background: #fff; border-block: 1px solid #e6e0d0; }
.wind-steps { list-style: none; counter-reset: w; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.wind-steps li { counter-increment: w; position: relative; padding-left: 3.4rem; }
.wind-steps li::before { content: counter(w); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px dashed var(--green-2); color: var(--green); display: grid; place-items: center; font-family: "quayside", "Quayside", Georgia, serif; font-size: 1.15rem; }
.wind-steps h3 { color: var(--ink); font-weight: 700; font-family: "bakerie-rough", "Bakerie Rough", system-ui, sans-serif; }
.wind-steps p { color: var(--muted); }
.wind-note { margin-top: 1.6rem; padding: .9rem 1.1rem; border-left: 4px solid var(--flag); background: var(--paper); border-radius: 0 12px 12px 0; font-weight: 700; }

.wind-grid { position: relative; display: grid; grid-template-columns: repeat(20, minmax(18px, 1fr)); border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.wcell { display: grid; grid-template-rows: 1fr 1fr; border-right: 1px solid var(--ink); }
.wcell:nth-last-child(2) { border-right: 0; }
.wcell b { display: grid; place-items: center; padding: .25rem 0; border-bottom: 1px solid var(--ink); font-size: clamp(.75rem, 1.6vw, 1.05rem); font-weight: 900; color: var(--ink); font-family: system-ui, sans-serif; }
.warr { display: grid; place-items: center; padding: .3rem 0; }
.warr svg { width: 70%; max-width: 20px; fill: var(--ink); }
.wdot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin: auto; }
.wind-grid-wrap { overflow-x: auto; padding: 10px 0; }
@media (max-width: 575px) { .wind-grid { width: 560px; } }
/* le crayon arrêté à cheval sur deux cases */
.wind-pencil { position: absolute; left: 15%; top: -8px; width: 12px; height: calc(100% + 8px); z-index: 2; background: linear-gradient(90deg, #f2c14e 0 33%, #e3a92c 33% 66%, #f2c14e 66%); border-radius: 3px 3px 0 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); transform: translateX(-50%) rotate(4deg); }
.wind-pencil::after { content: ""; position: absolute; bottom: -12px; left: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 12px solid #e8cfa6; }

.wind-fig { margin: 1.8rem 0 0; background: var(--paper); border-radius: var(--radius); padding: 1rem 1rem .8rem; }
.wind-fig svg { width: 100%; height: auto; display: block; }
.wf-dots circle { fill: var(--dot); }
.wf-shot { stroke: var(--green-2); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; fill: none; }
.wf-wind, .wf-wind-head { stroke: var(--flag); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wf-ball { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.wf-ghost { fill: none; stroke: var(--green-2); stroke-width: 2.5; stroke-dasharray: 4 3; }
.wf-real { fill: var(--flag); }
.wind-fig figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.wind-fig figcaption i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.lg-ghost { border: 2px dashed var(--green-2); }
.lg-real { background: var(--flag); }
.club-card img { width: auto; height: 56px; }

/* sous-titres plus présents */
.feature h3, .wind-steps h3 { font-size: 1.2rem; }
.step-card h3, .club-card h3, .bandit-card h3 { font-size: 1.45rem; }
.nav-link { white-space: nowrap; font-size: .95rem; }
.btn-buy.btn-sm { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399px) { .navbar-brand span { display: none; } }
@media (max-width: 575px) { .trees { gap: .5rem; } .trees img { height: 48px; } .trees img:nth-child(odd) { height: 58px; } }
#wind .col-lg-6 { min-width: 0; } .wind-grid-wrap { max-width: 100%; } .stamp { right: 0; }
@media (max-width: 767px) { .bandit-card { padding: 1.2rem .8rem; } .bandit-card h3 { font-size: 1.2rem; hyphens: auto; overflow-wrap: break-word; } }

/* case retenue : ↗ +1, le vent du schéma */
.wcell:nth-child(4) { background: #fde3e2; box-shadow: inset 0 0 0 2px var(--flag); }

/* correction optique : l'ombre portée remonte visuellement le texte, on le descend légèrement */
.btn-buy { padding-top: calc(var(--bs-btn-padding-y) + 2px); padding-bottom: calc(var(--bs-btn-padding-y) - 2px); }

/* module d'achat : langue puis pays */
.buy-item { background: #fff; border: 1px solid #e6e0d0; border-radius: 14px; overflow: hidden; }
.buy-item.is-current { border: 2px solid var(--green-2); }
.buy-item .buy-row { width: 100%; border: 0; border-radius: 0; background: transparent; text-align: left; cursor: pointer; }
.buy-item .buy-row:hover { transform: none; background: #f4f9f1; }
.buy-item .buy-go span { display: inline-block; transition: transform .2s; }
.buy-item.is-open .buy-go span { transform: rotate(90deg); }
.buy-countries { display: none; padding: 0 1rem 1rem; }
.buy-item.is-open .buy-countries { display: block; }
.country-group p { font-size: .8rem; color: var(--muted); margin: .6rem 0 .4rem; }
.country { display: inline-flex; align-items: center; gap: .4rem; margin: 0 .35rem .4rem 0; padding: .35rem .75rem; border: 1px solid #ddd6c5; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .85rem; background: var(--paper); }
.country b { font-family: system-ui, sans-serif; font-size: .7rem; color: var(--green); }
.country:hover { border-color: var(--flag); color: var(--flag); }
.country.is-visitor { border: 2px solid var(--flag); background: #fff; }
.buy-item.is-soon { opacity: .55; }
.buy-item.is-soon .buy-row { cursor: default; }
.buy-item.is-soon .buy-go { color: var(--muted); }

/* jauges du livre (section clubs) */
.gauges-card { display: inline-block; background: #fff; border: 1px solid #e6e0d0; border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.gauges { height: 400px; width: auto; display: block; }
@media (max-width: 991px) { .gauges-card { display: none; } }

/* première carte */
.map-page { margin: 0; background: #fff; padding: 0; border-radius: 6px; box-shadow: 0 24px 50px -24px rgba(31, 42, 31, .45), 0 0 0 1px #e6e0d0; }
.map-page img { width: 100%; height: auto; display: block; }

/* fenêtre « publication en cours » */
.launch-card .modal-title { color: var(--green); }
.launch-card p { color: var(--muted); font-size: 1.05rem; }
.launch-card img { width: 46px; height: auto; }
