/* === RESET ET BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1B0033;
    --accent-pink: #FF3CAC;
    --accent-ultra: #3A0CA3;
    --text-white: #F9F9F9;
    --gradient-main: linear-gradient(135deg, #12c2e9 0%, #c471ed 50%, #f64f59 100%);
    --gradient-hover: linear-gradient(135deg, #f64f59 0%, #c471ed 50%, #12c2e9 100%);
    --shadow: 0 10px 30px rgba(255, 60, 172, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* === CONTENEURS === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(27, 0, 51, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.nav-links a:hover {
    background: var(--gradient-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Menu mobile - Utilisation de l'approche CSS sans JS */
.menu-toggle-checkbox {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    flex-direction: column;
    padding: 0.5rem;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* === BOUTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-main);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 60, 172, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-pink);
    color: var(--accent-pink);
}

.btn-secondary:hover {
    background: var(--accent-pink);
    color: var(--text-white);
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 80%, rgba(58, 12, 163, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 60, 172, 0.3) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(255, 60, 172, 0.3);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* === SECTIONS === */
.about, .services, .why-us, .testimonials, .process {
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.1) 0%, rgba(27, 0, 51, 0.8) 100%);
    margin: 2rem 0;
    border-radius: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 60, 172, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent-pink);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* === POURQUOI NOUS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 5rem;
    height: 5rem;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    box-shadow: var(--shadow);
}

/* === TÉMOIGNAGES === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 2rem;
    border-left: 4px solid var(--accent-pink);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent-pink);
}

/* === PROCESSUS === */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

/* === FORMULAIRE === */
.contact-form {
    background: linear-gradient(135deg, rgba(255, 60, 172, 0.1) 0%, rgba(58, 12, 163, 0.1) 100%);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 60, 172, 0.2);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-white);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 60, 172, 0.3);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(255, 60, 172, 0.3);
}

.form-group input::placeholder {
    color: rgba(249, 249, 249, 0.6);
}

.form-group select option {
    background: var(--primary-dark);
    color: var(--text-white);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--accent-pink);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* === FOOTER === */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 60, 172, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-pink);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 60, 172, 0.1);
    opacity: 0.7;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 0, 51, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-top: 2px solid var(--accent-pink);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-accept {
    background: var(--gradient-main);
    color: var(--text-white);
}

.cookie-decline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 60, 172, 0.5);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-top: 1px solid rgba(255, 60, 172, 0.2);
    }
    
    .menu-toggle-checkbox:checked ~ .nav-links {
        display: flex;
    }
    
    .menu-toggle-checkbox:checked ~ .menu-toggle .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle-checkbox:checked ~ .menu-toggle .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle-checkbox:checked ~ .menu-toggle .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* Адаптация раздела "À propos" для мобильных */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    .about-content > div:last-child {
        order: -1;
    }
    
    /* Адаптация финального раздела для мобильных */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-grid > div:last-child {
        text-align: center !important;
    }
    
    .services-grid,
    .features-grid,
    .testimonials-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        padding: 8rem 0 4rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* === SCROLL SMOOTH === */
html {
    scroll-behavior: smooth;
}

/* === ACCESSIBILITÉ === */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}