/* ===========================================
   Specialiste Bocaux - Site statique
   Refonte securisee - Avril 2026
   Meme visuel que l'original Joomla
   =========================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #363636;
    text-align: left;
    line-height: 20px;
    font-size: 12px;
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
}

a {
    color: #ff4a52;
    text-decoration: none;
}

a:hover {
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
    border: none;
}

h1 { font-size: 22px; }
h2 { color: #ff4a52; font-size: 18px; }
h3 { font-size: 16px; }

p {
    padding: 5px 0;
}

ul, ol {
    padding: 0.75em 0 0.75em 0;
    margin: 0 0 0 35px;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* --- Layout containers --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Top wrapper (menu noir) --- */
#topwrapper {
    background: #000;
    position: relative;
    z-index: 10;
}

#topwrapper > .container {
    padding: 1px 0 25px;
    color: #747474;
    font-size: 16px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* --- Navigation --- */
nav#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #050505;
}

nav#menu ul li {
    position: relative;
}

nav#menu ul li a,
nav#menu ul li .separator {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 12px 18px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

nav#menu ul li a:hover,
nav#menu ul li .separator:hover,
nav#menu ul li.active > a,
nav#menu ul li.active > .separator {
    color: #FF0800;
}

/* Sous-menu */
nav#menu ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #3d3d3d;
    min-width: 200px;
    z-index: 999;
}

nav#menu ul li:hover .submenu {
    display: block;
}

nav#menu ul li .submenu a {
    font-size: 16px;
    padding: 10px 18px;
    color: #fff;
    white-space: nowrap;
}

nav#menu ul li .submenu a:hover {
    color: #FF0800;
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 33px;
    cursor: pointer;
    text-align: right;
    width: 100%;
    padding: 10px 15px;
}

/* --- Header rouge (logo + slogan) --- */
#header-band {
    background: #e83342;
    padding: 25px 0;
}

#header-band .container {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.header-logo {
    width: 20%;
    text-align: center;
}

.header-logo img {
    max-width: 226px;
    height: auto;
}

.header-slogan {
    width: 80%;
    margin-top: 83px;
    padding: 0 10px;
    text-align: center;
}

.header-slogan img {
    max-width: 100%;
    height: auto;
}

/* --- Breadcrumb --- */
.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 10px;
    font-size: 12px;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb li a {
    text-decoration: none;
}

.breadcrumb .divider {
    margin: 0 3px;
}

/* --- Main content --- */
#main-content {
    background: #fff;
    padding: 10px 0;
}

#main-content > .container {
    padding: 10px;
}

.content-body {
    font-size: 15px;
    font-family: Verdana, sans-serif;
    line-height: 1.6;
}

/* --- Two-column layout --- */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-6 {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
}

.col-12 {
    flex: 1 1 100%;
}

.col-4 {
    flex: 1 1 calc(33.33% - 14px);
    min-width: 200px;
}

.col-3 {
    flex: 1 1 calc(25% - 15px);
}

.text-center {
    text-align: center;
}

/* --- Slideshow CSS-only --- */
.slideshow {
    position: relative;
    width: 100%;
    padding-bottom: 30%;
    min-height: 150px;
    overflow: hidden;
    background: #000;
}

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s;
}

.slideshow img:first-child {
    opacity: 1;
}

/* --- Product image gallery with slider --- */
.product-gallery {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 5px;
}

.product-gallery img {
    width: 100%;
    display: block;
}

.product-gallery .gallery-images {
    position: relative;
    overflow: hidden;
}

.product-gallery .gallery-images img {
    width: 100%;
}

/* Slider controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    gap: 10px;
}

.slider-btn {
    background: #050505;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: #FF0800;
}

.slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.slider-dot.active {
    background: #e83342;
}

.product-title {
    font-size: 14pt;
    text-align: center;
    margin: 15px 0 10px;
    font-weight: bold;
}

.product-desc {
    text-align: center;
    font-size: 15px;
    font-family: Verdana, sans-serif;
    padding: 0 10px 15px;
}

.product-desc em {
    font-style: italic;
}

/* --- Product card (ustensiles) --- */
.product-card {
    margin-bottom: 30px;
}

.product-card h3 {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    color: #363636;
}

/* --- Separator rouge --- */
#spacer-band {
    background: #e83342;
    padding: 30px 0;
}

/* --- Footer noir --- */
#footer-band {
    background: #030302;
    padding: 20px 0 40px;
}

#footer-band .container {
    text-align: center;
    color: #999;
    font-size: 12px;
}

#footer-band a {
    color: #999;
    text-decoration: none;
}

#footer-band a:hover {
    color: #fff;
}

.footer-nav {
    margin-bottom: 5px;
}

.footer-credits {
    margin-top: 5px;
}

.footer-credits a {
    color: #ff4a52;
}

/* --- Image centered --- */
.img-center {
    display: block;
    margin: 0 auto;
}

/* --- About page --- */
.about-text {
    overflow: hidden;
}

.about-text img {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 300px;
}

/* --- Contact page --- */
.contact-info {
    text-align: center;
    padding: 40px 0;
}

.contact-info h2 {
    font-size: 24pt;
    color: #000;
    margin-bottom: 20px;
}

.contact-info .label {
    font-size: 12pt;
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

.contact-info .value {
    font-size: 18pt;
    color: #000;
}

.contact-info a {
    color: #ff4a52;
    font-size: 18pt;
}

/* --- Espace pro --- */
.pro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.pro-content .pro-image {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
}

.pro-content .pro-image img {
    display: block;
    margin: 0 auto;
    max-width: 459px;
}

.pro-content .pro-text {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
    font-size: 15px;
    font-family: Verdana, sans-serif;
    line-height: 1.6;
}

/* --- Mix image (footer de page) --- */
.page-footer-image {
    text-align: center;
    margin: 30px 0;
}

.page-footer-image img {
    max-width: 500px;
}

/* ===========================================
   Responsive
   =========================================== */

@media screen and (max-width: 758px) {
    .menu-toggle {
        display: block;
    }

    nav#menu ul {
        display: none;
        flex-direction: column;
    }

    nav#menu.open ul {
        display: flex;
    }

    nav#menu ul li .submenu {
        position: static;
        background: #2d2d2d;
    }

    nav#menu ul li:hover .submenu {
        display: block;
    }

    #header-band .container {
        flex-direction: column;
        text-align: center;
    }

    .header-logo {
        width: 100%;
        margin-bottom: 15px;
    }

    .header-slogan {
        width: 100%;
        margin-top: 0;
    }

    .col-6, .col-4, .col-3 {
        flex: 1 1 100%;
    }

    .about-text img {
        float: none;
        display: block;
        margin: 10px auto;
        max-width: 100%;
    }

    .pro-content .pro-image,
    .pro-content .pro-text {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 524px) {
    nav#menu ul li a,
    nav#menu ul li .separator {
        font-size: 16px;
        padding: 10px 15px;
    }

    .slideshow {
        padding-bottom: 50%;
    }
}
