@charset "UTF-8";

/* =========================
   COULEURS / UTILITAIRES
   ========================= */
.bg-orange {
  background-color: #fef6eb;
  font-weight: 500;
}
.bg-gris {
  background-color: #F7F7F7;
  font-weight: 500;
}
.bg-vert {
  background-color: #D4EDE3;
  font-weight: 500;
}
.bg-theme {
  background-color: #39604F;
  color: #FFFFFF;
}
.bg-lavende {
  background-color: #D4EDE3;
  font-weight: 500;
}

.text-500 { font-weight: 500; }
.text-vert { color: #39604F; }
.text-orange { color: #C2510F; }

.vertical-line {
  border-left: 5px solid #C2510F;
  display: inline-block;
  height: auto;
  padding: 5px;
}

.bordure {
  border: 5px solid #c6ecea;
  height: auto;
  padding: 20px;
}

.noir {
  border-style: solid;
  border-color: black;
}

/* =========================
   BASE / RESET
   ========================= */
html {
  padding: 0;
  margin: 0;
}

body {
  margin: 0;
  padding-top: 72px; /* IMPORTANT: réserve l'espace pour la navbar fixed-top (évite CLS) */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Ton p en justify casse les utilitaires bootstrap (text-center, etc.)
   -> On le retire par défaut, et on applique justify seulement où tu veux. */
p {
  font-size: 1em;
  text-align: left;
}

/* Classe si tu veux du justify sur certains paragraphes */
.text-justify {
  text-align: justify;
}

tbody { background-color: whitesmoke; }
td { vertical-align: middle; }

/* Tailles */
.medium12 { font-size: 12px; }
.medium14 { font-size: 14px; }
.medium18 { font-size: 18px; }

/* =========================
   TITRES
   (polices personnalisées retirées)
   ========================= */
h1, h2, h3, h4 {
  font-family: inherit;
}

h1 {
  font-size: 1.65em;
  text-align: center;
  font-weight: 700;
  margin-top: 0;        /* IMPORTANT: on ne compense plus la navbar via h1 */
  margin-bottom: 30px;
  line-height: 1.1;
}

h2 {
  font-size: 1.55em;
  text-align: center;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 25px;
}

h3 {
  font-size: 1.3em;
  font-weight: 700;
  color: #39604F;
  margin-top: 10px;
  margin-bottom: 10px;
}

h4 {
  font-size: 1.2em;
  font-weight: 700;
  margin-top: 2px;
  margin-bottom: 2px;
}

/* =========================
   BLOCS DIVERS
   ========================= */
.button-link {
  margin-top: 75px;
  text-align: center;
  font-weight: 700;
  margin-bottom: -60px;
}

/* =========================
   NAVBAR
   ========================= */
.navbar { font-weight: 700; }

/* ton sélecteur était invalide : "navbar navbar-nav"
   -> correction */
.navbar .navbar-nav { font-weight: 700; }

.navbar .navbar-collapse { text-align: center; }
.dropdown .dropdown-menu { text-align: center; }

/* =========================
   FORM / LISTES
   ========================= */
.form-group {
  display: inline-block;
  padding: 10px;
}

.custom-ol {
  counter-reset: list-number;
}

.custom-ol li::before {
  counter-increment: list-number;
  content: counter(list-number) ". ";
  font-weight: 700;
  margin-right: 10px;
}

/* =========================
   CLS IMAGES (réserve de place)
   Utilise .hero-img sur l’image principale si besoin
   ========================= */
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* adapte si ton image n'est pas carrée */
}

/* Image intro : limite la hauteur sans la faire disparaître */
.intro-hero-img{
  max-height: 220px;   /* ajuste: 200 / 240 / 260 selon ton texte */
  width: auto;         /* évite l'écrasement */
  object-fit: contain; /* garde l'image entière */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

summary.cursor-pointer { cursor: pointer; }
