body {
    font-family: Arial;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

header {
    background-color: #FFFFFF;
    color: black;
    padding: 20px;
}


footer {
    background-color: #503B61;
    color: white;
    padding: 10px;
    margin-top: 20px;
}

.logo {
    width: 600px; /* Ajuste la taille selon ton logo */
    height: auto;
    display: block;
    margin: 0 auto 10px; /* Centre le logo et ajoute un petit espace en dessous */
}

nav {
    background-color: #503B61; /* Même couleur que le footer*/
    padding: 10px 0;
    text-align: center;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Centre le menu */
    gap: 20px; /* Espacement entre les liens */
}

.menu li {
    display: inline;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 15px;
    transition: background 0.3s;
}

.menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Effet de défilement fluide */
html {
    scroll-behavior: smooth;
}

/* Style des sections */
section {
    padding: 60px 20px;
    min-height: 100vh; /* Permet de bien occuper l'écran */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: white;
}

/* Alterner la couleur de fond pour distinguer les sections */
#accueil { background: #f4f4f4; }
#apropos { background: #F3EFF5; }
#services { background: #F9B23C; }
#contact { background: #BD93BD; }

.menu a.active {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

/* Bouton "Retour en haut" */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

/* Effet d’apparition */
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Effet au survol */
.scroll-top-btn:hover {
    background-color: #2980b9;
}

/* Icône à l'intérieur du bouton */
.scroll-top-btn i {
    font-size: 24px; /* Taille de l’icône */
}

/* Conteneur de la section "À propos" */
#apropos .container {
    display: flex; /* Mise en page en ligne */
    align-items: center; /* Alignement vertical */
    justify-content: center;
    max-width: 900px;
    margin: auto;
    padding: 50px 20px;
}

/* Style du portrait */
.portrait {
    flex: 1;
    text-align: center; /* Centrer l'image */
}

.portrait img {
    width: 100%;  /* L'image prend toute la largeur du bloc */
    max-width: 300px; /* Taille max pour éviter qu'elle soit trop grande */
    border-radius: 10px; /* Coins arrondis */
}

/* Style du texte */
.text {
    flex: 2;
    padding-left: 20px; /* Espacement avec l’image */
}

.text h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.text p {
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #apropos .container {
        flex-direction: column; /* Passer en colonne sur mobile */
        text-align: center;
    }

    .portrait {
        margin-bottom: 20px; /* Espacement entre l'image et le texte */
    }

    .text {
        padding-left: 0; /* Supprimer l'espacement sur mobile */
    }
}

/* Section Accueil */
#accueil {
    position: relative;
    width: 100%;
    height: 100vh; /* Hauteur = 100% de l'écran */
    background-image: url('images/fond-accueil-2.jpg'); /* Image de fond */
    background-size: cover; /* Couvre tout l'écran */
    background-position: center; /* Centrage de l'image */
    background-attachment: fixed; /* Effet parallaxe */
}

/* Effet d'ombre pour rendre le texte plus lisible */
#accueil .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Assombrit légèrement l'image */
}

/* Style du texte d'accroche */
#accueil h1 {
    color: white;
    font-size: 2.5rem;
    max-width: 80%;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); /* Effet d’ombre sur le texte */
}

