@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* ============================================
   GLOBAL
   ============================================ */
body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: #005885 !important;
    margin: 0;
    padding: 0;
}

/* Désactiver le header sticky de Quark */
body.header-fixed,
body.header-animated {
    padding-top: 0 !important;
}

/* ============================================
   HEADER — image de fond plein écran
   L'image logo.webp (1900x475) contient déjà
   le logo + les deux zones bleues.
   ============================================ */
section#header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    z-index: 100;
    overflow: visible !important;

    /* L'image de fond = ton rendu Blender */
    background-color: #4C9DD6 !important;
    background-image: url('../images/logo.webp') !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-bottom: none !important;
    box-shadow: none !important;

    /* Hauteur proportionnelle à l'image (475/1900 ≈ 25vw) */
    height: 25vw !important;
    min-height: 250px !important;
    max-height: 475px !important;
    padding: 0 !important;
}

/* Overflow visible sur la chaîne */
section#header section.container,
section#header section.container.grid-lg,
section#header nav.navbar,
section#header .navbar-section,
section#header .navbar-section.logo {
    overflow: visible !important;
}

/* Container */
section#header section.container,
section#header section.container.grid-lg {
    height: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Navbar */
section#header nav.navbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 100% !important;
    padding: 0 20px 0 !important;
    position: relative !important;
}

/* ============================================
   CACHER le logo <img> et le texte HUMART.SYS
   Ils sont déjà dans l'image de fond !
   ============================================ */
/* La section logo reste visible pour afficher HUMART.SYS */
section#header .navbar-section.logo {
    position: absolute !important;
    left: 50% !important;
    bottom: -35px !important; /* Déborde sous le header */
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 200;
    flex: none !important;
    width: auto !important;
}

/* Cacher le logo image — il est dans le background */
.main-logo {
    display: none !important;
}

/* Texte HUMART.SYS — visible, sous le logo image de fond */
.custom-site-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    display: flex !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.custom-site-name .hum {
    color: #BE2734;
}

.custom-site-name .art {
    color: #EA892E;
}

.custom-site-name .sys {
    color: #008751;
}

.navbar-brand-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
}

/* ============================================
   NAVIGATION — en bas du header, centrée
   ============================================ */
section#header .navbar-section.desktop-menu {
    position: absolute !important;
    left: 50% !important;
    bottom: -75px !important; /* Déborde sous le header, sous HUMART.SYS */
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    width: auto !important;
    z-index: 200;
    gap: 15px;
}

section#header .navbar-section.desktop-menu a {
    color: #EA892E !important;
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 20px !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

section#header .navbar-section.desktop-menu a:hover {
    color: #ffffff !important;
}

/* ============================================
   BODY / CONTENU
   ============================================ */
section#body-wrapper,
#body-wrapper {
    background-image: none !important;
    margin-top: 0 !important;
    padding-top: 100px !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Image bg en pseudo-element, collée à droite */
#body-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    /* On passe à 60% ou 80% pour qu'elle soit plus imposante */
    width: 70%; 
    height: 100%;
    background-image: url('../images/bg.webp');
    /* 'cover' permet à l'image de remplir tout l'espace quitte à être un peu rognée */
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: right top;
    z-index: 0;
    pointer-events: none;
    /* Optionnel : on baisse un peu l'opacité pour que ça ne gêne pas la lecture */
    opacity: 1; 
}

/* Le contenu passe au-dessus du bg */
#body-wrapper > * {
    position: relative;
    z-index: 2;
}

/* Texte blanc global */
#body-wrapper * {
    color: #ffffff !important;
}

/* Liens */
#body-wrapper a,
#body-wrapper a * {
    color: #4dd9c0 !important;
    text-decoration: none !important;
}

#body-wrapper a:hover,
#body-wrapper a:hover * {
    color: #7eebd6 !important;
    text-decoration: underline !important;
}

/* ============================================
   CONTENU — lisibilité
   ============================================ */
.content-wrapper,
.blog-content-item {
    background: rgba(0, 20, 50, 0.35);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 60%;
    position: relative;
    z-index: 2;
}

#item {
    background: rgba(255, 255, 255, 0.92);
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

#body-wrapper h1 {
    font-weight: 900 !important;
    font-size: 2.8rem !important;
    text-shadow: 2px 3px 8px rgba(0,0,0,0.4);
    margin-bottom: 0.8rem !important;
}

#body-wrapper h2 {
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.3);
}

#body-wrapper p {
    line-height: 1.7 !important;
    font-size: 1.05rem !important;
}

/* ============================================
   FOOTER — Image entière, pas de calque
   ============================================ */
#footer,
footer#footer {
    position: relative;
    padding: 0 !important;
    background-color: #51A6DC !important;
    color: #ffffff !important;
    border-top: 3px solid #ff4500;
    overflow: hidden;

    background-image: url('../images/footeur.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;

    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;
    padding: 30px 20px;
    background: none;
    width: 100%;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h3 {
    color: #ff4500 !important;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.footer-section p {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.footer-bottom {
    text-align: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6) !important;
    background: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    section#header {
        height: 25vw !important;
        min-height: 200px !important;
    }

    .custom-site-name {
        font-size: 1.6rem;
    }

    .content-wrapper,
    .blog-content-item {
        max-width: 55%;
    }
}

@media (max-width: 768px) {
    section#header {
        height: 30vw !important;
        min-height: 180px !important;
    }

    .custom-site-name {
        font-size: 1.1rem;
    }

    section#header .navbar-section.desktop-menu {
        gap: 8px;
        bottom: 8px !important;
    }

    section#header .navbar-section.desktop-menu a {
        font-size: 0.8rem;
        padding: 6px 12px !important;
    }

    .content-wrapper,
    .blog-content-item {
        max-width: 100%;
    }

    #body-wrapper h1 {
        font-size: 1.8rem !important;
    }

    #footer {
        min-height: 350px;
    }

    .footer-content {
        gap: 30px;
        padding: 20px 15px;
    }
}