:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    --primary: #000000;
    --accent: #3b82f6;
    
    --text-primary: #000000;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    
    --bg-primary: #fafbfc;
    --bg-secondary: #f5f6f7;
    
    --success: #10b981;
    --error: #ef4444;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(var(--space-4), 4vw, var(--space-6));
    width: 100%;
    box-sizing: border-box;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.logo {
    font-size: 1.75rem;
    font-weight: 400;
    color: #667eea;
    letter-spacing: -0.02em;
    text-decoration: none;
    font-family: 'Leckerli One', cursive;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.nav-brand {
    flex-shrink: 0;
    margin-right: var(--space-2);
}

.lang-selector-wrapper {
    position: relative;
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-selector-btn:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.flag-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.lang-arrow {
    transition: transform var(--transition-fast);
    color: var(--text-secondary);
    width: 12px;
    height: 12px;
}

.lang-selector-btn.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.lang-option:hover {
    background: var(--gray-50);
}

.lang-option.active {
    background: var(--black);
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--black);
    color: white;
    border: 1px solid var(--black);
}

.btn-primary:hover {
    background: var(--gray-800);
    border-color: var(--gray-800);
    transform: translateY(-1px);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    margin-top: var(--space-6);
}

.hero {
    padding-top: clamp(calc(var(--space-12) + 60px), 12vw, calc(var(--space-20) + 60px));
    padding-bottom: clamp(var(--space-12), 10vw, var(--space-20));
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-6);
    color: var(--black);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#typing-text {
    display: inline;
    opacity: 0;
}

.hero-title.typing-started #typing-text {
    opacity: 1;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--black);
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: baseline;
    line-height: 1.05;
    opacity: 0;
}

.hero-title.typing-started .typing-cursor {
    opacity: 1;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-title.typing-complete .typing-cursor {
    animation: none;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    margin-bottom: var(--space-16);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-illustration {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(var(--space-4), 4vw, var(--space-6));
    margin-top: clamp(var(--space-8), 8vw, var(--space-16));
    animation: fadeInUp 0.8s ease-out 0.6s both;
    width: 100%;
    box-sizing: border-box;
}

/* Section mobile pour les blocs - cachée sur desktop */
.hero-illustration-mobile-section {
    display: none;
}

.illustration-card {
    background: var(--bg-primary);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.illustration-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.illustration-card.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.illustration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.illustration-card:hover::before {
    transform: scaleX(1);
}

.illustration-card:hover {
    border-color: var(--gray-300);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: var(--gray-50);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.illustration-card:hover .icon-wrapper {
    background: var(--black);
    transform: scale(1.1);
}

.icon-large {
    width: 28px;
    height: 28px;
    color: var(--black);
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.illustration-card:hover .icon-large {
    color: white;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

section {
    padding: clamp(var(--space-8), 8vw, var(--space-16)) 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

section:not(.hero).animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section:not(.hero).animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Désactiver l'animation sur la section security elle-même */
.security.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.security.animate-on-scroll.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Exclure les titres de l'animation de la section parente */
.section-title,
.section-subtitle {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-4);
    color: var(--black);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

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

.steps-navigation {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin: var(--space-12) 0;
    flex-wrap: wrap;
}

.step-nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.step-nav-btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.step-nav-btn:hover {
    border-color: var(--gray-400);
    color: var(--text-primary);
}

.step-nav-btn.active {
    background: var(--black);
    color: white;
    border-color: var(--black);
}

.steps-carousel {
    position: relative;
    margin-top: var(--space-12);
    overflow: hidden;
    touch-action: pan-x pan-y;
}

.steps-wrapper {
    position: relative;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card {
    min-width: 100%;
    background: var(--bg-primary);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    position: relative;
}

.step-card.active {
    display: flex;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-icon-large {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    position: relative;
}

.step-icon-large svg {
    width: 32px;
    height: 32px;
}

.step-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.0625rem;
    max-width: 600px;
    font-weight: 400;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-base);
}

.indicator:hover {
    background: var(--gray-400);
}

.indicator.active {
    background: var(--black);
    width: 24px;
    border-radius: var(--radius-full);
}

/* ===== Security Section ===== */
.security {
    background: var(--bg-secondary);
}

.how-it-works-cta {
    text-align: center;
    margin-top: var(--space-12);
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.security-feature {
    background: var(--bg-primary);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Animation au scroll - seulement si JS est actif */
.security-feature.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.security-feature.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.security-feature:hover {
    border-color: var(--gray-300);
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.security-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-5);
    transition: transform var(--transition-base);
}

.security-feature:hover .security-icon {
    transform: scale(1.05);
}

.security-icon svg {
    width: 100%;
    height: 100%;
}

.security-feature h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.security-feature p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 400;
}

/* ===== Form ===== */
.inscription {
    background: var(--bg-primary);
    position: relative;
}

.form-container {
    max-width: 600px;
    margin: var(--space-12) auto 0;
    background: var(--bg-primary);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.inscription-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-input,
.form-select {
    padding: var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group input.error,
.form-group select.error,
.form-input.error,
.form-select.error {
    border-color: var(--error);
}

/* Phone input group */
.phone-input-group {
    display: flex;
    gap: var(--space-2);
    align-items: stretch;
}

.phone-code {
    flex: 0 0 auto;
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    text-align: center;
    padding: var(--space-4) var(--space-2);
    font-size: 0.9375rem;
}

.phone-number {
    flex: 1;
    min-width: 0;
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--space-2);
    display: none;
}

.error-message.show {
    display: block;
}

.form-message {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.spinner {
    width: 20px;
    height: 20px;
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: var(--gray-400);
    padding: var(--space-16) 0 var(--space-8);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-800);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--space-4);
    color: white;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-3);
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9375rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-contact {
    margin-top: var(--space-4);
}

.footer-contact .contact-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.footer-contact .contact-link:hover {
    color: white;
}

.footer-contact .contact-link::after {
    content: 'eytan@rimonee.com';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: 4px;
    font-size: 0.8125rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    margin-bottom: var(--space-2);
    border: 1px solid var(--gray-700);
}

.footer-contact .contact-link:hover::after {
    opacity: 1;
}

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

/* Grand écran (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .hero-illustration {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Desktop / Laptop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .container {
        padding: 0 clamp(var(--space-4), 3vw, var(--space-6));
    }
    
    .hero-title {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }
    
    .hero-illustration {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

/* iPad / Tablette (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        padding: 0 clamp(var(--space-4), 4vw, var(--space-6));
    }
    
    .hero {
        min-height: 90vh;
        padding-top: calc(var(--space-12) + 60px);
        padding-bottom: var(--space-12);
        display: flex;
        align-items: center;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
        margin-bottom: var(--space-8);
    }
    
    .hero-subtitle {
        font-size: clamp(1.125rem, 2.5vw, 1.25rem);
        margin-bottom: var(--space-8);
    }
    
    .hero-cta {
        margin-bottom: var(--space-12);
    }
    
    .hero-illustration {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
        margin-top: var(--space-12);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .illustration-card {
        padding: var(--space-8);
    }
    
    .security-features {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    section {
        padding: var(--space-12) 0;
    }
    
    .how-it-works {
        min-height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .security-section {
        min-height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .inscription {
        min-height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .container {
        padding: 0 var(--space-5);
    }
    
    section {
        padding: 0;
    }
    
    .hero {
        padding-bottom: 0;
    }
    
    .hero-illustration-mobile-section {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .how-it-works {
        padding-top: 0;
    }
    
    .nav-actions {
        gap: var(--space-3);
    }
    
    .btn-primary {
        padding: var(--space-2) var(--space-4);
        font-size: 0.875rem;
    }
    
    .lang-selector-btn {
        padding: var(--space-2);
    }
    
    /* Hero prend une page complète avec les 3 parties réparties harmonieusement */
    .hero {
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        padding: calc(var(--space-10) + 60px) var(--space-5) var(--space-6);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }
    
    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding-top: var(--space-6);
        padding-bottom: var(--space-6);
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 2.75rem);
        line-height: 1.2;
        margin-bottom: 0;
        margin-top: auto;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem);
        margin-bottom: 0;
        margin-top: var(--space-8);
        padding: 0 var(--space-2);
        line-height: 1.6;
    }
    
    .hero-cta {
        margin-bottom: 0;
        margin-top: var(--space-10);
    }
    
    /* Cacher ABSOLUMENT les blocs dans le hero sur mobile */
    .hero-illustration {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Section mobile pour les 3 blocs - prend une page complète */
    .hero-illustration-mobile-section {
        display: flex;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: var(--bg-secondary);
    }
    
    .hero-illustration-mobile-section .container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-illustration-mobile {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-6);
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .illustration-card {
        padding: var(--space-8) var(--space-6);
        width: 100%;
    }
    
    .icon-wrapper {
        margin-bottom: var(--space-4);
    }
    
    .icon-large {
        width: 48px;
        height: 48px;
    }
    
    .card-title {
        font-size: 1.125rem;
        margin-bottom: var(--space-2);
    }
    
    .card-description {
        font-size: 0.9375rem;
    }
    
    .security-features {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .form-container {
        padding: var(--space-8) var(--space-5);
    }
    
    .step-card {
        padding: var(--space-8) var(--space-5);
    }
    
    .how-it-works {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .steps-carousel {
        -webkit-overflow-scrolling: touch;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .security-section {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--space-10) 0;
    }
    
    .inscription {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--space-10) 0;
    }
}

/* Petit mobile (< 480px) */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .nav-actions {
        gap: var(--space-3);
    }
    
    .btn-primary {
        padding: var(--space-2) var(--space-4);
        font-size: 0.8125rem;
    }
    
    .lang-selector-btn {
        padding: var(--space-2);
        min-width: auto;
    }
    
    .lang-selector-btn .flag-icon {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: var(--space-3) var(--space-6);
        font-size: 0.9375rem;
    }
    
    section {
        padding: 0;
    }
    
    .hero {
        padding-bottom: 0;
    }
    
    .hero-illustration-mobile-section {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .how-it-works {
        padding-top: 0;
    }
    
    /* Hero prend une page complète avec les 3 parties réparties harmonieusement */
    .hero {
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        padding: calc(var(--space-8) + 60px) var(--space-4) var(--space-4);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }
    
    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding-top: var(--space-4);
        padding-bottom: var(--space-4);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.2;
        margin-bottom: 0;
        margin-top: auto;
        padding: 0 var(--space-2);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9375rem, 3.5vw, 1rem);
        margin-bottom: 0;
        margin-top: var(--space-6);
        padding: 0 var(--space-3);
        line-height: 1.6;
    }
    
    .hero-cta {
        margin-bottom: 0;
        margin-top: var(--space-8);
    }
    
    /* Cacher ABSOLUMENT les blocs dans le hero sur petit mobile */
    .hero-illustration {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Section mobile pour les 3 blocs - prend une page complète */
    .hero-illustration-mobile-section {
        display: flex;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: var(--bg-secondary);
    }
    
    .hero-illustration-mobile-section .container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-illustration-mobile {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-5);
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .illustration-card {
        padding: var(--space-6) var(--space-5);
        width: 100%;
    }
    
    .icon-wrapper {
        margin-bottom: var(--space-3);
    }
    
    .icon-large {
        width: 40px;
        height: 40px;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: var(--space-2);
    }
    
    .card-description {
        font-size: 0.875rem;
    }
    
    .security-features {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .security-feature {
        padding: var(--space-6);
    }
    
    .form-container {
        padding: var(--space-6) var(--space-4);
    }
    
    .step-card {
        padding: var(--space-6) var(--space-4);
        min-height: auto;
    }
    
    .how-it-works {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--space-8) 0;
    }
    
    .steps-carousel {
        -webkit-overflow-scrolling: touch;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .security-section {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--space-8) 0;
    }
    
    .inscription {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--space-8) 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        margin-bottom: var(--space-6);
    }
    
    .steps-navigation {
        gap: var(--space-2);
        margin-bottom: var(--space-6);
    }
    
    .step-nav-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 0.8125rem;
    }
    
    .step-nav-btn svg {
        width: 16px;
        height: 16px;
    }
}
