/* features.css — Pages Fonctionnalites (esprit landing : charcoal, anti-slop, anime) */

/* ---- Hero charcoal ---- */
.feature-hero-v2 {
    background-color: #0e0d13;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.055) 1px, transparent 1.6px);
    background-size: 28px 28px;
    position: relative;
    overflow: hidden;
    padding: 9.5rem 1.5rem 8rem;
}
.feature-hero-v2::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(620px 380px at 88% 4%, rgba(245,155,28,0.10), transparent 70%),
        linear-gradient(180deg, transparent 90%, #ffffff 100%);
    pointer-events: none; z-index: 1;
}
.feature-hero-v2 .container { position: relative; z-index: 2; }
.feature-hero-v2 .fh-title { color: #fff; font-weight: 800; font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.feature-hero-v2 .fh-sub { color: rgba(255,255,255,0.82); font-size: 1.18rem; line-height: 1.6; max-width: 500px; margin-bottom: 1.6rem; }
.feature-hero-v2 .fh-sub strong { color: #f59b1c; font-weight: 700; }
.fh-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #f5b35a; margin-bottom: 1rem; }
.fh-label .icon-box { width: 30px; height: 30px; border-radius: 9px; background: rgba(245,155,28,0.14); display: inline-flex; align-items: center; justify-content: center; }
.feature-hero-v2 .fh-accent { color: #f59b1c; }

/* Entree hero */
@keyframes fhUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.fh-a1 { animation: fhUp .7s cubic-bezier(.22,1,.36,1) .05s both; }
.fh-a2 { animation: fhUp .7s cubic-bezier(.22,1,.36,1) .18s both; }
.fh-a3 { animation: fhUp .7s cubic-bezier(.22,1,.36,1) .3s both; }
.fh-a4 { animation: fhUp .9s cubic-bezier(.22,1,.36,1) .25s both; }

/* ---- Sections : reveal au scroll (reutilise l'observer .fade-in de landing.js) ---- */
.feat-section { padding: 4.5rem 1.5rem; }
.feat-label { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7366ab; margin-bottom: 0.6rem; }
.feat-h2 { font-size: 2rem; font-weight: 800; color: #15131c; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 0.9rem; }
.feat-lead { font-size: 1.05rem; color: #5b5470; line-height: 1.75; max-width: 540px; }

/* ---- Bento (anti 3-cards : tailles variees) ---- */
.feat-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feat-bento .bento { background: #fff; border: 1px solid #ece9f3; border-radius: 18px; padding: 22px 24px; box-shadow: 0 18px 40px -28px rgba(60,40,110,0.25); opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-visible .feat-bento .bento { opacity: 1; transform: none; }
.fade-in.is-visible .feat-bento .bento:nth-child(2) { transition-delay: .08s; }
.fade-in.is-visible .feat-bento .bento:nth-child(3) { transition-delay: .16s; }
.fade-in.is-visible .feat-bento .bento:nth-child(4) { transition-delay: .24s; }
.fade-in.is-visible .feat-bento .bento:nth-child(5) { transition-delay: .32s; }
.feat-bento .bento.w3 { grid-column: span 3; }
.feat-bento .bento.w2 { grid-column: span 2; }
.feat-bento .bento.w4 { grid-column: span 4; }
.feat-bento .bento.w6 { grid-column: span 6; }
.bento-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: 12px; }
.bento-ic.v { background: rgba(115,102,171,0.12); color: #6354a0; }
.bento-ic.o { background: rgba(245,155,28,0.14); color: #b9740a; }
.bento-ic.g { background: rgba(6,214,160,0.14); color: #088f6e; }
.bento-ic.b { background: rgba(50,152,220,0.14); color: #2b7bbf; }
.bento h3 { font-size: 1.05rem; font-weight: 700; color: #15131c; margin-bottom: 5px; }
.bento p { font-size: 0.88rem; color: #5b5470; line-height: 1.6; }

/* ---- Liste check sombre/clair ---- */
.feat-checks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.feat-checks li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 0.95rem; color: #4a4458; }
.feat-checks li i { color: #06d6a0; margin-top: 4px; font-size: 0.8rem; flex-shrink: 0; }

/* ---- Badges formats ---- */
.fmt-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.fmt-badges .fmt { font-size: 0.82rem; font-weight: 700; padding: 9px 15px; border-radius: 11px; background: #f4f2f9; color: #6354a0; border: 1px solid #ece9f3; }
.fmt-badges .fmt.is-on { background: rgba(6,214,160,0.12); color: #088f6e; border-color: rgba(6,214,160,0.3); }

@media (max-width: 860px) {
    .feature-hero-v2 { padding: 7rem 1.5rem 3rem; }
    .feature-hero-v2 .fh-title { font-size: 2rem; }
    .feat-bento { grid-template-columns: 1fr; }
    .feat-bento .bento.w2, .feat-bento .bento.w3, .feat-bento .bento.w4, .feat-bento .bento.w6 { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
    .fh-a1,.fh-a2,.fh-a3,.fh-a4 { animation: none; opacity: 1; transform: none; }
    .feat-bento .bento { opacity: 1; transform: none; }
}

/* ---- Cartes blog ---- */
.blog-card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.blog-card { background: #fff; border: 1px solid #ece9f3; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(60,40,110,0.25); transition: transform .25s ease, box-shadow .25s ease; height: 100%; display: flex; flex-direction: column; }
.blog-card-link:hover .blog-card { transform: translateY(-6px); box-shadow: 0 28px 52px -26px rgba(60,40,110,0.35); }
.blog-card-image { aspect-ratio: 600 / 320; overflow: hidden; background: #f4f2f9; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-tag { align-self: flex-start; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 7px; margin-bottom: 11px; }
.blog-card-tag.t-reg { background: rgba(115,102,171,0.12); color: #6354a0; }
.blog-card-tag.t-guide { background: rgba(6,214,160,0.13); color: #088f6e; }
.blog-card-tag.t-prat { background: rgba(245,155,28,0.14); color: #b9740a; }
.blog-card-title { font-size: 1.12rem; font-weight: 700; color: #15131c; line-height: 1.3; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 0.9rem; color: #5b5470; line-height: 1.6; flex: 1; }
.blog-card-meta { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1eef8; font-size: 0.76rem; color: #9a93ac; }
.blog-card-meta i { color: #b8b0d0; }

/* ---- Pages article blog ---- */
.article-hero .art-bc { font-size: 0.82rem; margin-bottom: 1rem; }
.article-hero .art-bc a { color: rgba(255,255,255,0.6); text-decoration: none; }
.article-hero .art-bc a:hover { color: #fff; }
.article-hero .art-bc .sep { color: rgba(255,255,255,0.3); margin: 0 7px; }
.fh-cat { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; padding: 5px 12px; border-radius: 8px; margin-bottom: 1rem; }
.fh-cat.t-reg { background: rgba(115,102,171,0.22); color: #cabff0; }
.fh-cat.t-guide { background: rgba(6,214,160,0.2); color: #7ee8c8; }
.fh-cat.t-prat { background: rgba(245,155,28,0.2); color: #f5b35a; }
.article-hero .art-meta { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-top: 1rem; }
.article-hero .art-meta i { margin-right: 5px; }
.art-illu { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.08); }
.art-illu img { width: 100%; display: block; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body.content { font-size: 1.06rem; line-height: 1.8; color: #36313f; }
.article-body.content h2 { font-size: 1.6rem; font-weight: 800; color: #15131c; letter-spacing: -0.01em; margin-top: 2.6rem; margin-bottom: 1rem; padding-top: 1.6rem; border-top: 1px solid #efecf6; }
.article-body.content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-body.content h3 { font-size: 1.2rem; font-weight: 700; color: #15131c; margin-top: 1.8rem; }
.article-body.content p { margin-bottom: 1.1rem; }
.article-body.content ul, .article-body.content ol { margin-bottom: 1.2rem; }
.article-body.content li { margin-bottom: 0.5rem; }
.article-body.content li strong, .article-body.content p strong { color: #15131c; }
.article-body.content blockquote {
    background: linear-gradient(135deg, rgba(115,102,171,0.07), rgba(245,155,28,0.05));
    border-left: 4px solid #7366ab; border-radius: 0 12px 12px 0;
    padding: 1.1rem 1.4rem; margin: 1.8rem 0; color: #4a4458;
}
.article-body.content blockquote p { margin-bottom: 0; }
.article-related { max-width: 760px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid #efecf6; }
.article-related h2 { font-size: 1.15rem; font-weight: 800; color: #15131c; margin-bottom: 1.2rem; }

/* ---- CTA gradient en fin d'article (style derniere section landing) ---- */
.article-cta { max-width: 760px; margin: 2.6rem auto 0; border-radius: 18px; padding: 2.6rem 2rem; text-align: center;
    background: linear-gradient(135deg, #5b4f93 0%, #7366ab 55%, #8a6fae 100%); box-shadow: 0 26px 54px -26px rgba(60,40,110,0.5); }
.article-cta h3 { color: #fff !important; font-size: 1.45rem; font-weight: 800; margin: 0 0 .6rem !important; border: none !important; padding: 0 !important; }
.article-cta p { color: rgba(255,255,255,0.9) !important; font-size: 0.98rem; max-width: 460px; margin: 0 auto 1.4rem !important; line-height: 1.6; }
.article-cta .button { background: #fff; color: #15131c; font-weight: 700; border: none; border-radius: 11px; }
.article-cta .button .icon { color: #f59b1c; }
.article-cta .button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4); color: #15131c; }
/* related : forcer l'image SVG (override inline height) */
.article-related .blog-card-image { aspect-ratio: 600/320; height: auto; }
