/* ── VARIABLES ── */
:root {
  --green-deep:  #0d2e1a;
  --green-mid:   #1a5c32;
  --green-bright:#2d9e5a;
  --green-light: #a8e6bf;
  --green-pale:  #e8f5ed;
  --fairway:     #f2f7f4;
  --ink:         #0d1f14;
  --muted:       #5a7a68;
  --border:      #d0e4d8;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; width: 100%; }
body { font-family: 'Instrument Sans', sans-serif; color: var(--ink); background: #fff; }
img, svg { max-width: 100%; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 32px; height: 32px; background: var(--green-deep); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.nav-logo-text { font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--ink); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--green-deep); color: #fff;
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.nav-cta:hover { background: var(--green-mid); }

/* ── HERO ── */
.hero {
  background: var(--green-deep);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(45,158,90,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--green-light); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: #fff; line-height: 1.15; max-width: 680px; margin: 0 auto 1.25rem;
}
.hero h1 em { color: var(--green-light); font-style: italic; }
.hero p {
  font-size: 1rem; color: rgba(255,255,255,0.65);
  max-width: 500px; margin: 0 auto 2.25rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--green-bright); color: #fff;
  padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  text-decoration: none;
}
.btn-primary:hover { background: #25895e; }
.btn-ghost {
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 13px 26px; border-radius: 10px; font-size: 15px; text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat { text-align: center; }
.stat-num { font-family: 'DM Serif Display', serif; font-size: 2.4rem; color: #fff; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; }

/* ── SECTIONS ── */
.section { padding: 4.5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-bright); font-weight: 600; margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--ink); margin-bottom: 0.9rem; line-height: 1.15;
}
.section-desc { font-size: 1rem; color: var(--muted); max-width: 520px; line-height: 1.7; }

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.how-card {
  background: var(--fairway); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem;
}
.how-num {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--green-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif; font-size: 18px; margin-bottom: 1rem;
}
.how-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.how-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── GP LIST ── */
.gp-section { background: var(--fairway); }

.search-bar { position: relative; max-width: 360px; margin-bottom: 1.25rem; }
.search-bar input {
  width: 100%; padding: 10px 34px 10px 36px;
  border-radius: 10px; border: 1px solid var(--border);
  font-size: 14px; font-family: inherit;
  background: #fff; color: var(--ink); outline: none;
}
.search-bar input:focus { border-color: var(--green-bright); }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); }
.search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 16px; color: var(--muted); cursor: pointer; line-height: 1; padding: 2px; display: none; }
.search-clear:hover { color: var(--ink); }
.gp-share { background: none; border: none; cursor: pointer; font-size: 15px; padding: 2px 3px; color: var(--muted); line-height: 1; transition: transform .15s; }
.gp-share:hover { transform: scale(1.2); color: var(--green-mid); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-pill {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  transition: all 0.15s; user-select: none; white-space: nowrap;
}
.filter-pill.active { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }

/* GRID */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* CARD */
@keyframes gpHighlight {
  0%   { box-shadow: 0 0 0 3px var(--green-bright); }
  70%  { box-shadow: 0 0 0 3px var(--green-bright); }
  100% { box-shadow: none; }
}
.gp-card {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.15s;
}
.gp-card:hover { box-shadow: 0 4px 18px rgba(13,46,26,0.08); }
.gp-card.no-link { opacity: 0.75; }
.gp-map-svg { position: absolute; top: 0.7rem; right: 0.9rem; width: 52px; height: 57px; opacity: 0.9; }

.gp-type-badge {
  display: inline-block; align-self: flex-start;
  font-size: 10px; font-weight: 600; padding: 2px 9px;
  border-radius: 20px; letter-spacing: 0.04em;
  background: var(--green-pale); color: var(--green-mid);
}
.gp-type-badge.classic  { background: #fef3e2; color: #9a6a00; }
.gp-type-badge.senior   { background: #eef2ff; color: #3730a3; }
.gp-type-badge.weekend  { background: #fff0f0; color: #c0392b; }
.gp-type-badge.semaine  { background: #f0f4ff; color: #2c5aa0; }
.gp-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }

.gp-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }

.gp-meta { display: flex; flex-direction: column; gap: 0.35rem; }
.gp-meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.gp-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }

.gp-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid var(--green-pale);
  flex-wrap: wrap; gap: 8px;
}
.gp-card-actions { display: flex; align-items: center; gap: 7px; }
.gp-star {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 17px; color: #d0d0d0; line-height: 1;
  transition: color 0.15s, transform 0.1s;
}
.gp-star:hover { color: #f0c040; transform: scale(1.2); }
.gp-star.active { color: #f0c040; }
.gp-prix { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 500; color: var(--ink); }
.gp-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-bright); color: #fff;
  padding: 6px 13px; border-radius: 7px; font-size: 12px; font-weight: 500;
  text-decoration: none;
}
.gp-link:hover { background: var(--green-mid); }
.gp-link.email { background: #1a73e8; }
.gp-link.email:hover { background: #1558b0; }
.gp-link.soon { background: var(--fairway); color: var(--muted); border: 1px solid var(--border); cursor: default; }
.gp-link.notify { background: #7c3aed; border: none; cursor: pointer; font-family: inherit; }
.gp-link.notify:hover { background: #6d28d9; }

.no-results { text-align: center; padding: 3rem; color: var(--muted); font-size: 15px; display: none; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; padding: 2rem;
  max-width: 420px; width: 100%;
  display: flex; flex-direction: column; gap: 1rem;
}
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-title { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--ink); line-height: 1.25; }
.modal-close {
  background: none; border: none; cursor: pointer; font-size: 20px;
  color: var(--muted); line-height: 1; padding: 0; flex-shrink: 0;
}
.modal-epreuve { font-size: 13px; color: var(--muted); }
.modal-epreuve strong { color: var(--ink); }
.modal-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.modal-input {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--border); font-size: 15px; font-family: inherit;
  outline: none; color: var(--ink);
}
.modal-input:focus { border-color: #7c3aed; }
.iti { width: 100%; }
.iti__tel-input { width: 100%; padding: 10px 12px 10px 52px; border-radius: 9px;
  border: 1px solid var(--border); font-size: 15px; font-family: inherit;
  outline: none; color: var(--ink); box-sizing: border-box; }
.iti__tel-input:focus { border-color: #7c3aed; }
.modal-submit {
  background: #7c3aed; color: #fff; border: none; cursor: pointer;
  padding: 11px 20px; border-radius: 9px; font-size: 14px; font-weight: 600;
  font-family: inherit; width: 100%; transition: background 0.15s;
}
.modal-submit:hover:not(:disabled) { background: #6d28d9; }
.modal-submit:disabled { opacity: 0.6; cursor: default; }
.modal-status { font-size: 13px; color: var(--green-mid); min-height: 18px; text-align: center; }
.modal-status.error { color: #c0392b; }

.back-top {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--border); padding: 7px 18px; border-radius: 20px;
  transition: all 0.15s;
}
.back-top:hover { color: var(--ink); border-color: var(--ink); }

/* ── CONTACT CTA ── */
.alert-section { background: var(--green-deep); padding: 4.5rem 1.5rem; text-align: center; }
.alert-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem); color: #fff; margin-bottom: 0.9rem;
}
.alert-section p { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 2.25rem; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.mail-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green-bright); color: #fff;
  padding: 13px 26px; border-radius: 12px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.mail-badge:hover { background: #25895e; }

/* ── FOOTER ── */
footer {
  background: var(--green-deep); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.25rem 1.5rem; text-align: center;
}
.footer-legal {
  font-size: 11px; color: rgba(255,255,255,0.28);
  max-width: 680px; margin: 0 auto; line-height: 1.8;
}
.footer-legal a { color: rgba(255,255,255,0.45); text-decoration: underline; }
.footer-legal a:hover { color: rgba(255,255,255,0.75); }
.footer-sep { margin: 0 0.5rem; opacity: 0.35; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 1.25rem 2.75rem; }
  .hero-stats { gap: 1.5rem 2rem; margin-top: 2.25rem; padding-top: 2rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.9rem; }
  .section { padding: 3rem 1.25rem; }
  .gp-grid { grid-template-columns: 1fr; }
}
