/*
Theme Name:        Coxeur
Theme URI:         https://coxeur.net
Description:       Thème officiel Coxeur — plateforme de mobilité et livraison au Sénégal. Compatible Elementor, démo importer intégré, calculateur de tarif, réservation en ligne et bouton WhatsApp.
Author:            Création de Solutions
Author URI:        https://creationsdesolutions.com
Version:           1.2.0
License:           GPLv2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       coxeur
Requires at least: 5.8
Tested up to:      6.7
Requires PHP:      7.4
Tags:              transportation, taxi, delivery, one-column, full-width-template, custom-colors, custom-logo, elementor, rtl-language-support
*/

/* =====================================================
   DESIGN TOKENS — Coxeur Brand System
   ===================================================== */
:root {
    /* Brand Colors */
    --cxr-navy: #060912;
    --cxr-navy2: #121a60;
    --cxr-navy3: #0d1350;
    --cxr-lime: #8cc63f;
    --cxr-lime2: #a8d84f;
    --cxr-lime-dark: #6fa332;

    /* Neutral */
    --cxr-white: #ffffff;
    --cxr-off-white: #f8f9fa;
    --cxr-light: #eef0f8;
    --cxr-gray: #6c757d;
    --cxr-dark: #2d3748;
    --cxr-darker: #1a202c;

    /* Gradients */
    --cxr-grad-hero: linear-gradient(135deg, #060912 0%, #121a60 60%, #0d1350 100%);
    --cxr-grad-lime: linear-gradient(90deg, #8cc63f, #a8d84f);
    --cxr-grad-card: linear-gradient(145deg, rgba(18, 26, 96, 0.8), rgba(6, 9, 18, 0.9));

    /* Typography */
    --cxr-font: 'Outfit', sans-serif;
    --cxr-font-mono: 'Courier New', monospace;

    /* Spacing */
    --cxr-section-py: 96px;
    --cxr-container: 1280px;
    --cxr-radius: 16px;
    --cxr-radius-lg: 28px;

    /* Shadows */
    --cxr-shadow-sm: 0 4px 20px rgba(0, 0, 0, .08);
    --cxr-shadow-md: 0 12px 40px rgba(0, 0, 0, .12);
    --cxr-shadow-lg: 0 24px 64px rgba(0, 0, 0, .18);
    --cxr-shadow-lime: 0 8px 32px rgba(140, 198, 63, .25);

    /* Transitions */
    --cxr-transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--cxr-font);
    color: var(--cxr-dark);
    background: var(--cxr-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    max-width: var(--cxr-container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 860px;
}

.container--wide {
    max-width: 1440px;
}

.section-py {
    padding-top: var(--cxr-section-py);
    padding-bottom: var(--cxr-section-py);
}

.section-pt {
    padding-top: var(--cxr-section-py);
}

.section-pb {
    padding-bottom: var(--cxr-section-py);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.cxr-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cxr-lime);
    margin-bottom: 12px;
}

.cxr-h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.12;
}

.cxr-h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
}

.cxr-h3 {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 700;
}

.cxr-lead {
    font-size: 1.15rem;
    opacity: .75;
    line-height: 1.8;
}

.text-white {
    color: #fff;
}

.text-lime {
    color: var(--cxr-lime);
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--cxr-grad-lime);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.cxr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--cxr-font);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--cxr-transition);
    white-space: nowrap;
}

.cxr-btn--primary {
    background: var(--cxr-lime);
    color: #000;
}

.cxr-btn--primary:hover {
    background: var(--cxr-lime2);
    transform: translateY(-2px);
    box-shadow: var(--cxr-shadow-lime);
}

.cxr-btn--dark {
    background: var(--cxr-navy);
    color: #fff;
}

.cxr-btn--dark:hover {
    background: var(--cxr-navy2);
    transform: translateY(-2px);
    box-shadow: var(--cxr-shadow-lg);
}

.cxr-btn--outline {
    border-color: var(--cxr-lime);
    color: var(--cxr-lime);
    background: transparent;
}

.cxr-btn--outline:hover {
    background: var(--cxr-lime);
    color: #000;
}

.cxr-btn--outline-white {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

.cxr-btn--outline-white:hover {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
}

.cxr-btn--lg {
    padding: 17px 36px;
    font-size: 1.05rem;
}

.cxr-btn--sm {
    padding: 10px 20px;
    font-size: .85rem;
}

/* App Store buttons */
.cxr-btn--store {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
    gap: 12px;
    padding: 12px 24px;
}

.cxr-btn--store:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .4);
    transform: translateY(-2px);
}

.cxr-btn--store .store-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cxr-btn--store .store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cxr-btn--store .store-text small {
    font-size: .65rem;
    font-weight: 400;
    opacity: .7;
}

.cxr-btn--store .store-text strong {
    font-size: .95rem;
}

/* =====================================================
   CARDS
   ===================================================== */
.cxr-card {
    background: #fff;
    border-radius: var(--cxr-radius);
    box-shadow: var(--cxr-shadow-sm);
    transition: var(--cxr-transition);
    overflow: hidden;
}

.cxr-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cxr-shadow-md);
}

.cxr-card--dark {
    background: var(--cxr-grad-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(140, 198, 63, .15);
    color: #fff;
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.cxr-section-header {
    margin-bottom: 60px;
}

.cxr-section-header h2 {
    margin-bottom: 16px;
}

.cxr-section-header p {
    max-width: 580px;
}

.cxr-section-header.centered {
    text-align: center;
}

.cxr-section-header.centered p {
    margin: 0 auto;
}

/* =====================================================
   BADGES & TAGS
   ===================================================== */
.cxr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    background: rgba(140, 198, 63, .12);
    color: var(--cxr-lime);
    border: 1px solid rgba(140, 198, 63, .25);
}

/* =====================================================
   DIVIDERS
   ===================================================== */
.cxr-divider {
    width: 56px;
    height: 4px;
    background: var(--cxr-grad-lime);
    border-radius: 4px;
    margin: 16px 0;
}

.cxr-divider.centered {
    margin: 16px auto;
}

/* =====================================================
   GRID UTILITIES
   ===================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* =====================================================
   SECTIONS — Background helpers
   ===================================================== */
.bg-navy {
    background: var(--cxr-navy);
    color: #fff;
}

.bg-navy2 {
    background: var(--cxr-navy2);
    color: #fff;
}

.bg-light {
    background: var(--cxr-off-white);
}

.bg-white {
    background: #fff;
}

.bg-grad-hero {
    background: var(--cxr-grad-hero);
    color: #fff;
}

/* =====================================================
   FORMS
   ===================================================== */
.cxr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cxr-form-grid .full {
    grid-column: 1 / -1;
}

.cxr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cxr-field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--cxr-dark);
}

.cxr-field input,
.cxr-field textarea,
.cxr-field select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--cxr-font);
    font-size: .95rem;
    color: var(--cxr-dark);
    background: #fff;
    transition: border-color .25s;
    outline: none;
}

.cxr-field input:focus,
.cxr-field textarea:focus,
.cxr-field select:focus {
    border-color: var(--cxr-lime);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, .12);
}

.cxr-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 1024px) {
    :root {
        --cxr-section-py: 72px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --cxr-section-py: 56px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .cxr-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --cxr-section-py: 48px;
    }

    .container {
        padding: 0 16px;
    }
}

/* ── Button outline-white — visibility fix ── */
.cxr-btn--outline-white {
    border: 2px solid rgba(255, 255, 255, .55) !important;
    color: #fff !important;
    background: transparent;
}

.cxr-btn--outline-white:hover {
    background: rgba(255, 255, 255, .15) !important;
    border-color: #fff !important;
}