@charset "UTF-8";
/* CSS Document */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

header .logo {
    position: absolute;
    top: 10px;
    left: 10px;
}

header .logo img {
    height: 50px;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #333;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative; /* Add this line */
    margin: 0 15px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.sub-menu {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    padding: 10px 0;
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    padding: 10px 20px;
    display: block;
    color: #fff;
}

.nav-list li:hover .sub-menu {
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        margin: 10px 0;
        text-align: center;
    }
.sub-menu {
        position: static;
        padding-left: 20px;
    }
    
    .nav-list li:hover .sub-menu {
        display: none;
    }
    
    .nav-list .active .sub-menu {
        display: flex;
        flex-direction: column;
    }
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 0;
}

.card {
    background-color: white;
    margin: 1rem;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(33% - 2rem);
    box-sizing: border-box;
    text-align: center;
}

.card img {
    max-width: 100%;
    border-radius: 5px;
}

.card h3 {
    margin: 1rem 0 0.5rem;
}

.card p {
    margin: 0;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .card {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 480px) {
    .card {
        width: calc(100% - 2rem);
    }
}
.content-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0; /* Remove any default margin */
}

.text-area {
    flex: 1;
    padding: 10px; /* Reduce padding */
    text-align: left;
}

.image-area {
    flex: 1;
    display: flex;
    justify-content: center; /* Centrer l'image horizontalement */
    padding-left: 10px; /* Réduire l'espace à gauche de l'image */
}

.image-area img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}


/* Styles pour le menu mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #333; /* Assurez-vous que la couleur de fond est visible */
    }

    .nav-list li {
        margin: 10px 0;
    }

    .nav-list.show {
        display: flex;
    }
    
    .sub-menu {
        position: static;
        padding-left: 20px;
    }
    
    .nav-list li:hover .sub-menu {
        display: none;
    }
    
    .nav-list .active .sub-menu {
        display: flex;
        flex-direction: column;
    }
}

.custom-content-section {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #f9f9f9;
}

.custom-content-section .sidebar-menu {
    width: 200px;
    margin-right: 20px;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-content-section .sidebar-menu h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.custom-content-section .sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-content-section .sidebar-menu li {
    margin: 10px 0;
}

.custom-content-section .sidebar-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.custom-content-section .text-area {
    flex-grow: 1;
    max-width: 1000px; /* Ajustez cette valeur selon vos besoins */
}

.custom-content-section .text-area h2, 
.custom-content-section .text-area h3 {
    margin-top: 20px;
    color: #333;
}

.custom-content-section .text-area p {
    margin: 20px 0;
    line-height: 1.6;
    color: #666;
}

.custom-content-section .image-area img {
    max-width: 100%;
    height: auto;
    margin: 10px;
}

.custom-content-section .image-left {
    float: left;
    margin-right: 20px;
}

.custom-content-section .image-right {
    float: right;
    margin-left: 20px;
}

.custom-content-section .text-area::after {
    content: "";
    display: table;
    clear: both;
}

/* Styles pour responsive */
@media (max-width: 768px) {
    .custom-content-section {
        flex-direction: column;
    }

    .custom-content-section .sidebar-menu {
        width: 100%;
        margin: 20px 0 0 0;
    }

    .custom-content-section .text-area {
        max-width: 100%;
    }

    .custom-content-section .image-left, 
    .custom-content-section .image-right {
        float: none;
        margin: 10px auto;
    }
}
