/*
Theme Name: TransitLomé
Theme URI: https://tondomaine.com
Author: Ton Entreprise
Description: Thème compagnon léger pour Colis Transit Tracker — palette Blanc/Bleu/Orange/Gris clair, pensé pour l'espace client de suivi de colis Chine → Lomé.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: transitlome
*/

:root {
    --tl-blue: #1D4ED8;
    --tl-blue-dark: #1E3A8A;
    --tl-blue-light: #EFF6FF;
    --tl-orange: #F97316;
    --tl-slate-50: #F8FAFC;
    --tl-slate-500: #64748B;
    --tl-slate-900: #0F172A;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

a { color: var(--tl-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, .85);
    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(--tl-slate-900); }
.tl-header__logo {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: var(--tl-blue); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.tl-nav { display: flex; gap: 2rem; }
.tl-nav a { text-decoration: none; color: var(--tl-slate-500); font-size: .92rem; font-weight: 600; transition: color .15s ease; }
.tl-nav a:hover { color: var(--tl-blue); }
.tl-header__cta {
    background: var(--tl-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(--tl-blue-dark); }
.tl-nav-toggle { display: none; background: none; border: none; color: var(--tl-slate-900); cursor: pointer; }

@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; }
}

/* ================= 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(--tl-slate-900); color: #E2E8F0; }
.tl-eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--tl-blue); background: var(--tl-blue-light);
    padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.tl-eyebrow--light { background: rgba(255,255,255,.08); color: #93C5FD; }
.tl-section h2, .tl-hero h1 { font-family: "Space Grotesk", -apple-system, 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(--tl-slate-500); max-width: 560px; margin: 0 0 2.5rem; }
.tl-section__lead--light { color: #94A3B8; }

.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(--tl-blue); color: #fff; }
.tl-btn--primary:hover { background: var(--tl-blue-dark); color: #fff; }
.tl-btn--ghost { background: #fff; color: var(--tl-slate-900); border: 1.5px solid #E2E8F0; }
.tl-btn--ghost:hover { border-color: var(--tl-blue); color: var(--tl-blue); }

/* ================= HERO (Accueil) ================= */
.tl-hero { scroll-margin-top: 70px; padding: 6rem 1.5rem 5rem; text-align: center; background: linear-gradient(180deg, var(--tl-blue-light) 0%, var(--tl-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(--tl-slate-900); }
.tl-hero__subtitle { color: var(--tl-slate-500); font-size: 1.05rem; max-width: 540px; 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(--tl-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); }
.tl-service-card__icon { font-size: 1.7rem; display: block; margin-bottom: .7rem; }
.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(--tl-orange); margin-bottom: .6rem; }
.tl-service-card p { color: var(--tl-slate-500); font-size: .88rem; margin: 0; line-height: 1.5; }

/* ================= CONTACT ================= */
.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,.1);
    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: #94A3B8; font-size: .88rem; margin: 0 0 .5rem; }
.tl-contact-card a { display: block; color: #7DD3FC; text-decoration: none; font-weight: 600; margin-bottom: .4rem; }
.tl-contact-card a:hover { text-decoration: underline; }
.tl-contact-card__address { line-height: 1.5; }

/* ================= FOOTER ================= */
.tl-footer { background: #0B1220; color: #94A3B8; padding: 3.5rem 1.5rem 1.5rem; }
.tl-footer__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 780px) { .tl-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tl-footer__inner { grid-template-columns: 1fr; } }
.tl-footer__brand { display: flex; gap: .7rem; }
.tl-footer__brand strong { color: #fff; display: block; }
.tl-footer__brand p { margin: .2rem 0 0; font-size: .82rem; }
.tl-footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .8rem; }
.tl-footer__col a { display: block; color: #94A3B8; text-decoration: none; font-size: .88rem; margin-bottom: .55rem; }
.tl-footer__col a:hover { color: #fff; }
.tl-footer__col p { font-size: .82rem; line-height: 1.5; margin: 0 0 .3rem; }
.tl-footer__cn { font-size: .78rem; opacity: .8; }
.tl-footer__bottom { max-width: 1100px; margin: 1.5rem auto 0; font-size: .78rem; text-align: center; }

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

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