/* ============================================================
   HEADER IMJIVIAH — CSS COMPLET
   Préfixe : imjv-
   Fond : presque noir (#0a0a0a) → noir pur (#000) au scroll
   Sans icônes dans les liens · Sans barre verte au survol
   ============================================================ */

/* ============================================================
   RESET DE BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    top: 0 !important;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   HEADER — FOND PRESQUE NOIR / NOIR AU SCROLL
   ============================================================ */
#imjiviahHeader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #0a0a0a !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

#imjiviahHeader.scrolled {
    background: #000000 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7) !important;
}

.imjv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;                          /* ← hauteur réduite */
    padding: 0 30px;
    width: 100%;
    position: relative;
}

/* ============================================================
   LOGO — RÉDUIT
   ============================================================ */
.imjv-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 3;
    padding-right: 25px;
}

.imjv-logo img {
    height: 50px;                          /* ← logo réduit */
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.imjv-logo a:hover img {
    transform: scale(1.04);
}

/* ============================================================
   MENU HORIZONTAL — PLEINE LARGEUR
   ============================================================ */
.imjv-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

.imjv-nav > a,
.imjv-nav > .imjv-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.imjv-nav > a:first-child {
    border-left: none;
}

.imjv-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 15px;
    height: 100%;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.2px;
}

/* ✅ Barre verte RETIRÉE - Plus de ::after au survol */

.imjv-link:hover {
    color: #1d9645 !important;
}

.imjv-link .imjv-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.imjv-dropdown:hover .imjv-link .imjv-arrow {
    transform: rotate(180deg);
}

/* ============================================================
   DROPDOWN "À PROPOS"
   ============================================================ */
.imjv-dropdown {
    position: relative;
    height: 100%;
}

.imjv-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #0a0a0a !important;
    border-top: 3px solid #1d9645;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

.imjv-dropdown:hover .imjv-dropdown-menu,
.imjv-dropdown:focus-within .imjv-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ✅ Liens du dropdown SANS icônes */
.imjv-dropdown-menu a {
    display: block;
    color: #e5e7eb !important;
    padding: 12px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.imjv-dropdown-menu a:hover {
    background: rgba(29, 150, 69, 0.15);
    color: #1d9645 !important;
    border-left-color: #1d9645;
    padding-left: 30px;
}

/* ============================================================
   BOUTON HAMBURGER
   ============================================================ */
.imjv-burger {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-size: 20px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 3;
    flex-shrink: 0;
    margin-left: 20px;
    cursor: pointer;
    line-height: 1;
}

.imjv-burger:hover {
    background: #1d9645 !important;
    border-color: #1d9645 !important;
    transform: scale(1.05);
}

/* ============================================================
   OVERLAY
   ============================================================ */
.imjv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.imjv-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   MENU LATÉRAL — PLEIN ÉCRAN
   ============================================================ */
.imjv-sidemenu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    background: #0a0a0a !important;
    z-index: 10001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 22px 22px 40px;
    overflow-y: auto;
    box-shadow: none;
}

.imjv-sidemenu.active {
    right: 0;
}

.imjv-sidemenu::-webkit-scrollbar {
    width: 6px;
}

.imjv-sidemenu::-webkit-scrollbar-track {
    background: #050505;
}

.imjv-sidemenu::-webkit-scrollbar-thumb {
    background: #1d9645;
    border-radius: 3px;
}

/* En-tête du menu latéral */
.imjv-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid #1f1f1f;
}

.imjv-side-header img {
    height: 50px;
    width: auto;
}

.imjv-side-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ffffff;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    cursor: pointer;
}

.imjv-side-close:hover {
    background: #b10404;
    transform: rotate(90deg);
}

/* Sections */
.imjv-side-section {
    margin-bottom: 26px;
}

.imjv-side-label {
    display: block;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-left: 4px;
}

/* ✅ Liens du menu latéral SANS icônes */
.imjv-side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #e5e7eb !important;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    margin-bottom: 2px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.imjv-side-link:hover {
    background: rgba(29, 150, 69, 0.12);
    color: #1d9645 !important;
    transform: translateX(4px);
}

.imjv-side-link.danger:hover {
    background: rgba(177, 4, 4, 0.12);
    color: #ff6b6b !important;
}

/* Accordéon */
.imjv-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 10px;
}

.imjv-accordion.open {
    max-height: 320px;
}

.imjv-accordion-btn.open .accordion-arrow {
    transform: rotate(180deg);
}

.imjv-accordion-btn {
    justify-content: space-between;
}

.imjv-sublink {
    display: block;
    color: #b8bcc4 !important;
    padding: 9px 14px 9px 24px;
    font-size: 0.86rem;
    font-weight: 500;
    border-left: 2px solid #1f1f1f;
    margin-left: 12px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.imjv-sublink:hover {
    color: #1d9645 !important;
    border-left-color: #1d9645;
    padding-left: 28px;
}

/* Langues */
.imjv-langs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.imjv-lang-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #e5e7eb !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 0;
    border-radius: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
}

.imjv-lang-btn:hover,
.imjv-lang-btn.active {
    background: #1d9645 !important;
    border-color: #1d9645 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(29, 150, 69, 0.35);
}

/* Bloc utilisateur */
.imjv-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.imjv-user img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1d9645;
    flex-shrink: 0;
}

.imjv-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.imjv-user-info strong {
    color: #ffffff !important;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imjv-user-info small {
    color: #8a8a8a;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   GOOGLE TRANSLATE (caché)
   ============================================================ */
.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
#google_translate_element {
    display: none !important;
}

body {
    top: 0 !important;
}

/* ============================================================
   DÉCALAGE DU CONTENU SOUS LE HEADER
   ============================================================ */
.imjv-page-content {
    padding-top: 80px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette — menu horizontal caché, hamburger visible */
@media (max-width: 1100px) {
    .imjv-nav {
        display: none !important;
    }
    .imjv-burger {
        display: inline-flex !important;
    }
    .imjv-header-inner {
        padding: 0 20px;
    }
    .imjv-sidemenu {
        width: 100vw !important;
        max-width: 100vw !important;
        right: -100vw !important;
    }
    .imjv-sidemenu.active {
        right: 0 !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .imjv-header-inner {
        height: 70px;                     /* ← header mobile réduit */
        padding: 0 5%;
    }
    .imjv-logo img {
        height: 50px;                     /* ← logo mobile réduit */
    }
    .imjv-burger {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin-left: 10px;
    }
    .imjv-sidemenu {
        width: 100vw !important;
        max-width: 100vw !important;
        right: -100vw !important;
        padding: 20px 18px 30px;
    }
    .imjv-sidemenu.active {
        right: 0 !important;
    }
    .imjv-page-content {
        padding-top: 70px;
    }
}

/* Très petits écrans */
@media (max-width: 380px) {
    .imjv-header-inner {
        height: 64px;
        padding: 0 4%;
    }
    .imjv-logo img {
        height: 45px;
    }
    .imjv-burger {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .imjv-sidemenu {
        width: 100vw !important;
        max-width: 100vw !important;
        right: -100vw !important;
        padding: 20px 16px 30px;
    }
    .imjv-sidemenu.active {
        right: 0 !important;
    }
    .imjv-side-link {
        font-size: 0.88rem;
        padding: 10px 12px;
    }
    .imjv-page-load {
        padding-top: 64px;
    }
}