:root {
    --primary-color: #fbfaf4;
    --secondary-color: #7ba590;
    --pink-color: #f8b6c2;
}

body {
    margin: 0;
    font-family: Tahoma;
}

header {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer {
    background-color: var(--secondary-color);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    padding: 10px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Sections */
section {
    display: flex;
    align-items: center;
    padding: 50px;
    min-height: 100vh;
}

.Accueil .texte {
    order: 1;
}

.Accueil .image {
    order: 2;
}

.Mon-approche {
    background-color: var(--secondary-color);
}

.Mon-approche .texte {
    order: 1;
}

.Mon-approche .image {
    order: 2;
}

.Accueil {
    background-color: var(--primary-color);
}

.Mes-services{
    background-color: var(--primary-color);
}

.Qui-suis-je {
    background-color: var(--secondary-color);
}

.Me-contacter{
    background-color: var(--primary-color);
}

.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin: auto;
}

.content.reverse {
    flex-direction: row-reverse;
}

.text {
    max-width: 450px;
    padding: 20px; /* Ajout d'espacement pour le texte */
    font-size: large;
    color: #272727;
}

/* images */
img {
    height: auto;
    width: 500px; /* Ajuste la largeur */
    height: 500px; /* Ajuste la hauteur */
    border-radius: 50%;
    object-fit: cover; /* Assure que l'image couvre le cercle sans déformation */
}

/* Styles pour les sections avec apparition */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Styles pour les éléments visibles */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour les images */
.fade-in img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Style du bouton burger */
.burger-menu {
    width: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    margin-top: 10px;
    position: relative;
}

.burger-menu .line {
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* État ouvert du bouton burger */
.burger-menu.open .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.open .line:nth-child(2) {
    opacity: 0;
}

.burger-menu.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/*scroll*/
html {
    scroll-behavior: smooth;
}

/* Sections */
.Accueil h2 {
    font-size: 7rem; /* Taille plus grande pour "Accueil" */
    color: var(--secondary-color);; /* Couleur personnalisée si nécessaire */
    margin-top: -20px;
}

/* Cercle autour des images Accueil*/
#Accueil img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 0px 10px 5px var(--secondary-color);; /* Cercles autour des images */
    padding: 10px; /* Ajout d'espace entre l'image et l'ombre */
    border: 5px solid var(--secondary-color);; /* Contour autour des images */
}

/* Cercle autour des images Mon-approche*/
#Mon-approche img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 0px 10px 5px var(--primary-color);; /* Cercles autour des images */
    padding: 10px; /* Ajout d'espace entre l'image et l'ombre */
    border: 5px solid var(--primary-color);; /* Contour autour des images */
}

/* Cercle autour des images Mes-services*/
#Mes-services img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 0px 10px 5px var(--secondary-color);; /* Cercles autour des images */
    padding: 10px; /* Ajout d'espace entre l'image et l'ombre */
    border: 5px solid var(--secondary-color);; /* Contour autour des images */
}

/* Cercle autour des images Qui-suis-je*/
#Qui-suis-je img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 0px 10px 5px var(--primary-color);; /* Cercles autour des images */
    padding: 10px; /* Ajout d'espace entre l'image et l'ombre */
    border: 5px solid var(--primary-color);; /* Contour autour des images */
}

/* Cercle autour des images Me-contacter*/
#Me-contacter iframe {
    border-radius: 4%;
    object-fit: cover;
    box-shadow: 0px 0px 10px 5px var(--secondary-color);; /* Cercles autour des images */
    padding: 10px; /* Ajout d'espace entre l'image et l'ombre */
    border: 5px solid var(--secondary-color);; /* Contour autour des images */
    position: relative;
    height: 500px;
    width: 500px;
    margin: auto;
}

/* Style du menu */
#menu {
    position: absolute;
    top: 60px; /* Ajustez si nécessaire */
    right: 20px; /* Ajustez si nécessaire */
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    list-style: none;
    padding: 20px;
    margin: 0;
    display: none; /* Caché par défaut */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    z-index: 1000;
}

#menu.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

#menu.hidden {
    display: none;
    transform: translateY(-20px);
    opacity: 0;
}

/* Liens du menu */
#menu li {
    margin: 10px 0;
}

#menu li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

#menu li a:hover {
    color: #fff;
}

/*media queries*/

@media screen and (max-width: 1024px) {
    .content {
        flex-direction: column;
    }
}

@media screen and (max-width: 700px) {
    img {
        height: 300px;
        width: 300px;
    }
}

@media screen and (max-width : 770px) {
    iframe {
        display: none;
    }
}
@media screen and (max-width: 500px) {
    .Accueil h2 {
        font-size: 5rem;
    }
}

/* test */