/* ==========================================================================
   Navigation mobile — header fixe + menu plein écran
   Base : mobile-unified.css (thème WP), menu repensé (plein écran, items en
   cartes, CTA devis). Le contenu des pages garde ses propres styles.
   ========================================================================== */

/* Caché sur desktop/tablette large — le markup est servi sur toutes les pages */
.mobile-header,
.mobile-menu,
.mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {

/* Masquer le header desktop */
.site-header:not(.mobile-header) {
    display: none !important;
}

/* ==========================================================================
   HEADER MOBILE
   ========================================================================== */

.mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(34, 34, 34, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 139, 24, 0.2);
    z-index: 999999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.mobile-header-inner,
.mobile-header .mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end !important;
    height: 100%;
    padding: 0 1rem;
    position: relative;
    pointer-events: none;
}

/* Logo centré */
.mobile-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: auto;
}

.mobile-logo a {
    display: block;
}

.mobile-logo img,
.mobile-logo-img {
    height: 3rem;
    width: auto;
    display: block;
}

/* Bouton burger (à droite — seul élément en flux, poussé par flex-end) */
.mobile-burger-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    z-index: 999999;
    position: relative;
    pointer-events: auto;
}

.mobile-burger-line {
    width: 28px;
    height: 3px;
    background: #F08B18;
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
    display: block;
}

/* Animation burger → X */
.mobile-burger-btn.active .mobile-burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-burger-btn.active .mobile-burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-burger-btn.active .mobile-burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   MENU MOBILE — plein écran
   ========================================================================== */

.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    background-image:
        radial-gradient(ellipse 90% 50% at 50% -10%, rgba(240, 139, 24, 0.14), transparent),
        radial-gradient(ellipse 70% 40% at 100% 110%, rgba(240, 139, 24, 0.08), transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Overlay (fermeture au clic en dehors — recouvert par le menu plein écran,
   conservé pour le JS) */
.mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999997;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem 1.25rem 2rem;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Items en cartes — entrée en cascade quand le menu s'ouvre */
.mobile-menu-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-menu.active .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu-item:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.active .mobile-menu-item:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-item:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.active .mobile-menu-item:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-item:nth-child(6) { transition-delay: 0.30s; }

.mobile-menu .mobile-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 1.1rem !important;
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease !important;
}

.mobile-menu .mobile-menu-link:active,
.mobile-menu .mobile-menu-link:hover {
    background: rgba(240, 139, 24, 0.12) !important;
    border-color: rgba(240, 139, 24, 0.45) !important;
    color: #F08B18 !important;
    transform: translateX(4px) !important;
}

/* Pastille icône */
.mobile-menu-link .mobile-menu-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(240, 139, 24, 0.12);
    color: #F08B18;
    transition: background 0.25s ease, color 0.25s ease;
}

.mobile-menu-link:active .mobile-menu-ico,
.mobile-menu-link:hover .mobile-menu-ico {
    background: #F08B18;
    color: #1a1a1a;
}

.mobile-menu-link svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* Chevron à droite */
.mobile-menu-link .mobile-menu-arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.25s ease, transform 0.25s ease;
}

.mobile-menu-link:active .mobile-menu-arrow,
.mobile-menu-link:hover .mobile-menu-arrow {
    color: #F08B18;
    transform: translateX(3px);
}

/* ==========================================================================
   CTA DEVIS
   ========================================================================== */

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, #F08B18 0%, #d67610 100%);
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(240, 139, 24, 0.35);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease 0.35s, transform 0.35s ease 0.35s,
                box-shadow 0.25s ease;
}

.mobile-menu.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-cta:active {
    box-shadow: 0 3px 12px rgba(240, 139, 24, 0.5);
    transform: scale(0.98);
}

.mobile-menu-cta svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* ==========================================================================
   PIED DU MENU (téléphone + localisation)
   ========================================================================== */

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.35s ease 0.45s;
}

.mobile-menu.active .mobile-menu-footer {
    opacity: 1;
}

.mobile-menu-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-contact svg {
    stroke: #F08B18;
}

.mobile-menu-place {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Verrouille le scroll quand le menu est ouvert */
body.mobile-menu-open {
    overflow: hidden;
}

}
