/* ===========================================
   FONCTIONNALITES PAGE
   =========================================== */

/* Hero */
.feat-hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}
.feat-hero .section-title { max-width: 700px; margin: 0 auto 16px; }
.feat-hero .section-subtitle { max-width: 600px; margin: 0 auto 32px; }

.feat-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.feat-stat {
    text-align: center;
}
.feat-stat-number {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
}
.feat-stat-label {
    font-size: 14px;
    color: var(--gray-text);
    margin-top: 4px;
}

/* Category Nav - défilement auto infini */
.feat-nav {
    position: sticky;
    top: 64px;
    z-index: 90;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-border);
    padding: 0;
    overflow: hidden;
}
.feat-nav-inner {
    display: flex;
    gap: 0;
    width: max-content;
    animation: navScroll 20s linear infinite;
}
.feat-nav-inner:hover {
    animation-play-state: paused;
}
@keyframes navScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.feat-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-text);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.feat-nav-link:hover {
    color: var(--black);
}
.feat-nav-link.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.feat-nav-link i {
    width: 16px;
    height: 16px;
}

/* Feature Sections */
.feat-section {
    padding: 100px 0;
    scroll-margin-top: 120px;
}
.feat-section:nth-child(even) {
    background: var(--off-white);
}

.feat-section-header {
    text-align: center;
    margin-bottom: 64px;
}

/* Feature Grid - 3 cols */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Feature Card */
.feat-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}
.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.feat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feat-card-icon i {
    width: 24px;
    height: 24px;
}
.feat-card-icon.gold { background: var(--gold-light); color: var(--gold); }
.feat-card-icon.green { background: #D1FAE5; color: #059669; }
.feat-card-icon.blue { background: #DBEAFE; color: #2563EB; }
.feat-card-icon.purple { background: #EDE9FE; color: #7C3AED; }
.feat-card-icon.orange { background: #FEF3C7; color: #D97706; }
.feat-card-icon.red { background: #FEE2E2; color: #DC2626; }
.feat-card-icon.teal { background: #CCFBF1; color: #0D9488; }
.feat-card-icon.pink { background: #FCE7F3; color: #DB2777; }

.feat-card h3 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--black);
}
.feat-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-text);
    margin: 0;
}
.feat-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.feat-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--gray-light);
    color: var(--gray-text);
}
.feat-tag.gold {
    background: var(--gold-light);
    color: var(--gold-hover);
}

/* Highlight Row (image + text side by side) */
.feat-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.feat-highlight.reversed {
    direction: rtl;
}
.feat-highlight.reversed > * {
    direction: ltr;
}
.feat-highlight-visual {
    background: var(--off-white);
    border: 1px solid var(--gray-border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.feat-highlight-visual i {
    width: 80px;
    height: 80px;
    color: var(--gold);
    opacity: 0.3;
}
.feat-highlight-content h3 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--black);
}
.feat-highlight-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-text);
    margin-bottom: 24px;
}
.feat-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feat-highlight-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--black);
}
.feat-highlight-list li i {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
}

/* CTA Section */
.feat-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}
.feat-cta-box {
    background: var(--black);
    border-radius: 24px;
    padding: 64px;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}
.feat-cta-box h2 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 16px;
}
.feat-cta-box p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
    .feat-highlight { grid-template-columns: 1fr; gap: 40px; }
    .feat-highlight.reversed { direction: ltr; }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .feat-hero { padding: 120px 0 60px; }
    .feat-section { padding: 60px 0; }
    .feat-grid { grid-template-columns: 1fr; }
    .feat-stats { gap: 24px; }
    .feat-stat-number { font-size: 28px; }
    .feat-cta-box { padding: 40px 24px; }
    .feat-nav-link { padding: 12px 16px; font-size: 12px; }
}
