/* Variables et Reset */
:root {
    --bg-color: #3B0A45;
    --accent-color: #00FFD1;
    --secondary-color: #FF5A5F;
    --text-color: #F2F2F2;
    --light-bg: rgba(255, 255, 255, 0.1);
    --header-height: 70px;
}

* {
    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;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

section[id] {
    scroll-margin-top: 40px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: rgba(59, 10, 69, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    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: bold;
    color: var(--accent-color);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(0, 255, 209, 0.2);
    color: var(--accent-color);
}

.menu-toggle, .menu-icon {
    display: none;
}

/* Main Content */
main {
    padding-top: var(--header-height);
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--accent-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(59, 10, 69, 0.7), rgba(59, 10, 69, 0.9)), url('./img/CvtMs.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-content {
       text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Button Styles */
.btn-gradient {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    background: linear-gradient(45deg, var(--bg-color), var(--accent-color));
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

.btn-gradient:active {
    transform: translateY(-1px);
}

/* Services Section */
.services {
    background-color: rgba(59, 10, 69, 0.8);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background-color: rgba(59, 10, 69, 0.6);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Features Section */
.features {
    background-color: rgba(59, 10, 69, 0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.feature h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    background-color: rgba(59, 10, 69, 0.6);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-author-info h4 {
    color: var(--accent-color);
}

.testimonial-author-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Steps Section */
.steps {
    background-color: rgba(59, 10, 69, 0.8);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.step h3 {
    color: var(--accent-color);
    margin: 1rem 0;
}

/* Contact Form */
.contact {
    background-color: rgba(59, 10, 69, 0.6);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

select.form-control option {
    background-color: white;
    color: #333;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
}

.checkbox-group label a {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: rgba(33, 5, 39, 0.95);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.footer-info h3, .footer-contact h3, .footer-links h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-contact ul li, .footer-links ul li {
    margin-bottom: 0.8rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: rgba(33, 5, 39, 0.95);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease-in-out;
    z-index: 1001;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.cookie-content p {
    margin-bottom: 1rem;
    max-width: 800px;
}

.cookie-content button {
    margin-bottom: 0.5rem;
}

.cookie-link {
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Thank You Page */
.merci-container {
    margin: 8rem auto 5rem;
    max-width: 600px;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.merci-container h1 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.merci-container p {
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq {
    background-color: rgba(59, 10, 69, 0.8);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    cursor: pointer;
    position: relative;
    display: block;
    font-weight: bold;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-toggle {
    display: none;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

.faq-toggle:checked ~ .faq-question::after {
    content: '-';
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 8rem auto 5rem;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.policy-container h1 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.policy-container section {
    margin-bottom: 2rem;
    padding: 0;
}

.policy-container h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.policy-container p, .policy-container ul {
    margin-bottom: 1rem;
}

.policy-container ul {
    padding-left: 20px;
    list-style-type: disc;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
        cursor: pointer;
        z-index: 101;
    }
    
    .menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: 0.4s;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-color);
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 100;
        padding-top: var(--header-height);
    }
    
    .menu-toggle:checked ~ nav {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem;
    }
    
    .hero {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .service-img {
        height: 180px;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .merci-container,
    .policy-container {
        margin: 5rem auto 3rem;
        padding: 2rem;
    }
}
