/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1a2e4a;
  --white: #ffffff;
  --light-grey: #f4f6f8;
  --gold: #c8a84b;
  --border: #e0e4ea;
  --navy-light: #243b5c;
  --gold-dark: #b0923e;
  --text-muted: #5a6a7e;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Marianne", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; line-height: 1.6; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SECTION SPACING ===== */
.section { padding: 5rem 0; }
.section--grey { background: var(--light-grey); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2,
.section--navy h3,
.section--navy p { color: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  padding: 0.4rem 0;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.header-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}
.nav-toggle-checkbox {
  display: none;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.header-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.footer-col h4 {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.footer-col a:hover { color: var(--gold); }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.75rem;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.stat-card .stat-value {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}
.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== TWO COLUMNS ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ===== DECREE CARD ===== */
.decree-card {
  background: var(--light-grey);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  position: relative;
}
.decree-card::before {
  content: "";
  display: block;
  width: 60px;
  height: 60px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  margin: 0 auto 1rem;
}
.decree-card::after {
  content: "OFFICIEL";
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 18px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.decree-card h4 {
  font-size: 1.1rem;
  color: var(--navy);
}
.decree-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== TIMELINE ===== */
.timeline-horizontal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  position: relative;
  padding: 2rem 0;
}
.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 2.65rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border);
}
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  border-radius: 50%;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
}
.timeline-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.timeline-step strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

/* ===== VERTICAL TIMELINE ===== */
.timeline-vertical {
  position: relative;
  padding: 2rem 0;
}
.timeline-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}
.timeline-item:nth-child(odd) {
  flex-direction: row;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline-content {
  width: 44%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}
.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}
.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  z-index: 2;
  white-space: nowrap;
}

/* ===== INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.info-card .info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--light-grey);
  border-radius: 50%;
  margin: 0 auto 1rem;
  color: var(--gold);
  font-size: 1.25rem;
}
.info-card .info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.info-card .info-value {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

/* ===== STEPS ===== */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== TWO COL LIST ===== */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.rules-list {
  list-style: none;
}
.rules-list li {
  padding: 0.65rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--light-grey);
}
.rules-list--check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2e8b57;
  font-weight: 700;
  font-size: 1.1rem;
}
.rules-list--cross li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== AUTHORIZATION BANNER ===== */
.auth-banner {
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
}
.auth-seal {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== DRAW CARD ===== */
.draw-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
}
.draw-card h3 { color: var(--white); }
.draw-card p { color: rgba(255,255,255,0.85); margin-bottom: 0.5rem; }
.draw-card .draw-date {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
  margin: 1rem 0;
}
.draw-card .draw-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ===== INFO BOX ===== */
.info-box {
  background: var(--light-grey);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.info-box p { margin: 0; }

/* ===== LEGAL REFS ===== */
.legal-refs {
  background: var(--light-grey);
  border-radius: 8px;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.legal-refs h4 { color: var(--navy); }
.legal-refs p { margin-bottom: 0.5rem; }

/* ===== ACCORDION (Pure CSS) ===== */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-toggle { display: none; }
.accordion-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  background: var(--white);
  transition: background 0.2s ease;
  font-size: 1rem;
}
.accordion-label:hover { background: var(--light-grey); }
.accordion-label::after { content: "\25BC"; font-size: 0.7rem; transition: transform 0.2s ease; color: var(--text-muted); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-inner { padding: 0 1.5rem 1.25rem; font-size: 0.95rem; color: var(--text-muted); }
.accordion-toggle:checked + .accordion-label { background: var(--light-grey); }
.accordion-toggle:checked + .accordion-label::after { transform: rotate(180deg); }
.accordion-toggle:checked ~ .accordion-content { max-height: 300px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== CONTACT GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.contact-detail svg { min-width: 20px; color: var(--gold); margin-top: 2px; }

/* ===== TEAM CARD ===== */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  max-width: 340px;
}
.team-avatar {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.team-card h4 { margin-bottom: 0.25rem; }
.team-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ===== LEGAL PAGE ===== */
.legal-article {
  margin-bottom: 2.5rem;
}
.legal-article h3 {
  font-family: "Playfair Display", serif;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.legal-body {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  line-height: 1.75;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 { color: var(--white); font-size: 2.25rem; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.7); margin: 0; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--gold); }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 1.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 2rem; }

/* ===== SECTION HEADING ===== */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.section-heading h2 { margin-bottom: 0.5rem; }
.section-heading p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.section-heading .gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }

  /* Mobile Nav */
  .nav-toggle { display: block; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-toggle-checkbox:checked ~ .header-nav { display: flex; }
  .header-nav a { padding: 0.75rem 1rem; border-bottom: none; }

  .stats-row { grid-template-columns: 1fr; margin-top: -1.5rem; }
  .two-col { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .timeline-horizontal { flex-direction: column; gap: 1.5rem; }
  .timeline-horizontal::before { display: none; }

  .timeline-vertical::before { left: 1.5rem; }
  .timeline-item,
  .timeline-item:nth-child(even) { flex-direction: column; padding-left: 3.5rem; }
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { width: 100%; margin: 0; }
  .timeline-year { left: 0; transform: none; position: relative; margin-bottom: 0.75rem; display: inline-block; }

  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .steps-row { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .auth-banner { flex-direction: column; text-align: center; }
}

/* ===== FORM ALERTS (server-side contact form feedback) ===== */
.form-alert {
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.form-alert--success {
  background: #eaf6ee;
  border-color: #2e8b57;
  color: #1f6b41;
}
.form-alert--error {
  background: #fbeceb;
  border-color: #c0392b;
  color: #8f2a20;
}
