/* ===== RESET SIMPLE ===== */
html, body {
  margin: 0;
  padding: 0;
}

/* ===== BASE ===== */
html {
  background-color: #002D2D;
  scroll-behavior: smooth;
}

body {
  background-color: #002D2D;
  color: #D2D0C9;
  font-family: "Bahnschrift Condensed", Arial, sans-serif;
  font-size: 1em;
}

/* ===== GRID PAGE ===== */
.page {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  padding: 2em;
  text-align: center;
}

h1, h2 {
  font-family: "Bauhaus 95", Impact, sans-serif;
  color: #E2A719;
}

h1 {
  font-size: 2.4em;
}

h2 {
  font-size: 1.6em;
}

/* ===== MENU FLEX ===== */
nav {
  background-color: #19534D;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
  padding: 1em;
  margin: 0;
}

nav a {
  color: #D2D0C9;
  text-decoration: none;
  font-size: 1.1em;
  
  /* Ajouts pour l'alignement vertical */
  display: flex;
  flex-direction: column; /* Empile l'icône et le texte */
  align-items: center;    /* Centre horizontalement l'un par rapport à l'autre */
  gap: 0.5em;             /* Espace précis entre l'icône et le texte */
}

/* ===== MAIN GRID ===== */
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  padding: 2em;
}

/* ===== BOX ===== */
section {
  background-color: #041213;
  padding: 1.5em;
}

/* ===== FLEX CARDS ===== */
.cards {
  display: flex;
  gap: 2em;
}

.card {
  background-color: #041213;
  padding: 1.5em;
  flex: 1;
}

/* ===== IMAGES ===== */
img {
  width: 100%;
  max-width: 20em;
  display: block;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.5em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 48em) {
  main {
    grid-template-columns: 1fr;
  }

  .cards {
    flex-direction: column;
  }
}

/* ===== ICÔNES MENU ===== */
.icon {
  width: 2em;
  height: auto;
  display: block; 
  margin: 0;      
}

.menu-autres {
  /* Ajustez cette valeur négative jusqu'à ce que ce soit parfait */
  margin-top: -10px; 
}

/* ===== HEADER : LOGO EN HAUT À GAUCHE ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
  position: relative;
}

.logo {
  position: absolute;
  left: 2em;
  width: 10em;
  height: auto;
}

/* RESPONSIVE LOGO */
@media (max-width: 48em) {
  .logo {
    width: 3em;
    left: 1em;
  }
}

/* ===== BOX CONTENEUR CTA EN BAS ===== */
.cta-box {
  grid-column: 1 / -1; /* Force la box à occuper les deux colonnes du grid main */
  background-color: #041213;
  border: 2px solid #19534D;
  padding: 2.5em;
  border-radius: 1em;
  
  max-width: 45em;          /* Largeur maximale de la box */
  margin: 2em auto 0 auto;  /* Centrage horizontal et marge en haut */
  text-align: center;
  
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.cta {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  margin-top: 1.5em;
  flex-wrap: wrap;
}

.btn {
  background-color: #E2A719;
  color: #002D2D;
  text-decoration: none;
  padding: 0.8em 2em;
  border-radius: 0.5em;
  font-weight: bold;
  font-family: "Bahnschrift Condensed", Arial, sans-serif;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #19534D;
  color: #D2D0C9;
  transform: translateY(-3px);
}

/* 2. Nouveau bloc BTT corrigé */
.back-to-top {
  position: fixed;
  bottom: 2em;
  right: 2em;
  background-color: #E2A719;
  color: #002D2D;
  width: 3.5em;
  height: 3.5em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  
  /* Supprimé : opacity et visibility pour qu'il soit visible tout le temps */
  border: 2px solid #19534D;
}

.back-to-top:hover {
  background-color: #19534D;
  color: #D2D0C9;
  transform: translateY(-5px);
}
}