/* ─── Styles partagés : navbar, footer, preloader, back-to-top, whatsapp ─── */
:root {
    --primary: #FF6B00;
    --primary-light: #FF8C38;
    --primary-dark: #E05E00;
    --accent: #0057FF;
    --dark: #0B0B0F;
    --dark-2: #141419;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF8C38 50%, #FFB347 100%);
    --gradient-dark: linear-gradient(135deg, #0B0B0F 0%, #1a1a2e 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
    --shadow-orange: 0 10px 40px rgba(255,107,0,.3);
    --radius: 16px;
    --radius-lg: 24px;
}

/* PRELOADER */
.preloader { position: fixed; inset: 0; background: var(--dark); display: flex; align-items: center; justify-content: center; z-index: 99999; transition: opacity .5s, visibility .5s; }
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-spinner { width: 50px; height: 50px; border: 4px solid rgba(255,107,0,.2); border-top: 4px solid var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; padding: 18px 60px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: all .4s cubic-bezier(.4,0,.2,1); }
.navbar.scrolled { background: rgba(11,11,15,.95); backdrop-filter: blur(20px); padding: 12px 60px; box-shadow: 0 4px 30px rgba(0,0,0,.3); }
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Arboria', sans-serif; font-size: 1.6rem; font-weight: 800; color: #fff; text-decoration: none; }
.logo img { height: 48px; width: auto; border-radius: 10px; }
.logo-text span { color: var(--primary); font-weight: 900; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { color: rgba(255,255,255,.8); font-weight: 500; font-size: .9rem; transition: .3s; text-decoration: none; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { padding: 10px 28px !important; background: var(--gradient-primary) !important; border-radius: 50px !important; color: #fff !important; font-weight: 600 !important; transition: transform .3s, box-shadow .3s !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.nav-devis { padding: 8px 18px !important; border: 1.5px solid rgba(255,107,0,.5) !important; border-radius: 50px !important; color: var(--primary) !important; font-weight: 600 !important; transition: background .25s, border-color .25s !important; }
.nav-devis:hover { background: rgba(255,107,0,.1) !important; border-color: var(--primary) !important; }

/* DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-chevron { font-size: .65rem; transition: transform .3s; }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); background: rgba(14,14,20,.97); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px; min-width: 230px; box-shadow: 0 20px 60px rgba(0,0,0,.4); z-index: 999; animation: dropFade .2s ease; list-style: none; }
@keyframes dropFade { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: .88rem; color: rgba(255,255,255,.75); transition: background .2s, color .2s; white-space: nowrap; }
.nav-dropdown-menu li a i { width: 16px; color: var(--primary); font-size: .8rem; }
.nav-dropdown-menu li a:hover { background: rgba(255,107,0,.1); color: #fff; }
.dropdown-divider { height: 1px; background: rgba(255,255,255,.08); margin: 6px 10px; list-style: none; }

/* LANGUAGE SWITCHER */
.lang-switcher { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 50px; padding: 3px; }
.lang-btn { color: rgba(255,255,255,.45); font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 3px 9px; border-radius: 50px; text-decoration: none; transition: color .2s, background .2s; line-height: 1.4; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--primary); color: #fff !important; }
.lang-switcher-mobile { display: none; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 28px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* FOOTER */
.footer { background: var(--dark-2); padding: 60px 60px 30px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { color: rgba(255,255,255,.4); font-size: .9rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; color: rgba(255,255,255,.4); font-size: .9rem; padding: 6px 0; transition: .3s; text-decoration: none; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 25px; color: rgba(255,255,255,.3); font-size: .85rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--primary); text-decoration: none; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.4); transition: color .3s; font-size: .85rem; }
.footer-legal a:hover { color: var(--primary); }

/* WHATSAPP */
.whatsapp-btn { position: fixed; bottom: 120px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; z-index: 999; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: .3s; text-decoration: none; }
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 10px 36px rgba(37,211,102,.55); }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 50px; right: 30px; width: 45px; height: 45px; border-radius: 50%; background: var(--dark); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1rem; z-index: 999; border: 1px solid rgba(255,107,0,.3); opacity: 0; visibility: hidden; transition: .3s; cursor: pointer; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: #fff; }

/* RESPONSIVE PARTAGÉ */
@media (max-width: 1024px) {
    .navbar { padding: 15px 30px; }
    .navbar.scrolled { padding: 12px 30px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }
    .navbar.scrolled { padding: 12px 20px; }
    .nav-links { display: none; position: fixed; inset: 0; background: rgba(11,11,15,.98); flex-direction: column; align-items: center; justify-content: center; gap: 25px; z-index: 1000; }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-dropdown { width: 100%; text-align: center; }
    .nav-dropdown-toggle { justify-content: center; font-size: 1.2rem; }
    .nav-dropdown-menu { display: flex !important; position: static; transform: none; background: transparent; border: none; box-shadow: none; backdrop-filter: none; flex-direction: column; align-items: center; padding: 6px 0 0; gap: 2px; animation: none; min-width: unset; }
    .nav-dropdown-menu li a { font-size: 1rem; padding: 8px 14px; background: rgba(255,255,255,.04); border-radius: 10px; }
    .dropdown-divider { display: none; }
    .nav-chevron { display: none; }
    .hamburger { display: flex; }
    /* Language switcher — desktop version hidden on mobile (mobile version is inside nav-links) */
    .lang-switcher { display: none; }
    .lang-switcher-mobile { display: flex; gap: 6px; margin-top: 4px; }
    .lang-switcher-mobile .lang-btn { font-size: .9rem; padding: 6px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 50px; color: rgba(255,255,255,.6); }
    .lang-switcher-mobile .lang-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
    .footer { padding: 50px 24px 24px; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
    .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
