/* =========================================================
   1. REMISE À BLANC DES CASES DESSINÉES PRÉCÉDEMMENT
   ========================================================= */
/*
.DET_zone-reset,
.DET_zone-reset * {
*/
/* Annule les styles CSS personnalisés précédents 
    all: revert; 
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    text-align: left;
    float: none;
    position: static;
}
*/

/*
body {
    background-color: #ffffff;
    margin: 0;
    padding: 10px;
}
*/

/* =========================================================
   2. DEUX CASES SUR LA MÊME LIGNE, CADRÉES EN HAUT
   ========================================================= */
.DET_conteneur-principal {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Cadrage stricte en haut */
    border: 1px solid #999999; /* Repère visuel de la case */
    width: 100%;
    gap: 05px;
}

/* Case de gauche : prend tout le reste de la largeur */
/* Non utilisé. Voir FP_case-gauche */
/*
.DET_case-gauche {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
*/
/* espace intérieur de 5 pixels sur les quatre côtés d'un élément
    padding: 5px;  
    gap: 15px;
}
*/

/* Case de droite : 360px de large */
/* Non utilisé. Voir FP_case-droite */
/*
.DET_case-droite {
    width: 360px;
    height: 460px;
    flex-shrink: 0;
*/
/* Repère visuel de la case 
    border: 1px solid #999999; 
*/
/* espace intérieur de 5 pixels sur les quatre côtés d'un élément
    padding: 5px;  
    background-color: #ffffff;
}
*/

/* =========================================================
   3. LES 3 CASES DANS LA COLONNE DE GAUCHE
   ========================================================= */
.DET_bloc-element {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Cadré en haut */
 /*   width: 100%; */
    border: 1px solid #ff0303; /* Repère visuel de la case */
    padding: 5px;  /* espace intérieur de 5 pixels sur les quatre côtés d'un élément */
    gap: 05px;
    background-color: #ffffff;
}

/* Image de 78px de large */
.DET_bloc-image {
    width: 78px;
    flex-shrink: 0;
}

.DET_bloc-image img {
    width: 78px;
    height: auto;
    display: block;
}

/* Zone utilisant le reste de la largeur de la ligne */
.DET_bloc-texte {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Ligne 1 : largeur restante, 16px Gras Souligné */
.DET_ligne-titre {
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    text-decoration: underline;
    line-height: 1.2;
}

/* Ligne 2 : largeur restante, 14px Gras */
.DET_ligne-sous-titre {
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
}

/* =========================================================
   4. CINQ LIGNES DE DEUX CASES DE MÊME LARGEUR (12px)
   ========================================================= */
.DET_bloc-lignes-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.DET_ligne-double {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Même hauteur variable pour les deux cases */
    width: 100%;
    gap: 8px;
}

/* Deux cases de même largeur fixe (50% / 50%) et hauteur variable */
.DET_case-moitie {
    flex: 1 1 50%;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
    word-wrap: break-word;
    border: 1px solid #dddddd; /* Repère visuel léger */
    padding: 3px 6px;
}

/* =========================================================
   5. BASCULEMENT VERTICAL SUR MOBILE (< 768px)
   ========================================================= */
@media screen and (max-width: 768px) {
    
    /* Basculement des 2 cases principales */
    .DET_conteneur-principal {
        flex-direction: column;
    }

    .DET_case-gauche,
    .DET_case-droite {
        width: 100%;
    }

    /* Basculement des 2 cases de 12px sur chaque ligne */
    .DET_ligne-double {
        flex-direction: column;
        gap: 2px;
    }

    .DET_case-moitie {
        flex: none;
        width: 100%;
    }
}
