/*
Theme Name: Track Transit (Démo)
Theme URI: https://tracktransit.example.com
Author: Track Transit
Description: Démo générique de suivi de colis multi-pays pour transitaires — design original (en-tête + sections), palette bleu.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: tracktransit
*/

:root {
    --tt-navy: #0F2557;
    --tt-blue: #1D4ED8;
    --tt-blue-light: #EFF6FF;
    --tt-slate-50: #F8FAFC;
    --tt-slate-500: #64748B;
    --tt-slate-900: #0F172A;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--tt-slate-50);
    color: var(--tt-slate-900);
    font-family: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }
a { color: var(--tt-blue); }

/* ================= HEADER ================= */
.tl-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.9rem 2rem;
    background: rgba(248, 250, 252, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E2E8F0;
}
.tl-header__brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--tt-navy); }
.tl-header__logo {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: var(--tt-navy); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.tl-nav { display: flex; gap: 2rem; }
.tl-nav a { text-decoration: none; color: var(--tt-slate-500); font-size: .92rem; font-weight: 600; transition: color .15s ease; }
.tl-nav a:hover { color: var(--tt-blue); }
.tl-header__cta {
    background: var(--tt-blue); color: #fff !important; text-decoration: none;
    font-size: .88rem; font-weight: 700; padding: .6rem 1.2rem; border-radius: 10px;
    white-space: nowrap; transition: background-color .15s ease;
}
.tl-header__cta:hover { background: var(--tt-navy); }
.tl-nav-toggle { display: none; background: none; border: none; color: var(--tt-slate-900); cursor: pointer; font-size: 1.3rem; }

@media (max-width: 860px) {
    .tl-nav { position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: .5rem 2rem; box-shadow: 0 8px 20px -8px rgba(15,23,42,.15); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease; }
    .tl-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .tl-nav a { padding: .8rem 0; border-bottom: 1px solid #F1F5F9; }
    .tl-header__cta { display: none; }
    .tl-nav-toggle { display: block; }
}

/* ================= BANDEAU DÉMO ================= */
.tt-demo-banner {
    background: #FEF3C7; color: #92400E; text-align: center;
    font-size: .82rem; font-weight: 600; padding: .5rem 1rem;
}

/* ================= SECTIONS GÉNÉRIQUES ================= */
.tl-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.tl-section { padding: 5rem 0; scroll-margin-top: 70px; }
.tl-section--white { background: #fff; }
.tl-section--dark { background: var(--tt-navy); color: #E5E9F5; }
.tl-eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--tt-blue); background: var(--tt-blue-light);
    padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.tl-eyebrow--light { background: rgba(255,255,255,.12); color: #93C5FD; }
.tl-section h2, .tl-hero h1 { font-family: "Poppins", sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.tl-section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .6rem; }
.tl-h2--light { color: #fff; }
.tl-section__lead { color: var(--tt-slate-500); max-width: 560px; margin: 0 0 2.5rem; }
.tl-section__lead--light { color: #C7D2E8; }

.tl-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.7rem; border-radius: 12px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: all .15s ease; }
.tl-btn--primary { background: var(--tt-blue); color: #fff; }
.tl-btn--primary:hover { background: var(--tt-navy); color: #fff; }
.tl-btn--ghost { background: #fff; color: var(--tt-slate-900); border: 1.5px solid #E2E8F0; }
.tl-btn--ghost:hover { border-color: var(--tt-blue); color: var(--tt-blue); }

/* ================= HERO ================= */
.tl-hero { scroll-margin-top: 70px; padding: 6rem 1.5rem 5rem; text-align: center; background: linear-gradient(180deg, var(--tt-blue-light) 0%, var(--tt-slate-50) 100%); }
.tl-hero__inner { max-width: 720px; margin: 0 auto; }
.tl-hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 1.1rem; color: var(--tt-navy); }
.tl-hero__subtitle { color: var(--tt-slate-500); font-size: 1.05rem; max-width: 560px; margin: 0 auto 2rem; }
.tl-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ================= SERVICES ================= */
.tl-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .tl-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tl-services-grid { grid-template-columns: 1fr; } }
.tl-service-card {
    background: var(--tt-slate-50); border: 1px solid #E2E8F0; border-radius: 16px;
    padding: 1.6rem; transition: transform .15s ease, box-shadow .15s ease;
}
.tl-service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -10px rgba(15,23,42,.15); border-color: var(--tt-blue); }
.tl-service-card__icon { font-size: 1.7rem; display: block; margin-bottom: .7rem; color: var(--tt-blue); }
.tl-service-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.tl-service-card__meta { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--tt-navy); background: var(--tt-blue-light); padding: .15rem .55rem; border-radius: 6px; margin-bottom: .6rem; }
.tl-service-card p { color: var(--tt-slate-500); font-size: .88rem; margin: 0; line-height: 1.5; }

/* ================= COMMENT ÇA MARCHE ================= */
.tt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: step; }
@media (max-width: 780px) { .tt-steps { grid-template-columns: 1fr 1fr; } }
.tt-step { text-align: center; }
.tt-step__number {
    width: 42px; height: 42px; border-radius: 50%; background: var(--tt-blue); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    margin: 0 auto .8rem;
}
.tt-step h4 { margin: 0 0 .3rem; font-size: .95rem; }
.tt-step p { margin: 0; font-size: .82rem; color: var(--tt-slate-500); }

/* ================= CONTACT (démo) ================= */
.tl-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .tl-contact-grid { grid-template-columns: 1fr; } }
.tl-contact-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 1.6rem; }
.tl-contact-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: #fff; }
.tl-contact-card p { color: #C7D2E8; font-size: .88rem; margin: 0 0 .5rem; }
.tl-contact-card a { display: block; color: #93C5FD; text-decoration: none; font-weight: 600; margin-bottom: .4rem; }
.tl-contact-card a:hover { color: #fff; }

/* ================= FOOTER ================= */
.tl-footer { background: var(--tt-navy); color: #C7D2E8; padding: 3rem 1.5rem 1.5rem; text-align: center; }
.tl-footer p { margin: 0 0 .3rem; font-size: .82rem; }
.tl-footer strong { color: #fff; }

.tl-page-content { max-width: 800px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
