/*-------- PAGE BODY  ------------*/

body.my-page {
    margin: 4% 0% 0% -1%;
    padding: 0;
    font-family: sofia-pro, sans-serif;
    position: relative;
    min-height: 100vh;
    width: 101%;

}

.my-page::before {
    content: "";
    position: fixed; /* Reste fixé au scroll */
    width: 100%;
    height: 109%;
    margin-top: -3%;
    background-image: url("../images/fond.png");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: -1;
}
header{
    background-color: #ffffff;
    padding: 1%;
    display: flex;
    flex-direction: row;
    width: 100%;
    box-shadow: 1px 2px 14px 10px #1f293730;
    flex-wrap: wrap;
    align-items: center;
    margin-top: -4%;
}

.my-page h2{
margin: 1%;
}


header img{
    margin: -23% 0% -25% 17% ;
}

header .btn{
    color: #f8f8f8;
    background-color: #cc7826;
    font-size: 1.1em;
    /* height: 5%; */
    padding: 8px;
    border: none;
}

header .btn:hover{
    background-color: #fcc95a;
    color: white;
}

/* CSS */
header .btn.login-btn {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    padding: 12px 20px; /* Padding for size */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Font size */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}



/*----------------------- Footer --------------------*/

/*body {*/
/*    margin: 0;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    min-height: 100vh; !* Force la page à faire toute la hauteur de l'écran *!*/
/*}*/

/*main {*/
/*    flex: 1; !* Ce "ressort" pousse le footer tout en bas s'il y a peu de texte *!*/
/*}*/

footer {
    background-color: rgba(0, 102, 79, 0.66);
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    margin-top: 4%;

}

footer .foot{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 26rem;
    align-content: space-between;
    justify-content: flex-start;
}

.info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


footer .reseau{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
}

footer .reseau-icons{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}



footer .contact{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
}

footer .lieu{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

footer .mail{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

footer .telephone{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}
/*------------ Logo header ------------------*/


header img{
    margin: -23% 0% -25% 17% ;
}

header .logo{
    margin-left : -8%;
}

header .logo-text
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin :-9% -53% -22% 48%;
}




/*------------Description home ------------------*/
/* Container principal */
.description {
    display: flex;
    align-items: center;
    /*min-height: 80vh; !* Hauteur généreuse pour l'accueil *!*/
    gap: 0;
    overflow: hidden;
    background-color: #e8e8e8; /* Couleur de fond de ton site */
    position: relative;
    height: 547px;
    box-shadow: 3px 3px 20px 7px rgb(123 123 123);
    margin-top: 6%;
    margin-bottom: 8%;
}

/* Bloc texte à gauche */
.description-text {
    flex: 1;
    padding: 4rem;
    z-index: 2; /* Pour passer au-dessus du fondu si besoin */
    max-width: 600px;
}

.description-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin: -54% -61% 3% -9%;

}

.description-text p {
    font-size: 1.2rem;
    /* line-height: 1.6; */
    color: #000000;
    margin: 0% -29% 1% -10%;
}

/* Bloc image à droite avec effet de fondu */
.image-wrapper {
    flex: 1.2;
    position: relative;
    height: 100%;
    align-self: stretch;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre tout l'espace sans se déformer */
}

/* L'effet de fondu (Overlay) */
.image-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30%; /* Largeur de la zone de transition */
    height: 100%;
    /* Dégradé de la couleur de fond vers la transparence */
    background: linear-gradient(to right, #00674f 0%, transparent 100%);
    z-index: 1;
}

/* --- Responsive pour Tablettes et Mobiles --- */
@media (max-width: 992px) {
    .description {
        flex-direction: column-reverse; /* Texte sous l'image sur mobile */
        text-align: center;
    }

    .description-text {
        padding: 2rem;
        max-width: 100%;
    }

    .description-text h1 {
        font-size: 2.5rem;
    }

    .image-wrapper {
        width: 100%;
        height: 400px;
    }

    /* On change le fondu pour qu'il soit vertical sur mobile */
    .image-wrapper::before {
        width: 100%;
        height: 40%;
        top: auto;
        bottom: 0;
        background: linear-gradient(to top, #ffffff 0%, transparent 100%);
    }
}


/*----------------------------------------------------------*/
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --text: #ffffff;
}

.btn-modern {
    /* Mise en page */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 9px 8px;
    margin: 0% 0% 0% 86%;

    /* Style visuel */
    background: linear-gradient(135deg, var(--violet-color), var(--violet-color));
    color: var(--text);
    font-family: 'Inter', sans-serif; /* Ou n'importe quelle police sans-serif */
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;

    /* Ombres et transitions */
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2),
    0 2px 4px -1px rgba(79, 70, 229, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Optionnel : Effet de brillance au passage */
.btn-modern::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

/*-------------------------------Menu sur le coté gauche*----------------------------------*/
.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0%;
    left: 86%;
    z-index: 1000;
    margin: 0% 2% 0% -3%
}

.menu .logo {
    font-size: 1.5em;
    font-weight: bold;
}

.menu-toggle {
    font-size: 2em;
    cursor: pointer;
    color: #000000;
}

.menu-toggle:hover {
    font-size: 1.8em;
    cursor: pointer;
    color: #1b6008;
}

.sidebar p{
    font-weight: bold;
    font-size: 1rem;
    margin: 1% 0% 2% 12%;
}

.sidebar a {
    font-family: Inter, sans-serif;
    color: #ffffff;
    padding: 2%;
    font-size: 1.1em;
    width: 55%;
    margin: 2.5% auto;
    text-align: center;
    background-color: #00664f;
}

.sidebar a:hover {
    background-color: var(--jaune-color) ;
    text-decoration: none;
    color: #000000;
}

/*.menu.active .sidebar {*/
/*left: 0;*/
/*}*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0; /* Un peu plus pour bien la cacher avec l'ombre */
    width: 250px;
    height: 100vh;
    background-color: #f6f4f2;
    padding-top: 20px;
    /*transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1); /* Ajoute une ombre pour le relief */
}



/*// -------------  nom utilisateur connecté  --------------------*/
.nomconnex{
    margin: auto 7%;
    color: #cc7826;
    font-size: 1.4em;
}
