/* ============================================================
   VariableFly — Tirage Voyage Canada 2026
   Feuille de style principale — mobile-first
   Palette : noir #000 / rouge #E30613 / blanc #fff
   ============================================================ */

:root {
    --noir: #000000;
    --noir-2: #0d0d0d;
    --noir-3: #161616;
    --rouge: #E30613;
    --rouge-fonce: #b30410;
    --rouge-clair: #ff2b38;
    --blanc: #ffffff;
    --gris: #9a9a9a;
    --gris-clair: #d4d4d4;
    --bordure: #2a2a2a;
    --vert: #1db954;
    --vert-fonce: #169c46;
    --radius: 14px;
    --maxw: 1080px;
    --font: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--noir);
    color: var(--blanc);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 18px;
}

/* ============================================================
   LOADER FULLSCREEN
   ============================================================ */
#vf-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--noir);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s var(--ease), visibility .6s;
    /* Filet de sécurité : si le JS échoue, le loader disparaît quand même. */
    animation: loaderSafety .6s 8s forwards;
}
#vf-loader.hidden { opacity: 0; visibility: hidden; animation: none; }
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; } }
#vf-loader img {
    width: 120px;
    height: auto;
    animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(.92); opacity: .6; }
    50%      { transform: scale(1.08); opacity: 1; }
}

/* ============================================================
   ANIMATIONS — keyframes
   ============================================================ */
@keyframes fadeUp     { from { opacity: 0; transform: translateY(28px); }      to { opacity: 1; transform: none; } }
@keyframes fadeDown   { from { opacity: 0; transform: translateY(-20px); }     to { opacity: 1; transform: none; } }
@keyframes fadeIn     { from { opacity: 0; }                                   to { opacity: 1; } }
@keyframes zoomIn     { from { opacity: 0; transform: scale(.85); }            to { opacity: 1; transform: scale(1); } }
@keyframes flip3d     { from { opacity: 0; transform: perspective(800px) rotateY(-90deg); } to { opacity: 1; transform: perspective(800px) rotateY(0); } }
@keyframes tiltIn     { from { opacity: 0; transform: perspective(900px) rotateX(12deg) translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes glowText   { 0%,100% { text-shadow: 0 0 12px rgba(227,6,19,.45); } 50% { text-shadow: 0 0 26px rgba(227,6,19,.85), 0 0 6px rgba(227,6,19,.6); } }
@keyframes pulseWA    { 0%,100% { box-shadow: 0 0 0 0 rgba(29,185,84,.55); } 50% { box-shadow: 0 0 0 16px rgba(29,185,84,0); } }
@keyframes shakeX     { 10%,90% { transform: translateX(-2px); } 20%,80% { transform: translateX(4px); } 30%,50%,70% { transform: translateX(-8px); } 40%,60% { transform: translateX(8px); } }
@keyframes checkPop   { 0% { transform: scale(0) rotate(-25deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes flipDigit  { 0% { transform: rotateX(0); } 50% { transform: rotateX(-90deg); } 100% { transform: rotateX(0); } }
@keyframes spinSlow   { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Reveal au scroll (AOS maison) */
[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
[data-reveal="zoom"]  { transform: scale(.9); }
[data-reveal="tilt"]  { transform: perspective(900px) rotateX(10deg) translateY(28px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   EN-TÊTE / NAVIGATION
   ============================================================ */
.site-header {
    background: rgba(13, 13, 13, .92);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--rouge);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeDown .6s var(--ease) both;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    gap: 8px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--blanc);
    transition: transform .25s var(--ease);
}
.brand:hover { text-decoration: none; transform: scale(1.03); }
.brand img { height: 46px; width: auto; }

/* Navigation desktop */
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
    position: relative;
    color: var(--gris-clair);
    padding: 10px 14px;
    font-size: .92rem;
    font-weight: 600;
    border-radius: 8px;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 6px;
    height: 2px;
    background: var(--rouge);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--blanc); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--rouge); }
.nav a.active::after { transform: scaleX(1); }

/* Burger mobile */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    width: 26px; height: 3px;
    background: var(--blanc);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s var(--ease), background .2s ease, box-shadow .25s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--rouge); color: var(--blanc); }
.btn-primary:hover { background: var(--rouge-fonce); box-shadow: 0 10px 28px -8px rgba(227,6,19,.7); }
.btn-outline { background: transparent; color: var(--blanc); border-color: var(--rouge); }
.btn-outline:hover { background: var(--rouge); }
.btn-whatsapp {
    background: var(--vert); color: var(--blanc);
    font-size: 1.1rem; padding: 16px 30px;
    animation: pulseWA 2.4s infinite;
}
.btn-whatsapp:hover {
    background: var(--vert-fonce);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px -2px rgba(29,185,84,.8);
}
.btn-block { display: flex; width: 100%; }
.btn-lg { font-size: 1.15rem; padding: 18px 32px; }

/* Effet ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    transform: scale(0);
    animation: rippleGo .6s ease-out;
    pointer-events: none;
}
@keyframes rippleGo { to { transform: scale(2.6); opacity: 0; } }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 56px 0; }
.section-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.section-title .accent { color: var(--rouge); }
.section-sub { color: var(--gris); margin-bottom: 28px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background:
        radial-gradient(circle at 20% 10%, rgba(227,6,19,.22), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(227,6,19,.15), transparent 40%),
        var(--noir);
    text-align: center;
    padding: 72px 0 60px;
    border-bottom: 1px solid var(--bordure);
}
.hero h1 {
    font-size: 2.1rem;
    line-height: 1.18;
    font-weight: 900;
    margin-bottom: 14px;
}
.hero h1 .word {
    display: inline-block;
    opacity: 0;
    animation: fadeUp .7s var(--ease) forwards;
}
.hero h1 .accent {
    color: var(--rouge);
    animation: fadeUp .7s var(--ease) forwards, glowText 2.6s ease-in-out 1s infinite;
}
.hero p.lead {
    color: var(--gris-clair);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 28px;
    opacity: 0;
    animation: fadeUp .7s var(--ease) .9s forwards;
}
.hero-cta {
    display: flex; flex-direction: column; gap: 12px; align-items: center;
    opacity: 0;
    animation: fadeUp .7s var(--ease) 1.1s forwards;
}
.hero .countdown-wrap {
    opacity: 0;
    animation: fadeIn .7s ease 1.3s forwards;
}

/* Compte à rebours façon "flip clock" */
.countdown { display: inline-flex; gap: 8px; }
.cd-unit {
    background: var(--noir-2);
    border: 1px solid var(--bordure);
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 62px;
    text-align: center;
}
.cd-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--rouge);
    line-height: 1;
}
.cd-num.flip { animation: flipDigit .4s var(--ease); }
.cd-lbl { font-size: .66rem; color: var(--gris); text-transform: uppercase; letter-spacing: .5px; }

/* ============================================================
   CARTES & GRILLES
   ============================================================ */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.card {
    background: var(--noir-2);
    border: 1px solid var(--bordure);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--rouge);
    box-shadow: 0 16px 40px -16px rgba(227,6,19,.5);
}
.card h3 { color: var(--rouge); margin-bottom: 8px; font-size: 1.1rem; }
.card .icon {
    font-size: 1.5rem; font-weight: 900;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(227,6,19,.14);
    color: var(--rouge);
    border-radius: 12px;
    margin-bottom: 12px;
}

/* ============================================================
   COMPTEURS / STATS
   ============================================================ */
.stat-banner {
    background: linear-gradient(135deg, var(--rouge), var(--rouge-fonce));
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: 0 18px 50px -22px rgba(227,6,19,.9);
}
.stat-banner .stat-number { font-size: 3rem; font-weight: 900; line-height: 1; }
.stat-banner .stat-label { text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; opacity: .92; }

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.stat-box {
    background: var(--noir-2);
    border: 1px solid var(--bordure);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
}
.stat-box .num { font-size: 1.8rem; font-weight: 800; color: var(--rouge); }
.stat-box .lbl { color: var(--gris); font-size: .82rem; text-transform: uppercase; }

/* ============================================================
   TABLEAUX & LISTES
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--bordure); }
table { width: 100%; border-collapse: collapse; background: var(--noir-2); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--bordure); font-size: .92rem; }
th { background: var(--noir-3); color: var(--gris-clair); text-transform: uppercase; font-size: .78rem; letter-spacing: .5px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--noir-3); }

.ticket-row {
    background: var(--noir-2);
    border: 1px solid var(--bordure);
    border-left: 4px solid var(--rouge);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp .5s var(--ease) forwards;
    transition: transform .2s var(--ease), border-color .2s ease, background .2s ease;
}
.ticket-row:hover {
    transform: translateX(6px);
    background: var(--noir-3);
    border-left-color: var(--rouge-clair);
    box-shadow: 0 8px 24px -12px rgba(227,6,19,.6);
}
.ticket-row .code { font-weight: 800; color: var(--rouge); font-family: 'Courier New', monospace; }
.ticket-row .meta { color: var(--gris-clair); font-size: .92rem; }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; color: var(--gris-clair); }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--noir-3);
    border: 1px solid var(--bordure);
    border-radius: 10px;
    color: var(--blanc);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .25s ease, box-shadow .3s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--rouge);
    box-shadow: 0 0 0 4px rgba(227,6,19,.18), 0 0 18px -2px rgba(227,6,19,.5);
}
.search-bar { display: flex; gap: 8px; margin-bottom: 20px; }
.search-bar input { flex: 1; }

/* ============================================================
   BADGES / ALERTES
   ============================================================ */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-valide { background: rgba(29,185,84,.18); color: var(--vert); }
.badge-annule { background: rgba(227,6,19,.18); color: var(--rouge); }

.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; animation: fadeUp .5s var(--ease) both; }
.alert-success { background: rgba(29,185,84,.15); border: 1px solid var(--vert); color: var(--vert); }
.alert-error { background: rgba(227,6,19,.15); border: 1px solid var(--rouge); color: #ff6b74; }
.alert-info { background: var(--noir-3); border: 1px solid var(--bordure); color: var(--gris-clair); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 13px;
    border-radius: 8px;
    border: 1px solid var(--bordure);
    color: var(--gris-clair);
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s ease, transform .15s var(--ease);
}
.pagination a:hover { background: var(--noir-3); text-decoration: none; transform: translateY(-2px); }
.pagination .current { background: var(--rouge); color: var(--blanc); border-color: var(--rouge); }

/* ============================================================
   VÉRIFICATION DE TICKET
   ============================================================ */
.verif-result { border-radius: var(--radius); padding: 28px; text-align: center; margin-top: 22px; animation: zoomIn .5s var(--ease) both; }
.verif-ok { background: rgba(29,185,84,.12); border: 2px solid var(--vert); }
.verif-ko { background: rgba(227,6,19,.12); border: 2px solid var(--rouge); }
.verif-result.shake { animation: zoomIn .4s var(--ease), shakeX .6s .15s; }
.verif-result .big-code { font-size: 1.8rem; font-weight: 900; font-family: 'Courier New', monospace; margin: 8px 0; }

/* Checkmark animé */
.check-circle {
    width: 76px; height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--vert);
    display: flex; align-items: center; justify-content: center;
    animation: zoomIn .4s var(--ease) both;
}
.check-circle svg { width: 40px; height: 40px; animation: checkPop .5s .2s var(--ease) both; }
.cross-circle {
    width: 76px; height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--rouge);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; font-weight: 900; color: #fff;
    animation: zoomIn .4s var(--ease) both;
}

/* ============================================================
   SECTION CONTACT / ADRESSES
   ============================================================ */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.contact-card {
    background: var(--noir-2);
    border: 1px solid var(--bordure);
    border-left: 4px solid var(--rouge);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: transform .3s var(--ease), box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -18px rgba(227,6,19,.55); }
.contact-card h3 { color: var(--rouge); margin-bottom: 6px; }
.contact-card .pin { font-size: .82rem; color: var(--gris); text-transform: uppercase; letter-spacing: .5px; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer {
    background: var(--noir-2);
    border-top: 2px solid var(--rouge);
    padding: 38px 0 28px;
    margin-top: auto;
    color: var(--gris);
    font-size: .88rem;
}
.site-footer .container { display: flex; flex-direction: column; gap: 20px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 22px; }
.footer-brand img { height: 64px; margin-bottom: 10px; }
.site-footer a { color: var(--gris-clair); transition: color .2s ease; }
.site-footer a:hover { color: var(--rouge); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-col h4 { color: var(--blanc); font-size: .92rem; margin-bottom: 8px; }
.footer-addr { line-height: 1.5; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--bordure); padding-top: 16px; }

/* ============================================================
   DIVERS
   ============================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.muted { color: var(--gris); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 719px) {
    .burger { display: flex; }
    .nav {
        position: fixed;
        top: 66px; right: 0;
        width: min(78vw, 300px);
        height: calc(100vh - 66px);
        background: var(--noir-2);
        border-left: 2px solid var(--rouge);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        transform: translateX(110%);
        transition: transform .35s var(--ease);
        z-index: 99;
    }
    .nav.open { transform: translateX(0); }
    .nav a { padding: 14px 12px; font-size: 1rem; }
    .nav a::after { left: 12px; right: auto; width: 0; }
}

@media (min-width: 720px) {
    .hero h1 { font-size: 2.9rem; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .stats-row { grid-template-columns: repeat(4, 1fr); }
    .hero-cta { flex-direction: row; justify-content: center; }
    .section-title { font-size: 2rem; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* --- Petits écrans (smartphones — cible principale RDC) --- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    section { padding: 40px 0; }
    .site-header .container { min-height: 58px; }
    .brand img { height: 38px; }
    .nav { top: 58px; height: calc(100vh - 58px); }
    .hero { padding: 52px 0 44px; }
    .hero h1 { font-size: 1.72rem; }
    .hero p.lead { font-size: 1rem; }
    .section-title { font-size: 1.4rem; }
    .stat-banner { padding: 20px; }
    .stat-banner .stat-number { font-size: 2.3rem; }
    .btn { padding: 13px 18px; font-size: .95rem; }
    .btn-lg { font-size: 1.05rem; padding: 15px 22px; }
    .btn-whatsapp { font-size: 1rem; padding: 14px 20px; }
    .hero-cta { width: 100%; }
    .hero-cta .btn { width: 100%; }
    .countdown { gap: 6px; }
    .cd-unit { min-width: 0; flex: 1; padding: 7px 4px; }
    .cd-num { font-size: 1.3rem; }
    .card { padding: 18px; }
    .ticket-row { padding: 12px 14px; font-size: .9rem; }
    .ticket-row .meta { width: 100%; }
    .verif-result { padding: 22px 16px; }
    .verif-result .big-code { font-size: 1.4rem; word-break: break-all; }
    .search-bar { flex-direction: column; }
    .search-bar .btn { width: 100%; }
    table th, table td { padding: 10px 10px; font-size: .85rem; }
    .footer-brand img { height: 54px; }
}
