/* =============================================
   DAWA MOTORS — Navbar & Hero CSS
   ============================================= */

/* ---- Variables ---- */
:root {
    --dm-dark:      #111827;
    --dm-dark2:     #1e293b;
    --dm-orange:    #f7941d;
    --dm-white:     #ffffff;
    --dm-muted:     rgba(255,255,255,0.65);
    --dm-glass:     rgba(255,255,255,0.07);
    --dm-topbar-h:  40px;
    --dm-nav-h:     68px;
    --dm-trans:     0.22s ease;
}

body { padding-top: calc(var(--dm-topbar-h) + var(--dm-nav-h)); }

/* =============================================
   TOPBAR
   ============================================= */
.dm-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10001;
    height: var(--dm-topbar-h);
    background: #070c15;
    border-bottom: 1px solid rgba(247,148,29,.10);
    transition: transform .32s ease;
    overflow: hidden;
}
.dm-topbar.dm-top-hidden { transform: translateY(-100%); }

.dm-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.dm-topbar-left,
.dm-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dm-topbar-left a {
    display: inline-flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    text-decoration: none;
    transition: color .2s ease;
    white-space: nowrap;
}
.dm-topbar-left a:hover { color: var(--dm-orange); }
.dm-topbar-left a .fa { color: var(--dm-orange); font-size: 11px; }

.dm-topbar-socials {
    display: flex;
    align-items: center;
    gap: 1px;
}
.dm-topbar-socials a {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px;
    color: rgba(255,255,255,.48);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}
.dm-topbar-socials a:hover {
    color: var(--dm-orange);
    background: rgba(247,148,29,.1);
}

.dm-topbar-divider {
    width: 1px; height: 18px;
    background: rgba(255,255,255,.12);
}

.dm-topbar .gtranslate-wrapper {
    display: flex; align-items: center;
    min-height: 28px;
}

@media (max-width: 767px) {
    .dm-topbar { display: none; }
    body { padding-top: var(--dm-nav-h); }
}

/* =============================================
   NAVBAR
   ============================================= */
.dm-navbar {
    position: fixed;
    top: var(--dm-topbar-h); left: 0; right: 0;
    z-index: 9999;
    height: var(--dm-nav-h);
    background: var(--dm-dark);
    border-bottom: 2px solid transparent;
    box-shadow: 0 1px 6px rgba(0,0,0,.22);
    transition:
        transform    .32s ease,
        top          .32s ease,
        background   .32s ease,
        box-shadow   .32s ease,
        border-color .32s ease,
        height       .32s ease;
}
@media (max-width: 767px) { .dm-navbar { top: 0; } }

/* --- Scroll progress bar --- */
.dm-navbar::before {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    height: 3px;
    width: var(--scroll-pct, 0%);
    background: linear-gradient(90deg, var(--dm-orange) 0%, #ffc46b 100%);
    opacity: 0;
    transition: opacity .32s ease;
    z-index: 1;
    pointer-events: none;
}
.dm-navbar.dm-scrolled::before { opacity: 1; }

/* --- Activated (scrolled) state --- */
.dm-navbar.dm-scrolled {
    top: 0;
    height: 62px;
    background: rgba(17, 24, 39, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 32px rgba(0,0,0,.55);
    border-bottom-color: rgba(247, 148, 29, .22);
}
.dm-navbar.dm-scrolled .dm-navbar-inner { height: 62px; }

.dm-navbar.hidden { transform: translateY(-100%); }

.dm-navbar-inner {
    display: flex;
    align-items: center;
    height: var(--dm-nav-h);
    gap: 1rem;
}

/* Brand */
.dm-brand { flex-shrink: 0; line-height: 1; }
.dm-navbar.dm-scrolled .dm-brand { font-size: .9em; }

/* Search */
.dm-search {
    flex: 1;
    max-width: 380px;
    position: relative;
}
.dm-search form { position: relative; }
.dm-search input {
    width: 100%;
    background: var(--dm-glass);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;
    padding: 8px 16px 8px 38px;
    color: var(--dm-white);
    font-size: 13px;
    transition: border-color var(--dm-trans), background var(--dm-trans);
}
.dm-search input::placeholder { color: rgba(255,255,255,.38); }
.dm-search input:focus {
    outline: none;
    border-color: var(--dm-orange);
    background: rgba(247,148,29,.07);
}
.dm-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.4);
    font-size: 14px;
    pointer-events: none;
}

/* Nav links */
.dm-nav-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.dm-nav-links li { position: relative; }
.dm-nav-links > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    color: var(--dm-muted);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--dm-trans), background var(--dm-trans);
}
.dm-nav-links > li > a:hover,
.dm-nav-links > li > a.active {
    color: var(--dm-orange);
    background: var(--dm-glass);
}
.dm-nav-links > li > a .ti-angle-down {
    font-size: 10px;
    margin-left: 2px;
    transition: transform var(--dm-trans);
}
.dm-nav-links > li:hover > a .ti-angle-down { transform: rotate(180deg); }

/* Badge */
.dm-badge {
    background: var(--dm-orange);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Dropdown */
.dm-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    background: #1e2d40;
    border-radius: 10px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 10px 36px rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.06);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--dm-trans), transform var(--dm-trans);
}
.dm-has-dropdown:hover .dm-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.dm-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    text-decoration: none;
    border-radius: 0;
    background: transparent;
    transition: color var(--dm-trans), background var(--dm-trans);
}
.dm-dropdown li a i { font-size: 14px; color: var(--dm-orange); }
.dm-dropdown li a:hover {
    color: var(--dm-orange);
    background: rgba(247,148,29,.07);
}

/* Nav icons */
.dm-nav-icons {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 8px;
}
.dm-icon-btn {
    position: relative;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--dm-muted);
    border-radius: 8px;
    text-decoration: none;
    font-size: 17px;
    transition: color var(--dm-trans), background var(--dm-trans);
}
.dm-icon-btn:hover { color: var(--dm-orange); background: var(--dm-glass); }
.dm-icon-count {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--dm-orange);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 14px; height: 14px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Hamburger */
.dm-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: 6px;
}
.dm-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--dm-white);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.dm-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dm-hamburger.open span:nth-child(2) { opacity: 0; }
.dm-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   OFFCANVAS DRAWER (MOBILE)
   ============================================= */
.dm-drawer {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; height: 100vh;
    background: #0f172a;
    z-index: 10000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: right .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -6px 0 40px rgba(0,0,0,.55);
}
.dm-drawer.open { right: 0; }

.dm-drawer-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.dm-drawer-header img { height: 32px; }
.dm-drawer-close {
    background: none; border: none;
    color: var(--dm-muted); font-size: 26px;
    cursor: pointer; line-height: 1; padding: 0;
    transition: color var(--dm-trans);
}
.dm-drawer-close:hover { color: var(--dm-orange); }

/* Drawer search */
.dm-drawer-search { padding: 14px 18px 6px; }
.dm-drawer-search form {
    display: flex;
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}
.dm-drawer-search input {
    flex: 1; background: none; border: none;
    padding: 9px 12px; color: #fff; font-size: 13px;
}
.dm-drawer-search input::placeholder { color: rgba(255,255,255,.38); }
.dm-drawer-search input:focus { outline: none; }
.dm-drawer-search button {
    background: none; border: none;
    color: rgba(255,255,255,.45); padding: 0 12px; cursor: pointer;
}

/* Drawer nav links */
.dm-drawer-nav {
    list-style: none; margin: 0; padding: 10px 0; flex: 1;
}
.dm-drawer-nav li > a,
.dm-drawer-toggle {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 18px;
    color: rgba(255,255,255,.75); font-size: 14px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color var(--dm-trans), background var(--dm-trans), border-color var(--dm-trans);
    cursor: pointer;
}
.dm-drawer-nav li > a:hover,
.dm-drawer-nav li > a.active,
.dm-drawer-toggle:hover,
.dm-drawer-toggle.open {
    color: var(--dm-orange);
    background: rgba(247,148,29,.07);
    border-left-color: var(--dm-orange);
}
.dm-drawer-toggle { user-select: none; }
.dm-arr {
    margin-left: auto; font-size: 11px;
    transition: transform .25s;
}
.dm-drawer-toggle.open .dm-arr { transform: rotate(180deg); }

/* Drawer sub-menu */
.dm-drawer-sub {
    list-style: none; margin: 0; padding: 0;
    background: rgba(0,0,0,.18);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
}
.dm-drawer-sub.open { max-height: 220px; }
.dm-drawer-sub li a {
    padding-left: 50px; font-size: 13px; border-left: none;
}

/* Drawer bottom icons */
.dm-drawer-icons {
    display: flex; justify-content: space-around;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.dm-drawer-icons a {
    position: relative;
    color: var(--dm-muted); font-size: 19px;
    text-decoration: none;
    transition: color var(--dm-trans);
}
.dm-drawer-icons a:hover { color: var(--dm-orange); }
.dm-drawer-icons .dm-icon-count { font-size: 8px; min-width: 13px; height: 13px; }

/* Overlay */
.dm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 9998;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.dm-overlay.show { opacity: 1; pointer-events: all; }

/* =============================================
   HERO SECTION
   ============================================= */
.dm-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.dm-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 9s ease;
}
.dm-hero:hover .dm-hero-bg { transform: scale(1.04); }
.dm-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17,24,39,.90) 0%,
        rgba(17,24,39,.58) 55%,
        rgba(17,24,39,.18) 100%
    );
}
.dm-hero .container { position: relative; z-index: 2; }
.dm-hero-content {
    max-width: 600px;
    padding: 60px 0;
}
.dm-hero-sub {
    color: var(--dm-orange);
    font-size: 12px; font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: block;
}
.dm-hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.14;
    margin-bottom: 20px;
}
.dm-hero-content h1 span { color: var(--dm-orange); }
.dm-hero-content > p {
    color: rgba(255,255,255,.68);
    font-size: 15px; margin-bottom: 36px; line-height: 1.75;
}
.dm-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.dm-btn-primary {
    background: var(--dm-orange);
    color: #fff !important;
    border: 2px solid var(--dm-orange);
    border-radius: 8px;
    padding: 13px 32px;
    font-weight: 600; font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background var(--dm-trans), transform var(--dm-trans), box-shadow var(--dm-trans);
}
.dm-btn-primary:hover {
    background: #e07d0e;
    border-color: #e07d0e;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(247,148,29,.38);
}
.dm-btn-outline {
    background: transparent;
    color: rgba(255,255,255,.88) !important;
    border: 2px solid rgba(255,255,255,.42);
    border-radius: 8px;
    padding: 13px 32px;
    font-weight: 600; font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all var(--dm-trans);
}
.dm-btn-outline:hover {
    border-color: var(--dm-orange);
    color: var(--dm-orange) !important;
    transform: translateY(-2px);
}
/* Scroll indicator */
.dm-hero-scroll {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(255,255,255,.45);
    font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
    animation: dm-bounce 2s ease infinite;
    cursor: default;
}
.dm-hero-scroll i { font-size: 16px; }
@keyframes dm-bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   BRAND CHIPS BAR
   ============================================= */
.dm-brands {
    background: #f9fafb;
    padding: 22px 0;
    border-bottom: 1px solid #eaeaea;
}
.dm-brands-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.dm-brands-inner::-webkit-scrollbar { display: none; }
.dm-brands-label {
    font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa; font-weight: 600;
    white-space: nowrap; flex-shrink: 0;
    margin-right: 6px;
}
.dm-brand-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 50px;
    color: #444; font-size: 12.5px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: all var(--dm-trans);
}
.dm-brand-chip:hover {
    background: var(--dm-orange);
    border-color: var(--dm-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(247,148,29,.3);
    transform: translateY(-2px);
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.dm-features {
    padding: 76px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.dm-features-header {
    text-align: center; margin-bottom: 52px;
}
.dm-features-header .dm-overline {
    display: block;
    color: var(--dm-orange); font-size: 11px; font-weight: 600;
    letter-spacing: 3.5px; text-transform: uppercase; margin-bottom: 12px;
}
.dm-features-header h2 {
    font-size: 1.95rem; font-weight: 700; color: #fff; margin: 0;
}
.dm-feature-card {
    text-align: center; padding: 32px 22px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    transition: transform var(--dm-trans), background var(--dm-trans), border-color var(--dm-trans);
    height: 100%;
}
.dm-feature-card:hover {
    transform: translateY(-6px);
    background: rgba(247,148,29,.08);
    border-color: rgba(247,148,29,.25);
}
.dm-feature-icon {
    width: 62px; height: 62px;
    background: rgba(247,148,29,.14);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--dm-orange);
}
.dm-feature-card h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.dm-feature-card p  { font-size: 13.5px; color: rgba(255,255,255,.52); line-height: 1.65; margin: 0; }

/* =============================================
   AVIS CLIENTS
   ============================================= */
.dm-reviews {
    padding: 76px 0 60px;
    background: #f9fafb;
}
.dm-reviews-header {
    text-align: center;
    margin-bottom: 48px;
}
.dm-reviews-header .dm-overline {
    display: block;
    color: var(--dm-orange); font-size: 11px; font-weight: 600;
    letter-spacing: 3.5px; text-transform: uppercase; margin-bottom: 12px;
}
.dm-reviews-header h2 {
    font-size: 1.95rem; font-weight: 700; color: #111; margin: 0 0 10px;
}
.dm-reviews-header p {
    color: #666; font-size: 14.5px; max-width: 520px; margin: 0 auto;
}

/* Card */
.dm-review-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    position: relative;
    transition: transform var(--dm-trans), box-shadow var(--dm-trans);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 10px 16px;
    height: calc(100% - 24px);
}
.dm-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.11);
}
/* Bande colorée en haut */
.dm-review-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dm-orange), #ffc46b);
    border-radius: 16px 16px 0 0;
}

/* Guillemets */
.dm-review-quote {
    font-size: 28px;
    color: var(--dm-orange);
    opacity: .35;
    line-height: 1;
}

/* Étoiles */
.dm-review-stars {
    color: #f5c518;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Texte */
.dm-review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    flex: 1;
    margin: 0;
    font-style: italic;
}

/* Auteur */
.dm-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}
.dm-review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dm-orange), #ffc46b);
    color: #fff;
    font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.dm-review-author-info strong {
    display: block;
    font-size: 14px; font-weight: 600; color: #222;
}
.dm-review-author-info span {
    font-size: 12px; color: #999;
}

/* Owl Carousel overrides pour la section avis */
.dm-reviews-slider .owl-dots {
    text-align: center;
    margin-top: 24px;
}
.dm-reviews-slider .owl-dot span {
    width: 8px; height: 8px;
    background: #ddd; border-radius: 50%;
    display: inline-block; margin: 0 4px;
    transition: background var(--dm-trans), width var(--dm-trans);
}
.dm-reviews-slider .owl-dot.active span {
    background: var(--dm-orange);
    width: 24px; border-radius: 4px;
}
.dm-reviews-slider .owl-nav button {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    color: #333 !important;
    font-size: 18px !important;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--dm-trans), color var(--dm-trans);
}
.dm-reviews-slider .owl-nav button:hover {
    background: var(--dm-orange) !important;
    color: #fff !important;
}
.dm-reviews-slider .owl-nav .owl-prev { left: -18px; }
.dm-reviews-slider .owl-nav .owl-next { right: -18px; }
.dm-reviews-slider { position: relative; }

/* CTA "Déposer un avis" */
.dm-reviews-cta {
    text-align: center;
    margin-top: 36px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .dm-nav-links,
    .dm-search { display: none !important; }
    .dm-nav-icons { margin-left: auto; }
    .dm-hamburger { display: flex !important; }
    .dm-hero { min-height: 72vh; }
    .dm-hero-content { max-width: 100%; }
}
@media (max-width: 575px) {
    .dm-hero { min-height: 60vh; }
    .dm-hero-content { padding: 40px 0; }
    .dm-hero-content h1 { font-size: 1.95rem; }
    .dm-hero-btns { flex-direction: column; }
    .dm-btn-primary,
    .dm-btn-outline { text-align: center; }
    .dm-brands-label { display: none; }
}
