/**
 * 🍎 SECTION "COMMENT ÇA FONCTIONNE" - ESTHÉTIQUE APPLE PREMIUM
 * Design moderne, lisible, avec arrondis prononcés et contraste renforcé
 */

/* Variables Apple-inspired */
:root {
    --apple-white: #FAFAFA;
    --apple-gray-light: #F5F5F7;
    --apple-gray: #EEEEEE;
    --apple-dark: #1D1D1F;
    --apple-blue: #007AFF;
    --apple-shadow: 0 8px 32px rgba(0,0,0,0.06);
    --apple-shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    --apple-radius-large: 32px;
    --apple-radius-medium: 24px;
    --apple-transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Section principale */
.concept-section {
    background: linear-gradient(180deg, var(--apple-white) 0%, var(--apple-gray-light) 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.concept-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
}

.concept-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Titres de section - Style Apple */
.concept-section .section-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--apple-dark);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.concept-section .section-subtitle {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: #6B7280;
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Conteneur des étapes */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Carte d'étape - Design Apple */
.step {
    background: white;
    border-radius: var(--apple-radius-large);
    padding: 48px 32px;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--apple-transition);
    box-shadow: var(--apple-shadow);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: visible; /* 🆕 Visible pour ne pas couper le texte */
    min-height: 520px !important; /* 🆕 AUGMENTÉ : Hauteur minimum pour TOUT le texte */
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--apple-radius-large) var(--apple-radius-large) 0 0;
}

.step:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--apple-shadow-hover);
    border-radius: var(--apple-radius-large); /* 🆕 FORCE border-radius au hover */
}

/* Icône d'étape */
.step-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s var(--apple-transition);
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-icon .icon-svg {
    font-size: 48px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* Titre d'étape */
.step h3 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    font-weight: 700;
    color: var(--apple-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Description d'étape */
.step p {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 500;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

.step strong {
    color: var(--primary);
    font-weight: 700;
}

/* Animation d'apparition progressive */
.step {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s var(--apple-transition) forwards;
}

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

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

/* Responsive mobile premium */
@media (max-width: 768px) {
    .concept-section {
        padding: 80px 0;
    }
    
    /* 📱 Centrage des titres sur mobile */
    .concept-section .section-title {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .concept-section .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 60px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
    
    .step {
        padding: 40px 24px;
        border-radius: var(--apple-radius-medium);
        min-height: 520px !important; /* 🆕 Même hauteur sur mobile */
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }
    
    .step-icon .icon-svg {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .concept-section {
        padding: 60px 0;
    }
    
    /* 📱 Centrage renforcé pour petits écrans */
    .concept-section .section-title {
        text-align: center !important;
        padding: 0 16px !important;
    }
    
    .concept-section .section-subtitle {
        text-align: center !important;
        padding: 0 16px !important;
    }
    
    .step {
        padding: 32px 20px;
        border-radius: 20px;
        min-height: 520px !important; /* 🆕 Hauteur forcée aussi sur petit mobile */
    }
    
    .step-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 20px;
    }
    
    .step-icon .icon-svg {
        font-size: 36px;
    }
}
