:root {
  --blue: #004aad;
  --blue-soft: #eef2fb;
  --sand: #f6f1e6;
  --ink: #1b2430;
  --line: #d9c9a3;
}

/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: white;
  color: var(--ink);
}

main {
  flex: 1;
}

a:focus-visible,
button:focus-visible,
label:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ===== PAGE HEADER (bandeau de titre des sous-pages) ===== */
.page-header {
  text-align: center;
  padding: 50px 20px 30px;
}

.page-header h1 {
  font-family: 'Clicker Script', cursive;
  color: var(--blue);
  font-size: 60px;
  font-weight: 400;
}

.page-header p {
  font-size: 20px;
  font-style: italic;
  color: #555;
  margin-top: 8px;
}

/* ===== SECTIONS GÉNÉRIQUES ===== */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 30px;
}

.section + .section {
  border-top: 1px solid var(--sand);
}

.section h2 {
  font-family: 'Clicker Script', cursive;
  color: var(--blue);
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 18px;
}

.section p {
  font-size: 20px;
  line-height: 1.7;
}

.rule-block {
  border-left: 2px solid var(--blue);
  padding-left: 25px;
  margin-bottom: 30px;
}

.rule-block h3 {
  font-family: 'Clicker Script', cursive;
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 6px;
  font-weight: 600;
}

.rule-block p {
  font-size: 19px;
  line-height: 1.65;
}

.placeholder {
  color: #8a6d1d;
  background: #fff8e6;
  border: 1px dashed #d9b64a;
  padding: 2px 8px;
  border-radius: 4px;
  font-style: italic;
  font-size: 0.85em;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  padding: 12px 28px;
  border-radius: 30px;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--blue);
  color: #fff;
}

.btn-solid {
  background: var(--blue);
  color: #fff;
}

.btn-solid:hover {
  background: #003580;
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  position: relative;
}

.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  text-decoration: none;
  color: var(--blue);
  font-size: 20px;
  transition: opacity 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.menu a:hover {
  opacity: 0.6;
}

.menu a[aria-current="page"] {
  border-bottom: 2px solid var(--blue);
}

/* ===== BURGER MENU ===== */
.burger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--blue);
}

#toggle {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    padding: 15px;
    border: 1px solid #eee;
  }

  #toggle:checked + .burger + .menu {
    display: flex;
  }

  .page-header {
    text-align: center;
    padding: 20px 20px 20px;
  }

  .page-header h1 {
    text-align: center;
    font-family: 'Clicker Script', cursive;
    color: #004aad;
    font-size: 64px;
  }

  .page-header p {
    font-size: 17px;
  }

  .section h2 {
    font-size: 30px;
  }

  .section p,
  .rule-block p {
    font-size: 18px;
  }

  .rule-block h3 {
    font-size: 22px;
  }
}
