/* ===================================
   FindMyBag - Charte graphique
   =================================== */

:root {
    /* Couleurs principales */
    --primary-blue: #2E5C8A;
    --secondary-orange: #FF8C42;
    --accent-mint: #4ECDC4;

    /* Neutres */
    --white-cream: #FAFAF8;
    --gray-slate: #5A6C7D;
    --black-deep: #1A2332;

    /* Badge colors */
    --badge-red: #FF6B6B;

    /* Typographie */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Poppins', sans-serif;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Header height */
    --header-height: 130px;
}

/* ===================================
   Reset & Base
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black-deep);
    background-color: var(--white-cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black-deep);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   Container & Layout
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(250, 250, 248, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Top Bar: Logo + Language + Auth */
.header-top {
    border-bottom: 1px solid rgba(46, 92, 138, 0.1);
    background-color: white;
}

.header-top-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-text {
    font-family: var(--font-heading);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation Bar: Menu + Cart (Sticky) */
.header-nav {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
}

.header-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.625rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
}

.nav-link {
    color: var(--gray-slate);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-orange);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232E5C8A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.language-select:hover {
    background-color: var(--primary-blue);
    color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.language-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 92, 138, 0.2);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary-blue);
    display:flex;
}

.cart-icon:hover {
    color: var(--secondary-orange);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-family: var(--font-accent);
}

/* Cacher le panier de la nav en desktop */
.cart-icon-nav {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ===================================
   Buttons
   =================================== */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    background-color: #ff7a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
        box-shadow: 0 6px 20px #2E5C8A;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(46, 92, 138, 0.05) 0%,
        rgba(78, 205, 196, 0.05) 100%);
    opacity: 0.5;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/home-findmybag.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    filter: blur(1px);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--black-deep);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-slate);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-orange);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-slate);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.mockup-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.qr-code {
    width: 200px;
    height: 200px;
    background: repeating-linear-gradient(
        90deg,
        var(--black-deep) 0px,
        var(--black-deep) 10px,
        white 10px,
        white 20px
    ),
    repeating-linear-gradient(
        0deg,
        var(--black-deep) 0px,
        var(--black-deep) 10px,
        white 10px,
        white 20px
    );
    background-size: 20px 20px;
    border: 10px solid var(--black-deep);
    border-radius: 12px;
    margin: 0 auto 1rem;
}

.mockup-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 3px solid var(--secondary-orange);
    border-bottom: 3px solid var(--secondary-orange);
    transform: rotate(-45deg);
}

/* ===================================
   Section Titles
   =================================== */

.section-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-slate);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===================================
   Features Section
   =================================== */

.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: 2rem;
    background-color: var(--white-cream);
    border-radius: 12px;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-orange);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.feature-description {
    color: var(--gray-slate);
    line-height: 1.7;
}

/* ===================================
   Products Section
   =================================== */

.products {
    position: relative;
    background: linear-gradient(180deg, rgba(250, 250, 248, 0.5) 0%, rgba(250, 250, 248, 0.5) 100%);
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1464037866556-6812c9d1c72e?q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: -1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--secondary-orange);
}

.product-card.featured {
    border: 3px solid var(--secondary-orange);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-accent);
    color: white;
    z-index: 10;
}

.badge-new {
    background-color: var(--accent-mint);
}

.badge-bestseller {
    background-color: var(--secondary-orange);
}

.badge-promo {
    background-color: var(--badge-red);
}

.product-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--gray-slate);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background-color: var(--white-cream);
    color: var(--gray-slate);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-family: var(--font-accent);
    display:block;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-orange);
    font-family: var(--font-heading);
}

/* ===================================
   Pricing Section
   =================================== */

.pricing {
    background-color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    position: relative;
    background: var(--white-cream);
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-orange);
}

.pricing-card.featured {
    border-color: var(--secondary-orange);
    border-width: 3px;
    background: white;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-orange);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-accent);
}

.pricing-title {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black-deep);
    font-family: var(--font-heading);
}

.price-period {
    font-size: 1.2rem;
    color: var(--gray-slate);
    margin-left: 0.5rem;
}

.pricing-description {
    color: var(--gray-slate);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--gray-slate);
    border-bottom: 1px solid #e5e5e5;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-annual {
    text-align: center;
    color: var(--gray-slate);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.emergency-boost {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, #ff6b35 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.boost-title {
    color: white;
    margin-bottom: 1rem;
}

.boost-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.boost-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.boost-option {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.boost-option strong {
    font-size: 1.1rem;
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
    background: var(--primary-blue);
}

.how-it-works .section-title { 
        color: var(--white-cream)

}

.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0rem 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1400px;
    margin: var(--spacing-md) auto 0 auto
}

.step {
    display: contents;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-orange);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    grid-row: 1;
    margin: var(--spacing-sm) 0;
}

.step:nth-child(1) .step-number { grid-column: 1; }
.step:nth-child(3) .step-number { grid-column: 3; }
.step:nth-child(5) .step-number { grid-column: 5; }
.step:nth-child(7) .step-number { grid-column: 7; }

.step-title {
    font-size: 1.25rem;
    color: var(--secondary-orange);
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin: var(--spacing-sm) 0;
}

.step:nth-child(1) .step-title { grid-column: 1; }
.step:nth-child(3) .step-title { grid-column: 3; }
.step:nth-child(5) .step-title { grid-column: 5; }
.step:nth-child(7) .step-title { grid-column: 7; }

.step-description {
    color: var(--white-cream);
    grid-row: 3;
    display: flex;
    align-items: start;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.step:nth-child(1) .step-description { grid-column: 1; }
.step:nth-child(3) .step-description { grid-column: 3; }
.step:nth-child(5) .step-description { grid-column: 5; }
.step:nth-child(7) .step-description { grid-column: 7; }

.step-arrow {
    font-size: 2rem;
    color: var(--secondary-orange);
    font-weight: 700;
    grid-row: 1 / 4;
    align-self: center;
}

.step-arrow:nth-of-type(1) { grid-column: 2; }
.step-arrow:nth-of-type(2) { grid-column: 4; }
.step-arrow:nth-of-type(3) { grid-column: 6; }

@media (max-width: 1024px) {
    .steps {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }

    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number,
    .step-title,
    .step-description {
        grid-row: auto;
        grid-column: auto;
    }

    .step-number {
        margin-bottom: 1rem;
    }

    .step-title {
        margin-bottom: 0.5rem;
    }

    .step-arrow {
        display: none;
    }
}

/* ===================================
   Use Cases / Personas Section
   =================================== */

.use-cases {
    position: relative;
    background: linear-gradient(180deg, rgba(250, 250, 248, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.use-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1464037866556-6812c9d1c72e?q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: -1;
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1400px) {
    .personas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.persona-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid transparent;
}

.persona-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-orange);
}

.persona-card.highlighted {
    border: 3px solid var(--secondary-orange);
    background: #ffffff;
}

.persona-avatar {
    margin-bottom: 1.5rem;
}

.persona-name {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.persona-description {
    color: var(--gray-slate);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.persona-needs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.need-tag {
    background-color: var(--white-cream);
    color: var(--gray-slate);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.persona-recommendation {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4366 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    width: 100%;
}

.persona-recommendation strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.recommended-product {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-orange);
    font-family: var(--font-heading);
}

.persona-card .btn-primary,
.persona-card .btn-secondary {
    width: 100%;
}

/* ===================================
   Personas Section - Horizontal Layout
   =================================== */

.personas-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.persona-card-horizontal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 2rem;
    align-items: center;
}

.persona-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-orange);
}

.persona-card-horizontal.highlighted {
    border: 3px solid var(--secondary-orange);
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.05) 0%, rgba(255, 140, 66, 0.02) 100%);
}

/* Column 1: Avatar */
.persona-col-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.persona-col-avatar .persona-avatar {
    margin: 0;
}

/* Column 2: Presentation + Description (minimum 70%) */
.persona-col-presentation {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
    padding-right: 1rem;
}

.persona-col-presentation .persona-name {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    text-align: left;
}

.persona-col-presentation .persona-description {
    color: var(--gray-slate);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Column 3: Needs */
.persona-col-needs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
}

.persona-col-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.persona-col-needs .persona-needs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    align-items: flex-start;
}

.persona-col-needs .need-tag {
    background-color: var(--white-cream);
    color: var(--gray-slate);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Column 4: Recommendations + Pricing */
.persona-col-recommendation {
    min-width: 200px;
}

.persona-col-recommendation .persona-recommendation {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4366 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.persona-col-recommendation .persona-recommendation strong {
    display: block;
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.persona-col-recommendation .recommended-product {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-orange);
    font-family: var(--font-heading);
    line-height: 1.3;
}

.persona-col-recommendation .recommended-price {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
    margin-top: 0.25rem;
}

.persona-col-recommendation .btn-compact {
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .persona-card-horizontal {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .persona-col-avatar {
        justify-content: flex-start;
    }

    .persona-col-presentation {
        padding-right: 0;
    }

    .persona-col-needs {
        min-width: auto;
    }

    .persona-col-needs .persona-needs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .persona-col-recommendation {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .personas-container {
        gap: 1.5rem;
    }

    .persona-card-horizontal {
        padding: 1.5rem;
    }

    .persona-col-avatar .persona-avatar svg {
        width: 60px;
        height: 60px;
    }

    .persona-col-presentation .persona-name {
        font-size: 1.2rem;
    }

    .persona-col-presentation .persona-description {
        font-size: 0.95rem;
    }
}

/* ===================================
   Trust & Security Section
   =================================== */

.trust-security {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.trust-security::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1464037866556-6812c9d1c72e?q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: -1;
}

.trust-security::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--primary-blue) 0%,
        var(--accent-mint) 50%,
        var(--secondary-orange) 100%);
    z-index: 1;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 1200px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

.trust-badge {
    text-align: center;
    padding: 2rem;
    background: var(--white-cream);
    border-radius: 16px;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.trust-badge:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-mint);
}

.trust-icon {
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
}

.trust-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.trust-description {
    color: var(--gray-slate);
    line-height: 1.7;
}

.trust-footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4366 100%);
    padding: 3rem;
    border-radius: 16px;
    color: white;
    text-align: center;
}

.trust-statement {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.trust-statement strong {
    color: var(--secondary-orange);
    font-size: 1.2rem;
}

.trust-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.trust-link:hover {
    color: var(--secondary-orange);
    transform: translateY(-2px);
}

/* ===================================
   Social Proof Section
   =================================== */

.social-proof {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.social-proof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1464037866556-6812c9d1c72e?q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: -1;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white-cream);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stars {
    color: var(--secondary-orange);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--gray-slate);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4366 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--black-deep);
    color: #ccc;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #999;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #999;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
}

/* ===================================
   Loader Animation
   =================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.luggage-animation {
    animation: luggage-move 2s ease-in-out infinite;
}

@keyframes luggage-move {
    0%, 100% { transform: translateX(-50px); }
    50% { transform: translateX(50px); }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    /* Header Top - Réorganisation */
    .header-top-container {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo svg {
        width: 32px;
        height: 32px;
    }

    /* Header Actions - Mobile Layout */
    .header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .language-switcher {
        flex: 1;
        min-width: 120px;
    }

    .language-select {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .header-actions .btn-secondary,
    .header-actions .btn-primary {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        white-space: nowrap;
    }

    /* Cacher le panier du header-top en mobile */
    .header-actions .cart-icon {
        display: none;
    }

    /* Navigation Bar Container - Burger à gauche, panier à droite */
    .header-nav-container {
        padding: 0.625rem 1rem;
    }

    /* Panier dans la nav - visible en mobile */
    .cart-icon-nav {
        display: flex !important;
        width: 36px;
        height: 36px;
        position: relative;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--primary-blue);
    }

    .cart-icon-nav svg {
        width: 24px;
        height: 24px;
    }

    /* Navigation Menu - Mobile */
    .nav-menu {
        display: none;
        position: fixed;
        top: 57px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 57px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(46, 92, 138, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .step-arrow {
        display: none;
    }

    .personas-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    .hero {
        min-height: auto;
        padding: 11rem 0 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .product-footer {
        flex-direction: column;
    }

    .product-footer .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
    }

    .boost-options {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }


    .trust-links {
        flex-direction: column;
        gap: 1rem;
    }

    .trust-footer {
        padding: 2rem 1.5rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.d-none {
    display: none !important;
}

/* Classes responsive pour affichage conditionnel */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 968px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* ===================================
   Auth Pages - Unified Box Layout
   =================================== */

/* Container avec fond d'image */
.auth-unified-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background-image: url('https://i.fbcd.co/products/resized/resized-750-500/204a697973fc94b3c253c01d181e8a8d639ddd984d8665a7e7792365b8410cde.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.auth-unified-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 50, 0.75);
    backdrop-filter: blur(3px);
    z-index: 0;
}

/* Box centrale */
.auth-unified-box {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 950px;
    padding: 3rem;
}

/* Header (logo + titre) */
.auth-header-unified {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo-unified {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-main-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--black-deep);
    margin-bottom: 0.5rem;
}

.auth-main-subtitle {
    font-size: 1rem;
    color: var(--gray-slate);
}

/* Container des 2 méthodes */
.auth-methods-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Chaque box de méthode */
.auth-method-box {
    display: flex;
    flex-direction: column;
}

.auth-method-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Formulaires compacts */
.auth-form-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-compact {
    display: flex;
    flex-direction: column;
}

.form-group-compact input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    background: var(--white-cream);
}

.form-group-compact input:focus {
    outline: none;
    border-color: var(--secondary-orange);
    background: white;
}

.form-error {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Options (checkbox + lien) */
.auth-options-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray-slate);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--secondary-orange);
}

/* Bouton principal */
.btn-auth-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-orange), #ff7a2e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-accent);
    margin-top: 0.5rem;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.4);
}

/* CGU compact */
.auth-cgu-compact {
    font-size: 0.75rem;
    color: var(--gray-slate);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.auth-cgu-compact a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Divider vertical */
.auth-divider-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 1rem;
}

.auth-divider-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, #e5e5e5 20%, #e5e5e5 80%, transparent);
}

.auth-divider-vertical span {
    position: relative;
    z-index: 1;
    background: white;
    padding: 1rem 0.75rem;
    font-weight: 600;
    color: var(--gray-slate);
    font-size: 0.85rem;
}

/* Boutons OAuth compacts */
.oauth-buttons-compact {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.btn-oauth-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: var(--black-deep);
}

.btn-oauth-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.btn-oauth-compact.google:hover {
    background: #f8f9fa;
    border-color: #4285F4;
}

.btn-oauth-compact.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

/* Benefits compacts */
.auth-benefits-compact {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.benefit-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-slate);
}

.benefit-compact svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-orange);
    flex-shrink: 0;
}

/* Footer */
.auth-footer-unified {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    color: var(--gray-slate);
    font-size: 0.95rem;
}

.auth-footer-unified a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.auth-footer-unified a:hover {
    color: var(--secondary-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-methods-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-divider-vertical {
        flex-direction: row;
        padding: 1rem 0;
    }

    .auth-divider-vertical::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, transparent, #e5e5e5 20%, #e5e5e5 80%, transparent);
    }

    .auth-divider-vertical span {
        padding: 0.75rem 1rem;
    }

    .auth-unified-box {
        padding: 2rem 1.5rem;
    }

    .auth-main-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .auth-unified-container {
        padding: 1rem;
    }

    .auth-unified-box {
        padding: 1.5rem 1rem;
    }

    .auth-main-title {
        font-size: 1.625rem;
    }

    .auth-method-title {
        font-size: 1.125rem;
    }
}

.Toastify {
    display:none;
}

/* ===================================
   Hero Animation SVG
   =================================== */

.hero-animation {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    transform: translateZ(0);
    perspective: 1000px;
    overflow: hidden;
}

/* Animation principale: sliding des panneaux */
@keyframes slidePanel {
    0% { transform: translateX(0); }
    13.75% { transform: translateX(0); }
    17.75% { transform: translateX(-1200px); }
    30% { transform: translateX(-1200px); }
    34% { transform: translateX(-2400px); }
    45% { transform: translateX(-2400px); }
    49% { transform: translateX(-3600px); }
    65% { transform: translateX(-3600px); }
    69% { transform: translateX(-4800px); }
    85% { transform: translateX(-4800px); }
    89% { transform: translateX(-6000px); }
    100% { transform: translateX(-6000px); }
}

.panels-container {
    animation: slidePanel 20s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Panel 1: Anneau pulsant autour de l'étiquette */
@keyframes pulseRing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.pulse-ring {
    animation: pulseRing 2s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, opacity;
}

/* Panel 2: Ligne de scan verticale */
@keyframes scanLine {
    0% {
        transform: translateY(-200px);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(200px);
        opacity: 0;
    }
}

.scan-line {
    animation: scanLine 2.5s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Panel 3: Oscillation du téléphone */
@keyframes phoneTilt {
    0%, 100% {
        transform: rotate(-5deg) translate(180px, 120px);
    }
    50% {
        transform: rotate(5deg) translate(180px, 120px);
    }
}

.phone-tilt {
    animation: phoneTilt 1.5s ease-in-out infinite;
    transform-origin: bottom center;
    will-change: transform;
}

/* Panel 4: Apparition des bulles de chat */
@keyframes chatAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#panel-4.active #chat-bubble-1 {
    animation: chatAppear 0.5s ease-out forwards;
    animation-delay: 0.5s;
    will-change: transform, opacity;
}

#panel-4.active #chat-bubble-2 {
    animation: chatAppear 0.5s ease-out forwards;
    animation-delay: 1.2s;
    will-change: transform, opacity;
}

#panel-4.active #chat-bubble-3 {
    animation: chatAppear 0.5s ease-out forwards;
    animation-delay: 1.9s;
    will-change: transform, opacity;
}

/* Panel 5: Entrée des personnages */
@keyframes personSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#panel-5.active .person-slide-left {
    animation: personSlideIn 0.6s ease-out forwards;
    animation-delay: 0.3s;
    will-change: transform, opacity;
}

/* Panel 5: Apparition du checkmark */
@keyframes checkAppear {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

#panel-5.active .check-appear {
    animation: checkAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.8s;
    will-change: transform, opacity;
}

/* Panel 5: Coeurs qui s'envolent */
@keyframes heartFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    20% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-150px) scale(0.5);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#panel-5.active #hearts-celebration {
    animation: fadeIn 0.3s ease-out forwards;
    animation-delay: 0.5s;
}

#panel-5.active .heart-1 {
    animation: heartFloat 2.5s ease-out infinite;
    animation-delay: 0.6s;
    will-change: transform, opacity;
}

#panel-5.active .heart-2 {
    animation: heartFloat 2.8s ease-out infinite;
    animation-delay: 0.8s;
    will-change: transform, opacity;
}

#panel-5.active .heart-3 {
    animation: heartFloat 2.6s ease-out infinite;
    animation-delay: 1.0s;
    will-change: transform, opacity;
}

#panel-5.active .heart-4 {
    animation: heartFloat 2.7s ease-out infinite;
    animation-delay: 0.7s;
    will-change: transform, opacity;
}

#panel-5.active .heart-5 {
    animation: heartFloat 2.9s ease-out infinite;
    animation-delay: 0.9s;
    will-change: transform, opacity;
}

#panel-5.active .heart-6 {
    animation: heartFloat 2.4s ease-out infinite;
    animation-delay: 1.1s;
    will-change: transform, opacity;
}

#panel-5.active .heart-7 {
    animation: heartFloat 2.7s ease-out infinite;
    animation-delay: 0.75s;
    will-change: transform, opacity;
}

#panel-5.active .heart-8 {
    animation: heartFloat 2.5s ease-out infinite;
    animation-delay: 0.95s;
    will-change: transform, opacity;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-animation {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 768px) {
    .hero-animation {
        aspect-ratio: 4 / 3;
    }

    .hero-animation text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .hero-animation {
        aspect-ratio: 1 / 1;
    }

    .hero-animation text {
        font-size: 8px;
    }
}

/* Accessibilité: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .panels-container {
        animation: none;
    }

    #panel-1 {
        transform: translateX(0);
    }

    .panel:not(#panel-1) {
        display: none;
    }

    .pulse-ring,
    .scan-line,
    .phone-tilt {
        animation: none;
    }
}