:root {
    --brand: #2f3d8f;
    --brand-dark: #1f2a63;
    --brand-light: #eef0fb;
    --accent: #17c3b2;
    --accent-dark: #109e90;
    --ink: #1b1f2a;
    --muted: #6b7280;
    --bg-soft: #f6f7fb;
}

body { background: var(--bg-soft); color: var(--ink); font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.navbar-brand { font-weight: 800; letter-spacing: -.01em; color: var(--brand) !important; }
.navbar-brand span { color: var(--accent); }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #06282a; font-weight: 600; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #06282a; }

.badge-brand { background: var(--brand-light); color: var(--brand); font-weight: 600; }

.hero {
    background: radial-gradient(circle at 15% 20%, rgba(23,195,178,.18), transparent 45%),
                linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff; padding: 72px 0 0; position: relative; overflow: hidden;
}
.hero h1 { font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.02em; }
.hero p.lead { color: #d7dbf4; }

/* --- Texte animé de la section hero (apparition en fondu + glissement) --- */
.hero-animate { opacity: 0; animation: heroFadeUp .7s ease forwards; }
.hero-animate.delay-1 { animation-delay: .1s; }
.hero-animate.delay-2 { animation-delay: .25s; }
.hero-animate.delay-3 { animation-delay: .4s; }
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mot rotatif dans le titre du hero (ex : "gratuits" / "professionnels" / "fiables") */
.word-rotate { display: inline-block; position: relative; color: var(--accent); min-width: 1ch; }
.word-rotate span { display: inline-block; opacity: 0; transform: translateY(100%); animation: wordRotate 6s infinite; }
.word-rotate span:nth-child(1) { animation-delay: 0s; }
.word-rotate span:nth-child(2) { animation-delay: 2s; }
.word-rotate span:nth-child(3) { animation-delay: 4s; }
.word-rotate span { position: absolute; left: 0; top: 0; white-space: nowrap; }
@keyframes wordRotate {
    0%   { opacity: 0; transform: translateY(60%); }
    6%   { opacity: 1; transform: translateY(0); }
    28%  { opacity: 1; transform: translateY(0); }
    34%  { opacity: 0; transform: translateY(-60%); }
    100% { opacity: 0; }
}

/* --- Bannière défilante (marquee) sous le contenu du hero --- */
.hero-marquee-wrap { margin-top: 48px; background: rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.12); overflow: hidden; padding: 14px 0; }
.hero-marquee { display: flex; width: max-content; animation: marqueeScroll 28s linear infinite; }
.hero-marquee:hover { animation-play-state: paused; }
.hero-marquee .marquee-item { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; padding: 0 36px; opacity: .92; }
.hero-marquee .marquee-item i { color: var(--accent); }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-marquee { animation: none; }
    .word-rotate span { animation: none; position: static; opacity: 1; }
    .hero-animate { animation: none; opacity: 1; }
}

.card-logiciel { border: 1px solid #e7e9f2; border-radius: 14px; transition: transform .15s ease, box-shadow .15s ease; overflow: hidden; height: 100%; }
.card-logiciel:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,42,99,.12); }
.card-logiciel .cover { aspect-ratio: 16/10; object-fit: cover; background: var(--brand-light); width: 100%; }
.card-logiciel .cat-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }

.offer-card { border: 2px solid #e7e9f2; border-radius: 14px; transition: border-color .15s ease, transform .15s ease; height: 100%; }
.offer-card.reco { border-color: var(--accent); position: relative; }
.offer-card.reco::before { content: "Recommandé"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #06282a; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.offer-card:hover { transform: translateY(-2px); }
.offer-price { font-size: 30px; font-weight: 800; color: var(--brand); }

.section-title { font-weight: 800; letter-spacing: -.01em; }
.section-kicker { color: var(--accent-dark); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }

footer.site-footer { background: var(--brand-dark); color: #cdd2ee; padding: 48px 0 24px; margin-top: 80px; }
footer.site-footer a { color: #fff; }

.license-key { font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: .03em; background: var(--brand-light); color: var(--brand-dark); padding: 6px 12px; border-radius: 8px; display: inline-block; }

.status-pill { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.status-active   { background: #e5f9f0; color: #0f9d58; }
.status-pending  { background: #fff6e0; color: #b8860b; }
.status-expired  { background: #fdeaea; color: #c0392b; }
.status-revoked  { background: #f0f0f0; color: #666; }

.admin-sidebar { min-height: 100vh; background: var(--brand-dark); color: #cdd2ee; width: 240px; flex: none; }
.admin-sidebar a { color: #cdd2ee; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 8px; font-size: 14px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar .brand { color: #fff; font-weight: 800; padding: 20px 18px; font-size: 17px; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e7e9f2; padding: 12px 24px; }
.kpi-card { border-radius: 14px; padding: 20px; color: #fff; }
