/* ==========================================================================
     STYLE GLOBAL OPTIMISÉ POUR LA LISIBILITÉ (ACCESSIBILITÉ)
     ========================================================================== */

@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css);
@import url(https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap);


:root {
    --primary: #4A90E2;
    --secondary: #f5f7fa;
    --accent: #f1c40f;
    --text: #2c3e50;
    --border: #e0e6ed;

    /*--primary: #729EBF;*/    /* Votre bleu actuel (très bien) */
    /*--accent: #F7E7CE;*/     /* F7E7CE Un crème/beurre doux au lieu du jaune vif */
    --accent-dark: #E6D5B8; /* Pour les survols (hover) */
    --bg: #FDFBF7;         /* f9f9f9 Un fond de page légèrement cassé, moins fatiguant que le blanc pur */
    --white: #ffffff;
    /*--text: #444;*/ /*555*/
    --danger: #e74c3c;
    --success: #82C491;    /* Un vert plus doux pour les arrivées    */

    --primary-color: #729EBF; /* Bleu colombes */
    --accent-color: #FFD700;    /* Jaune joyeux */
    --text-dark: #444;
    --bg-light: #f9f9f9;
    --error: #e74c3c;

    --border-radius: 16px;
    --font-main: 'Quicksand', sans-serif;
}

/* La solution magique */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-size: 18px; /* Taille de base augmentée pour la lisibilité */
    -webkit-font-smoothing: antialiased;
}


/* Bouton "Arrivée" (Style identique au bouton Départ) */
.btn-arrival {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #007bff;    /* Bordure assortie */
    padding: 6px 6px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 85px !important;
}

.btn-arrival {
    background-color: #fff;
    color: #007bff;            /* Bleu vif pour l'action d'arrivée */
    border-radius: 4px;
}

/* Effet au survol pour rester cohérent */
.btn-arrival:hover {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

/* Badge "Présent" (État passif) */
.badge-present {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    background-color: #2ecc71; /* Vert émeraude vif */
    color: #ffffff;             /* Texte blanc pour un contraste maximal */
    padding: 6px 6px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 650;            /* Très gras pour le style "app" */
    text-transform: uppercase; /* Donne un aspect plus officiel */
    border: none;             /* On enlève la bordure qui ternit la couleur */
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.3); /* Effet de profondeur vert */
}

/* Bouton "Départ" (Action cliquable) */
.btn-departure {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #fff;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    padding: 6px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 85px !important;
}

/* Effet au survol pour rester cohérent */
.btn-departure:hover {
    background-color: #ff3b30 /*d32f2f*/;
    color: white;
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.3);
}

/* Badge "arrivee" (État passif) */
.badge-arrivee {
    position: relative; /* CRUCIAL : Devient le point de repère pour la croix */
    display: flex;    /* Utilise flex pour un meilleur alignement interne */
    align-items: center;
    justify-content: center;
    width: 85px;
    background-color: #00d2ff; 
    color: #ffffff;            /* Blanc pour un meilleur contraste sur le bleu */
    padding: 6px 6px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 650;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Bordure subtile */
    text-transform: uppercase; /* Optionnel : donne un look plus "badge" */
    font-family: var(--font-main);
}

/* Styles pour la croix rouge en haut à droite */
.btn-delete-badge {
    position: absolute;
    top: -5px;     /* Ajustez pour monter/descendre la croix */
    right: -5px;     /* Ajustez pour décaler à gauche/droite */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 16px;
    height: 16px;
    padding: 0;
    
    background-color: #ff3333; /* Rouge vif */
    color: #ffffff;            /* Croix blanche */
    border: none;
    border-radius: 50%;        /* Donne une forme de petit rond */
    
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, background-color 0.1s ease;
}

/* Effet au survol (optionnel mais recommandé) */
.btn-delete-badge:hover {
    background-color: #cc0000; /* Rouge plus foncé au survol */
    transform: scale(1.1);     /* Grossit légèrement */
}

/* Barre d'outils d'icônes */
.action-toolbar {
    display: flex;
    align-items: center;
    justify-content: left;/* Aligne horizontalement (optionnel) */
    gap: 8px;                 /* Espace entre l'image et le texte */
    height: 100%;             /* S'assure de prendre toute la hauteur de la cellule */
}

.action-toolbar img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
}

.action-toolbar a:hover img {
    opacity: 1;
    transform: scale(1.2);
}

.action-toolbar .separator {
    width: 1px;
    height: 20px;
    background-color: #ddd;
    margin: 0 5px;
}

/* Spécifique suppression */
.action-toolbar a.delete img {
    filter: grayscale(100%);
}
.action-toolbar a.delete:hover img {
    filter: none;
}


/* Style pour l'étoile générée automatiquement */
/* 1. Cible un label ou titre qui est juste avant un élément requis */
label:has(+ :required)::after,
th:has(+ td :required)::after,
.form-group label:has(~ :required)::after {
    content: " *";
    color: var(--danger);
    font-weight: bold;
    font-size: 1.1rem;
    /*
    display: inline-block;
    transform: translateY(-2px);
    margin-left: 3px;
    */
}

/* Champs obligatoir */
.oblifeild {
    color: var(--danger) !important; /* Rouge défini dans tes variables */
    /*font-weight: bold;*/
    font-size: 0.8rem;
    /*margin-left: 4px;*/
    vertical-align: super; /* Pour la mettre un peu plus haut */
    cursor: help; /* Affiche un petit point d'interrogation au survol */
    margin-bottom: 10px;
}

/* --- HEADER --- */
header {
    background-color: var(--accent);
    padding: 5px 12px; /*12px 20px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
}

.header-title {
    font-size: 1.8rem; /*1.6rem;*/
    font-weight: 700;
    color: var(--primary);
}

a { 
    text-decoration: none;
}

.icon-btn {
    width: 44px; /*35px;*/ /* Taille agrandie pour zone tactile mobile */
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: contain;
}

.icon-btn:hover { transform: scale(1.1); }

/* CONTENEURS PRINCIPAL */
.main-container {
    /*display: flex;*/
    /*max-width: 550px; *//*1000px*//* Un peu plus large pour le confort visuel */
    margin: 5px 0; /*40px auto;*/
    padding: 0 5px; /*0 20px;*/
    justify-content: center; /* Aligne horizontalement */
}

.container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%; 
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Le titre de la page */
h2 {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    margin-bottom: 0; /*20px;*/
    margin-top: 0; /*20px;*/
    padding-bottom: 5px;
}


/* --- TABLEAUX --- */
.table-container {
    /*overflow-x: auto;*/ /* Scroll sur mobile */
    overflow: hidden;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table-container th {
    background-color: var(--primary);
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.table-container td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}

.table-container tr:hover {
    background-color: #f1f7ff;
}

.num { font-weight: bold; color: #999; }
.group-name { font-weight: 700; color: var(--primary); text-decoration: none; }

/* Menu Mobile simple */
.side-menu {
    display: none;
    position: fixed;
    left: 0; top: 0; width: 280px; height: 100%;
    background: var(--white);
    z-index: 2000;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    padding: 20px;
}

/* Modal Alert / Confirm */
.modal-box-confirm {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    margin: 15% auto;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header { background: var(--primary); color: white; padding: 15px; font-weight: bold; }
.modal-body { padding: 20px; }
.modal-footer { padding: 15px; display: flex; gap: 10px; justify-content: center; }

.btn {
    padding: 10px 25px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}
.btn-yes { background: var(--primary); color: white; }
.btn-no { background: #eee; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 50px 20px; /*40px 20px;*/
    color: #999;
    font-size: 0.95rem; /*0.85rem;*/
    background-color: var(--bg);
}

.oblifeild { 
    color: var(--danger); 
}

.errormsg { 
    color: var(--danger); 
    font-size: 0.8rem; 
    display: block; 
}


/* STYLE MENU LEFT */
/* Le panneau latéral */

.closebtn {
    font-size: 36px;
    text-decoration: none;
    color: var(--primary);
    line-height: 1;
}

/* Style des listes */
#menu-accordeon {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.menu-item {
    margin-bottom: 15px;
}

.menu-title {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

.submenu {
    list-style: none;
    padding-left: 15px;
}

.submenu li a, .direct-link {
    display: block;
    padding: 8px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.submenu li a:hover, .direct-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.direct-link {
    font-weight: 700;
    color: var(--primary);
}

.special {
    color: #e67e22; /* Une couleur différente pour l'action Switch */
}

.section-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

/* Overlay de fond */
.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1999;
    backdrop-filter: blur(2px);
}

/* STYLE MENU RIGHT */
/* Les en-têtes de menus latéraux (Sidenav) */

.closebtn-right {
    font-size: 36px;
    text-decoration: none;
    color: var(--primary);
    line-height: 1;
}

#menu-profil {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.menu-item-right {
    margin-bottom: 20px;
}

/* Liens */
.profile-link, .logout-link {
    display: block;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.logout-link {
    color: var(--danger);
    text-align: center;
    padding: 10px;
    border: 2px solid var(--danger);
    border-radius: 10px;
    margin-top: 20px;
}

/* Boutons de Punch */
.punch-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arrival { background-color: var(--success); }
.departure { background-color: var(--primary); }

.section-divider-right {
    height: 1px;
    background: #eee;
    margin: 20px 0;
    list-style: none;
}

/* Overlay */
.overlay-right {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1999;
    backdrop-filter: blur(2px);
}


/* STYLE PAGE ACCESS */

.logo-area {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-icons img {
    width: 35px;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-icons img:hover {
    transform: scale(1.1);
}

/* Card Style for Login Form */
.login-card {
    background: var(--white);
    padding: 20px 20px; /*40px 30px;*/
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.labelhead {
    font-size: 1.4rem; /*2.2rem; */ /* Titre plus imposant */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px; /*30px;*/
    /*text-align: center;*/
}
.labelsubhead {
    font-size: 1.0rem; /*2.2rem; */ /* Titre plus imposant */
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px; /*30px;*/
    /*text-align: center;*/
}

/* --- FORMULAIRES --- */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

input[type="email"], 
input[type="password"],
input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 10px; /*16px*//* Plus d'espace interne pour cliquer facilement */
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1.1rem; /* Texte saisi plus grand */
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(114, 158, 191, 0.1);
}

.errormsg {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/*--- ICONES ACTION ---*/
.actions {
    display: flex;
    align-items: center;
    justify-content: left;/* Aligne horizontalement (optionnel) */
    gap: 10px;
    margin-top: 10px;
}

.actions img {
    width: 20px;
    height: 20px;
    transition: opacity 0.2s;
}

.actions img:hover {
    opacity: 0.7;
}

input[type="submit"], 
input[type="reset"],
.btn-punch {
    flex: 1;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    /*
    text-align: center;
    text-decoration: none;
    */
}

/*.btn-punch:active { transform: scale(0.98); }*/

input[type="submit"] {
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(114, 158, 191, 0.3);
    color: white;
}

input[type="submit"]:hover { 
    background-color: #5d87a8; 
    transform: translateY(-2px); 
}

input[type="reset"] {
    background-color: #eee; /*#f2f2f2*/
    color: #666;
}

input:hover {
    opacity: 0.9;
}

/* --- LIENS ET NAVIGATION --- */
.links {
    margin-top: 30px;
    text-align: center;
}

.links a {
    display: block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.links a:hover {
    text-decoration: underline;
}

/* Fil d'ariane (Breadcrumbs) */
.breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 10px; /*25*/
    color: #888;
}

.breadcrumb a { 
    color: var(--primary); 
    font-weight: 700;
    text-decoration: none;
}

/* --- MENUS LATERAUX (SIDENAV) --- */
.sidenav, .sidenav-right {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    background-color: var(--white);
    overflow-x: hidden;
    /*overflow-y: hidden;*/
    transition: 0.4s;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.sidenav {
    left: 0; 
}
.sidenav-right {
    right: 0;
}

.sidenav-header, .sidenav-header-right {
    background-color: var(--accent);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*gap: 15px; right menu*/
    /*border-bottom: 1px solid var(--accent-dark); left menu*/
}

.sidenav-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary);
    /*font-weight: 700;*/
}

/* --- AJUSTEMENTS MOBILE --- */
@media (max-width: 600px) {
    body { font-size: 16px; }
    
    .header-title { font-size: 1.6rem; }
    
    .login-card {
        padding: 30px 20x;
        margin: 10px;
    }
}



/* ==========================================================================
     CORRECTIONS SPÉCIFIQUES POUR MOBILE (ONGLETS ET TABLEAUX)
     ========================================================================== */
/* ==========================================================================
     MISE A JOUR D'UN ENFANT (ONGLETS & FORMULAIRE)
     ========================================================================== */

.form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}


/* --- LE CONTENEUR DES ONGLETS --- */
.tabs {
    display: block !important; 
    width: 100% !important;
    position: relative;
    margin-top: 10px;
    white-space: nowrap; 
    font-size: 0; 
}

/* Cacher les boutons radio SANS casser le flux */
.radiotab { 
    position: absolute;
    opacity: 0;
    pointer-events: none;
    display: none; 
}

/* --- LES ONGLETS (LABELS) --- */
.labeltab {
    display: inline-flex !important; 
    vertical-align: bottom;
    align-items: center;
    justify-content: center;
    
    /*height: 40px !important;*/
    padding: 8px 15px !important;
    margin-right: 4px !important;
    
    /* MODIFICATION : On enlève le margin-bottom négatif */
    margin-bottom: 2px !important; /* Crée l'espace de 2px sous l'onglet */
    
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem; 
    border: 1px solid var(--accent-dark) !important;
    border-bottom: none !important;
    
    /* MODIFICATION : On remet la bordure partout pour l'effet "bouton détaché" */
    border-radius: 10px 10px 0 0 !important; 
    
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

/* --- L'ONGLET SELECTIONNÉ --- */
.radiotab:checked + .labeltab {
    background: var(--primary) !important; /* On change la couleur pour bien voir la sélection */
    color: white !important;
    /*border-color: var(--primary) !important;*/
    border: 1px solid var(--primary) !important;
    margin-bottom: -2px !important;
    /* 1. Il devient plus haut que les autres */
    height: 28px !important; 
    font-size: 1rem; /* On peut même grossir un peu le texte */
    padding-top: 10px;
    /*padding-bottom: 16px;*/
    /*border-top: 10px solid var(--primary) !important;*/
    /*border-bottom: none !important;*/
    /* On garde le margin-bottom à 2px ici aussi */
}

/* --- LE CONTENU --- */
.tab-content {
    display: none; 
    white-space: normal; 
    width: 100% !important;
    box-sizing: border-box;
    border: 1px solid var(--primary) !important;
    background: var(--white) !important;
    padding: 10px !important;
    
    /* MODIFICATION : On remet un arrondi complet en haut */
    border-radius: 0 15px 15px 15px !important; 
    
    clear: both !important; 
    position: relative;
    z-index: 2;
}

/* --- AFFICHAGE DU CONTENU --- */
#tab-1:checked ~ #content-1,
#tab-2:checked ~ #content-2,
#tab-3:checked ~ #content-3,
#tab-4:checked ~ #content-4 {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ELEMENTS DE FORMULAIRE DANS LES TABS --- */
.tab-content table {
    width: 100%;
    border-collapse: collapse;
}

.tab-content th {
    background: transparent;
    color: var(--primary);
    width: 35%;
    font-weight: 700;
    padding: 10px 5px;
}

.tab-content td {
    padding: 10px 5px;
    border: none;
}

.tabfoot {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================================
     SECTION BUREAU / TABLETTE : À partir de 601px
     ============================================================ */
@media (min-width: 401px) {
    .main-container {
        padding: 0 10px;    /* Plus d'espace sur les côtés sur grand écran */
    }

    .sub-container {
        display: flex;
        justify-content: center; /* Aligne horizontalement */
        /*align-items: center;*/     /* Aligne verticalement */
        /*min-height: 100vh;*/
    }
}

/* --- ADAPTATION MOBILE (MEDIA QUERIES UNIFIÉES) --- */
@media (max-width: 400px) {
    header {
        min-height: 40px;
    }

    .container {
        padding: 0px;
    }

    .main-container {
        padding: 0 10px;
    }
    
    .table-container table {
        margin-top: 10px;
    }

    .table-container th {
        padding: 7px;
        font-weight: 600;
        font-size: 1.0rem;
    }

    .table-container td {
        font-size: 0.9rem;
        padding: 7px;
    }

    /* Formulaire en mode vertical */
    .tab-content th, 
    .tab-content td {
        display: block;
        width: 100% !important;
        text-align: left;
        box-sizing: border-box;
    }

    .tab-content th {
        padding-top: 15px;
        padding-bottom: 5px;
    }

    /* Hauteur des champs pour le tactile */
    input[type="text"], 
    input[type="date"], 
    select {
        height: 48px !important;
        font-size: 1rem !important;
    }

    /* Nettoyage des onglets sur mobile */
    .labeltab {
        padding: 8px 12px !important; /* 8px 14px */
        font-size: 0.85rem;
    }

    .tabfoot {
        flex-direction: column-reverse; /* Bouton principal en haut */
    }

    .tabfoot input {
        width: 100%;
        height: 50px;
    }

    /* Barre de défilement discrète pour les onglets */
    .tabs::-webkit-scrollbar {
        height: 3px;
    }
    .tabs::-webkit-scrollbar-thumb {
        background: var(--accent-dark);
        border-radius: 10px;
    }
}

/** PAGE CONTENER MESSAGE **/
/* contenner-page */
.contenner-message-box {
    display: none;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    z-index: 0;
    padding: 40px;
    background-color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    color: #000000;
    border-radius: 10px;
    box-shadow: 6px 6px 10px rgba(0, 0, 0, 1);
    max-height: 600px;
}
.contenner-message-box input {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    color: #000000;
}
.contenner-message-box > img {
	position: absolute;
    top:10px;
    right:10px;
    color: #ff0000;
}


/****************************************/
/****************************************/
/******** EVALUATION DES ENFANTS ********/
/****************************************/

@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);

/* --- LE MOTEUR CSS : FLEXBOX INVERSÉ --- */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* Les enfants sont affichés de droite à gauche */
    justify-content: center;
    /*justify-content: space-around;*/
    gap: 5px;
}

.star-rating input { 
    display: none;    /* Cache les boutons radio */
}

/* Style par défaut de l'étoile (Vide/Grise) */
.star-rating label {
    font-size: 3rem; /* Grosse taille pour le tactile */
    color: #ddd;     /* Gris clair */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* L'icône de l'étoile (via FontAwesome) */
.star-rating label::before {
    content: "\f005"; /* Code FontAwesome pour une étoile pleine */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* --- LA MAGIE DES SÉLECTEURS --- */

/* 1. EFFET AU SURVOL (Hover) */
/* Colorie l'étoile survolée ET toutes celles qui la précèdent visuellement */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f1c40f; /* Jaune doré */
    transform: scale(1.1);
}

/* 2. ÉTAT SÉLECTIONNÉ (Checked) */
/* C'est ICI qu'on utilise le sélecteur ~ */
/* Colorie toutes les étoiles qui suivent le bouton radio coché dans le code HTML */
/* Mais grâce au 'row-reverse', elles apparaissent comme PRÉCÉDANT l'étoile cliquée visuellement. */
.star-rating input:checked ~ label,
.star-rating input:checked + label {
    color: #f39c12; /* Orange doré (plus sombre pour la sélection) */
}

.star-rating > .checked-star,
.star-rating > .checked-star ~ label { 
    color: #f39c12; 
}

/* --- MODE AFFICHAGE SEUL (show-only via PHP) --- */
.show-only label {
    cursor: default; /* Désactive le pointeur de clic */
}

.show-only label:hover,
.show-only label:hover ~ label {
    pointer-events: none;
}

.sub-mood {
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.sub-mood input {
    display:none;
}
.sub-mood label {
    display: inline-block;
    width: 95px;
    height: 95px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
}
.show-only label {
    cursor: default;
}

.sub-mood #label-mood-smile {
    background-image: url('/images/icons/mood_smile.png');
}
.sub-mood #label-mood-happy {
    background-image: url('/images/icons/mood_happy.png');
}
.sub-mood #label-mood-sad {
    background-image: url('/images/icons/mood_sad.png');
}
.sub-mood #label-mood-cry {
    background-image: url('/images/icons/mood_cry.png');
}
.sub-mood #label-mood-sik {
    background-image: url('/images/icons/mood_sik.png');
}

.sub-mood #label-mood-smile-gry {
    background-image: url('/images/icons/mood_smile_gry.png');
}
.sub-mood #label-mood-happy-gry {
    background-image: url('/images/icons/mood_happy_gry.png');
}
.sub-mood #label-mood-sad-gry {
    background-image: url('/images/icons/mood_sad_gry.png');
}
.sub-mood #label-mood-cry-gry {
    background-image: url('/images/icons/mood_cry.png');
}
.sub-mood #label-mood-sik-gry {
    background-image: url('/images/icons/mood_sik.png');
}

.sub-mood > input:checked + #label-mood-smile,
.sub-mood #label-mood-smile:hover,
.sub-mood > #label-mood-smile-big {
    background-image: url('/images/icons/mood_smile_big.png');
}
.sub-mood > input:checked + #label-mood-happy,
.sub-mood #label-mood-happy:hover,
.sub-mood > #label-mood-happy-big {
    background-image: url('/images/icons/mood_happy_big.png');
}
.sub-mood > input:checked + #label-mood-sad,
.sub-mood #label-mood-sad:hover,
.sub-mood > #label-mood-sad-big {
    background-image: url('/images/icons/mood_sad_big.png');
}
.sub-mood > input:checked + #label-mood-cry,
.sub-mood #label-mood-cry:hover,
.sub-mood > #label-mood-cry-big {
    background-image: url('/images/icons/mood_cry_big.png');
}
.sub-mood > input:checked + #label-mood-sik,
.sub-mood #label-mood-sik:hover,
.sub-mood > #label-mood-sik-big {
    background-image: url('/images/icons/mood_sik_big.png');
}

.sub-diapers {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    justify-content: space-around;
    gap: 10px;
    margin: 10px 0;
    border: none;
}

.sub-diapers input {
    display: none;
}

.sub-diapers label {
    width: 65px;
    height: 65px;
    cursor: pointer;
    background-image: url('/images/icons/diapers.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* Texte à l'intérieur du label */
.sub-diapers label span {
    color: #0000ff;
    font-family: 'trebuchet ms', sans-serif;
    font-size: 10pt;
    font-weight: bold;
    background: rgb(241, 196, 15, 0.4);
    padding: 2px 5px;
    border-radius: 4px;
    pointer-events: none; /* Évite les problèmes de clic sur le texte */
}

/* --- ÉTATS : SURVOL ET COCHÉ --- */

/* On change l'image et on grossit un peu le bouton */
.sub-diapers input:checked + label, 
.sub-diapers label:hover, 
.sub-diapers > .checked-diapers {
    background-image: url('/images/icons/diapers_big.png');
    transform: scale(1.1);
}

/* On change le style du texte quand sélectionné */
.sub-diapers input:checked + label > span, 
.sub-diapers label:hover > span,
.sub-diapers > .checked-diapers > span {
    color: #ff0000;
    font-size: 11pt;
    background: rgb(241, 196, 15, 0.5);
}


/* 1. Le conteneur parent */
.sub-sleep {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;     
    gap: 20px;           
    width: 100%;
    padding: 10px 0;
}

/* 2. Les blocs enfants */
.sub-sleep > div {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap;     
    align-items: center; 
    gap: 8px;            
    
    /* CORRECTION : Le bloc lui-même ne prend que la place de son contenu */
    width: max-content;  
    flex: 0 0 auto;      /* Empêche le bloc de grandir ou de rétrécir anormalement */
}

/* 3. CORRECTION ACCENTUÉE : Pour que les éléments internes (label, select) ne s'étirent pas */
.sub-sleep > div > * {
    width: auto;         /* Force la largeur automatique selon le texte/options */
    flex: 0 1 auto;      /* Ne prend que la place nécessaire, pas de jaloux */
}

/* 4. Le span d'erreur reste en dessous si activé */
.sub-sleep > div .errormsg {
    width: 100%;         
    color: #dc2626;
    font-size: 0.85rem;
}

/* Conteneur principal propre */
.sub-note,
.sub-sleep > div {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    padding: 10px 0;
    width: 100%;
    height: auto !important; /* On annule les 95px qui écrasent le reste */
    margin: 0 !important;
}

/* On s'assure que les divs enfants ne bloquent pas le clic */
.sub-note > div {
    /*flex: 1 1 calc(33.33% - 10px);*/
    flex: 1 1 auto; /* Permet au bouton de s'ajuster à la taille du texte */
    min-width: 180px;
    height: auto;
    position: relative; /* Pour que l'input reste lié au label */
}

/* Cache l'input proprement pour ne pas gêner le clic */
.sub-note input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Le Label : C'est lui qui reçoit le clic */
.sub-note label {
    white-space: nowrap;         /* Empeche le texte de passer à la ligne */
    overflow: hidden;            /* Sécurité : cache ce qui dépasse si vraiment trop petit */
    text-overflow: ellipsis;     /* Ajoute "..." si le texte est coupé sur un très petit écran */
    display: inline-flex;        /* Aligne bien le texte horizontalement */
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    min-height: 50px;    /* Hauteur minimale confortable pour le doigt */
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2 !important; /* On annule le 95px hérité */
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

/* --- ÉTAT COCHÉ --- */
.sub-note input:checked + label,
.sub-note > .checked-note > label,
.sub-note label:hover {
    background-color: #e8f4fd;
    border-color: #3498db;
    color: #2980b9;
    box-shadow: inset 0 0 5px rgba(52, 152, 219, 0.2);
}

/* Mobile : Un bouton par ligne si l'écran est petit */
@media (max-width: 480px) {
    .sub-note > div {
        flex: 1 1 100%;
    }
}

.ingridian {
    display: flex;             /* On utilise flex pour occuper toute la largeur */
    justify-content: space-between; 
    align-items: center;
    
    /* Dimensions et Espacement */
    width: 100%;
    height: 24px;                /* Un peu plus haut pour une meilleure lisibilité */
    padding: 0 10px;             /* Espace intérieur pour que le texte ne colle pas aux bords */
    margin-top: 8px;
    box-sizing: border-box;    /* Pour que le padding ne fasse pas déborder le 100% */
    
    /* Design de la barre */
    background: linear-gradient(to right, #f8f9fa, #f1c40f); 
    border: 1px solid #e0e0e0;
    border-radius: 12px;         /* Coins arrondis style "pilule" */
    
    /* Typographie */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase; /* Donne un look plus "label" */
    letter-spacing: 0.5px;
}

.ingridian .first {
    color: #9e9e9e;            /* Gris neutre pour le "Faible" */
}

.ingridian .last {
    color: #ffffff;            /* Blanc, mais sur un fond jaune plus prononcé au bout */
    text-shadow: 0px 1px 2px rgba(0,0,0,0.2); /* Ombre légère pour lire le blanc sur le jaune */
}

.table-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-container > div {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    border-radius: 15px;
    padding: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #729EBF/*8d8a8a*/;
    background: #f1f8fd; /*fcf6e9*/
}

.table-container > div > div {
    flex: 1 1 100%;        /* Par défaut : prend toute la largeur (Mobile) */
    background: #ffffff;
    padding: 5px;
    border-radius: 0 0 15px 15px;
}

.eval-value,
.eval-label {
    flex: 1 1 100%;        /* Par défaut : prend toute la largeur (Mobile) */
    display: flex;
    align-items: center;     /* Centre les emojis/étoiles */
    justify-content: space-around;
    gap: 20px;
}

.eval-label {
    min-width:300px;
    background: #f1f8fd !important;
}

.eval-label img {
    height: 100px;
}

/* Le conteneur ne doit pas avoir de bordures ou de fonds imposés ici */
.mood-comment {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Style spécifique pour la ligne des destinataires (papa/mama) */
.mood-comment > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Pour mobile */
    justify-content: space-around;
}

/* Cache l'input checkbox */
.mood-comment input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Style des boutons papa / mama */
.mood-comment label {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    min-height: 25px;
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 20px; /* Plus arrondi pour le style "badge" */
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: auto; /* IMPORTANT : pour ne pas prendre 100% ici */
}

/* État coché pour papa/mama */
.mood-comment input:checked + label {
    background-color: #e8f4fd;
    border-color: #3498db;
    color: #2980b9;
}

/* Style du Textarea */
.mood-comment textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #ddd; /* Gris neutre par défaut */
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
    margin-bottom: 15px;
}

/* Focus sur le textarea */
.mood-comment textarea:focus {
    outline: none;
    border-color: #3498db; /* Bleu comme le reste de ton app */
    background-color: #fff;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

/* --- LA MAGIE DU MOBILE --- */
@media (min-width: 401px) {
    .table-container > div > div {
    flex: 1 1 calc(50% - 20px); /* Sur tablette : 2 par ligne */
    }
}

/* --- LA MAGIE DU MOBILE --- */
@media (max-width: 400px) {
    .eval-label img {
    height: 65px;
    }
}

/* --- Module de navigation --- */
.pagination-container {
    display: flex; 
    width: 100%;     
    box-sizing: border-box; 
    justify-content: center; 
    align-items: center;
    
    background-color: #f1f5f9; 
    padding: 15px 18px;        
    margin-top: 15px;
    border-radius: 10px; 
    border: 1px solid #cbd5e1; 
    font-family: system-ui, -apple-system, sans-serif;
}

/* Conteneur interne des éléments */
.pagination-buttons {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    gap: 12px; 
}

/* Boutons de pagination parfaitement CIRCULAIRES et alignés en hauteur */
.btn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Dimensions identiques pour garantir le cercle parfait */
    width: 42px;    
    height: 42px;   
    flex-shrink: 0; /* Empêche le bouton de se déformer */
    border-radius: 50%; /* Force la forme circulaire */
    
    background-color: #ffffff;
    border: 1px solid #94a3b8; 
    color: #334155; 
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Effet au survol */
.btn-pagination:not([disabled]):hover {
    background-color: #1d4ed8; 
    color: #ffffff;            
    border-color: #1d4ed8;
    transform: scale(1.05); 
}

/* État désactivé */
.btn-pagination:disabled {
    background-color: #e2e8f0;
    color: #94a3b8; 
    border-color: #cbd5e1;
    cursor: not-allowed;
}

/* Flèches à l'intérieur des cercles */
.arrow-text {
    font-size: 24px; 
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    transform: translateY(-2px); /* Centre verticalement le symbole de la flèche dans le cercle */
}

/* Carré à l'intérieur des cercles */
.square-text {
    /* Taille idéale pour que le carré ne colle pas aux bords du cercle de 42px */
    font-size: 10px;
    
    /* Supprime les comportements de texte gras qui pourraient déformer le carré selon le navigateur */
    font-weight: normal; 
    line-height: 1;
    display: inline-block;
    
    /* Ajustement précis pour centrer le carré au pixel près dans un bouton circulaire */
    transform: translateY(0px); 
}

/* Zone de date alignée au millimètre près sur la hauteur des boutons */
.pagination-date {
    font-size: 15px; 
    font-weight: 600;
    color: #1e293b; 
    background-color: #ffffff;
    padding: 0 16px; /* Retrait du padding top/bottom pour laisser le height gérer l'alignement */
    
    height: 42px; /* Exactement la même hauteur que les boutons circulaires */
    box-sizing: border-box;
    
    border-radius: 20px; /* Forme de pilule pour trancher avec les cercles */
    border: 1px solid #94a3b8; 
    white-space: nowrap; 
}

/* --- LA MAGIE DU MOBILE --- */
@media (max-width: 400px) {
    .pagination-container {
        padding: 10px 10px;        
    }
    .pagination-buttons {
        gap: 4px; 
    }
    .btn-pagination {
        width: 36px;    
        height: 36px;   
    }
    .pagination-date {
        font-size: 12px; 
    }
    .pagination-date {
        font-size: 12px; 
        height: 36px; 
        padding: 0 0px; 
    }

    /* Ciblage spécifique de l'input date dans votre module */
    .pagination-date input[type="date"] {
        /* Réduit le padding : 0 en haut/bas, 8px à gauche/droite */
        padding: 0 8px; 
        
        /* Supprime les bordures par défaut du navigateur si nécessaire */
        border: none;
        background: transparent;
        
        /* Force l'input à prendre toute la hauteur disponible du parent (42px) */
        height: 100%; 
        box-sizing: border-box;
        
        /* Optionnel : Ajuste la taille du texte à l'intérieur */
        font-size: 14px;
        font-family: inherit;
    }

    /* Version globale si votre input n'est pas dans .pagination-date */
    input[type="date"] {
        padding: 2px 6px; /* Ajustement très serré */
        box-sizing: border-box;
    }
    /* Nettoie les marges internes de l'icône du calendrier */
    input[type="date"]::-webkit-calendar-picker-indicator {
        margin: 0;
        padding: 0;
        cursor: pointer;
    }
}

/*************************************/
/** BARRE DE PROGRESS Upload files ***/
/*************************************/
/* Le conteneur gris en arrière-plan */
#progress {
    width: 100%;           /* Prend toute la largeur disponible de son parent */
    max-width: 400px;      /* Limite la largeur maximale sur grand écran si désiré */
    background-color: #f3f3f3;
    border-radius: 4px;
    overflow: hidden;
}

/* La barre de couleur qui avance */
#progress-bar {
    width: 0%;             /* Démarre à 0% grâce au script */
    height: 20px;
    background-color: #4caf50; /* Vert */
    transition: width 0.1s ease; /* Rend l'animation fluide visuellement */
}


/*********************************************************/
/************   Boite de message d'erreur   **************/
/*********************************************************/
.error-box {    
    position: absolute; /* relative; Indispensable pour positionner la flèche correctement */
    left: 0;            /* Aligné pile sur le bord gauche de l'élément */
    top: 100%;          /* Placé exactement sous l'élément */
    margin-top: 8px;    /* Espace pour laisser respirer la flèche */
    z-index: 1000;      /* S'affiche par-dessus le reste sans rien déplacer */
    display: inline-block;
    
    /* Couleurs & Bordures */
    background-color: #FFF5F5; /* Fond rose/rouge très clair */
    border: 1px solid #FEB2B2;    /* Bordures douces */
    border-radius: 6px;          /* Arrondis plus modernes */
    
    /* Espacement & Typo */
    padding: 6px 12px;           /* Plus d'espace pour respirer */
    color: #C53030;              /* Texte rouge foncé lisible et accessible */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;            /* Rend le texte un peu plus visible */
    
    /* Ombre légère pour donner du relief */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}



/* La petite flèche vers le haut */
.error-box::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 15px; /* Décalée un peu plus du bord pour l'esthétique */
    border-width: 6px;
    border-style: solid;
    /* La flèche prend la couleur de la bordure du fond */
    border-color: transparent transparent #FFF5F5 transparent; 
}

/* Optionnel : Une deuxième flèche pour simuler la bordure sur la flèche */
.error-box::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 15px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent #FEB2B2 transparent;
    margin-left: -1px; /* Aligne parfaitement avec l'autre flèche */
}


/*********************************************************/
/************   Required champ   *************************/
/*********************************************************/
label[required]::after, th[required]::after, span[required]::after {
	content: '* ';
    color: red;
	font-family: 'trebuchet ms', geneva;
	font-size: 18px;
}


/*********************************************************/
/************   info-bulle   *****************************/
/*********************************************************/
[info-bulle]::after {
	/*content: "NOTE: Le mot de passe doit être de 8 caractères minimum et contenir au moins une lettre majuscule, une lettre minuscule, un chiffre et un caractère special: @-+#...";*/
    content: attr(info-bulle);
    position: absolute;
    bottom: 15px; 
    left: 0;
    visibility: hidden;
    opacity: 0;
    z-index: 1000;
    background-color: #5DFF9F;
    box-shadow: 5px 5px 2px #aaa;
    border: 1px solid grey;
    border-radius: 5px;
    padding: 10px;        /* Un poil plus de padding pour la liste */
    width: 250px;         /* Légèrement élargi pour que la liste respire */
    font-size: 12px;
    color: #030805;
    font-weight: normal;

    /* --- LES DEUX LIGNES CLÉS POUR LE RETOUR À LA LIGNE --- */
    white-space: pre-wrap; /* Force le respect des sauts de ligne du HTML */
    text-align: left;     /* Remplacer 'justify' par 'left' pour un format liste propre */

    transition: opacity 0.2s ease, visibility 0.2s; 
}
[info-bulle]:hover:after {
	opacity: 1;
	transition: all 0.1s ease 0.5s;
	visibility: visible;
}
[info-bulle] {
	position: relative;
}
span[info-bulle] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #e2e8f0;
    color: #4a5568;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    cursor: help;;

    /* --- SOLUTIONS SANS CONTENEUR COMMUN --- */
    vertical-align: middle;  /* Aligne le rond sur le milieu vertical du texte du label */
    margin-left: 6px;        /* Crée l'espace manquant avec le label juste avant */
}
/* SI le label a aussi une info-bulle, on pousse l'info-bulle après l'étoile */
.form-group:has(:required) label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.form-group:has(:required) label span[info-bulle] {
    order: 2; /* Force l'info-bulle à se mettre tout à la fin, après l'étoile ::after */
}


/*********************************************************/
/************   l'œil du password   **********************/
/*********************************************************/
/* Cible l'input UNIQUEMENT s'il est immédiatement suivi (+ ) par l'œil */
.form-group:has(input + .password-toggle-eye) input {
    position: relative;
    padding-right: 35px; /* On laisse de la place pour l'œil */
    vertical-align: middle;
    box-sizing: border-box;
}
/* Vos styles pour l'œil (avec la marge négative pour entrer dans l'input) */
.password-toggle-eye {
    display: inline-block;
    position: relative;
    margin-left: -35px; /* Fait entrer l'œil dans l'input */
    vertical-align: middle;

    z-index: 10;
    font-size: 25px;
    color: #718096;
    cursor: pointer;
    user-select: none; /* Évite la sélection bleue au double-clic */
    text-decoration: none;
    transition: text-decoration 0.1s ease;

}
/* État lorsque le mot de passe est visible (œil barré) */
.password-toggle-eye.is-visible {
    text-decoration: line-through;
}


/***************************************************/
/************   Check image   **********************/
/***************************************************/
/* Le conteneur s'adapte à l'image */
.image-validee {
  position: relative;
  display: inline-block;
}

.image-validee img {
  display: block;
  /*max-width: 100%;
  height: auto;*/
}

/* Le symbole check pur centré */
.image-validee .check-vert {
  position: absolute;
  
  /* 1. On place le coin supérieur gauche du check pile au centre */
  top: 40%;
  left: 75%;
  
  /* 2. On décale le check vers le haut et la gauche de la moitié de sa propre taille */
  /* C'est ce qui garantit un centrage mathématiquement parfait */
  transform: translate(-40%, -75%);
  
  z-index: 5;
  
  /* Le style du symbole */
  color: #2ecc71;     /* Vert éclatant */
  font-size: 20px;    /* Plus grand puisqu'il est au centre */
  font-weight: bold;
  
  /* Ombre sur le texte pour qu'il reste visible sur n'importe quel fond d'image */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); 
}


/* Le compte des messages centré */
.image-validee .count-message {
  position: absolute;
  
  /* 1. On place le coin supérieur gauche du check pile au centre */
  top: 20%;
  left: 75%;
  
  /* 2. On décale le check vers le haut et la gauche de la moitié de sa propre taille */
  /* C'est ce qui garantit un centrage mathématiquement parfait */
  transform: translate(-20%, -75%);
  
  z-index: 5;
  
  /* Le style du symbole */
  color: #d12626;     /* Vert éclatant */
  font-size: 14px;    /* Plus grand puisqu'il est au centre */
  font-weight: bold;
  
  /* Ombre sur le texte pour qu'il reste visible sur n'importe quel fond d'image */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); 
}