/* ====================================================
   KAFYKA ACCUEIL - Premium Modern Design
   ==================================================== */
:root {
    --primary-green: #009A44;
    --primary-dark: #007a35;
    --primary-soft: rgba(0, 154, 68, 0.1);
    --primary-light: rgba(0, 154, 68, 0.05);
    --secondary-blue: #1e293b;
    --dark-slate: #0f172a;
    --gray-light: #f8fafc;
    --gray-medium: #64748b;
    --gray-border: #e2e8f0;
    --white: #ffffff;
    --success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-green: 0 10px 15px -3px rgba(0, 154, 68, 0.3);
}

/* ====================================================
   HERO SECTION
   ==================================================== */
.hero-section {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: var(--white);
    overflow: hidden;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

/* Animated background shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-1 {
    top: -15%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 5%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 41, 59, 0.08) 0%, transparent 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 30%;
    right: 25%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    animation-delay: -10s;
}

.shape-4 {
    bottom: 20%;
    right: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    animation-delay: -15s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary-green);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hero-badge i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Title */
.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark-slate);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 50%, #00b84e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Subtitle */
.hero-sub {
    font-size: 1.25rem;
    color: var(--gray-medium);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Buttons */
.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-green {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
    color: white;
    border: none;
    font-weight: 700;
    padding: 14px 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.4);
    color: white;
}

.btn-green:hover::before {
    left: 100%;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-border);
    color: var(--dark-slate);
    font-weight: 600;
    padding: 14px 32px;
    transition: all 0.35s ease;
}

.btn-glass:hover {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Hero CTA box override */
.hero-visual .cta-box {
    padding: 48px 48px;
    border-radius: 28px;
    max-width: 520px;
    margin: 0 auto;
}

.hero-visual .cta-box i {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.hero-visual .cta-box h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.hero-visual .cta-box p {
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.hero-visual .cta-box .btn-green {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* CNRST yellow button for shared branding */
.btn-green {
    background-color: #FCD116;
    color: #333;
    border: 1px solid rgba(0,0,0,0.06);
    font-weight: 700;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-green:hover {
    filter: brightness(0.95);
    transform: translateY(-3px);
    color: #222;
}

/* Trust section */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-trust .stars {
    color: #fbbf24;
    font-size: 1rem;
    display: flex;
    gap: 2px;
}

.hero-trust span {
    color: var(--gray-medium);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-icon-wrapper {
    width: 320px;
    height: 320px;
    background: linear-gradient(145deg, var(--primary-green), var(--primary-dark));
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11rem;
    color: white;
    box-shadow: 
        0 30px 60px -12px rgba(34, 197, 94, 0.4),
        0 0 0 0 rgba(34, 197, 94, 0.1);
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.hero-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 70px;
    border: 2px dashed rgba(34, 197, 94, 0.2);
    animation: rotate 30s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(2deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* ====================================================
   METRICS SECTION
   ==================================================== */
.metrics-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    position: relative;
}

.metric-card {
    padding: 32px 24px;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

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

.metric-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.metric-card:hover i {
    transform: scale(1.15);
}

.metric-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark-slate);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--dark-slate), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-card p {
    color: var(--gray-medium);
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
}

/* ====================================================
   FEATURES SECTION
   ==================================================== */
.features-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 70px;
}

.section-badge {
    background: var(--primary-soft);
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-slate);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-header p {
    color: var(--gray-medium);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 36px;
    border-radius: 24px;
    border: 1px solid var(--gray-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--gray-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-green);
    margin-bottom: 24px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: var(--dark-slate);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--gray-medium);
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ====================================================
   PRICING SECTION (FREE ONLY)
   ==================================================== */
.pricing-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.pricing-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 28px;
    border: 2px solid var(--gray-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

.pricing-icon {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 24px;
    animation: float 8s ease-in-out infinite;
}

.pricing-card h4 {
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: var(--dark-slate);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 32px;
    line-height: 1;
}

.pricing-amount small {
    font-size: 1rem;
    color: var(--gray-medium);
    font-weight: 500;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    text-align: left;
}

.pricing-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gray-medium);
    margin-bottom: 16px;
    font-size: 1rem;
}

.pricing-list li i {
    color: var(--success);
    font-size: 1.2rem;
}

/* ====================================================
   CTA SECTION
   ==================================================== */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(145deg, var(--primary-green), var(--primary-dark));
    padding: 80px 60px;
    border-radius: 36px;
    text-align: center;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(34, 197, 94, 0.45);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: ctaShine 15s linear infinite;
}

@keyframes ctaShine {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box i {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
    animation: float 4s ease-in-out infinite;
}

.cta-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 36px;
}

.cta-box .btn-light {
    background: white;
    color: var(--primary-green);
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 100px;
    border: none;
    transition: all 0.35s ease;
    font-size: 1.1rem;
}

.cta-box .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: var(--white);
    color: var(--primary-dark);
}

/* ====================================================
   TESTIMONIALS SECTION
   ==================================================== */
.testimonials-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 90%, rgba(34, 197, 94, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.testimonial-card {
    background: var(--gray-light);
    padding: 36px;
    border-radius: 24px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    transform: translateY(-8px);
}

.testimonial-card .stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 1rem;
    display: flex;
    gap: 3px;
}

.testimonial-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--secondary-blue);
    margin-bottom: 28px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author i {
    font-size: 3rem;
    color: var(--gray-medium);
    transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-author i {
    color: var(--primary-green);
}

.testimonial-author div {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--dark-slate);
    font-weight: 700;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* ====================================================
   CONTACT SECTION
   ==================================================== */
.contact-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
}

.contact-form-card {
    background: var(--white);
    padding: 44px;
    border-radius: 28px;
    border: 1px solid var(--gray-border);
    height: 100%;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

.contact-form-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.contact-info-card {
    background: var(--white);
    padding: 44px;
    border-radius: 28px;
    border: 1px solid var(--gray-border);
    height: 100%;
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.contact-info-card h5 {
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--dark-slate);
    font-size: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-soft);
    color: var(--primary-green);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
}

.contact-item span {
    color: var(--gray-medium);
    font-size: 1rem;
}

/* Social links in contact */
.social-links {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: var(--gray-light);
    color: var(--dark-slate);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
}

/* Form improvements */
.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 12px;
    border: 1px solid var(--gray-border);
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--gray-light);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background: var(--white);
}

.contact-form-card .input-group-text {
    background: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: 12px 0 0 12px;
    color: var(--gray-medium);
}

.contact-form-card textarea.form-control {
    border-radius: 12px;
}

/* ====================================================
   ALERTS
   ==================================================== */
.alert-green {
    background-color: var(--primary-soft);
    color: var(--primary-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    padding: 18px 24px;
    font-weight: 600;
}

.alert-green i {
    color: var(--primary-green);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1199px) {
    .hero-title { font-size: 3.25rem; }
    .hero-icon-wrapper { width: 280px; height: 280px; font-size: 9rem; border-radius: 50px; }
}

@media (max-width: 991px) {
    .hero-section { padding-top: 120px; padding-bottom: 60px; min-height: auto; }
    .hero-title { font-size: 2.5rem; }
    .hero-sub { font-size: 1.1rem; }
    .hero-visual { margin-top: 50px; }
    .section-header h2 { font-size: 2.25rem; }
    .cta-box { padding: 50px 30px; }
    .cta-box h3 { font-size: 2rem; }
}

@media (max-width: 767px) {
    .hero-section { padding-top: 100px; }
    .hero-title { font-size: 2rem; }
    .hero-badge { font-size: 0.8rem; padding: 6px 14px; }
    .hero-sub { font-size: 1rem; }
    .hero-icon-wrapper { width: 220px; height: 220px; font-size: 7rem; border-radius: 40px; }
    .section-header h2 { font-size: 1.75rem; }
    .section-header { margin-bottom: 50px; }
    .features-section, .pricing-section, .testimonials-section, .contact-section { padding: 80px 0; }
    .feature-card { padding: 28px; }
    .pricing-card { padding: 36px 24px; }
    .cta-box { padding: 40px 24px; }
    .cta-box h3 { font-size: 1.5rem; }
    .cta-box p { font-size: 1rem; }
    .testimonial-card { padding: 28px; }
    .contact-form-card, .contact-info-card { padding: 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    .btn-green, .btn-glass { padding: 12px 24px; font-size: 0.95rem; }
    .metric-number { font-size: 2rem; }
    .pricing-amount { font-size: 2.25rem; }
}

