/*
Theme Name: Fred Cardo (Démo)
Theme URI: https://fredcardo.example.com
Author: Fred Cardo
Description: Démo de suivi de colis pour Fred Cardo — design Judolvia (nav sticky, hero, sections empilées, contact sombre), palette verte.
Version: 3.2.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: fredcardo
*/

:root {
    --tl-gold: #16A34A;
    --tl-gold-dark: #14532D;
    --tl-gold-light: #ECFDF5;
    --tl-black: #111111;
    --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: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

a { color: var(--tl-gold-dark); }

/* ================= NAV FLOTTANTE (PILULE) ================= */
.tl-header__logo {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: var(--tl-black); color: var(--tl-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.fc-nav-wrap { position: sticky; top: 0; z-index: 200; display: flex; justify-content: center; padding: 1.1rem 1rem 0; }
.fc-nav {
    display: flex; align-items: center; gap: 1.8rem;
    background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 999px; padding: .6rem .7rem .6rem 1.2rem;
    box-shadow: 0 8px 30px -10px rgba(15,23,42,.15);
    max-width: 100%;
}
.fc-nav__brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--tl-slate-900); white-space: nowrap; }
.fc-nav__logo { width: 30px; height: 30px; border-radius: 50%; background: var(--tl-gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.fc-nav__links { display: flex; gap: 1.4rem; }
.fc-nav__links a { text-decoration: none; color: var(--tl-slate-500); font-size: .85rem; font-weight: 600; }
.fc-nav__links a:hover { color: var(--tl-gold-dark); }
.fc-nav__cta { background: var(--tl-black); color: #fff !important; text-decoration: none; font-size: .82rem; font-weight: 700; padding: .55rem 1.1rem; border-radius: 999px; white-space: nowrap; }
.fc-nav__toggle { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 820px) {
    .fc-nav__links { display: none; position: fixed; top: 90px; left: 1rem; right: 1rem; background: #fff; flex-direction: column; gap: 0; border-radius: 18px; padding: .5rem 1.2rem; box-shadow: 0 12px 30px -10px rgba(15,23,42,.2); }
    .fc-nav__links.is-open { display: flex; }
    .fc-nav__links a { padding: .8rem 0; border-bottom: 1px solid #F1F5F9; }
    .fc-nav__cta { display: none; }
    .fc-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-black); color: #E5E5E5; }
.tl-eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--tl-gold-dark); background: var(--tl-gold-light);
    padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.tl-eyebrow--light { background: rgba(212,160,23,.15); color: var(--tl-gold); }
.tl-section h2, .tl-hero h1 { font-family: "Poppins", -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: #B0B0B0; }

.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-gold); color: var(--tl-black); }
.tl-btn--primary:hover { background: var(--tl-gold-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-gold-dark); color: var(--tl-gold-dark); }

/* ================= HERO (Accueil) ================= */
.tl-hero { scroll-margin-top: 70px; padding: 6rem 1.5rem 5rem; text-align: center; background: linear-gradient(180deg, var(--tl-gold-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); border-color: var(--tl-gold); }
.tl-service-card__icon { font-size: 1.7rem; display: block; margin-bottom: .7rem; color: var(--tl-gold-dark); }
.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-black); background: var(--tl-gold-light); padding: .15rem .55rem; border-radius: 6px; 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,.04); border: 1px solid rgba(212,160,23,.25);
    border-radius: 16px; padding: 1.6rem;
}
.tl-contact-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--tl-gold); }
.tl-contact-card p { color: #B0B0B0; font-size: .88rem; margin: 0 0 .5rem; }
.tl-contact-card a { display: block; color: #fff; text-decoration: none; font-weight: 600; margin-bottom: .4rem; }
.tl-contact-card a:hover { color: var(--tl-gold); text-decoration: underline; }
.tl-contact-card__address { line-height: 1.5; }

/* ================= FOOTER ================= */
.tl-footer { background: var(--tl-black); color: #B0B0B0; 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(212,160,23,.2); }
@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: var(--tl-gold); display: block; }
.tl-footer__brand p { margin: .2rem 0 0; font-size: .82rem; }
.tl-footer__col h4 { color: var(--tl-gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .8rem; }
.tl-footer__col a { display: block; color: #B0B0B0; text-decoration: none; font-size: .88rem; margin-bottom: .55rem; }
.tl-footer__col a:hover { color: var(--tl-gold); }
.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; }
}
