:root {
    --main-color: #E75252;
    --second-color: #FFC107;
    --text-color: #333;
    --background-color: white;
    --banner-bg-color: #232B5E;
    --banner-text-color: #ffffff;
    --button-bg-color: #E75252;
    --button-hover-bg-color: #ff5252;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background: var(--main-color);
    color: #ffffff;
    padding: 10px 100px;
    text-align: center;
}

header h1 {
    margin: 0;
    padding: 10px 0;
}

nav {
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: inline-block;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

 section.banner {
            width: 100%;
            height: 60vh;
            background-color: var(--banner-bg-color);
            color: var(--banner-text-color);
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 20px;
            box-sizing: border-box;
            max-width: 100%;
            margin: 0;
            margin-bottom: 50px;
            position: relative;
            overflow: hidden;
        }

        section.banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('photos/Candy_AI_Reviews_of_the_Best_AI_Girlfriend_Generator.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0.5; /* Ajustez l'opacité ici */
            z-index: 1;
        }

        section.banner::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* Calque noir avec opacité */
            z-index: 2;
        }

        section.banner > * {
            position: relative;
            z-index: 3;
        }

.banner-content {
    max-width: 1800px;
}

.banner-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.banner-content button {
    background: var(--button-bg-color);
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.banner-content button:hover {
    background: var(--button-hover-bg-color);
}

section {
    padding: 20px;
    margin: 0 auto;
    max-width: 900px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}


h1, h2, h3, h4 {
    color: var(--main-color);
    font-weight: bold;
}

h1 {
    font-size: 2.8em;
    line-height: 60px;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.25em;
}

ul {
    padding: 0;
}

ul li {
    margin-bottom: 10px;
}

button, .button {
    background: var(--button-bg-color);
    width: 50%;
    font-size: 18px;
    border: none;
    padding: 15px 30px;
    color: white;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
}

button:hover, .button:hover {
    background: var(--button-hover-bg-color);
}

img {
    margin-top: 20px;
    max-width: 100%;
    border-radius: 20px;
    display: block;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: var(--main-color);
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2.5em;
    }

    .banner-content p {
        font-size: 1.2em;
    }

    .banner-content button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    nav ul {
        padding: 0;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    section {
        margin: 10px;
        padding: 10px;
    }

    h1 {
        font-size: 2em;
        line-height: 40px;
    }

    h2 {
        font-size: 1.75em;
    }

    h3 {
        font-size: 1.5em;
    }

    h4 {
        font-size: 1em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    nav ul li {
        display: inline-block;
        margin-right: 20px;
    }

    section {
        padding: 30px;
    }
}
