/* ===== RUIN BAR BREST - Custom CSS ===== */

/* --- HEADER NAV BAR GLOBAL --- */
.ruin-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    border-bottom: 2px solid #39FF14;
    box-sizing: border-box;
}
.nav-logo-img { max-height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropbtn {
    background-color: transparent;
    color: #39FF14;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #39FF14;
    cursor: pointer;
    font-family: 'Arial Black', sans-serif;
}
.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #000;
    min-width: 240px;
    border: 2px solid #39FF14;
    right: 0;
    z-index: 10000;
}
.nav-dropdown-content a {
    color: #39FF14;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid #222;
}
.nav-dropdown-content a:hover { background-color: #111; }
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-booking {
    background-color: #39FF14;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Arial Black', sans-serif;
}
/* Hamburger menu mobile */
.nav-hamburger {
    display: none;
    background: transparent;
    border: 2px solid #39FF14;
    color: #39FF14;
    font-size: 24px;
    padding: 5px 12px;
    cursor: pointer;
    font-family: 'Arial Black', sans-serif;
    line-height: 1;
}

/* Espace pour le contenu sous le header fixe */
body { padding-top: 70px !important; }

/* --- RESPONSIVE MOBILE NAV --- */
@media (max-width: 768px) {
    .ruin-nav-bar {
        flex-wrap: wrap;
        padding: 8px 15px;
    }
    .nav-logo-img {
        max-height: 40px !important;
    }
    .ruin-nav-bar h1 {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }
    .nav-hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 10px;
        gap: 0;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-dropdown {
        width: 100%;
    }
    .nav-dropbtn {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        border: none;
        border-top: 1px solid #222;
    }
    .nav-dropbtn {
          display: none;
      }
      .nav-dropdown-content {
          position: static;
          display: block;
          border: none;
          border-left: 3px solid #39FF14;
          margin-left: 0;
      }
    .nav-dropdown-content.open {
        display: block;
    }
    .nav-booking {
        display: block;
        text-align: center;
        padding: 12px 20px;
        margin-top: 5px;
    }
}

/* Cacher le header Astra natif (on utilise notre custom) */
.main-header-bar,
#ast-desktop-header,
#ast-mobile-header,
.ast-mobile-header-wrap {
    display: none !important;
}

/* --- FOND NOIR GLOBAL (toutes les pages) --- */
:root {
    --ast-global-color-4: #000000;
    --ast-global-color-5: #000000;
    --ast-global-color-6: #000000;
}

body,
#page,
#content,
#primary,
#secondary,
.ast-container,
.site-content,
.entry-content,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-404-layout-1,
.ast-separate-container .no-results,
.ast-separate-container,
.ast-plain-container,
article,
.post-inner,
.site-main,
.ast-row,
.ast-separate-container #primary,
.ast-no-sidebar #primary {
    background-color: #000000 !important;
}

/* Elementor: fond noir SAUF hero */
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-column-wrap,
.elementor-widget-wrap,
.elementor-element,
.elementor,
.elementor-page,
.e-con:not(#hero-home):not(#hero-logo):not(#hero-slogan),
.e-con-inner,
.elementor-section-wrap,
.elementor-widget {
    background-color: #000000;
}

/* Hero : forcer transparent sur tout le bloc hero et ses parents/enfants */
#hero-home,
#hero-logo,
#hero-slogan,
#hero-home > .e-con-inner,
#hero-logo > .e-con-inner,
#hero-slogan > .e-con-inner,
.elementor-element-71ed2ca > .e-con-inner,
.elementor-element-71ed2ca > .e-con-inner > .e-con,
.elementor-element-71ed2ca > .e-con-inner > .e-con > .e-con,
.elementor-element-71ed2ca > .e-con-inner > .e-con > .e-con > .e-con,
.elementor-element-71ed2ca .elementor-widget-container,
.elementor-element-71ed2ca .elementor-widget,
.elementor-element-71ed2ca .elementor-element,
.elementor-element-520a004,
.elementor-element-520a004 .elementor-widget-container {
    background-color: transparent !important;
    background: transparent !important;
}

/* Cacher le titre de page Astra (doublon avec Elementor) */
.entry-header,
.ast-archive-description,
.page .entry-title,
h1.entry-title {
    display: none !important;
}

/* --- STYLE FORMULAIRES --- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select,
.gfield input,
.gfield textarea,
.gfield select,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}
input::placeholder,
textarea::placeholder {
    color: #666 !important;
}
/* Labels des formulaires en vert fluo */
label,
.gfield_label,
.wpforms-field-label,
.gfield_checkbox label,
.gfield_radio label,
.gchoice label,
legend {
    color: #39FF14 !important;
}
/* Radio buttons / checkboxes labels */
.gfield_checkbox li label,
.gfield_radio li label,
.gchoice_label,
.wpforms-field-label-inline {
    color: #cccccc !important;
}

/* --- BOUTONS FORMULAIRES --- */
input[type="submit"],
button[type="submit"],
.gform_button,
.wpforms-submit,
.gform_wrapper .gform_footer input[type="submit"] {
    background-color: transparent !important;
    color: #39FF14 !important;
    border: 2px solid #39FF14 !important;
    padding: 12px 30px !important;
    font-family: 'Arial Black', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
input[type="submit"]:hover,
button[type="submit"]:hover,
.gform_button:hover,
.wpforms-submit:hover,
.gform_wrapper .gform_footer input[type="submit"]:hover {
    background-color: #39FF14 !important;
    color: #000 !important;
}

/* Texte blanc par defaut */
body {
    color: #ffffff !important;
}

/* Footer toujours en bas de l'ecran */
#page {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}
.site-content {
    flex: 1 !important;
}

/* Supprimer les marges/padding qui creent du blanc */
.ast-separate-container .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
}

.ast-separate-container .site-main > .ast-row {
    margin: 0 !important;
    padding: 0 !important;
}

.site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* --- FIX SLOGAN / CHEVAUCHEMENT --- */
.rb-slogan-full {
    position: relative;
    z-index: 1;
    margin-bottom: 40px !important;
    box-sizing: border-box;
}

.rb-adn-block {
    position: relative;
    z-index: 1;
}

/* --- FIX RESPONSIVE / ZOOM --- */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
}

.elementor-section {
    width: 100% !important;
}

.elementor-section-wrap,
.elementor-inner {
    width: 100% !important;
    overflow-x: hidden !important;
}

.e-con {
    max-width: 100% !important;
}

body,
#page {
    overflow-x: hidden !important;
    width: 100% !important;
}

img {
    max-width: 100% !important;
    height: auto !important;
}

/* --- FOOTER RUIN BAR --- */
.ruin-bar-footer {
    display: block !important;
    background-color: #000000 !important;
    border-top: 2px solid #39FF14;
    padding: 40px 20px 20px;
    color: #ffffff;
    font-family: 'Montserrat', Arial, sans-serif;
}

.ruin-bar-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.ruin-bar-footer .footer-col {
    flex: 1;
    min-width: 220px;
}

.ruin-bar-footer .footer-col h3 {
    color: #39FF14;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.ruin-bar-footer .footer-col p,
.ruin-bar-footer .footer-col a {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.ruin-bar-footer .footer-col a:hover {
    color: #39FF14;
}

.ruin-bar-footer .footer-bottom {
    max-width: 1100px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #222222;
    text-align: center;
    color: #666666;
    font-size: 12px;
}

.ruin-bar-footer .footer-social a {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
    color: #39FF14;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ruin-bar-footer .footer-social a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .ruin-bar-footer .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .ruin-bar-footer .footer-col {
        min-width: 100%;
    }
}
