/* ============================================================
   TIBO CONSULTANT — Shared Dark Theme
   Dark premium · Space Grotesk · Corail #E85A6B
   ============================================================ */

:root {
    --bg:           #08080E;
    --surface:      #0F0F1A;
    --surface-2:    #141425;
    --border:       #1A1A2E;
    --border-2:     #242438;

    --coral:        #E85A6B;
    --coral-dark:   #C44A5A;
    --coral-glow:   rgba(232, 90, 107, 0.15);
    --coral-border: rgba(232, 90, 107, 0.28);

    --funk:         #FF8C42;

    --white:        #FFFFFF;
    --t2:           #9898B8;
    --t3:           #55556A;

    --font-h:       'Space Grotesk', sans-serif;
    --font-b:       'Inter', sans-serif;

    --r:   10px;
    --r2:  18px;
    --r3:  28px;

    --grad: linear-gradient(135deg, var(--coral) 0%, var(--funk) 100%);
    --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");

    /* --- Aliasses compatibilité ancien thème --- */
    --color-primary:       #E85A6B;
    --color-primary-dark:  #C44A5A;
    --color-primary-light: rgba(232, 90, 107, 0.35);
    --color-white:         #FFFFFF;
    --color-off-white:     #141425;
    --color-gray-100:      #0F0F1A;
    --color-gray-200:      #242438;
    --color-gray-300:      #1A1A2E;
    --color-gray-500:      #55556A;
    --color-gray-700:      #9898B8;
    --color-gray-900:      #1D1D30;
    --font-family:         'Inter', sans-serif;
    --spacing-xs:          0.5rem;
    --spacing-sm:          1rem;
    --spacing-md:          1.5rem;
    --spacing-lg:          2rem;
    --spacing-xl:          3rem;
    --spacing-2xl:         5rem;
    --radius-sm:           4px;
    --radius-md:           8px;
    --radius-lg:           16px;
    --radius-xl:           24px;
    --shadow-sm:           0 1px 2px rgba(0,0,0,0.15);
    --shadow-md:           0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg:           0 10px 30px rgba(0,0,0,0.35);
    --shadow-xl:           0 20px 48px rgba(0,0,0,0.45);
    --transition:          all 0.3s ease;
    --transition-fast:     all 0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--t2);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.65;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--noise);
    opacity: 0.018;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4 {
    font-family: var(--font-h);
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a { text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    border-radius: 100px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Arrow icon inside button */
.btn .arr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-style: normal;
    font-size: 0.75rem;
    transition: transform 0.25s ease, background 0.25s;
    flex-shrink: 0;
}

/* ---- PRIMARY ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--coral) 0%, var(--funk) 100%);
    color: #fff;
    padding: 15px 24px 15px 28px;
    box-shadow: 0 4px 20px rgba(232,90,107,0.3);
}

/* Shimmer sweep on hover */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(232,90,107,0.45), 0 0 0 1px rgba(232,90,107,0.3);
}
.btn-primary:hover::before { left: 140%; }
.btn-primary:hover .arr {
    transform: translateX(3px);
    background: rgba(255,255,255,0.3);
}

/* ---- GHOST ---- */
.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border-2);
    color: var(--t2);
    padding: 14px 24px 14px 28px;
}

.btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.04);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 100px;
}

.btn-ghost:hover {
    border-color: rgba(232,90,107,0.5);
    color: var(--white);
    box-shadow: 0 0 0 1px rgba(232,90,107,0.2) inset;
}
.btn-ghost:hover::before { opacity: 1; }
.btn-ghost .arr {
    background: rgba(255,255,255,0.08);
    color: var(--t2);
}
.btn-ghost:hover .arr {
    transform: translateX(3px);
    background: var(--coral-glow);
    color: var(--coral);
}

/* ---- NAV button override ---- */
.btn-nav {
    border-radius: var(--r) !important;
    background: var(--coral) !important;
    color: white !important;
    padding: 11px 22px !important;
    font-family: var(--font-b) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transition: background 0.2s, transform 0.2s !important;
    overflow: visible !important;
    isolation: auto !important;
}
.btn-nav:hover {
    background: var(--coral-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(232,90,107,0.35) !important;
}
.btn-nav::before { display: none !important; }
.btn-nav::after  { display: none !important; }

.btn-sm { padding: 10px 18px 10px 22px; font-size: 0.82rem; }
.btn-large { padding: 18px 32px 18px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- TAGS & LABELS ---- */
.tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--coral);
    background: var(--coral-glow);
    border: 1px solid var(--coral-border);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    position: relative;
}

/* ================================================
   NAV
   ================================================ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 14, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: none;
    box-shadow: 0 1px 0 0 var(--border), 0 2px 0 0 rgba(232, 90, 107, 0.15);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.nav-logo img { height: 56px; width: 56px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}

/* Underline coral au hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--coral);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--white);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 44px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--t3);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 0.8rem; color: var(--t3); }

/* ================================================
   TICKER SCROLL
   ================================================ */
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 16px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 28s linear infinite;
    width: max-content;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0 20px;
}

.ticker-item::after {
    content: '◆';
    font-size: 0.45rem;
    color: var(--coral);
    opacity: 0.8;
}

/* ================================================
   WORD REVEAL ANIMATION
   ================================================ */
@keyframes wordIn {
    0%   { opacity: 0.05; filter: blur(10px); transform: translateY(14px) rotateX(20deg); color: var(--coral); }
    60%  { color: var(--white); }
    100% { opacity: 1;    filter: blur(0);    transform: translateY(0)   rotateX(0deg);  color: var(--white); }
}

.reveal-text {
    perspective: 600px;
}

.reveal-text .w {
    display: inline-block;
    opacity: 0.05;
    filter: blur(8px);
    transform: translateY(14px) rotateX(20deg);
    transition:
        opacity   0.55s ease calc(var(--wi, 0) * 45ms),
        filter    0.55s ease calc(var(--wi, 0) * 45ms),
        transform 0.5s  ease calc(var(--wi, 0) * 45ms),
        color     0.4s  ease calc(var(--wi, 0) * 45ms);
    color: var(--coral);
    will-change: opacity, filter, transform;
}

.reveal-text.in-view .w {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotateX(0deg);
    color: var(--white);
}

.reveal-para .w {
    display: inline-block;
    opacity: 0.05;
    filter: blur(6px);
    transform: translateY(10px);
    transition:
        opacity   0.5s ease calc(var(--wi, 0) * 30ms),
        filter    0.5s ease calc(var(--wi, 0) * 30ms),
        transform 0.45s ease calc(var(--wi, 0) * 30ms);
    color: var(--t2);
    will-change: opacity, filter, transform;
}

.reveal-para.in-view .w {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    color: var(--t2);
}

/* ================================================
   CTA BAND
   ================================================ */
.cta-band {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}
.cta-band p {
    font-size: 1rem;
    color: var(--t2);
    margin-bottom: 22px;
}

/* ================================================
   FINAL CTA
   ================================================ */
.final-cta {
    text-align: center;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-top: 1px solid var(--border);
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
    padding-top: 150px;
    margin-top: -50px;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 350px;
    background: radial-gradient(ellipse, rgba(232,90,107,0.1) 0%, transparent 68%);
    pointer-events: none;
}

.final-cta .container { position: relative; z-index: 1; }

.final-cta h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 18px;
}

.final-cta p {
    font-size: 1rem;
    color: var(--t2);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.final-cta .note {
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--t3);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 640px) {
    .nav-links { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}
