/* ============================================================
   AUTO-CONNECT.AFRICA — style.css
   Contient UNIQUEMENT les styles communs : variables, reset,
   boutons globaux, top-bar, header/nav/offcanvas, footer,
   utilitaires de base et responsive header/footer.
   ============================================================ */

/* --- Variables & Reset --- */
:root {
    --color-primary:    #D34B26;
    --color-text-main:  #333333;
    --color-text-light: #666666;
    --color-bg-light:   #F8F9FA;
    --color-white:      #FFFFFF;
    --font-main:        'Montserrat', sans-serif;
    --container-width:  1200px;
    --transition-speed: 0.3s;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ======================================================
   BOUTONS GLOBAUX (utilisés dans header, footer et partout)
   ====================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
.btn-primary       { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: #b53d1e; }
.btn-white         { background-color: var(--color-white); color: var(--color-primary); }
.btn-white:hover   { background-color: #f0f0f0; }
.btn-phone {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-outline-white {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-main);
    display: inline-block;
    transition: background var(--transition-speed);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition-speed);
}
.btn-red:hover { background: #b53d1e; color: var(--color-white); }
.btn-outline-red {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    color: var(--color-primary);
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    border: 2px solid var(--color-primary);
    font-weight: 600;
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-speed), color var(--transition-speed);
}
.btn-outline-red:hover { background: var(--color-primary); color: var(--color-white); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm    { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-icon  { background: none; border: none; cursor: pointer; color: var(--color-text-light); padding: 0.4rem; border-radius: 4px; transition: color var(--transition-speed); }
.btn-icon:hover { color: var(--color-primary); }
.link-primary       { color: var(--color-primary); text-decoration: none; font-size: 0.88rem; }
.link-primary:hover { text-decoration: underline; }

/* ======================================================
   UTILITAIRES GÉNÉRAUX
   ====================================================== */
.text-center   { text-align: center; }
.white-text    { color: var(--color-white) !important; }
.highlight-red { color: var(--color-primary); }
.flex-center   { display: flex; justify-content: center; align-items: center; }
.flex-wrap     { flex-wrap: wrap; }
.gap-20        { gap: 1.25rem; }
.mt-10  { margin-top: 0.625rem !important; }
.mt-20  { margin-top: 1.25rem !important; }
.mt-30  { margin-top: 1.875rem !important; }
.mb-0   { margin-bottom: 0 !important; }
.mb-10  { margin-bottom: 0.625rem !important; }
.mb-20  { margin-bottom: 1.25rem !important; }
.mb-30  { margin-bottom: 1.875rem !important; }
.mb-50  { margin-bottom: 3.125rem !important; }
.py-80  { padding-top: 5rem; padding-bottom: 5rem; }
.py-60  { padding-top: 3.75rem; padding-bottom: 3.75rem; }
.section { padding: 5rem 0; }
.bg-cream { background-color: var(--color-bg-light); }

/* Titres / décorations communes */
.section-title { font-size: 1.45rem; margin-bottom: 1.5rem; color: var(--color-text-main); font-weight: 700; }
.subtitle {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}
.subtitle-small { color: var(--color-primary); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.35rem; }

/* Accessibilité */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ======================================================
   TOP BAR
   ====================================================== */
.top-bar {
    background-color: #f1f1f1;
    font-size: 0.75rem;
    padding: 0.4rem 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top-bar .location-link { color: var(--color-text-light); }
.top-bar .top-links { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.top-bar a { color: var(--color-text-light); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; transition: color var(--transition-speed); }
.top-bar a:hover { color: var(--color-primary); }

/* ======================================================
   HEADER / NAVIGATION
   ====================================================== */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.site-header .top-bar { border-bottom: 1px solid #e2e2e2; }
.site-header.scrolled  { box-shadow: 0 4px 18px rgba(0,0,0,0.10); }

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

/* Logo */
.logo a { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 55px; width: auto; display: block; }
.logo-circle {
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 58px; height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* Desktop nav */
.main-nav ul { list-style: none; display: flex; gap: 1.25rem; }
.main-nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}
.main-nav a:hover,
.main-nav a.active    { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.main-nav a.highlight { color: var(--color-primary); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.icon-user { color: var(--color-text-main); text-decoration: none; font-size: 1.1rem; transition: color var(--transition-speed); }
.icon-user:hover { color: var(--color-primary); }

/* ======================================================
   HAMBURGER
   ====================================================== */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; flex-direction: column; gap: 5px; }
.hamburger span { display: block; background: var(--color-text-main); height: 3px; width: 25px; border-radius: 2px; transition: transform var(--transition-speed), opacity var(--transition-speed); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ======================================================
   OFFCANVAS OVERLAY
   ====================================================== */
.offcanvas-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.48); z-index: 998; opacity: 0; pointer-events: none; transition: opacity var(--transition-speed); }
.offcanvas-overlay.active { opacity: 1; pointer-events: all; }

/* ======================================================
   OFFCANVAS PANEL (menu mobile)
   ====================================================== */
.offcanvas-panel {
    position: fixed;
    top: 0; right: -105%; bottom: 0;
    width: 82%; max-width: 320px;
    background: var(--color-white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 20px rgba(0,0,0,0.12);
    transition: right var(--transition-speed) ease-in-out;
    overflow: hidden;
}
.offcanvas-panel.active { right: 0; }

.offcanvas-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid #eee; flex-shrink: 0; }
.offcanvas-header h3 { font-size: 1rem; font-weight: 700; }
.offcanvas-header .logo-circle { font-size: 0.75rem; }
.offcanvas-close { background: none; border: none; cursor: pointer; font-size: 1.15rem; color: var(--color-text-light); padding: 0.25rem 0.5rem; border-radius: 4px; transition: color var(--transition-speed), background var(--transition-speed); }
.offcanvas-close:hover { color: var(--color-primary); background: #f5f5f5; }

.offcanvas-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.offcanvas-section { margin-bottom: 0.25rem; }
.offcanvas-section h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-light); padding: 0.75rem 1.5rem 0.35rem; }
.offcanvas-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1.5rem; text-decoration: none; color: var(--color-text-main); border-bottom: 1px solid #f0f0f0; font-size: 0.88rem; font-weight: 500; transition: background var(--transition-speed), color var(--transition-speed); }
.offcanvas-link:hover { background: var(--color-bg-light); color: var(--color-primary); }
.offcanvas-link i { width: 18px; text-align: center; color: var(--color-text-light); flex-shrink: 0; font-size: 0.9rem; }
.offcanvas-link.highlight { color: var(--color-primary); font-weight: 600; }
.offcanvas-link.active { background: rgba(211,75,38,0.07); color: var(--color-primary); border-left: 3px solid var(--color-primary); font-weight: 600; }
.offcanvas-link.active i { color: var(--color-primary); }

.offcanvas-footer { flex-shrink: 0; padding: 1rem 1.5rem; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 0.5rem; }
.offcanvas-footer .btn { width: 100%; justify-content: center; }
.offcanvas-footer .btn-outline-wa { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.offcanvas-footer .btn-outline-wa:hover { background: rgba(211,75,38,0.08); }

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer { background: #f4f4f4; padding-top: 3.5rem; font-size: 0.85rem; }
.site-footer .logo-circle { width: 48px; height: 48px; font-size: 0.72rem; margin-bottom: 1rem; }

.seo-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid #ddd; }
.seo-col h4  { margin-bottom: 0.85rem; color: var(--color-text-main); font-size: 0.9rem; font-weight: 700; }
.seo-col ul  { list-style: none; }
.seo-col a   { color: var(--color-text-light); text-decoration: none; line-height: 2; display: block; font-size: 0.83rem; }
.seo-col a:hover { color: var(--color-primary); text-decoration: underline; }

.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; padding: 2.5rem 0; flex-wrap: wrap; gap: 2rem; }

.footer-nav h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-nav .nav-links { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-nav ul { list-style: none; }
.footer-nav a  { color: var(--color-text-light); text-decoration: none; line-height: 2.1; font-size: 0.83rem; display: block; }
.footer-nav a:hover { color: var(--color-primary); }

.footer-social h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }
.social-icons { display: flex; gap: 0.6rem; }
.social-icons a { background: var(--color-primary); color: var(--color-white); width: 34px; height: 34px; display: flex; justify-content: center; align-items: center; border-radius: 50%; text-decoration: none; font-size: 0.85rem; transition: background var(--transition-speed), transform var(--transition-speed); }
.social-icons a:hover { background: #b53d1e; transform: translateY(-2px); }

.footer-contact-info h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-contact-info ul { list-style: none; }
.footer-contact-info li { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.5rem; font-size: 0.83rem; color: var(--color-text-light); }
.footer-contact-info li i { color: var(--color-primary); flex-shrink: 0; margin-top: 0.2rem; width: 14px; }
.footer-contact-info a { color: var(--color-text-light); text-decoration: none; }
.footer-contact-info a:hover { color: var(--color-primary); }

.footer-copyright { text-align: center; padding: 1.25rem 1rem; border-top: 1px solid #ddd; color: var(--color-text-light); font-size: 0.8rem; }
.footer-copyright a { color: var(--color-text-light); text-decoration: none; }
.footer-copyright a:hover { color: var(--color-primary); }

/* ======================================================
   RESPONSIVE — header + footer uniquement
   ====================================================== */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    .main-nav  { display: none; }
    .header-actions .btn-phone { display: none; }
    .footer-nav .nav-links { flex-direction: column; gap: 0; }
}

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; }
    .top-bar .location-link { display: none; }
}

/* ======================================================
   SUIVI COMMANDE - Actions rapides & Support
   ====================================================== */

/* Actions rapides */
.actions-list,
.suivi-sidebar .actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.action-item:hover {
    background: #ffffff;
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.action-icon {
    width: 40px;
    height: 40px;
    background: rgba(211, 75, 38, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.action-content {
    flex: 1;
}

.action-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.action-desc {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.3;
}

/* Support card */
.support-card {
    text-align: center;
}

.support-content {
    padding: 0.5rem 0;
}

.support-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.support-icon i {
    color: #fff;
    font-size: 1.6rem;
}

.support-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.support-content p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.support-channels {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
}

.btn-phone {
    background: #3b82f6;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

/* Pour les boutons dans les cartes */
.btn-red.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.mt-15 {
    margin-top: 15px;
}

/* Timeline et autres éléments manquants éventuels */
.timeline-vertical {
    position: relative;
    padding-left: 2rem;
}

.timeline-event {
    position: relative;
    padding-bottom: 1.5rem;
}

.event-marker {
    position: absolute;
    left: -2rem;
    width: 2rem;
    height: 2rem;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
}

.timeline-event.completed .event-marker {
    background: var(--color-primary);
    color: #fff;
}

.event-content {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--color-primary);
}

.event-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.event-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.event-time {
    font-size: 0.7rem;
    color: #666;
}