/* Import Google Fonts for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #FFB6C1;
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 120px;
    height: 60px;
    filter: drop-shadow(0 2px 10px rgba(255, 182, 193, 0.3));
    transition: transform 0.3s ease;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Animation de pulsation du logo */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: #FFB6C1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

nav ul li a:hover {
    background: rgba(255, 182, 193, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFB6C1;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Main content */
main {
    margin-top: 100px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 2s ease-out;
}

.highlight {
    background: linear-gradient(45deg, #FFB6C1, #ff9bb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #FFB6C1, #ff9bb3);
    color: #2c3e50;
    padding: 1.5rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.6);
}

#threejs-canvas {
    width: 100%;
    height: 400px;
    margin-top: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Benefits section */
.benefits {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }

.benefit-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-item h3 {
    color: #FFB6C1;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* How it works section */
.how-it-works {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.6s; }

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(255, 182, 193, 0.2);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #FFB6C1, #ff9bb3);
    color: #2c3e50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Testimonials section */
.testimonials {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.testimonial-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.testimonial-track {
    display: flex;
    width: calc(100% * 10); /* 10 témoignages */
    animation: scroll 80s linear infinite;
}

.testimonial-item {
    width: calc(100% / 10);
    flex-shrink: 0;
    padding: 0 1rem;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(255, 182, 193, 0.2);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
}

.testimonial-content cite {
    color: #FFB6C1;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Animation du carrousel */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 10 * 9)); }
}

/* Indicateurs du carrousel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #FFB6C1;
    transform: scale(1.2);
}

.indicator:hover {
    background: #ff9bb3;
}

/* Pause l'animation au survol */
.testimonial-carousel:hover .testimonial-track {
    animation-play-state: paused;
}

/* Contact section */
.contact {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.contact p {
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #FFB6C1;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFB6C1;
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #FFB6C1;
}

.form-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.checkbox-group {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #FFB6C1;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background-color: #FFB6C1;
    border-color: #FFB6C1;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label:hover .checkmark {
    border-color: #ff9bb3;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.5);
}

.contact-form button {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #FFB6C1;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer nav ul {
    display: flex;
    gap: 2rem;
}

footer nav ul li a {
    color: #FFB6C1;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: #ff9bb3;
}

/* Animations */
@keyframes glow {
    0% { text-shadow: 0 4px 20px rgba(255, 182, 193, 0.3); }
    100% { text-shadow: 0 4px 30px rgba(255, 182, 193, 0.6); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Logo animation */
.grow-path {
    animation: growPath 3s ease-in-out infinite alternate;
}

.grow-circle {
    animation: growCircle 2s ease-in-out infinite alternate;
}

@keyframes growPath {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(1.2); }
}

@keyframes growCircle {
    0% { r: 3; }
    100% { r: 5; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        display: none;
        gap: 0;
        padding: 1rem 0;
        border-radius: 0 0 20px 20px;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 1rem 0;
    }

    .benefit-list,
    .steps,
    .testimonial-list {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form button {
        justify-self: center;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    footer nav ul {
        margin-top: 1rem;
    }
}