/* Variables CSS */
:root {
    /* Palette de couleurs */
    --color-primary: #3B0B59;
    --color-accent: #14D9C4;
    --color-secondary: #BFFF00;
    --color-white: #FFFFFF;
    --color-dark: #2B2B2B;
    
    /* Dimensions */
    --border-radius: 2rem;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset et styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 1.5rem;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(20, 217, 196, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 11, 89, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Header et navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(59, 11, 89, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: lowercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
}

.logo::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--color-accent);
}

.logo:hover::before {
    width: 100%;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.nav-desktop ul li a {
    color: var(--color-white);
    font-weight: 600;
    padding: 0.5rem;
    position: relative;
}

.nav-desktop ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: all 0.3s ease;
}

.nav-desktop ul li a:hover,
.nav-desktop ul li a.active {
    color: var(--color-accent);
}

.nav-desktop ul li a:hover::after,
.nav-desktop ul li a.active::after {
    width: 100%;
}

/* Menu mobile */
.mobile-menu {
    display: none;
}

.menu-toggle {
    display: none;
}

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 999;
}

.mobile-nav ul {
    opacity: 0;
    flex-direction: column;
    text-align: center;
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.mobile-nav ul li {
    margin: 1rem 0;
}

.mobile-nav ul li a {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
}

.menu-toggle:checked ~ .mobile-nav {
    height: calc(100vh - var(--header-height));
}

.menu-toggle:checked ~ .mobile-nav ul {
    opacity: 1;
}

.menu-toggle:checked ~ .menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
}

.menu-toggle:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked ~ .menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-white);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(59, 11, 89, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    background-color: #f8f8f8;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Advantages Section */
.advantages {
    background-color: var(--color-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: var(--color-white);
}

.advantage-icon svg {
    width: 35px;
    height: 35px;
}

/* Services Section */
.services {
    background-color: #f8f8f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-top: 0;
}

.service-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.service-content ul li {
    margin-bottom: 0.5rem;
}

.service-content .btn {
    margin-top: 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.testimonials h2 {
    color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    margin-bottom: 1.5rem;
}

.testimonial-content {
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.testimonial-company {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Form Section */
.contact-form {
    background-color: #f8f8f8;
}

.form-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(20, 217, 196, 0.2);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* FAQ Section */
.faq {
    background-color: var(--color-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: block;
    padding-right: 2.5rem;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-toggle {
    display: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
}

.faq-answer p {
    padding: 1.25rem;
    margin-bottom: 0;
}

.faq-toggle:checked ~ .faq-question {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.faq-toggle:checked ~ .faq-question::after {
    content: '-';
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
}

/* Page Header */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
}

/* Form Page */
.form-page {
    padding: 3rem 0 5rem;
    background-color: #f8f8f8;
}

/* Merci Section */
.merci-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 2rem 0;
    background-color: #f8f8f8;
}

.merci-box {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 8rem auto 5rem;
}

.merci-box h1 {
    margin-bottom: 1rem;
}

.merci-box p {
    margin-bottom: 2rem;
}

/* Policy Pages */
.policy-page {
    padding: 8rem 0 5rem;
}

.policy-content {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.policy-content h2 {
    text-align: left;
    margin-top: 2rem;
}

.policy-content h2::after {
    margin-left: 0;
    margin-right: auto;
}

.policy-content ul,
.policy-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.policy-content ul {
    list-style-type: disc;
}

.policy-content ol {
    list-style-type: decimal;
}

.policy-content ul li,
.policy-content ol li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.footer h3 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: var(--color-white);
    opacity: 0.8;
}

.footer ul li a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer address {
    font-style: normal;
}

.footer address p {
    margin-bottom: 0.75rem;
}

.footer address a {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem;
    display: none;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
}

#accept-cookies {
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accept-cookies:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .advantage-card,
    .service-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .form-container,
    .merci-box {
        padding: 1.5rem;
    }

    .footer {
        padding: 3rem 0 1rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}
