/*Document créé par Udriot Paulin
créé le 15 décembre 2024
Cette page sert a décores les page du site de kaf.*/


/*Body*/
body {
    background-color: antiquewhite;
    margin: 0;
}
p{
    font-size: x-large;
}
.margin-bottom{
    margin-bottom: 50px;
}
/*pour alligne des container */
.mx-auto {
    margin-right: auto;
    margin-left: auto;
    width: 59%;
}
.container {
    display: flex;
    gap: 20px;
    align-items: center;
}
  .img-centre {
    width: 800px;
    height: 200px;
    display: block;      /* Nécessaire pour margin auto */
    margin: 0 auto;      /* Centre horizontalement */
}
.img-centre-container {
    width: 800px;
    height: 200px;
    overflow: hidden;   /* Cache ce qui dépasse */
    margin: 0 auto;     /* Centre horizontalement */
}
.align-center {
    align-items: center;
    justify-content: center;
}
.padding-bottom{
    padding-bottom: 30px;
}

.paragraphe {
    display: flex;
    flex-direction: column;
    align-items: center;
    column-count: 2;
    font-family: sans-serif;
    font-size: large;
    text-align: center;
}
/*Pour les titre h1*/
.h1 {
    padding: 10px 0;
    text-align: center;
}
/*pour que les image soi pas infulencé par les flex*/
.image {
    border-radius: 10px;
    max-width: 100%;
    height: 100%;
}

/*---------------------------------------*/
/*---------------MENU--------------------*/
/*---------------------------------------*/
.menu {
    /*verschiedene sachen für den Menu */
    list-style-type: none;
    display: flex;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    align-items: stretch;
}
nav {
    background-color: rgb(253, 191, 76);
}


ul.menu li a {
    text-decoration: none;
    /*Der Link strich ist verschwunden*/
    color: black;
    padding: 20px 70px;
}

ul.menu li:hover {
    background-color: rgba(0, 0, 0, 0.3);
    /*Die Frabe wenn man über das Menu geht*/
}

nav>ul>li {
    display: flex;
    align-items: stretch;
    /*Es macht den a gösser sodass der ganze Platz genommen wird*/

}

ul.menu .active {
    background-color: #F4A300;
    /*Farbe von der Aussgewählten seite*/
}

/* ---------------menu bur-------------------*/
/* Media Queries                                */
/* ---------------menu burger-------------------*/
@media (max-width: 1200px) {
    
    /* écrans de taille moyenne */
    .mx-auto {
        width: 80%;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }
    ul.menu li a {
        padding: 20px 40px;
    }
}
@media (max-width: 768px) {

    /* petits écrans */
    .mx-auto {
        width: 95%;
    }

    .container {
        gap: 10px;
    }
    .menu li a {
        display: none;
    }
    .h1 {
        font-size: 1.6rem;
    }
    .paragraphe {
        padding: 5px;
    }
   nav {
        height: 58px;
        background-color: rgb(253, 191, 76);
    }
}

/*----------------------------------------------*/
/* ---------------menu burger-------------------*/
/*----------------------------------------------*/
#menu_checkbox {
    display: none;
}

label {
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

label span {
    position: relative;
    top: 0;
    height: 9px;
    background-color: red;
    margin-bottom: 12px;
    transition: 0.3s ease transform, 0.3s ease top, 0.3s ease width, 0.3s ease right;
    border-radius: 2px;
    display: block;
}

label span:first-child {
    transform-origin: 0;
}

label span:last-child {
    margin-bottom: 0;
    transform-origin: 60px;
}

label span:nth-child(2) {
    right: 0;
    width: 60px;
}

#menu_checkbox:checked+label span:first-child {
    top: -11px;
    transform: rotateZ(45deg);
}

#menu_checkbox:checked+label span:last-child {
    top: 6px;
    transform: rotateZ(45deg);
}

#menu_checkbox:checked+label span:nth-child(2) {
    width: 85px;
    top: 0;
    right: 13px;
    transform: rotateZ(-45deg);
}

/*menu_deroulan*/
#menu_deroulan {
    position: absolute;
    top: 90px;
    right: 20px;
    width: 200px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#menu_deroulan a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
}

#menu_deroulan a:hover {
    background-color: #f1f1f1;
}

#menu_checkbox:checked~#menu_deroulan {
    opacity: 1;
    visibility: visible;
}

/*-----------------------------------*/
/*--------------Horloge------------*/
/*-----------------------------------*/
#clock {
    position: fixed; /* L'horloge reste fixe lors du scroll */
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Toujours au-dessus du contenu */
}
