* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f7f7f7;
  font-family: Arial, sans-serif;
}

.hero {
  position: relative;
  height: 420px;
  background-color: white;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-curves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 260px;
  z-index: 1;
}

.curve-green {
  fill: none;
  stroke: #0b6b43;
  stroke-width: 17;
}

.curve-light {
  fill: none;
  stroke: #8fd19e;
  stroke-width: 17;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 80px;
}

.logo {
  width: 250px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}

h1 {
  color: #0b6b43;
  font-size: 46px;
  font-weight: bold;
}
.contact-footer {
  width: 100%;
  background-color: #0b6b43;
  color: white;
  text-align: center;
  padding: 50px 20px;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.8;
}

.contact-footer p {
  margin: 8px 0;
}
.main-menu {
  margin-top: 45px;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-menu a {
  text-decoration: none;
  color: #0b6b43;
  background: none;
  font-size: 28px;
  font-weight: bold;
  padding: 0 80px;
  border-radius: 0;
}

.main-menu a:not(:last-child) {
  border-right: 4px solid #0b6b43;
}

.main-menu a:hover {
  color: #8fd19e;
}
.hero {
  height: auto;
  min-height: 760px;
  padding-top: 160px;
  padding-bottom: 90px;
  overflow: hidden;
  align-items: flex-start;
}

.hero-content {
  margin-top: 0;
}

.main-menu {
  margin-top: 55px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-menu a {
  text-decoration: none;
  color: #0b6b43;
  background: transparent;
  font-size: 30px;
  font-weight: bold;
  padding: 0 50px;
  border-radius: 0;
}

.main-menu a:not(:last-child) {
  border-right: 4px solid #0b6b43;
}

.main-menu a:hover {
  color: #8fd19e;
}

.contact-footer {
  margin-top: 0;
}
.accueil-section {
  background-color: white;
  padding: 80px 20px;
  text-align: center;
}

.accueil-section h2 {
  color: #0b6b43;
  font-size: 42px;
  margin-bottom: 25px;
}

.accueil-section p {
  max-width: 900px;
  margin: 18px auto;
  color: #333;
  font-size: 22px;
  line-height: 1.8;
}
.hero {
  min-height: 560px;
  padding-top: 150px;
  padding-bottom: 25px;
}

.main-menu {
  margin-top: 40px;
}

.accueil-section {
  padding-top: 35px;
}
.bac-section {
  background-color: #f7f7f7;
  padding: 70px 20px;
  text-align: center;
}

.bac-section h2 {
  color: #0b6b43;
  font-size: 42px;
  margin-bottom: 40px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.bac-button {
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  padding: 28px 20px;
  border-radius: 22px;
  transition: 0.3s;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.bac-button:hover {
  background-color: #8fd19e;
  color: #0b6b43;
  transform: translateY(-5px);
}
.bac-section {
  background-color: #f7f7f7;
  padding: 70px 20px;
  text-align: center;
}

.bac-section h2 {
  color: #0b6b43;
  font-size: 42px;
  margin-bottom: 40px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.bac-button {
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  padding: 28px 20px;
  border-radius: 22px;
  transition: 0.3s;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: block;
}

.bac-button:hover {
  background-color: #8fd19e;
  color: #0b6b43;
  transform: translateY(-5px);
}

/* Hide the checkbox */
.year-toggle {
  display: none;
}

/* Hidden years box */
.years-panel {
  display: none;
  max-width: 1000px;
  margin: 35px auto 0 auto;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

/* Show years when Nationaux is pressed */
#sm-nationaux-toggle:checked ~ .years-panel,
#spc-nationaux-toggle:checked ~ .years-panel {
  display: grid;
}

.year-button {
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  padding: 18px 10px;
  border-radius: 18px;
  transition: 0.3s;
}

.year-button:hover {
  background-color: #8fd19e;
  color: #0b6b43;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .button-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .years-panel {
    grid-template-columns: repeat(2, 1fr);
    max-width: 350px;
  }

  .bac-button {
    font-size: 22px;
    padding: 24px 15px;
  }

  .bac-section h2 {
    font-size: 36px;
  }
}
.year-card {
  background-color: white;
  border: 3px solid #0b6b43;
  border-radius: 18px;
  overflow: hidden;
}

.year-card summary {
  background-color: #0b6b43;
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 18px 10px;
  cursor: pointer;
  list-style: none;
}

.year-card summary::-webkit-details-marker {
  display: none;
}

.year-card summary:hover {
  background-color: #8fd19e;
  color: #0b6b43;
}

.session-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.session-button {
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 8px;
  border-radius: 14px;
  transition: 0.3s;
}

.session-button:hover {
  background-color: #8fd19e;
  color: #0b6b43;
}
.years-panel {
  align-items: start;
}

.year-card {
  background-color: transparent;
  border: none;
  border-radius: 18px;
  overflow: visible;
  align-self: start;
}

.year-card summary {
  background-color: #0b6b43;
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 18px 10px;
  cursor: pointer;
  list-style: none;
  border-radius: 18px;
}

.year-card summary::-webkit-details-marker {
  display: none;
}

.year-card summary:hover {
  background-color: #8fd19e;
  color: #0b6b43;
}

.year-card[open] {
  background-color: white;
  border: 3px solid #0b6b43;
  border-radius: 18px;
}

.year-card[open] summary {
  border-radius: 14px 14px 0 0;
}

.session-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.session-button {
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 8px;
  border-radius: 14px;
  transition: 0.3s;
}

.session-button:hover {
  background-color: #8fd19e;
  color: #0b6b43;
}
.lessons-page {
  background-color: #f7f7f7;
  font-family: Arial, sans-serif;
}

.lessons-header {
  background-color: white;
  text-align: center;
  padding: 35px 20px;
  border-bottom: 4px solid #0b6b43;
}

.lessons-logo {
  width: 160px;
  height: auto;
  margin-bottom: 15px;
}

.lessons-header h1 {
  color: #0b6b43;
  font-size: 42px;
  margin-bottom: 20px;
}

.back-button {
  display: inline-block;
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: bold;
}

.back-button:hover {
  background-color: #8fd19e;
  color: #0b6b43;
}

.lessons-container {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lesson-button {
  display: block;
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  padding: 28px 30px;
  border-radius: 22px;
  font-size: 28px;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.lesson-button:hover {
  background-color: #8fd19e;
  color: #0b6b43;
  transform: translateX(8px);
}

@media (max-width: 768px) {
  .lessons-header h1 {
    font-size: 32px;
  }

  .lesson-button {
    font-size: 20px;
    padding: 22px 20px;
  }

  .lessons-logo {
    width: 130px;
  }
}
.curve-lightest {
  fill: none;
  stroke: #cfedd6;
  stroke-width: 15;
}
.curve-very-light {
  fill: none;
  stroke: #e3f8e8;
  stroke-width: 15;
}
.accueil-section {
  background-color: #f0fbf4;
  background-image:
    radial-gradient(circle, rgba(11, 107, 67, 0.18) 2px, transparent 2px);
  background-size: 32px 32px;
  padding: 80px 20px;
  text-align: center;
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Same green dotted background for all sections above footer */
.accueil-section,
.bac-section {
  width: 100%;
  background-color: #f0fbf4;
  background-image:
    radial-gradient(circle, rgba(11, 107, 67, 0.18) 2px, transparent 2px);
  background-size: 36px 36px;
}

/* Accueil spacing */
.accueil-section {
  padding: 90px 20px;
  text-align: center;
}

/* BAC SM / BAC SPC spacing */
.bac-section {
  padding: 80px 20px;
  text-align: center;
}

/* Keep footer full green */
.contact-footer {
  background-color: #0b6b43;
  color: white;
}
/* ========================= */
/* PHONE RESPONSIVE DESIGN */
/* ========================= */

@media (max-width: 768px) {

  .hero {
    min-height: 560px;
    padding-top: 105px;
    padding-bottom: 35px;
    overflow: hidden;
  }

  .top-curves {
    height: 155px;
    top: 0;
  }

  .curve-green,
  .curve-light,
  .curve-lightest,
  .curve-very-light {
    stroke-width: 9;
  }

  .hero-content {
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 0 12px;
  }

  .logo {
    width: 190px;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: 34px;
    line-height: 1.2;
    text-align: center;
    max-width: 95%;
    margin: 0 auto;
    white-space: normal;
  }

  .main-menu {
    width: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
  }

  .main-menu a {
    font-size: 19px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .main-menu a:not(:last-child) {
    border-right: 3px solid #0b6b43;
  }

  .accueil-section {
    padding: 65px 15px;
  }

  .accueil-section h2 {
    font-size: 36px;
  }

  .accueil-section p {
    font-size: 18px;
    line-height: 1.6;
  }

}
/* ========================= */
/* CONCOURS SECTION */
/* ========================= */

.concours-section {
  width: 100%;
  background-color: #f0fbf4;
  background-image:
    radial-gradient(circle, rgba(11, 107, 67, 0.18) 2px, transparent 2px);
  background-size: 36px 36px;
  padding: 85px 20px;
  text-align: center;
}

.concours-section h2 {
  color: #0b6b43;
  font-size: 42px;
  margin-bottom: 45px;
}

.concours-grid {
  max-width: 950px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.concours-button {
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  border-radius: 24px;
  padding: 35px 20px;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: 0.3s;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.13);
}

.concours-button:hover {
  background-color: #8fd19e;
  color: #0b6b43;
  transform: translateY(-6px);
}

.concours-icon {
  font-size: 46px;
}
@media (max-width: 768px) {
  .main-menu {
    flex-wrap: wrap;
    row-gap: 18px;
  }

  .main-menu a {
    font-size: 17px;
    padding: 0 10px;
  }

  .concours-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .concours-button {
    font-size: 24px;
    padding: 30px 15px;
  }

  .concours-section h2 {
    font-size: 36px;
  }
}
/* ========================= */
/* CONCOURS YEARS */
/* ========================= */

.concours-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.concours-button {
  border: none;
  cursor: pointer;
  width: 100%;
}

.concours-years {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.concours-year-button {
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  padding: 18px 10px;
  border-radius: 18px;
  font-size: 22px;
  font-weight: bold;
  transition: 0.3s;
}

.concours-year-button:hover {
  background-color: #8fd19e;
  color: #0b6b43;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .concours-years {
    grid-template-columns: 1fr;
  }
}
.cpge-section {
  width: 100%;
  background-color: #f0fbf4;
  background-image: radial-gradient(circle, rgba(11,107,67,0.18) 2px, transparent 2px);
  background-size: 36px 36px;
  padding: 85px 20px;
  text-align: center;
}

.cpge-section h2 {
  color: #0b6b43;
  font-size: 42px;
  margin-bottom: 18px;
}

.cpge-intro {
  max-width: 850px;
  margin: 0 auto 45px auto;
  background-color: rgba(255,255,255,0.85);
  padding: 18px 24px;
  border-radius: 18px;
  color: #174b34;
  font-size: 20px;
  line-height: 1.6;
}

.cpge-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cpge-card {
  background-color: #0b6b43;
  color: white;
  text-decoration: none;
  border-radius: 24px;
  padding: 30px 18px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-weight: bold;
  font-size: 23px;
  box-shadow: 0 7px 16px rgba(0,0,0,0.13);
  transition: 0.3s;
}

.cpge-card:hover {
  background-color: #8fd19e;
  color: #0b6b43;
  transform: translateY(-6px);
}

.cpge-icon {
  font-size: 44px;
}

.cpge-card small {
  font-size: 15px;
  font-weight: normal;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .cpge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cpge-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .cpge-section h2 {
    font-size: 36px;
  }

  .cpge-intro {
    font-size: 18px;
  }
}