.blockInfo{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bouton{
    padding: .5em;
    /*width: fit-content;*/
    border: none;
    border-radius: .3em;
    color: var(--blanc);
    background-color: var(--bleu-fonce);
    font-size: 1.2em;
    text-align: center;
}

.bouton:hover{
    background-color: var(--orange-clair);
    color: var(--bleu-fonce);
    transition: .3s;
    cursor: pointer;
}

.bouton.actif{
    background-color: var(--orange-clair);
    color: var(--bleu-fonce);
    cursor: default;
    pointer-events: none;
}

.carte{
    width: 100%;
    height: fit-content;
}

.carte img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.carteParent{
    width: 100%;
    max-width: 100%;
    height: fit-content;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 5px;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
}

/* Style des messages d'erreur de formulaire Symfony */
.carteParent ul {
    list-style-type: none;
}

.carteParent ul li {
    color: var(--orange-fonce);
}

.colonne_droite {
    width: 100%;
    max-width: 100%;
    height: fit-content;
    /*overflow-x: hidden;  Coupe ou empêche tout ce qui veut déborder horizontalement */
    padding: 5px;    /* Légère sécurité pour décoller le contenu des bords de l'écran */
    box-sizing: border-box;
}

/* Force le texte orange à passer en dessous du label bleu sur mobile */
.colonne-parent span:first-of-type {
    display: block; 
    margin-bottom: 3px;
}

.contenu{
    /*max-width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 5%;*/
    padding: 20px;
    text-align: center;
    /*border-radius: 5px;
    margin-bottom: 15vh;*/
}

.contenuEspaceParent{
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: fit-content;
    margin: 0 auto;
    /*overflow-x: hidden;  Coupe ou empêche tout ce qui veut déborder horizontalement */
    padding: 5px;    /* Légère sécurité pour décoller le contenu des bords de l'écran */
    box-sizing: border-box;
    /*border-radius: 5px;
    box-shadow: 5px 5px 5px var(--bleu-fonce);*/
}

.contenuEspacesParentsActifs{
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-top: 15px;
}

.formulaire{
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: .5em;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
    border-radius: 5px;
    padding: .5em;
}

.formulaireItem > label, .formulaireItem > input, .formulaireItem > select{
    display: flex;
    flex-direction: column; /* Force le label à se mettre AU-DESSUS du champ */
    align-items: center; /* Aligne le texte et le champ parfaitement à gauche */
    width: 100%;
}

.formulaireItem > input{
    text-align: center;
}

.identiteEspacesParents{
    max-width: 80%; 
    display: block; 
    margin: auto; 
    border-radius: 10px; 
    box-shadow: 5px 5px 5px var(--bleu-fonce);
}

.info{
    width: fit-content;    
    height: fit-content;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
    border-radius: 5px;
    text-align: left;
    padding: .5em;
}

.info p{
    line-height: .2em;
}

.info p:last-child{
    text-align: center;
    padding-top: .5em;
    margin-bottom: .1em;
}

.ligneLien{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main{
    width: 100%;
    height: auto;
    /*min-height: 100%;*/
    margin: 2em 0; 
    display: grid;
    grid-template-columns: minmax(0, 1fr);/* Sur mobile, une seule colonne qui prend tout l'espace disponible */
    grid-template-rows: auto;
    justify-items: stretch;
}

.menu{
    display: flex;
    gap: 10px;
    width: fit-content;
    height: fit-content;
    padding: 20px;
    flex-direction: column;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
    border-radius: 5px;
    text-align: center;
    flex: 1;
    top: 1vh;
}

.menu_gauche{
    /*width: 80%;
    height: fit-content;
    padding: 20px;
    margin: 20px;*/
    display: none;
    /*flex-direction: column;
    box-shadow: 5px 5px 5px #1e2f41;
    border-radius: 5px;
    text-align: center;
    position: sticky;
    top: 1vh;*/
}

.menu_haut{
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
    padding: 20px;
    gap: 10px;
    border-radius: 5px;
}

.wrapperConnexion{
    height: 60vh;
    margin: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/***************** Media queries *****************/
@media (min-width: 768px){
    .blockInfo{
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        width: auto;      
    }

    .boutonEspaceParent{
        display: flex;
        flex-direction: row;
        /*justify-content: flex-start;*/
    }
    
    .carte {
        width: 25%;
        min-width: 160px; /* Garantit une largeur minimale pour les textes longs */
        padding: 10px;    /* Ajoute un peu de marge interne pour que le texte ne colle pas aux bords */
        box-sizing: border-box;
    }

    /* Autorise la coupure propre des mots ou apostrophes trop longs */
    .carte h2 {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .contenuEspaceParent{
        width: fit-content;
        height: fit-content;
        flex-direction: row;
    }
    
    .contenuEspacesParentsActifs {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
    }   

    /* Force les deux colonnes de texte à occuper une taille identique */
    .colonne-parent {
        flex: 0 0 auto; /* La colonne prend la taille exacte de son contenu */
        padding-right: 0; /* Plus besoin du padding forcé */
    }

    /* Sur PC, on remet les labels en ligne (côte à côte avec le texte orange) */
    .colonne-parent span:first-of-type {
        display: inline; 
        margin-bottom: 0;
    }

    /* La coche garde sa taille naturelle sans s'étirer */
    .colonne-coche {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .formulaire{
        max-width: 40%;
        margin: 0 auto;
    }

    .formulairePc{
        display: block;
        margin: 0 auto;
    }

    .identiteEspacesParents{
        max-width: 90%;
    }

    .info{
        max-width: 400px;
    }

    .ligneLien{
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .main{
        grid-template-columns: 2fr 10fr;
        height: auto; /* Force le parent à s'adapter à la hauteur du contenu de droite */
        align-items: start; /* Empêche les éléments de la grille de s'étirer verticalement */
    }

    .menu_gauche{
        display: flex;
        position: sticky;
        top: 1vh;
        align-self: start;
    }

    .menu_haut{
        flex-direction: row;
        width: fit-content;
    }

    .width25{
        width: 25%;
    }

    .width50{
        width: 50%;
    }
}

/* Alignement sur écran PC 
.headerRightBlock {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.containerMessages, .containerMessagesMobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.containerMessagesMobile {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
}

.messageCard {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.messageCard strong {
    display: block;
    margin-bottom: 3px;
}

.message-info {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #0c5460;
}

.message-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.message-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.message-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}*/