* {
    transition: all 0.3s;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Mazaeni Regular';
    src: url('../src/mazaeniRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Adumu';
    src: url('../src/Adumu.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gagalin';
    src: url('../src/gagalin.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.gagalin {
    font-family: "Gagalin", sans-serif !important;
}

.mazaeni {
    font-family: "Mazaeni Regular", sans-serif !important;
    font-size: 1.5em;
}
    
.adumu {
    font-family: "Adumu", sans-serif !important;
}

.letterWord p {
    margin-bottom: 5px;
}

.chewy {
    font-family: "Chewy", system-ui !important;
    font-size: 1.5em;
}

html {
    font-size: 100%;
}
body {
    line-height: 1.5;
    word-break: break-word;
    margin: 0;
    color: #000;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
}
img, video, iframe {
    max-width: 100%;
}
.container {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Mazaeni Regular', sans-serif;
}

/******************************header******************************/
header {
    display: flex;
    justify-content: space-between;
    padding: 30px 80px 60px 80px;
    align-items: center; /* Centrer verticalement */
    margin-bottom: 40px;
    background-color: rgba(255, 254, 241, 0.95);
}

.logoDjakodico {
    max-width: 250px;
}

#dailyWord {
    width: 250px;
    margin-top: 30px;
    max-width: 210px;
    font-size: 0.8em;
    margin-right: 40px;
    text-align: right;
}

.homeHeader {
    padding-bottom: 0;
    padding-top: 20px;
    margin: 0px 0 80px 0;
}


#welcomeText {
    width: 50%;
    text-align: center;
    justify-content: center;
    margin: auto;
}

#welcomeText p {
    margin-bottom: 0;
}

#welcomeTextNoPc {
    display: none;
}


/******************************homepage******************************/
.homePage {
    display: flex;
}

.homeParagraph {
    margin: auto;
    text-align: center;
    width: 30%;
}

.sideDiv1 {
    position: absolute;
    left: 130px;
    width: 20%;
    max-width: 200px;
    display: flex;
    flex-wrap: wrap; 
}

.sideDivP {
    position: absolute;
    left: 130px;
    width: 20%;
    max-width: 200px;
    display: flex;
    flex-wrap: wrap; 
}

.alphabet-link {
    display: inline-block;
    width: 20%;
    margin-right: 10px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    border: solid black 1px;
    text-align: center;
}

.full-width-link {
    flex: 0 0 100%;
    background-color: #000;
    color: white;
    margin-top: 50px;
    padding: 3px;
    border-radius: 11px;
}

.sideDiv2 {
    position: absolute;
    right: 130px;
    width: 20%;
    max-width: 200px;
    text-align: center;
    font-size: 0.9em;
}

.sideDiv2 p {
    margin: 0;
}


.middleDiv {
    width: 50%;
    margin: auto;
}

#searchForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

form select {
    width: 225px;
}


.admin input, select {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    background-color: white;
}

.sideDiv2 select {
    width: 180px;
    background-color: #f7f7f7;
    border: none;
    padding: 5px 0;
}




/******************************admin******************************/
.lettersNav {
    display: flex;
    width: 90%;
    margin: auto;
    margin-bottom: 30px;
    max-width: 1100px;
    padding-left: 20px;
    flex-wrap: wrap;
}

.lettersNav .alphabet-link {
    width: 7%;
}





/******************************admin******************************/
.admin label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
    text-align: center;
}

.admin input[type="file"] {
    display: block;
    margin: 0 auto 20px auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.admin input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: auto;
    margin-top: 10px;
}




/******************************History / About******************************/

.about h1, .about h3,
.history h1, .history h3 {
    font-family: 'Adumu';
}

.about h1, .history h1 {
    margin-bottom: 30px;
    margin-top: 50px;
    text-align: center;
}
 
#sommaireHistory ul li {
    margin-bottom: 8px;
    list-style-type: none;
}

#sommaireHistory ul {
    padding: 0;
}

#sommaireHistory {
    text-align: left;
}

.history, .about {
    text-align: justify;
}







/******************************upload******************************/
.confirm-button {
    cursor: pointer;
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.cancel-button {
    cursor: pointer;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.cancel-button:hover {
    background-color: #c0392b;
}

.confirm-button:hover {
    background-color: #219653;
}




/******************************family******************************/
.family div {
    text-align: center;
    margin: 60px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.family h3 {
    margin-bottom: 10px;
    padding-top: 20px;
    text-decoration: underline;
}

.family .clickable-image {
    cursor: pointer;
}

#fullscreen-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    margin: 0;
}

#fullscreen-container img {
    max-width: 100%;
    max-height: 100%;
    width: 90%;
    height: 80%;
}







/******************************footer******************************/

footer {
    padding-bottom: 20px;
    text-align: center;
    width: 100%;
    background-color: rgba(255, 254, 241, 0.95);
    margin-top: 100px;
    opacity: 1;
}

.backgImg {
    background-image: url('../src/fond.png');
    background-repeat: repeat;
    background-size: 20%;
}

footer h5 {
    text-decoration: underline;
}

footer nav {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    width: 80%;
    margin: auto;
    padding-top: 30px;
}

footer nav div {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
}

footer nav div a {
    color: black;
    padding: 10px;
}

.secondDivReseaux {
    display: flex;
    justify-content: center;
    flex-direction: row;
}

.secondDivReseaux a {
    padding: 7px;
    font-size: 25px;
}

footer nav div p {
    padding: 10px;
    margin: 0;
}

#divCopyRights {
    font-size: 0.8em;
    border-top: 1px solid black;
    padding-top: 10px;
    width: 90%;
    margin: auto;
}

.homeFooter {
    margin-top: 360px;
}





/******************************media query******************************/

@media screen and (max-width: 1200px) {

    #fullscreen-container img {
        height: 70%;
    }

    .sideDiv1 {
        left: 80px;
    }

    .sideDiv2 {
        right: 80px;
    }

    header {
        display: flex;
        justify-content: space-between;
        padding: 40px 30px;
        align-items: center; /* Centrer verticalement */
    }
}

@media screen and (max-width: 1024px) {

    .family div {
        margin-left: 0;
        margin-right: 0;
    }

    #fullscreen-container img {
        height: 60%;
    }

    .backgImg {
        background-size: 30%;
    }
    
    .full-width-link {
        width: 46%;
    }

    .divHeaderSpace,
    .welcomeTextOnPc {
        display: none;
    }

    #welcomeTextNoPc {
        display: block;
    }

    #welcomeTextNoPc {
        width: 60%;
        text-align: center;
        justify-content: center;
        margin: auto;
        margin-top: 30px;
    }
    
    #welcomeTextNoPc p {
        margin-bottom: 0;
    }

    .sideDiv1 {
        left: 60px;
    }

    .sideDiv2 {
        right: 60px;
    }

    #welcomeText {
        width: 60%;
    }
}

@media screen and (max-width: 900px) {
    
    #fullscreen-container img {
        height: 50%;
    }

    .sideDiv1 {
        left: 40px;
    }

    .sideDiv2 {
        right: 40px;
    }
}

/***************************** MOBILE *******************************/

@media screen and (max-width: 640px) {
    
    .full-width-link {
        margin-top: 40px;
    }
    
    .homepage .middleDiv {
        order: 1;
    }

    .homePage .sideDiv1 {
        margin-bottom: 80px;
        order: 2;
    }

    .homePage .sideDiv2 {
        order: 3;
    }

    .lettersNav .alphabet-link {
        width: 40px
    }
    
    .family h3 {
        font-size: 1.5em;
    }

    #fullscreen-container img {
        height: 40%;
    }

    .backgImg {
        background-size: 40%;
    }
    
    .full-width-link {
        width: 40%;
    }
    

    .homeParagraph {
        width: 60%;
        margin-top: 40px;
    }

    footer {
        margin-top: 100px !important;
    }

    footer nav {
        flex-direction: column;
    }
    footer nav div {
        margin-bottom: 40px;
    }
    #divReseaux {
        margin-bottom: 0;
    }

    #welcomeTextNoPc {
        display: none;
    }

    #welcomeText,
    #dailyWord {
        display: none;
    }

    header a {
        margin: auto;
    }

    header, .homeHeader {
        padding-bottom: 30px;
        padding-top: 20px;
        margin: 0;
        margin-bottom: 30px;
    }

    .sideDiv1,
    .sideDiv2 {
        position: initial;
        width: 100%;
        max-width: 100%;
        margin: 0px auto;
    }
    
    #spanTrad {
        width: 120;
    }

    .sideDiv2 {
        display: flex;
        flex-direction: column;
    }

    .sideDiv2 select {
        margin: 5px auto;
    }

    .alphabet-link {
        margin-right: 0;
    }

    .middleDiv {
        margin-top: 40px;
        width: 100%;
    }

    .middleDiv select {
        width: 100%;
    }

    .homePage {
        flex-direction: column;
    }

    #infoWord {
        margin-bottom: 60px;
    }

    .admin input[type="file"] {
        font-size: 0.5em !important;
    }

    .pcBr {
        display: none;
    }

}

@media screen and (max-width: 480px) {

    #fullscreen-container img {
        height: 30%;
    }

    .homeParagraph {
        width: 80%;
    }
    
    .backgImg {
        background-size: 60%;
    }
    
}