:root {
    --primary-color: #17786F;
    --secondary-color: #FAB643;
    --background-color: #FEFEFE;
    --text-color: #333;
    --light-text: #666;
    --font-family: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --section-padding: 1.5rem;
    --border-radius: 5px;
    --tab-indent: 1.5rem;
}

body {
    font-family: var(--font-family);
    line-height: 1.3;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    font-size: 1.1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--background-color);
    color: #FEFEFE;
    text-align: center;
    padding: 1,6em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo {
    margin-top: 15px;
    max-width: 400px;
    max-height: 100px;
    object-fit: contain;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

nav {
    margin-top: 1rem;
    text-align: center;
}

nav {
    margin-top: 1rem;
    background-color: var(--primary-color); /* Couleur primaire uniquement pour le menu */
    padding: 0.5em 0;
}

nav a {
    color: #FEFEFE; /* Texte blanc dans le menu */
    margin: 0 1.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

nav a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

nav a.active {
    color: var(--secondary-color) !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding);
    flex: 1 0 auto;
}

.section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* Centrage vertical pour carrousel et texte */
    background-color: var(--background-color);
    padding: 2rem var(--section-padding);
    border-bottom: 3px solid var(--secondary-color);
    min-height: calc(100vh - 100px);
    overflow: auto;
    gap: 2rem;
}

.section .content {
    flex: 1;
    max-width: 50%;
}

.section .carousel {
    flex: 1;
    max-width: 50%;
    max-height: 400px;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    display: none;
    position: relative; /* Pour positionner les flèches absolument */
    padding: 0 60px; /* Zone dédiée pour éviter chevauchement des flèches */
}

.section .carousel.has-images {
    display: block;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    cursor: pointer;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(23, 120, 111, 0.7);
    color: #FEFEFE;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button.prev {
    left: 10px; /* Ajusté dans la zone dédiée */
}

.carousel-button.next {
    right: 10px; /* Ajusté dans la zone dédiée */
}

.carousel-dots {
    text-align: center;
    margin-top: 0.5rem;
}

.carousel-dot {
    height: 10px;
    width: 10px;
    margin: 0 0.25rem;
    background-color: #BBB;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

.section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section p {
    font-size: 1.2rem;
    line-height: 1;
    color: var(--text-color);
    margin: 0 0 1.5rem;
    padding-left: var(--tab-indent);
    text-align: left;
    white-space: pre-wrap;
}

.section p span.item {
    display: block;
    padding-left: var(--tab-indent);
    position: relative;
    
}

.section p span.item::before {
    content: "–";
    position: absolute;
    left: calc(-1 * var(--tab-indent) + 0.5rem);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.section p span.quote {
    display: block;
    padding-left: var(--tab-indent);
    position: relative;
    font-style: italic;
    color: var(--light-text);
    margin-top: 0.1rem;
}

.section p span.quote::before {
    content: ">";
    position: absolute;
    left: calc(-1 * var(--tab-indent) + 0.5rem);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.section p.highlight {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    background-color: rgba(23, 120, 111, 0.05);
}

.section ul {
    max-width: 800px;
    margin: 0 0 0.5rem;
    padding-left: 0.5rem;
    color: var(--light-text);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

footer {
    background-color: var(--primary-color);
    color: #FEFEFE;
    text-align: center;
    padding: 1.5em;
    font-weight: 300;
    font-size: 0.9rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.section.no-carousel {
    justify-content: center;
}

.section.no-carousel .content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .section {
        flex-direction: column;
        padding: 1rem;
        align-items: flex-start;
    }

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

    .section .carousel {
        max-width: 100%;
        max-height: 300px;
        padding: 0 20px;
    }

    .carousel-item img {
        max-height: 300px;
    }

    .container, .section {
        padding: 1rem;
    }

    .carousel-button.prev {
        left: 0;
    }

    .carousel-button.next {
        right: 0;
    }

    .section.no-carousel .content {
        text-align: left;
    }

    footer {
        display: none; /* Masque le footer en responsive */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .section p {
        font-size: 0.9rem;
    }

    nav a {
        margin: 0 0.5rem;
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    footer {
        display: none; /* Masque le footer en responsive */
    }
}