/* --- RESET ET BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* --- LAYOUT --- */
  .conteneur {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .rangee {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
  }
  
  .colonne {
    padding: 0 15px;
    width: 100%;
  }
  
  .colonne-moitie {
    width: 100%;
  }
  
  @media (min-width: 768px) {
    .colonne-moitie {
      width: 50%;
    }
  }
  
  /* --- TYPOGRAPHIE --- */
  .texte-centre {
    text-align: center;
  }
  
  .texte-primaire {
    color: #0d6efd;
  }
  
  .texte-secondaire {
    color: #6c757d;
  }
  
  .texte-danger {
    color: #dc3545;
  }
  
  .texte-succes {
    color: #198754;
  }
  
  .texte-info {
    color: #0dcaf0;
  }
  
  .texte-attention {
    color: #ffc107;
  }
  
  .texte-gras {
    font-weight: bold;
  }
  
  .texte-italique {
    font-style: italic;
  }
  
  .texte-petit {
    font-size: 0.875em;
  }
  
  .texte-grand {
    font-size: 1.25em;
  }
  
  .texte-entete-1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .texte-entete-2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.875rem;
  }
  
  .texte-entete-3 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
  }
  
  .texte-entete-4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.625rem;
  }
  
  .texte-entete-5 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .texte-entete-6 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.375rem;
  }
  
  /* --- ESPACEMENT --- */
  .marge-bas-1 {
    margin-bottom: 0.25rem;
  }
  
  .marge-bas-2 {
    margin-bottom: 0.5rem;
  }
  
  .marge-bas-3 {
    margin-bottom: 1rem;
  }
  
  .marge-bas-4 {
    margin-bottom: 1.5rem;
  }
  
  .marge-bas-5 {
    margin-bottom: 3rem;
  }
  
  .marge-haut-1 {
    margin-top: 0.25rem;
  }
  
  .marge-haut-2 {
    margin-top: 0.5rem;
  }
  
  .marge-haut-3 {
    margin-top: 1rem;
  }
  
  .marge-haut-4 {
    margin-top: 1.5rem;
  }
  
  .marge-haut-5 {
    margin-top: 3rem;
  }
  
  .rembourrage-1 {
    padding: 0.25rem;
  }
  
  .rembourrage-2 {
    padding: 0.5rem;
  }
  
  .rembourrage-3 {
    padding: 1rem;
  }
  
  .rembourrage-4 {
    padding: 1.5rem;
  }
  
  .rembourrage-5 {
    padding: 3rem;
  }
  
  /* --- CARTES --- */
  .carte {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    overflow: hidden;
    margin-bottom: 1.5rem;
  }
  
  .carte-entete {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    background-color: #0d6efd;
    color: white;
  }
  
  .carte-corps {
    flex: 1 1 auto;
    padding: 1.5rem;
  }
  
  .carte-pied {
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    background-color: #f8f9fa;
  }
  
  .carte-ombre {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  }
  
  .carte-ombre-legere {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
  }
  
  /* --- ALERTE --- */
  .alerte {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
  }
  
  .alerte-primaire {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
  }
  
  .alerte-secondaire {
    color: #41464b;
    background-color: #e2e3e5;
    border-color: #d3d6d8;
  }
  
  .alerte-succes {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
  }
  
  .alerte-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
  }
  
  .alerte-attention {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
  }
  
  .alerte-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
  }
  
  /* --- BOUTONS --- */
  .bouton {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
  }
  
  .bouton:hover, .bouton:focus {
    text-decoration: none;
  }
  
  .bouton-primaire {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
  }
  
  .bouton-primaire:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
  }
  
  .bouton-secondaire {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
  }
  
  .bouton-secondaire:hover {
    background-color: #5c636a;
    border-color: #565e64;
  }
  
  .bouton-grand {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
  }
  
  .bouton-petit {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
  }
  
  /* --- FORMULAIRES --- */
  .formulaire-groupe {
    margin-bottom: 1rem;
  }
  
  .formulaire-etiquette {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .formulaire-controle {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  
  .formulaire-controle:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  }
  
  .formulaire-texte {
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
  }
  
  .formulaire-controle-invalide {
    border-color: #dc3545;
  }
  
  .formulaire-controle-invalide:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
  }
  
  .retour-invalide {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
  }
  
  /* --- ICÔNES --- */
  .icone-cercle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 1rem;
  }
  
  /* --- UTILITAIRES DE VISUALISATION --- */
  .d-flex {
    display: flex;
  }
  
  .align-items-center {
    align-items: center;
  }
  
  .justify-content-center {
    justify-content: center;
  }
  
  .flex-column {
    flex-direction: column;
  }
  
  .flex-grow {
    flex-grow: 1;
  }
  
  .flex-shrink {
    flex-shrink: 0;
  }
  
  /* --- COULEURS SPÉCIFIQUES --- */
  .fond-barbezieux {
    background-color: #C99E61;
  }
  
  .bouton-barbezieux {
    color: #fff;
    background-color: #C99E61;
    border-color: #C99E61;
  }
  
  .bouton-barbezieux:hover {
    background-color: #b68e51;
    border-color: #a98241;
  }

/* --- AJOUTS AU FICHIER CSS --- */

/* Gestion des marges verticales */
.marge-vertical-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.marge-vertical-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.marge-vertical-3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.marge-vertical-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.marge-vertical-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Gestion des marges horizontales */
.marge-droite-1 {
  margin-right: 0.25rem;
}

.marge-droite-2 {
  margin-right: 0.5rem;
}

.marge-droite-3 {
  margin-right: 1rem;
}

.marge-droite-4 {
  margin-right: 1.5rem;
}

.marge-droite-5 {
  margin-right: 3rem;
}

.marge-gauche-1 {
  margin-left: 0.25rem;
}

.marge-gauche-2 {
  margin-left: 0.5rem;
}

.marge-gauche-3 {
  margin-left: 1rem;
}

.marge-gauche-4 {
  margin-left: 1.5rem;
}

.marge-gauche-5 {
  margin-left: 3rem;
}

/* Mise à zéro des marges */
.marge-bas-0 {
  margin-bottom: 0 !important;
}

.marge-haut-0 {
  margin-top: 0 !important;
}

.marge-droite-0 {
  margin-right: 0 !important;
}

.marge-gauche-0 {
  margin-left: 0 !important;
}

/* Gestion des rembourrages verticaux et horizontaux */
.rembourrage-vertical-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.rembourrage-vertical-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.rembourrage-vertical-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.rembourrage-vertical-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.rembourrage-vertical-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.rembourrage-horizontal-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.rembourrage-horizontal-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.rembourrage-horizontal-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.rembourrage-horizontal-4 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.rembourrage-horizontal-5 {
  padding-left: 3rem;
  padding-right: 3rem;
}

/* Styles pour les listes */
.liste-simple {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.liste-item-transparent {
  background-color: transparent;
  border: none;
}

/* Styles supplémentaires pour les images */
.image-fluide {
  max-width: 100%;
  height: auto;
}

.largeur-100 {
  width: 100%;
}

/* Arrondis */
.arrondi-1 {
  border-radius: 0.2rem;
}

.arrondi-2 {
  border-radius: 0.25rem;
}

.arrondi-3 {
  border-radius: 0.5rem;
}

.arrondi-4 {
  border-radius: 0.75rem;
}

.arrondi-cercle {
  border-radius: 50%;
}

/* Couleurs de fond */
.fond-blanc {
  background-color: #fff;
}

.fond-leger {
  background-color: #f8f9fa;
}

.fond-primaire {
  background-color: #0d6efd;
}

.fond-secondaire {
  background-color: #6c757d;
}

.fond-succes {
  background-color: #198754;
}

.fond-danger {
  background-color: #dc3545;
}

.fond-attention {
  background-color: #ffc107;
}

.fond-info {
  background-color: #0dcaf0;
}

/* Couleurs de texte */
.texte-blanc {
  color: #fff;
}

.texte-noir {
  color: #000;
}

.texte-gras-moyen {
  font-weight: 500;
}

/* Formulaires spécifiques */
.case-a-cocher {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.case-a-cocher-input {
  margin-right: 0.5rem;
}

.case-a-cocher-etiquette {
  margin-bottom: 0;
  cursor: pointer;
}

.formulaire-grille-bouton {
  display: grid;
}

/* Bandeau photo */
.bandeau-photo {
  position: relative;
  margin-bottom: 1.5rem;
}

.titre-bandeau {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}

.titre-bandeau h1 {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 0.3rem;
}