/*body {
    background-color: red;
}*/

/* Initialisation de notre projet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Déclaration des variables */
html {
    --var-bg-color: #7743e9;
    --var-secondary-color: #6e51cf;
    --var-text-color: #fff;
    --var-text-color-dark: #333;
    --var-bg-light: #f0f4ff;
    --var-bg-dark: #d3c9f3;
}

body {
    background-color: var(--var-bg-light);
    color: var(--var-text-color-dark);
}

header {
    height: 10rem;
    background-color: white;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header.a {
    font-size: 3rem;
    font-weight: 900;
}

header nav ul{
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--var-text-color-dark);
    font-size: 500;
}

av ul li a:hover {
    color: var(-var-secondary-color);
}

.menuderoulant .sousmenu {
    list-style: none;
    display: none;
    padding: 0;
    margin: 0;
    position: absolute;
}

.menuderoulant .sousmenu li a:hover {
    background-color: #54d219;
}

.menuderoulant li:hover .sousmenu {
    display: block;
}

/* Mise en forme de la section main */
main {
    padding: 2rem;
}

#hero {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    padding: 1rem;
    background: linear-gradient(90deg, var(--var-bg-color) 15%, var(--var-secondary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauche {
    width: 100%;
} 

#hero .gauche h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--var-text-color);
}

#hero .gauche p {
    font-size: clamp(1rem, 3vw, 1rem);
    color: var(--var-text-color);
}

.gauche button {
    background-color: var(--var-text-color);
    color: var(--var-text-color-dark);
    margin-top: 1.4rem;
    border: none;
    padding: 0.9rem 1rem;
    border-radius: 0.3rem;
    font-weight: 500;
    cursor: pointer;
}

.droite {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.droite img {
/*    width:100%;
    height: 100%;*/
    object-fit: cover;
/*    z-index: 100;*/
}

/* Mise en forme de la section service */
#services {
    margin-top: 2rem;

}

#services h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--var-text-color-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.card-service {
    flex: 1;
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    position: relative;
}

.card-service .icon img {
    width: 50px;
    height: 50px;
/*    background-color: #ccb6fa;*/
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    position: absolute;
    top: -35px;
}


card-service h3 {
    margin-top: 1rem;
}

.card-service .equation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

}

.card-service .desintegration-gamma {
    width: 566px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mise en forme de la partie Album */

#Cadre-pdf {
    margin-top: 2rem;
}

#Cadre-pdf h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--var-text-color-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.separateur {
    height: 1px;
    background-color: #474646;
    width: 100%;
    margin: 5px 0;
}

#Annexes {
    display: flex;
    flex-direction: row;
    align-items: normal;
}

#Annexes .zone-annexe {
    width: 50%;
}

#Annexes .zone-article {
    width: 50%;
}


#commentaire {
    margin-top: 3rem;
}

#commentaire h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--var-text-color-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.tableau {
    display: flex;
    flex-direction: column;
}

.bloc-ligne {
    display: flex;
    flex-direction: row;
}

.personne-date {
    width: 200px;
}

.titre-texte {
    margin-left: 2rem;
}

.texte {
    overflow-wrap:anywhere;
}

/* Mise en forme footer */

footer {
    width: 100%;
    height: 100px;
    background-color: #ccb6fa;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--var-text-color-dark);
}

/* Mise en forme des RS */

.reseaux {
    position: fixed;
    right: 0;
    bottom: 3rem;
    background-color: #ccb6fa;
    padding: 10px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reseaux .carte {
    width: 30px;
    height: 30px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 0.3s;
    cursor: pointer;
}

.carte:hover {
    background-color: #fff;
    border-radius: 5px;
}

/* Medias queries (partiels, non suivi en entier) */

@media screen and (max-width: 768px) {
    header nav {
        display: none;
    }

    main {
        padding: 1rem;
    }

    #hero {
        flex-direction: column;
        min-height: 100vh;
        gap: 10px;
    }

    .gauche {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
    }

    #hero .gauche h1 {
        font-size: 20px;
    }
    /* Services */

    .services-list {
        flex-direction: column;
        gap: 2rem;
    }

    #contact {
        min-height: 100vh;
        flex-direction: column;
    }
}