/* -------------------------------------------------------------------------- */
/* VARIABLES                                  */
/* -------------------------------------------------------------------------- */
:root {
    /* Palette de couleurs */
    --color-primary: #8b51fe;
    --color-primary-dark: #7a42e5;
    --color-secondary: #323c84;
    --color-secondary-light: #444e99;
    --color-accent: #e902a0;
    --color-pink-light: #fbd8da;
    --color-bg-light: #f9f7ff;
    --color-white: #ffffff;
    
    /* Textes */
    --color-text-main: #151320;
    --color-text-muted: #6f6b80;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --gradient-soft: linear-gradient(135deg, rgba(139, 81, 254, 0.1), rgba(233, 2, 160, 0.1));
    
    /* Espacement & Layout */
    --spacing-unit: 8px;
    --container-width: 1100px;
    --header-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 10px 30px -10px rgba(139, 81, 254, 0.15);
    --shadow-hover: 0 20px 40px -12px rgba(139, 81, 254, 0.25);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -------------------------------------------------------------------------- */
/* RESET                                    */
/* -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------- */
/* TYPOGRAPHY                                  */
/* -------------------------------------------------------------------------- */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
}

p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-under {
    position: relative;
    white-space: nowrap;
    z-index: 1;
}

.highlight-under::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.3em;
    background-color: var(--color-pink-light);
    z-index: -1;
    transform: skewX(-10deg);
}

/* -------------------------------------------------------------------------- */
/* LAYOUT                                    */
/* -------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.small-container {
    max-width: 800px;
}

.section-spacing {
    padding: clamp(60px, 10vh, 100px) 0;
}

.bg-light-alt {
    background-color: var(--color-white);
}

.bg-pinky {
    background-color: var(--color-pink-light);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.text-white h2, .text-white p {
    color: var(--color-white);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.text-center {
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* COMPONENTS                                  */
/* -------------------------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 2, 160, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 2, 160, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
}

.btn-outline:hover {
    background-color: rgba(139, 81, 254, 0.05);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 81, 254, 0.4);
    z-index: 1000;
}

.back-to-top-btn:hover {
    transform: scale(1);
    background: var(--color-primary-dark);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}


/* -------------------------------------------------------------------------- */
/* HEADER                                    */
/* -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--color-secondary);
}

.social-nav {
    display: flex;
    gap: 1.5rem;
}

.social-nav a {
    color: var(--color-secondary);
    opacity: 0.8;
}

.social-nav a:hover {
    color: var(--color-primary);
    opacity: 1;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* HERO SECTION                                */
/* -------------------------------------------------------------------------- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--header-height) + 40px);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 850px;
    z-index: 2;
}

.pill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-pink-light);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.reassurance {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.link-scroll {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
}

.link-scroll:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    bottom: 10%;
    right: -50px;
    animation-delay: -10s;
}

/* -------------------------------------------------------------------------- */
/* LISTS & TIMELINE                            */
/* -------------------------------------------------------------------------- */
.check-list {
    list-style: none;
    margin: 2rem 0;
}

.check-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.warning-box {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px; /* Aligns with marker center */
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(139, 81, 254, 0.2);
    z-index: 1;
}

.timeline-footer {
    text-align: center;
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: 2rem;
}

/* -------------------------------------------------------------------------- */
/* ABOUT SECTION                               */
/* -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
}

.about-img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.img-decor {
    position: absolute;
    width: 100%;
    max-width: 400px;
    height: 100%;
    border: 2px solid var(--color-primary);
    top: 20px;
    left: 20px; /* Offset to right */
    border-radius: var(--radius-lg);
    z-index: 1;
    opacity: 0.3;
}

/* -------------------------------------------------------------------------- */
/* FAQ                                     */
/* -------------------------------------------------------------------------- */
.faq-accordion {
    margin-top: 3rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--color-primary);
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-header[aria-expanded="true"] .icon {
    transform: rotate(45deg);
    color: var(--color-accent);
}

.accordion-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.content-inner {
    padding-bottom: 1.5rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* FOOTER                                   */
/* -------------------------------------------------------------------------- */
.footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* -------------------------------------------------------------------------- */
/* ANIMATIONS                                  */
/* -------------------------------------------------------------------------- */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -50px); }
    66% { transform: translate(-20px, 20px); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* -------------------------------------------------------------------------- */
/* RESPONSIVE                                    */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image-wrapper {
        margin-bottom: 1rem;
    }
    
    .img-decor {
        left: 50%;
        transform: translateX(-48%); /* Center hack with offset */
        top: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .btn-lg {
        width: 100%;
    }

    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}