/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
    --primary-orange: #FF6B35;
    --secondary-blue: #1E3A5F;
    --light-blue: #2C5F8D;
    --background: #F8F9FA;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

p, .card-description, .benefit-text, .modal-step-description {
    -webkit-user-select: text;
    user-select: text;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: var(--white);
    padding: 40px 0 30px;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-dark);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.highlight {
    color: var(--primary-orange);
    display: inline-block;
    position: relative;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 35px 0;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--secondary-blue);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #FF8C5A);
    border-radius: 2px;
}

/* ============================================
   QUE SOUHAITEZ-VOUS FAIRE ? - 6 CARDS COLORÉES
   ============================================ */

.use-cases {
    background: var(--white);
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    background: var(--background);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out both;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Couleurs pastel modernes pour chaque card */
.card-color-1 {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF0F0 100%);
}

.card-color-2 {
    background: linear-gradient(135deg, #E5F4FF 0%, #F0F8FF 100%);
}

.card-color-3 {
    background: linear-gradient(135deg, #FFF4E5 0%, #FFF9F0 100%);
}

.card-color-4 {
    background: linear-gradient(135deg, #F0E5FF 0%, #F8F0FF 100%);
}

.card-color-5 {
    background: linear-gradient(135deg, #E5FFF0 0%, #F0FFF5 100%);
}

.card-color-6 {
    background: linear-gradient(135deg, #FFF0E5 0%, #FFF8F0 100%);
    border: 2px dashed rgba(255, 107, 53, 0.3);
}

.clickable-card:active {
    transform: scale(0.95);
    border-color: var(--primary-orange);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.card-emoji {
    font-size: 32px;
    flex-shrink: 0;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.card:nth-child(1) .card-emoji { animation-delay: 0s; }
.card:nth-child(2) .card-emoji { animation-delay: 0.3s; }
.card:nth-child(3) .card-emoji { animation-delay: 0.6s; }
.card:nth-child(4) .card-emoji { animation-delay: 0.9s; }
.card:nth-child(5) .card-emoji { animation-delay: 1.2s; }
.card:nth-child(6) .card-emoji { animation-delay: 1.5s; }

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-5px) scale(1.05);
    }
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-blue);
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

.card-description {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

.card-button {
    width: 100%;
    padding: 10px 16px;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 80px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
    flex-shrink: 0;
    text-align: center;
}

/* ============================================
   POURQUOI NOUS CHOISIR - GRID 2x2
   ============================================ */

.why-us {
    background: var(--white);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.benefit {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out both;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.benefit:nth-child(1) { animation-delay: 0.1s; }
.benefit:nth-child(2) { animation-delay: 0.2s; }
.benefit:nth-child(3) { animation-delay: 0.3s; }
.benefit:nth-child(4) { animation-delay: 0.4s; }

.benefit:active {
    transform: scale(0.95);
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.2);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 140, 90, 0.05));
}

.benefit-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-blue);
    margin-bottom: 8px;
    text-align: center;
}

.benefit-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
    text-align: center;
}

/* ============================================
   CTA FINAL
   ============================================ */

.final-cta {
    background: var(--white);
    text-align: center;
    padding: 40px 0;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-dark);
    animation: fadeInUp 0.6s ease-out;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 80px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    -webkit-tap-highlight-color: transparent;
}

.cta-button.primary {
    background: var(--primary-orange);
    color: var(--white);
}

.cta-button.large {
    padding: 18px 40px;
    font-size: 18px;
}

.cta-button:active {
    transform: scale(0.96);
    box-shadow: var(--shadow-sm);
}

.button-icon {
    font-size: 24px;
    transition: transform var(--transition-speed);
}

/* ============================================
   BOUTON FLOTTANT "COMMENT ÇA MARCHE"
   ============================================ */

.floating-help-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-orange), #FF8C5A);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    animation: floatIn 0.6s ease-out 0.8s both;
}

.floating-help-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}

.floating-help-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.3);
}

.floating-help-icon {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

/* Animation d'entrée du bouton flottant */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulse subtil pour attirer l'attention */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 28px rgba(255, 107, 53, 0.6);
    }
}

.floating-help-button {
    animation: floatIn 0.6s ease-out 0.8s both, pulse 2s ease-in-out 2s infinite;
}

/* Responsive - Ajuster la position sur petit écran */
@media (max-width: 380px) {
    .floating-help-button {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    
    .floating-help-icon {
        font-size: 26px;
    }
}

/* ============================================
   MODAL "COMMENT ÇA MARCHE"
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--white);
    border-radius: 24px 24px 0 0;
    padding: 32px 24px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--background);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:active {
    transform: scale(0.9);
    background: var(--text-light);
    color: var(--white);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 24px;
    text-align: center;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--background);
    border-radius: 12px;
}

.modal-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange), #FF8C5A);
    border-radius: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.modal-step-content {
    flex: 1;
}

.modal-step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-blue);
    margin-bottom: 4px;
}

.modal-step-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.modal-cta-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 80px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.modal-cta-button:active {
    transform: scale(0.96);
}

/* Contact dans le modal */
.modal-contact {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--background);
    text-align: center;
}

.modal-contact-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.modal-contact-info {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.modal-contact-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    display: inline;
}

.modal-contact-link:active {
    opacity: 0.7;
}

.modal-contact-separator {
    color: var(--text-light);
    font-size: 12px;
    margin: 0 8px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* ============================================
   CLASSES D'ANIMATION TACTILE
   ============================================ */

.card.active-touch,
.benefit.active-touch {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.2) !important;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cta-button.button-pressed,
.floating-help-button.button-pressed {
    transform: scale(0.96) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .modal-content {
        border-radius: 24px;
        max-height: 90vh;
    }
}

/* ============================================
   OPTIMISATIONS MOBILE
   ============================================ */

html {
    -webkit-overflow-scrolling: touch;
}

body {
    overscroll-behavior-y: none;
}

.card, .benefit, .cta-button {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}