/* Structure de base */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa; /* Couleur de fond douce */
    margin: 0;
    padding: 0;
}

.container2 {
    max-width: 800px;
    margin: auto;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 3px;
}

.container {
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre les éléments */
    max-width: 800px;
    margin: auto;
}

/* Titres et en-têtes */
h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333333;
}

h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 7px;
    margin-top: 7px;
    color: #333333;
}

h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 3px;
    color: #495057;
    text-decoration: underline;
}

.exclinique {
    font-size: 0.8rem;
}

.densitemammaire {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 2px;
    color: #495057;
    }

h4 
{font-size: 0.8rem;
font-weight: bold;
margin-top: 2px;
color: #495057;

}

/*focus en bleu azur*/
div.focus, section.focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);

}

/* section tabulée à droite*/
.tabulation {
    margin-left: 2em;
}

/* création d'un conteneur flexible pour les résultats non incrémentables*/
.divpasclonee {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px;
    position: relative;
    min-height: 0px;
    border-radius: 5px; 
    padding-bottom: 1px;
}

.agauchem {
    text-align: center;
    padding-top: 3px;
    white-space: nowrap;
}

.adroitem {
    padding-left: 2px;
}

/* création d'un conteneur flexible pour les résultats incrémentables*/
.divcloneecss {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px;
    position: relative;
    min-height: 0px; /* Ajustez selon vos besoins */
    border-radius: 5px;
    border: 1px solid #A9A9A9;   
    padding-bottom: 1px;
}

.divcloneecss + .divcloneecss { /* Sélectionne chaque .divcloneecss qui suit une .divcloneecss */
    margin-top: 2px; /* Ajoute un espacement de 2px au-dessus de chaque div sauf la première */
}


.agauche {
    text-align: center;
    height: max-content; /* Important : doit avoir une hauteur */
    min-height: 1px; /* ou une hauteur minimum */
    padding-left: 0.5em;
}

.adroite {
    padding-left: 2px;
    margin-left: 2em;
}

.agauche h4 {
     margin: 0; /* Supprime les marges par défaut du h4 */
     padding-top: 0.5em;
}

/* création d'un conteneur flexible spécifique pour le acr de la conclusion*/
.divcloneecclcss {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    border-radius: 5px;
    min-height: 0px; /* Ajustez selon vos besoins */
    border-radius: 5px;   
    padding-bottom: 1px;
}

.divcloneecclcss + .divcloneecclcss { /* Sélectionne chaque .divclonee qui suit une .divclone */
    margin-top: 2px; /* Ajoute un espacement de 2px au-dessus de chaque div sauf la première */
}


.agaucheccl {
    text-align: center;
    height: max-content; /* Important : doit avoir une hauteur */
    min-height: 1px; /* ou une hauteur minimum */
    padding-top: 0.2em;
}

.adroiteccl {
    padding-left: 2px;
}


label.labelccl {
    margin-bottom: 0px;
    display: inline;
    font-size: 0.85em;
    font-weight: 700;
}


/* création d'un conteneur flexible pour les résultats incrémentables*/
.divcloneeatcdcss {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px;
    position: relative;
    min-height: 0px; /* Ajustez selon vos besoins */
    border-radius: 5px;
    border: none;   
    padding-bottom: 1px;
}


.divcloneeatcdcss + .divcloneeatcdcss { /* Sélectionne chaque .divclonee qui suit une .divclonee */
    margin-top: 4px; /* Ajoute un espacement de 2px au-dessus de chaque div sauf la première */
}




/* Form Group pour le label et l'input */
.divdenombre {
    display: flex; /* Utilisation de flexbox pour aligner les éléments sur la même ligne */
    align-items: center; /* Aligne verticalement le texte et l'input */
    padding-bottom: 0px; /* Espace entre les groupes de champs */
    padding-top: 2px;
    height: auto;        /* Hauteur automatique basée sur le contenu */
    min-height: fit-content; /* S'adapte au contenu minimum */
}

.divdenombre label {
    margin-right: 0.4em; /* Ajoute un petit espace entre le label et l'input */
    margin-left: 0.4em;
     font-size: 0.6;
}

.divdenombre input {
    width: 15em; /* Vous pouvez ajuster cette largeur en fonction de la taille souhaitée */
    font-size: 0.7em;
    font-weight: 400;
    line-height: 1;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: border-color 0.15s ease-in-out, 
                box-shadow 0.15s ease-in-out;
    appearance: none;
    text-align: right;
}

/* Focus state */
.divdenombre input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.divdenombre input::placeholder {
    color: #6c757d;
    opacity: 1;
    text-align: right;
}

.divdenombre input:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

input.numeric1 {
    width: 3em;
}

input.numeric2 {
    width: 3em;
}

input.numeric3 {
    width: 3em;
}

input.numeric4 {
    width: 6em;
}

input.jjmmaa, input.mmaa{
    width: 7em;
    font-weight:800;
}

input.npjjmm{
    width: 7em;
    font-weight:800;
    font-size: 0.7em;
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 4px;
    margin-bottom: 5px;
}

input.npjjmm:focus{
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.textelong {
    width: 30em;
    resize: vertical;      /* Permet uniquement le redimensionnement vertical */
    min-height: 2em;      /* Hauteur minimum */
    max-height: 15em;
    overflow: auto;       /* Ajoute une barre de défilement si nécessaire */
    font-size: 0.7em;
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 4px;
    margin-bottom: 5px;
}

.textelong:focus{
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

p.messagedefaut {
    font-style: italic;
    font-size: 0.7em;
    padding-left: 3em;
}

label.label-cdt{
   color: #505050;
   font-weight: bold;;
}

label.labelpost{
    padding-left: 3px;
}


/* Champs de formulaire */
.form-select,
.form-control {
    font-size: 0.7rem;
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 4px;
    margin-bottom: 5px;
}

.form-select:focus,
.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Sections dynamiques */
.border {
    border: 1px solid #ced4da;
    padding: 2px;
    margin-top: 2px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Boutons */
.btn {
    font-size: 0.7rem; /* Taille de police réduite */
    padding: 0.3em 0.7em; /* Espacement interne réduit */
    border-radius: 3px; /* Coins arrondis légèrement réduits */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: #007bff;
    color: white;
}

.btn-passer{
    background-color: #7792ad;
}

.btn:hover {
    background-color: #034893;
    color: white;
}

.ajoutbonheur, .suppressionjoie {
    display: inline-block;
    margin-right: 1em;
    margin-top: 0.5em;
    vertical-align: middle;
  }

.ajoutbonheur {
    background-color: #FFB3B3; /* rouge pour le bouton Ajouter */
    color: black;
    float: right;
    margin-right: 1em;
    margin-top: 0.5em;
    align-self: center; /* ou flex-start selon vos préférences */
  }
  
  .ajoutbonheur:hover {
    background-color: #e01663; /* Couleur légèrement plus sombre au survol */
    transform: scale(1.05); /* Légère mise en avant au survol */
  }

    /*bouton supprimer*/
  .suppressionjoie {
    background-color: white; /* Rouge pour le bouton Supprimer */
    color: black;
    border: 2px solid #dc3545;
    position:relative;
    float: right;
    padding-top: 1px;
    padding-bottom: 1px;
    margin-right: 1em;
    margin-top: 0.5em;
    align-self: center; /* ou flex-start selon vos préférences */
  }
  
  .suppressionjoie:hover {
    background-color: #bd2130;
    border-color: #b21f2d;
    transform: scale(1.05); /* Légère mise en avant au survol */
  }

.btn-reset{
    background-color: #b21f2d;
    margin-left: 5em;
    padding-top:0px;
    padding-bottom:0px;
    border-radius: 15px;
}



.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}


.btn-active, .btn-active:focus {
    background-color: hsl(290, 98%, 53%);
    color: white;
    border-color: hsl(290, 98%, 53%);
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 255, 0.25);  /* Ajouter un halo */
}

/* Assurer que les boutons ne perdent pas leur style au hover quand ils sont actifs */
.btn-active:hover {
    background-color: hsl(290, 98%, 43%);
    border-color: hsl(290, 98%, 43%);
    color: white;
}




.btn-normal {
    background-color: #13aa52;
    border: 1px solid #13aa52;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.7em;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 2px;
    margin-left : 2em;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.btn-normal:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}


/* Marges et alignement */
label {
    margin-bottom: 0px;
    display: inline;
    font-size: 0.7em;
}


textarea {
    resize: vertical;
}

.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

/*display none par attribut*/
[d-none] {
    display: none;
}


p.petitp {
    font-size: 0.7em;
    font-style: italic;
    padding-top: 0.3em;
    padding-bottom: 0.6em;
    margin-bottom: 0.6em;
}

