/* ========================= */
/* Variables globales        */
/* ========================= */
:root {
  --primary: #031b4e; /* Couleur principale */
  --blue-dark: #0a1b4c; /* Bleu foncé pour le footer */
  --btn-color: #243875; /* Couleur des boutons d'export */
  --text-light: #fff; /* Texte blanc */
}

/* ========================= */
/* Styles globaux            */
/* ========================= */
* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif; /* Police par défaut */
}

body, html {
  margin: 0;
  padding: 0;
  background-color: white; /* Fond blanc */
  color: #000; /* Texte noir */
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Hauteur minimale pour couvrir toute la fenêtre */
}

/* ========================= */
/* Header                    */
/* ========================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: relative;
  background-color: white;
}

.logo {
  height: 70px; /* Taille du logo */
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #222; /* Couleur du texte utilisateur */
  font-size: 14px;
  text-align: center;
  gap: 5px; /* Espacement entre les éléments */
}

.avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%; /* Avatar circulaire */
}

.header-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre le bouton dans le header */
  background-color: #001F5B;
  color: white;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  padding: 12px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ombre */
  cursor: default; /* Pas de pointeur car non cliquable */
}

/* ========================= */
/* Main - Zone principale   */
/* ========================= */
main {
  padding: 20px;
  flex: 1; /* Prend tout l'espace disponible */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre le contenu */
}

/* ========================= */
/* Grille des boutons        */
/* ========================= */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Colonnes adaptatives */
  gap: 25px; /* Espacement entre les boutons */
  margin-bottom: 40px;
  width: 100%;
  max-width: 900px; /* Largeur maximale de la grille */
}

.button-grid button,
.global-form button {
  width: 100%;
  padding: 15px 25px;
  background-color: var(--btn-color); /* Couleur des boutons */
  color: white;
  border: none;
  border-radius: 25px; /* Boutons arrondis */
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease; /* Animation au survol */
}

.button-grid button:hover,
.global-form button:hover {
  background-color: var(--primary); /* Change la couleur au survol */
}

.global-form {
  text-align: center; /* Centre le formulaire d'export global */
}

/* ========================= */
/* Footer                    */
/* ========================= */
footer {
  background-color: var(--blue-dark); /* Bleu foncé */
  height: 60px;
  margin-top: auto; /* Place le footer en bas */
}
