/* --- ANIMATIONS AU DÉFILEMENT (REVEAL iOS STYLE) --- */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.reveal.active, 
.reveal-left.active, 
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
.animate-float { animation: float 5s ease-in-out infinite; }

/* --- SERVICES HERO --- */
.services-hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    overflow: hidden;
    text-align: center;
}
@media (min-width: 1024px) {
    .services-hero { padding-top: 13rem; padding-bottom: 8rem; }
}

.services-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, rgba(0, 123, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Badge Hero (Liquid Glass) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-ios);
    transition: transform 0.3s ease;
}
.hero-badge:hover {
    transform: translateY(-2px);
}
.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cpw-text);
}
.badge-icon {
    color: var(--cpw-primary);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--cpw-text);
}
.text-gradient {
    background: linear-gradient(135deg, var(--cpw-primary), #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--cpw-text);
    opacity: 0.8;
    line-height: 1.7;
    max-width: 48rem;
    margin: 0 auto;
    font-weight: 500;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

/* --- UTILITAIRES COMMUNS --- */
.container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}
.center { align-items: center; justify-content: center; }

/* Class générique pour les éléments Liquid Glass */
.glass-ios {
    background-color: var(--glass-bg);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-ios);
}

/* --- FEATURES SECTION (Image + Texte) --- */
.feature-section {
    padding: 5rem 0;
    position: relative;
}
.bg-alt {
    background-color: var(--hover-bg);
}

.feature-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
@media (min-width: 1024px) {
    .feature-container { flex-direction: row; }
    .feature-container.reverse { flex-direction: row-reverse; }
    .feature-img-wrapper, .feature-content { width: 50%; }
}

.feature-img-wrapper { position: relative; }
.feature-img-glow {
    position: absolute;
    inset: -1rem;
    border-radius: 3.5rem;
    opacity: 0.15;
    filter: blur(50px);
    transition: opacity 0.5s ease;
    z-index: 0;
}
.feature-img-wrapper:hover .feature-img-glow { opacity: 0.25; }
.glow-cyan { background: linear-gradient(135deg, #60a5fa, #67e8f9); }
.glow-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.glow-orange { background: linear-gradient(135deg, #fb923c, #ef4444); }

.feature-img-inner {
    padding: 1rem;
    border-radius: 2.5rem;
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease;
}
.feature-img-wrapper:hover .feature-img-inner { transform: scale(1.02); }

.feature-img {
    width: 100%;
    border-radius: 1.75rem;
    display: block;
}

.icon-square {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
}
.bg-cyan { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.bg-orange { background: linear-gradient(135deg, #fb923c, #ef4444); }

.feature-content h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--cpw-text);
    letter-spacing: -0.02em;
}
@media (min-width: 768px) { .feature-content h2 { font-size: 2.5rem; } }

.feature-desc {
    color: var(--cpw-text);
    opacity: 0.8;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Check List (Liquid Glass) */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.check-item:hover { 
    transform: translateX(8px); 
    background-color: var(--glass-highlight);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.check-icon { margin-top: 0.125rem; font-size: 1.125rem; }
.text-green { color: #22c55e; }
.text-purple { color: #a855f7; }
.text-orange { color: #f97316; }

.check-text strong {
    display: block;
    color: var(--cpw-text);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    font-weight: 800;
}
.check-text span {
    color: var(--cpw-text);
    opacity: 0.7;
    font-size: 0.8125rem;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tech-tag {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cpw-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.tech-tag:hover {
    opacity: 1;
    background-color: var(--hover-bg);
    transform: translateY(-2px);
}

/* --- FRAMEWORK SECTION --- */
.framework-section { padding: 6rem 0; }
.bg-primary-light { background-color: var(--hover-bg); }

.section-header.center { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; color: var(--cpw-text); letter-spacing: -0.02em; }
@media (min-width: 768px) { .section-title { font-size: 2.75rem; } }
.section-desc { color: var(--cpw-text); opacity: 0.8; font-size: 1.125rem; line-height: 1.6; }

.framework-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .framework-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .framework-grid { grid-template-columns: repeat(4, 1fr); } }

/* Framework Card (Liquid Glass) */
.framework-card {
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.framework-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    background-color: var(--glass-highlight);
}

.card-glow {
    position: absolute;
    top: -2rem; right: -2rem;
    width: 8rem; height: 8rem;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.7s ease;
    pointer-events: none;
}
.framework-card:hover .card-glow { transform: scale(1.5); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cpw-text);
    opacity: 0.1;
    line-height: 1;
}
[data-theme="dark"] .step-number { opacity: 0.2; }

.step-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--glass-bg);
    color: var(--cpw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-ios);
    border: 1px solid var(--glass-border);
    font-size: 1.125rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cpw-text);
    margin-bottom: 1rem;
}
.card-desc {
    font-size: 0.9375rem;
    color: var(--cpw-text);
    opacity: 0.7;
    line-height: 1.7;
}

/* --- FAQ SECTION (Liquid Glass) --- */
.faq-section { padding: 6rem 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
.space-y-4 { display: flex; flex-direction: column; gap: 1rem; }

.faq-box {
    border-radius: 1.5rem !important;
    overflow: hidden;
    margin-bottom: 1rem; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.faq-box:hover {
    border-color: var(--cpw-primary);
    box-shadow: 0 15px 30px -5px rgba(0, 123, 255, 0.15);
    transform: translateY(-3px);
    background-color: var(--glass-highlight);
}

.faq-btn {
    width: 100%;
    padding: 1.5rem 2rem; 
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.3s ease;
}

.faq-question-text {
    font-weight: 800;
    font-size: 1.05rem; 
    color: var(--cpw-text);
}

.faq-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1); 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--cpw-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.faq-btn:hover .faq-icon {
    background-color: var(--cpw-primary);
    color: white;
}
.faq-icon i { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
    padding: 0 2rem 1.5rem 2rem; 
    font-size: 0.95rem; 
    color: var(--cpw-text);
    opacity: 0.8;
    line-height: 1.7;
    border-top: 1px solid var(--border-light); 
    margin-top: -0.5rem;
    padding-top: 1.5rem;
}

/* --- CTA SECTION --- */
.cta-section { padding: 6rem 0; position: relative; overflow: hidden; }

.cta-card {
    background-color: #0f172a;
    color: white;
    border-radius: 2.5rem;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) { .cta-card { padding: 6rem; } }

.cta-hover-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.cta-card:hover .cta-hover-layer { opacity: 1; }

.cta-glow {
    position: absolute;
    top: -8rem; right: -8rem;
    width: 20rem; height: 20rem;
    background-color: var(--cpw-primary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    transition: transform 1s ease;
}
.cta-card:hover .cta-glow { transform: scale(1.2); }

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) { .cta-title { font-size: 3rem; } }

.cta-desc {
    font-size: 1.125rem;
    opacity: 0.8;
    margin: 0 auto 3rem auto;
    max-width: 42rem;
    position: relative;
    z-index: 10;
    line-height: 1.6;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: white;
    color: #0f172a;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}
.cta-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 15px 25px rgba(255,255,255,0.1); 
    gap: 1rem;
}