/* css pour le header */

/* importation de la police */

@font-face {
    font-family: "Franchise";
    src: url("../assets/Franchise.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins_Med";
    src: url("../assets/Poppins/Poppins-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins_SemiBold";
    src: url("../assets/Poppins/Poppins-SemiBold.ttf") format("truetype");
}

/* fond du header */
header
    {
    background:white;
    height:10em;
    width: 100%;
    z-index: 10;
    top : 0;
    }

/* Styles pour les écrans de petite taille (ex : téléphones) */
@media (max-width: 600px) {
    .logo{
        position: relative;
        border-top: 1em;
        flex-shrink: 0;
        width: 100px;
        object-fit: contain;
        display: none;
    }
    /* style des écritures dans le header */
    .titre_menu{
        list-style: none;
        position: relative;
        text-decoration:none;
        font-family: Poppins_SemiBold;
        color: #000;
        text-align: center;
        font-size: 80%;
        font-style: normal;
        line-height: normal;
        }

    /* placement des titre dans le header */
    .barre{
        position: relative;
        display: flex;
        flex-direction: row ;
        justify-content: center ;
        align-items: center;
        width: 40%;
    }
    .logo_header{
        width: 3rem;
    }
    .form-control_header{
        width:250px; 
    }
    .distrib 
    {
        margin-left: 0%;
        margin-right: 0%;
        justify-content: center;
    }
    .compte{
        display: none;
    }
}

/* Styles pour les écrans de taille moyenne (ex : tablettes) */
@media (min-width: 601px) and (max-width: 1024px) {
    .logo{
        position: relative;
        border-top: 1em;
        flex-shrink: 0;
        width: 150px;
        object-fit: contain;
    }
    /* style des écritures dans le header */
    .titre_menu{
        list-style: none;
        position: relative;
        text-decoration:none;
        font-family: Poppins_SemiBold;
        color: #000;
        text-align: center;
        font-size: 80%;
        font-style: normal;
        line-height: normal;
        }

    /* placement des titre dans le header */
    .barre{
        position: relative;
        display: flex;
        flex-direction: row ;
        justify-content: center ;
        align-items: center;
        width: 20%;
    }
    .logo_header{
        width: 2rem;
    }
    .form-control_header{
        width:200px; 
    }
    .distrib 
    {
        margin-left: 6%;
        margin-right: 6%;
        justify-content: space-between;
    }
}

/* Styles pour les écrans larges (ex : ordinateurs de bureau) */
@media (min-width: 1025px) {
    .logo{
        position: relative;
        border-top: 1em;
        flex-shrink: 0;
        width: 200px;
        object-fit: contain;
    }
    /* style des écritures dans le header */
    .titre_menu{
        list-style: none;
        position: relative;
        text-decoration:none;
        font-family: Poppins_SemiBold;
        color: #000;
        text-align: center;
        font-size: 80%;
        font-style: normal;
        line-height: normal;
        }

    /* placement des titre dans le header */
    .barre{
        position: relative;
        display: flex;
        flex-direction: row ;
        justify-content: center ;
        align-items: center;
        width: 20%;
    }
    .logo_header{
        width: 3rem;
    }
    .form-control_header{
        width:300px; 
    }
    .distrib 
    {
        margin-left: 6%;
        margin-right: 6%;
        justify-content: space-between;
    }
}

input
    {
    border-radius: 50px;
    border-style: none;
    }

/* placement dans le header */
.distrib 
    {
    display: flex;
    flex-direction: row ;
    text-decoration: none;
    height: 10em;
    align-items: center;
    }

.titre_menu:hover {
    color : #B41611;
}

/* bouton dans le header */
a{
    text-decoration: none;
}


.form-control_header, .btn 
{
    text-align: center;
    margin: 5px;
    font-size: 15px;
    padding: 5px;
    height: 44px;
    text-align: left;
    border: 2px solid black;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Style au focus de l'input texte */
.form-control_header:focus {
    border-color: #B41611;
    outline: none;
    box-shadow: 0 0 5px rgba(180, 22, 17, 0.5);
}

/* Style du bouton */
.btn {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    text-align: center;
    font-family: Poppins_Med;
    border: 2px solid;
    border-radius: 10px;
    background-color: white;
    color: black;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    color:#B41611;
}

.form_header{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    align-items:center;
}

.box_colum_header{
    display: flex; 
    flex-direction: column;
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 100%;
    font-family: Poppins_Med;
    font-size: 20px;
    z-index: 1;
    justify-content: center;
    align-items: center;
}

.box_row_header{
    display: flex; 
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    text-decoration: none;
    gap: 1rem;
    width: fit-content;
}

.logo_header:hover {
    animation: shake 0.5s ease-in;
}

@keyframes shake {
    0% { transform: translateX(0) rotate(0deg) scale(1); }
    20% { transform: translateX(-3px) rotate(-2deg) scale(1.05); }
    40% { transform: translateX(3px) rotate(2deg) scale(1.08); }
    60% { transform: translateX(-3px) rotate(-2deg) scale(1.05); }
    80% { transform: translateX(3px) rotate(2deg) scale(1.02); }
    100% { transform: translateX(0) rotate(0deg) scale(1); }
}