/* ==========================================
   ELEMENTS SPECIFIQUES ET COMPOSANTS
   ========================================== */

#prendre_photo_input,
#photo_identite_input {
    display: none;
}

.actionDocument {
    align-items: center;
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    margin-top: .3em;
    padding: 0;
}

.alerte {
    background-color: var(--orange-fonce);
    border-radius: 10px;
    margin: auto;
    padding: 0 10px 1px 10px;
    width: fit-content;
}

.barreStockage {
    background: var(--blanc);
    border: 1px solid var(--bleu-fonce);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    width: 100%;
}

.blockNomDocument {
    margin-bottom: 10px;
}

.blockNomDocument img {
    height: 30px;
    width: 30px;
}

.boutonAction {
    background: #1e2f41;
    border-radius: 4px;
    color: #FFF;
    padding: 4px 8px;
    text-decoration: none;
    white-space: nowrap;
}

.boutonAction:hover {
    background: #ffc107;
    color: #1e2f41;
    transition: 0.3s;
}

.boutonAjoutIdentite {
    display: inline-block;
    margin-top: 10px;
}

.boutonPrendrePhotoMobile {
    display: block;
    margin-top: 10px 0;
    text-align: center;
}

.boutonVersionPc {
    display: none;
}

.btn-duplicate-next {
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 2px 4px;
}

.carte-presence-jour {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    max-width: 100% !important;
    padding: 8px 10px !important;
    width: 100% !important;
}

.champs-horaires {
    align-items: center;
    display: flex;
    gap: 6px;
}

.choixBoutonRetour {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.cocheVerte {
    display: none;
}

.conteneur-presences-jours {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.corps-presence-horaires {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 6px;
}

.date-jour {
    color: var(--bleu-fonce);
    font-size: 0.8rem;
    opacity: 0.8;
}

.documents_enfant,
.fiche_enfant_info,
.fiche_maman_info,
.fiche_papa_info {
    border-radius: 5px;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
    padding: .5em;
    text-align: left;
    width: 100%;
}

.documents_enfant p,
.fiche_enfant_info p,
.fiche_maman_info p,
.fiche_papa_info p {
    margin: 0;
}

.droiteEspaceParent {
    width: 100%;
}

.ecranMobile {
    display: block;
}

.ecranPc {
    display: none;
}

.entete-presence-jour {
    align-items: center;
    border-bottom: 1px solid rgba(30, 47, 65, 0.2);
    display: flex;
    justify-content: space-between;
    padding-bottom: 4px;
}

.fiche_enfant {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto;
}

.fiche_enfant_info img {
    border-radius: 5px;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
    width: 50%;
}

.filtres-presence {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto 15px auto;
    width: 100%;
}

.filtres-presence .formulaireItem {
    width: 100%;
}

.formulaire {
    box-sizing: border-box;
    margin: 0 auto 12px auto !important;
    max-width: 100% !important;
    padding: 8px !important;
    width: 100% !important;
    border-radius: 5px;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
}

.gaucheEspaceParent {
    width: 100%;
}

.grille-medias {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
}

.headerEcran {
    display: none;
}

.headerMobile {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    margin: auto;
}

.img-fleche-bas {
    display: block;
    height: 18px;
    width: auto;
}

.imgEtAction {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin-bottom: .3em;
    width: fit-content;
}

.input-time-compact {
    box-sizing: border-box !important;
    font-size: 0.85rem !important;
    max-width: 100% !important;
    padding: 4px 2px !important;
    text-align: center !important;
    width: 100% !important;
}

.input-time-compact::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 0;
    width: 14px;
}

.italic {
    color: #666;
    font-style: italic;
}

.jaugeStockage {
    border-radius: 5px;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    width: 90%;
    min-width: 300px;
}

.label-horaire {
    font-size: 0.85rem;
    font-weight: bold;
    text-align: left;
    width: 55px;
}

.lien a:hover {
    color: var(--orange-fonce);
    transition: .3s;
}

.ligne-horaire-item {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.menuGalerieMedias {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    justify-content: center;
}

.nom-jour {
    font-size: 0.95rem;
    font-weight: bold;
}

.ombreBouton {
    box-shadow: 3px 3px 5px var(--bleu-fonce);
}

.orangeFonce {
    color: var(--orange-fonce);
}

.selecteurEspaceParent {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: fit-content;
    justify-content: center;
}

.selectionMedias {
    align-items: center;
    border-radius: 5px;
    box-shadow: 5px 5px 5px var(--bleu-fonce);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding: 10px;
    width: 90%;
}

.succes {
    background-color: var(--vert);
    border-radius: 10px;
    margin: auto;
    padding: 0 10px 1px 10px;
    width: fit-content;
}

.supprimeImg {
    height: fit-content;
    margin: auto;
    margin-top: 1em;
    text-align: center;
}

.supprimeImg img {
    border-left: 1px solid var(--bleu-fonce);
    border-radius: 10px;
    border-top: 1px solid var(--bleu-fonce);
    box-shadow: 3px 3px 10px var(--bleu-fonce);
    margin-top: 1em;
    max-height: 30vh;
    width: auto;
}

.texteCentrer,
select {
    text-align: center;
    text-align-last: center;
}

.titre-presence-jour {
    align-items: baseline;
    display: flex;
    gap: 6px;
}

.vignette {
    height: 250px;
    min-height: 150px;
    object-fit: cover;
    opacity: 0;
    position: relative;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    will-change: transform, opacity;
    width: 100%;
    z-index: 2;
}

.vignette-barre-aucun {
    align-items: center;
    background-color: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 4px;
    color: #aaa;
    display: flex;
    flex: 1;
    font-size: 0.75rem;
    height: 26px;
    justify-content: center;
}

.vignette-barre-colonne {
    align-items: center;
    border-right: 1px dashed #e5e5e5;
    color: #ddd;
    display: flex;
    flex: 1;
    font-size: 0.65rem;
    justify-content: center;
    user-select: none;
}

.vignette-barre-conteneur {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    flex: 1;
    height: 26px;
    overflow: hidden;
    position: relative;
}

.vignette-barre-grille {
    display: flex;
    height: 100%;
    position: absolute;
    width: 100%;
}

.vignette-barre-plage {
    align-items: center;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    font-size: 0.75rem;
    font-weight: bold;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    padding: 0 4px;
    position: absolute;
    white-space: nowrap;
}

.vignette-container {
    align-items: center;
    background-color: var(--bleu-clair);
    border-radius: 8px;
    box-shadow: 3px 3px 10px var(--bleu-fonce);
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.vignette-container:hover .vignette {
    filter: brightness(50%);
}

.vignette-container:hover .vignette.is-loaded {
    transform: scale(1.25);
}

.vignette-container:hover .vignette-menu {
    opacity: 1;
    pointer-events: auto; /* Active les clics sur les boutons (Plein écran, Télécharger, Supprimer) */
}

.vignette-item {
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    text-align: center;
}

.vignette-item .vignette,
.vignette-item .dateMedia,
.vignette-item .prenomMedia {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.vignette-item.is-loaded .vignette,
.vignette-item.is-loaded .dateMedia,
.vignette-item.is-loaded .prenomMedia {
    opacity: 1;
}

.vignette-menu {
    background: rgba(0, 0, 0, .6);
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    left: 0;
    opacity: 0;
    padding: 8px;
    position: absolute;
    right: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.vignette-spinner {
    animation: spin 0.8s linear infinite;
    border: 3px solid var(--bleu-fonce);
    border-radius: 50%;
    border-top-color: var(--orange-clair);
    height: 140px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    width: 140px;
    z-index: 1;
}

.vignette.is-loaded {
    opacity: 1;
}

.vignette:hover {
    cursor: pointer;
    transform: scale(1.25);
    opacity: 0.5;
}

.visuel-barre-aucun {
    align-items: center;
    background-color: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 4px;
    color: #aaa;
    display: flex;
    flex: 1;
    font-size: 0.75rem;
    height: 26px;
    justify-content: center;
}

.visuel-barre-colonne {
    align-items: center;
    border-right: 1px dashed #e5e5e5;
    color: #ddd;
    display: flex;
    flex: 1;
    font-size: 0.65rem;
    justify-content: center;
    user-select: none;
}

.visuel-barre-conteneur {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    flex: 1;
    height: 26px;
    overflow: hidden;
    position: relative;
}

.visuel-barre-grille {
    display: flex;
    height: 100%;
    position: absolute;
    width: 100%;
}

.visuel-barre-plage {
    align-items: center;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    font-size: 0.75rem;
    font-weight: bold;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    padding: 0 4px;
    position: absolute;
    white-space: nowrap;
}

.visuel-creneau-label {
    color: #444;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: right;
    width: 48px;
}

.visuel-creneau-ligne {
    align-items: center;
    display: flex;
    gap: 6px;
    width: 100%;
}

.visuel-creneaux-zone {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.visuel-jour-bloc {
    border-bottom: 1px dashed #eee;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 6px;
    width: 100%;
}

.visuel-jour-date {
    color: #666;
    font-size: 0.78rem;
}

.visuel-jour-entete {
    align-items: baseline;
    display: flex;
    gap: 6px;
    padding-left: 2px;
}

.visuel-jour-nom {
    color: var(--bleu-fonce);
    font-size: 0.9rem;
    font-weight: bold;
}

.visuel-planning-conteneur {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
    width: 100%;
}

/* ==========================================
   MEDIA QUERIES
   ========================================== */

@media (min-width: 768px) {
    .boutonAjoutIdentite,
    .boutonPrendrePhotoMobile,
    .headerMobile {
        display: none;
    }

    .boutonVersionPc {
        display: inline-block;
        margin: auto;
        width: 80%;
    }

    .carte-presence-jour {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        max-width: 350px !important;
    }

    .choixBoutonRetour {
        flex-direction: column;
        justify-content: center;
    }

    .conteneur-presences-jours {
        width: 75%;
        min-width: 400px;
        margin: 0 auto;
    }

    .corps-presence-horaires {
        flex: 1;
    }

    .documents_enfant,
    .fiche_enfant_info,
    .fiche_maman_info,
    .fiche_papa_info {
        width: 300px;
    }

    .droiteEspaceParent {
        width: fit-content;
    }

    .ecranMobile {
        display: none;
    }

    .ecranPc {
        display: block;
    }

    .entete-presence-jour {
        border-bottom: none;
        flex-shrink: 0;
        padding-bottom: 0;
        width: 150px;
    }

    .fiche_enfant {
        align-items: flex-start;
        justify-content: center;
        flex-direction: row;
        width: 80%;
    }

    .filtres-presence {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        min-width: 500px;
    }

    .filtres-presence .formulaireItem {
        flex: 1;
        min-width: 0;
    }
    
    .formulaire {
        margin: 0 auto !important;
        width: 50% !important;
    }

    .formulaireContact {
        margin: 0 auto;
        max-width: 50%;
    }

    .gaucheEspaceParent {
        width: 25%;
    }

    .grille-medias {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-between;
    }

    .headerEcran {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .imgEtAction :not(img) {
        display: none;
    }

    .input-time-compact {
        width: 90px !important;
    }

    .jaugeStockage {
        width: 25%;
    }

    .marginTop1em {
        margin-top: 30px;
    }

    .menuGalerieMedias {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .selecteurEspaceParent {
        align-items: center;
        flex-direction: row;
        gap: 20px;
    }

    .selectionMedias {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 0;
        width: fit-content;
    }

    .vignette {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .vignette-container {
        max-height: 350px;
        width: 100%;
    }

    .vignette-item {
        flex: 0 0 100%;
        margin: 0 auto 20px auto;
        max-width: 25%;
    }

    .visuel-creneaux-zone {
        flex: 1;
    }

    .visuel-jour-bloc {
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
    }

    .visuel-jour-entete {
        flex-direction: column;
        gap: 0;
        padding-top: 4px;
        width: 65px;
    }
}