/* ==========================================================
   STYLE GÉNÉRAL DU SITE
   Les couleurs sont définies une seule fois ici (variables) :
   change-les à cet endroit et tout le site suit.
   ========================================================== */
:root {
  --vert: #4f9c8c;        /* vert d'eau de la plaquette */
  --vert-clair: #8fbfb5;
  --rouille: #a8431f;     /* couleur des titres de section */
  --sombre: #1f3b3f;      /* texte et éléments foncés */
  --fond: #f1f3f8;        /* fond de page */
  --blanc: #ffffff;
}

/* ----- Réglages de base ----- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--sombre);
  background: var(--fond);
  line-height: 1.6;
}

h1, h2 { line-height: 1.2; }

/* ----- EN-TÊTE + MENU ----- */
header {
  background: var(--blanc);
  border-bottom: 4px solid var(--vert);
}
.header-contenu {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;            /* le menu passe sous le logo sur mobile */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sombre);
  text-decoration: none;
  text-transform: uppercase;
}
nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav a {
  color: var(--sombre);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
}
nav a:hover { background: var(--fond); }
/* Page en cours : lien surligné (classe "actif" dans le HTML) */
nav a.actif { background: var(--rouille); color: var(--blanc); }

/* ----- CONTENU PRINCIPAL ----- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Grand bandeau d'accueil */
.hero {
  text-align: center;
  padding: 50px 20px;
  background: var(--vert-clair);
  border-radius: 16px;
  margin-bottom: 40px;
}
.hero h1 { font-size: 2.2rem; margin: 0 0 10px; }
.hero p { font-size: 1.1rem; margin: 0 0 20px; }

/* Titre de section façon plaquette (fond rouille) */
.titre-section {
  display: inline-block;
  background: var(--rouille);
  color: var(--blanc);
  padding: 8px 20px;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0 0 20px;
}

/* Bloc blanc générique */
.carte {
  background: var(--blanc);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* Bouton */
.bouton {
  display: inline-block;
  background: var(--rouille);
  color: var(--blanc);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 8px;
}
.bouton:hover { background: var(--sombre); }

/* ----- GRILLES (3 colonnes -> 1 colonne sur mobile) ----- */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.chiffre { text-align: center; }
.chiffre .gros { font-size: 2rem; font-weight: 700; color: var(--vert); display: block; }

/* ----- LISTE DES OBJECTIFS (cases cochées) ----- */
.liste-objectifs { list-style: none; padding: 0; margin: 0; }
.liste-objectifs li { padding: 10px 0 10px 40px; position: relative; }
.liste-objectifs li::before {
  content: "✔";
  position: absolute;
  left: 0; top: 10px;
  width: 26px; height: 26px;
  background: var(--sombre);
  color: var(--blanc);
  border-radius: 5px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 26px;
}

/* ----- PAGE "QUI SUIS-JE" ----- */
.profil {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.profil img {
  width: 200px; height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--vert);
}
.profil .texte { flex: 1; min-width: 260px; }

/* ----- PIED DE PAGE ----- */
footer {
  background: var(--vert);
  color: var(--blanc);
  text-align: center;
  padding: 20px;
}
footer a { color: var(--blanc); }