body {
    background-image : url("/Photos/background.jpg") ;
    background-repeat : repeat ;
}

.head {
    background-color: rgba(106, 171, 208, 0.2);
    background-size : auto ;
    border-radius : 20px ;
    box-shadow : 0 4px 10px 4px rgba(0, 0, 0, 0.2) ;
    pointer-events : all ;
}

.head .logo .texte h1 {
    font-family: "DynaPuff", sans-serif;
    text-align: center ;
    margin-top : 0px ;
    margin-bottom : 0px ;
    font-size : 41px ;
}

.head .logo p, .foot p {
    font-family : "Cause", sans-serif ;
}

.head .logo .texte p {
    font-size : 19px ;
    margin-left : 50px ;
    margin-right : 50px ;
    text-align : center ;
}

.head .logo .texte {
    display : flex ;
    flex-direction : column ;
}

.logo .image img {
    max-width : 200px ;
    max-height : 200px ;
    border-radius : 20px ;
    margin-left : 10px ;
    margin-top : 10px ;
    margin-bottom : 10px ;
}

.logo {
    display : flex ;
    align-items : center ;
    gap : 15px ;
}

.foot {
    background-color: rgba(106, 171, 208, 0.2);
    border-radius : 12px ;
    box-shadow : inset 0 4px 10px 4px rgba(0, 0, 0, 0.1) ;
    pointer-events :all ;
    display: flex;
    text-align : center ;
    gap: 250px;
}

.foot a {
    color : rgb(61, 90, 178);
}

.foot h2 {
    font-family : "Londrina Shadow", sans-serif ;
}

button {
    height : 50px ;
    width : 100px ;
    background-color :rgba(90, 175, 227, 0.4) ;
    display : block ; 
    margin : 0 auto ;
    font-family : "DynaPuff", sans-serif;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: rgb(69, 127, 215);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    width: 300px;
}

#input-mdp {
    width: 90%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(106, 171, 208, 0.2);
    background-color: rgba(106, 171, 208, 0.2);
}

#valider-mdp {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background: transparent ;
    color: white;
    border-radius: 12px;
    cursor: pointer;
}

#valider-mdp:hover {
    background: rgb(166, 162, 162) ;
}

.fermer {
    margin-top: 10px;
    padding: 8px 15px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.fermer:hover {
    background: rgb(166, 162, 162);
}

.image-container:not(.dossier) img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
}

.image-container button {        
    background: rgba(86, 167, 228, 0.5) ;
    color: black;
    border: none ;
    border-radius: 12px;
    cursor: pointer;
    width : 100px ; 
    height : 20px ;
}

#galerie {
    display : flex ; 
    gap : 10px ;
    flex-wrap: wrap;
    background: rgba(161, 159, 159, 0.1);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
    margin-top : 5px ;
}

#popup-info input[type="text"],
#popup-info input[type="date"] {
    width: 90%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 15px;
    background: #618dd9;
    outline: none;
    transition: 0.2s;
}

#popup-info input[type="text"]:focus,
#popup-info input[type="date"]:focus {
    border-color: #4da3ff;
    box-shadow: 0 0 5px rgba(77,163,255,0.4);
    background: rgb(108, 140, 200);
}

#valider-info {
    padding: 10px 20px;
    background: #4da3ff;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 10px;
    transition: 0.2s;
}

#valider-info:hover {
    background: #1c7be0;
}

#date-input, #desc-input {
    font-family : "DynaPuff", sans-serif;
}

.image-container p,
.image-container small {
    font-family: "DynaPuff", sans-serif;
    margin-bottom: 2px;
    max-width : 200px ;
}

.secondhead {
    display: flex;
    justify-content: space-between ;
    width: 100%;
    align-items: center;
    background-color: rgba(106, 171, 208, 0.2);
    box-shadow : 0 2px 8px 2px rgba(0, 0, 0, 0.2) ;
    border-radius: 12px;
}

.secondhead a {
    color: rgba(69, 127, 204, 0.7);
    font-family: "DynaPuff", sans-serif;
    padding : 5px 5px 5px 5px ;
    background-color : rgba(161, 159, 159, 0.3) ;
    box-shadow : inset 0px 2px 2px 2px rgb(0, 0, 0, 0.2) ;
    border-radius : 12px ;
}

#button {
    margin-top : 20px ; 
    margin-bottom : 20px ;
    border-radius : 12px ;
}

#changerole {
    background: rgba(86, 167, 228, 0.5) ;
    color: black;
    border: none ;
    border-radius: 12px;
    cursor: pointer;
    width : auto ; 
    height : 20px ;
    margin-bottom: 10px ;
    margin-top : 10px ;
}

.role-box {
    background: rgb(223, 215, 215);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}

#btn-parent {
    height : 50px ;
    width : 150px ;
    background-color :rgba(90, 175, 227, 0.4) ;
    display : block ; 
    margin : 0 auto ;
    font-family : "DynaPuff", sans-serif;
    box-shadow : inset 0 4px 10px 4px rgba(0, 0, 0, 0.1) ; 
}

#btn-admin {
    height : 50px ;
    width : 150px ;
    background-color :rgba(90, 175, 227, 0.4) ;
    display : block ; 
    margin : 0 auto ;
    font-family : "DynaPuff", sans-serif;
    box-shadow : inset 0 4px 10px 4px rgba(0, 0, 0, 0.1) ;
}

.role-box h2 {
    font-family : "DynaPuff", sans-serif;
}

#role-overlay {
  position: fixed;
  inset: 0;
  background: rgb(90, 175, 227);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

#popup-mdp {
  z-index: 1000000;
}

#fileInput {
    display: none;
}

.h3_doss {
    font-family : "DynaPuff", sans-serif ;
}

.h4-doss {
    font-family : "DynaPuff", sans-serif ;
    font-style : italic ;
}

.dossier-header {
    background-color: rgba(223, 215, 215, 0.5) ;
    border-radius : 12px ;
    box-shadow : inset 0px 4px 4px 4px rgba(0, 0, 0, 0.1) ;
    width : 200px ;
    text-align : center ;
}

.buttonarch {
    margin-bottom : 10px ;
}

.supbtn {
    margin-bottom : 5px ;
}

.image-container.dossier {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(161, 159, 159, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 5px;
    margin-bottom : 5px ;
}

.dossier-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-card img {
    width: 150px;
    height: auto;
    border-radius: 12px;
}

.image-container.dossier .dossier-header {
    margin-top: 10px;
    margin-left : 10px ;
}

.image-container {
    text-align : center ;
    margin-top: 5px;
    margin-bottom : 5px ;
    padding : 10px 10px 10px 10px ;
    background-color : rgba(223, 215, 215, 0.5) ;
    border-radius : 12px ;
    box-shadow : inset 0px 4px 4px 4px rgba(0, 0, 0, 0.1) ;
    
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-height : 600px ;
    max-width : 600px ;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: zoom 0.2s ease;
}

@keyframes zoom {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.lightbox img {
    transform-origin: center center;
    cursor: grab;
}

.lightbox img:active {
    cursor: grabbing;
}

.semaine-titre {
    width: 100% ;
    display: block;
    margin-top: 25px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(113, 164, 208, 0.2);
    color: white;
    border-radius: 12px;
    font-size: 1.4rem;
    text-align : center ;
    font-family : "DynaPuff", sans-serif ;
    color : black ; 
}

.image-bg {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    cursor: pointer;
}

#popup-block {
    display: none;
    position: fixed;
    top: 0;
    left : 0 ;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-family : "DynaPuff", sans-serif ;
    text-align : center ;
    background-color: rgba(255,255,255,0.5);
    z-index : 9999999 ;
}

#popup-block-close {
    border-radius: 12px ;
}

img {
    max-width: 100%;
    height: auto;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
}

@media (max-width: 600px) {

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo .image img {
        margin: 0 auto;
    }

    .head .logo .texte h1 {
        font-size: 28px;
    }

    .head .logo .texte p {
        font-size: 16px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .foot {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    #galerie {
        justify-content: center;
    }

    .image-container:not(.dossier) img {
        max-width: 150px;
        max-height: 150px;
    }

    .dossier-header {
        width: 100%;
    }

    .photo-card img {
        width: 120px;
    }

    button, #btn-parent, #btn-admin {
        width: 120px;
        height: 40px;
        font-size: 14px;
    }

    h2, h3, h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    #galerie {
        justify-content: center;
    }

    .image-container {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}
