/* ============================================================
   PAN BAR — Coupe du Monde — Feuille de style
   Charte : vert #204520 / rose #eabec2 / blanc
   Titrage façon "Persona Medium" -> Cormorant Garamond
   Labeur façon "EB Trainer Grotesk" -> Manrope
   ============================================================ */

:root {
  --vert: #204520;
  --vert-fonce: #163016;
  --rose: #eabec2;
  --rose-clair: #f6e3e5;
  --blanc: #ffffff;
  --creme: #faf6f2;
  --texte: #1d2a1d;
  --ombre: rgba(20, 48, 20, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--vert);
  color: var(--texte);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--blanc);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.62) saturate(1.05);
  transform: scale(1.03);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 48, 22, 0.55) 0%,
    rgba(22, 48, 22, 0.15) 35%,
    rgba(22, 48, 22, 0.85) 100%
  );
}
.hero__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 64px;
  width: 100%;
}
.logo-link { display: inline-block; margin-bottom: 26px; transition: transform 0.18s ease, opacity 0.18s ease; }
.logo-link:hover { transform: scale(1.04); opacity: 0.85; }
.logo-img { height: 66px; width: auto; display: block; }
.logo-pan {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  margin-bottom: 26px;
  opacity: 0.95;
}
.hero__kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--rose);
  color: var(--vert);
  padding: 7px 16px;
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.02;
  max-width: 14ch;
  margin-bottom: 18px;
}
.hero p {
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 46ch;
  opacity: 0.92;
  margin-bottom: 30px;
}
.perk {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--rose);
  color: var(--vert);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.perk--inline {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 26px;
  background: var(--rose-clair);
  border: 1.5px solid var(--rose);
}
.btn-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rose);
  color: var(--vert);
  border: none;
  padding: 16px 30px;
  border-radius: 100px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 30px rgba(234, 190, 194, 0.25);
}
.btn-scroll:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(234, 190, 194, 0.4); }

/* ---------- AVANTAGES ---------- */
.avantages {
  background: var(--vert);
  padding: 48px 20px 60px;
}
.avantages__wrap {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.avantage {
  text-align: center;
  color: #fff;
  padding: 8px 14px;
}
.avantage__ico {
  font-size: 38px;
  margin-bottom: 14px;
}
.avantage h3 {
  font-size: 23px;
  color: var(--rose);
  margin-bottom: 8px;
}
.avantage p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  max-width: 28ch;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .avantages__wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- SECTION RESA ---------- */
.resa {
  background: var(--creme);
  border-radius: 36px 36px 0 0;
  margin-top: -28px;
  position: relative;
  padding: 54px 20px 80px;
  z-index: 2;
}
.resa__wrap { max-width: 1000px; margin: 0 auto; }

/* Stepper */
.stepper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--blanc);
  border: 1.5px solid #e7ddd5;
  font-size: 13px;
  font-weight: 600;
  color: #9a8f86;
  transition: all 0.2s ease;
}
.step-pill .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #e7ddd5;
  color: #9a8f86;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.step-pill.active { border-color: var(--vert); color: var(--vert); background: var(--blanc); }
.step-pill.active .num { background: var(--vert); color: var(--blanc); }
.step-pill.done { color: var(--vert); border-color: var(--rose); }
.step-pill.done .num { background: var(--rose); color: var(--vert); }

.panel { display: none; animation: fade 0.35s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--vert);
  margin-bottom: 6px;
}
.panel-sub {
  text-align: center;
  color: #7d736a;
  margin-bottom: 34px;
  font-size: 15px;
}

/* Cartes match */
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.match-card {
  background: var(--blanc);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 26px 24px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 18px rgba(20,48,20,0.05);
  position: relative;
}
.match-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,48,20,0.1); }
.match-card.selected { border-color: var(--vert); }
.match-card .date { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #a89c92; margin-bottom: 10px; }
.match-card .teams { font-family: "Cormorant Garamond", serif; font-size: 28px; color: var(--vert); line-height: 1.1; margin-bottom: 12px; }
.match-card .slot { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--texte); background: var(--rose-clair); padding: 6px 12px; border-radius: 100px; }
.match-card .tick {
  position: absolute; top: 18px; right: 18px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--vert); color: #fff; display: none; place-items: center; font-size: 14px;
}
.match-card.selected .tick { display: grid; }
.match-card--soon {
  cursor: default;
  background: #f0eae3;
  box-shadow: none;
  border: 1.5px dashed #d8ccc2;
}
.match-card--soon:hover { transform: none; box-shadow: none; }
.match-card--soon .teams { color: #a89c92; }
.soon-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8077;
  background: #e3d9cf;
  padding: 5px 12px;
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 12px;
}
.soon-note { font-size: 13px; color: #a89c92; }

/* Cartes box */
.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.box-card {
  background: var(--blanc);
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(20,48,20,0.05);
  position: relative;
}
.box-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,48,20,0.1); }
.box-card.selected { border-color: var(--vert); }
.box-card .bname { font-family: "Cormorant Garamond", serif; font-size: 23px; color: var(--vert); margin-bottom: 6px; }
.box-card .cap { font-size: 13px; color: #8a8077; margin-bottom: 14px; }
.box-card .price { font-size: 22px; font-weight: 800; color: var(--vert); }
.box-card .price small { font-size: 13px; font-weight: 600; color: #8a8077; }
.box-card .tick {
  position: absolute; top: 14px; right: 14px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--vert); color: #fff; display: none; place-items: center; font-size: 13px;
}
.box-card.selected .tick { display: grid; }

/* Options */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.opt-card {
  background: var(--blanc);
  border: 2px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 16px rgba(20,48,20,0.05);
  display: flex; flex-direction: column;
}
.opt-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,48,20,0.1); }
.opt-card.selected { border-color: var(--vert); }
.opt-card .photo { height: 150px; background-size: cover; background-position: center; }
.opt-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.opt-card .oname { font-family: "Cormorant Garamond", serif; font-size: 24px; color: var(--vert); }
.opt-card .oprice { font-weight: 800; color: var(--vert); margin: 2px 0 12px; }
.opt-card .oprice small { font-weight: 600; color: #8a8077; }
.opt-card ul { list-style: none; font-size: 13.5px; color: #5f574f; display: flex; flex-direction: column; gap: 5px; }
.opt-card ul li { padding-left: 16px; position: relative; }
.opt-card ul li::before { content: "•"; position: absolute; left: 2px; color: var(--rose); font-weight: 700; }
.opt-none {
  text-align: center; background: var(--blanc); border: 2px dashed #ddd0c7;
  border-radius: 16px; padding: 16px; cursor: pointer; color: #7d736a; font-weight: 600;
  transition: all 0.18s ease;
}
.opt-none.selected { border-style: solid; border-color: var(--vert); color: var(--vert); }

.opt-persons {
  background: var(--rose-clair);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.opt-persons.show { display: flex; }
.opt-persons label { font-weight: 600; color: var(--vert); }
.stepper-num { display: inline-flex; align-items: center; gap: 0; background: #fff; border-radius: 100px; overflow: hidden; border: 1.5px solid #e0d4ca; }
.stepper-num button { border: none; background: #fff; width: 40px; height: 40px; font-size: 20px; cursor: pointer; color: var(--vert); }
.stepper-num button:hover { background: var(--rose-clair); }
.stepper-num input { width: 50px; text-align: center; border: none; font-size: 17px; font-weight: 700; color: var(--vert); }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--vert); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid #e0d4ca; border-radius: 12px;
  font-family: "Manrope", sans-serif; font-size: 15px; background: #fff; color: var(--texte);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--vert); }
.field textarea { resize: vertical; min-height: 80px; }

/* Récap */
.recap {
  background: var(--vert);
  color: #fff;
  border-radius: 20px;
  padding: 24px 26px;
  margin-top: 24px;
}
.recap h3 { font-size: 24px; color: var(--rose); margin-bottom: 14px; }
.recap-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.13); font-size: 15px; }
.recap-line:last-of-type { border: none; }
.recap-total { display: flex; justify-content: space-between; margin-top: 14px; font-size: 22px; font-weight: 800; }
.recap-total .serif { font-family: "Cormorant Garamond", serif; color: var(--rose); }

/* Navigation boutons */
.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.btn {
  padding: 15px 30px; border-radius: 100px; border: none; font-family: "Manrope", sans-serif;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.18s ease;
}
.btn-primary { background: var(--vert); color: #fff; }
.btn-primary:hover { background: var(--vert-fonce); }
.btn-primary:disabled { background: #c7bdb3; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--vert); border: 1.5px solid #d8ccc2; }
.btn-ghost:hover { border-color: var(--vert); }

.err { color: #b3261e; font-size: 14px; text-align: center; margin-top: 12px; min-height: 18px; }

footer { background: var(--vert); color: rgba(255,255,255,0.7); text-align: center; padding: 30px 20px; font-size: 13px; }
footer .logo-pan { font-size: 20px; margin-bottom: 10px; color: #fff; }
.logo-img-footer { height: 44px; width: auto; display: block; margin: 0 auto 14px; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .nav-row { flex-direction: column-reverse; }
  .nav-row .btn { width: 100%; }
}