/********** GB PEINTURE — Blue Marine brand **********/
:root {
    --marine: #0B2C5C;
    --marine-dark: #071E3D;
    --marine-light: #143A6E;
    --accent: #C8102E;
    --accent-dark: #A00D24;
    --primary: #0B2C5C;
    --secondary: #5F656F;
    --light: #F3F6FA;
    --dark: #071E3D;
    --text: #1c2430;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at top left, rgba(11, 44, 92, 0.06), transparent 45%),
        radial-gradient(ellipse at bottom right, rgba(200, 16, 46, 0.04), transparent 40%),
        #f8fafc;
}

h1, h2, h3, .display-1, .display-4, .display-5, .navbar-brand {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.02em;
}

.text-primary { color: var(--marine) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--marine) !important; }
.bg-dark { background-color: var(--marine-dark) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-light-soft { background: linear-gradient(180deg, #eef3f9 0%, #f8fafc 100%); }

.contact-icon-wrap {
    width: 90px;
    height: 90px;
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.12);
}

.btn {
    transition: .35s ease;
    font-weight: 600;
    border-radius: 4px;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-primary {
    background-color: var(--marine);
    border-color: var(--marine);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

.fw-bold { font-weight: 700 !important; }
.fw-medium { font-weight: 600 !important; }
.fw-semi-bold { font-weight: 500 !important; }

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Topbar ***/
.topbar-right {
    position: relative;
    background: var(--accent);
}
.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--accent);
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
    border-bottom: 1px solid rgba(11, 44, 92, 0.08);
}

.navbar .navbar-brand {
    position: relative;
    height: 78px;
    display: flex;
    align-items: center;
    background: transparent;
    padding-right: 20px !important;
}

.navbar .navbar-brand::after { display: none; }

.brand-logo {
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.navbar .navbar-nav .nav-link {
    margin-right: 28px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--accent);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

/*** Carousel — max 50vh, image entière toujours visible ***/
.hero-carousel-wrap {
    background: linear-gradient(135deg, var(--marine-dark), var(--marine-light));
}

#header-carousel .carousel-item {
    position: relative;
    height: 50vh;
    min-height: 280px;
    max-height: 50vh;
    background: var(--marine-dark);
}

#header-carousel .carousel-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 20% 20%, rgba(200, 16, 46, 0.12), transparent 40%),
        var(--marine-dark);
    overflow: hidden;
}

#header-carousel .carousel-frame img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

#header-carousel .carousel-item.active,
#header-carousel .carousel-item-next,
#header-carousel .carousel-item-prev {
    display: flex;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(7, 30, 61, 0.82) 0%, rgba(7, 30, 61, 0.35) 50%, rgba(7, 30, 61, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.carousel-caption .btn {
    pointer-events: auto;
}

.carousel-control-prev,
.carousel-control-next {
    width: 12%;
    z-index: 2;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.8rem;
    height: 2.8rem;
    background-color: var(--accent);
    border: 12px solid var(--accent);
    border-radius: 50%;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 50vh;
        min-height: 240px;
        max-height: 50vh;
    }
    #header-carousel .carousel-frame {
        padding: 0.5rem;
    }
    .carousel-caption h1 {
        font-size: 1.75rem;
    }
    .carousel-caption .display-4 {
        font-size: 1.6rem;
    }
}

.page-header {
    background:
        linear-gradient(100deg, rgba(7, 30, 61, 0.92) 0%, rgba(11, 44, 92, 0.75) 100%),
        url(../img/carousel-2.jpg) center center / cover no-repeat;
}

.about-img {
    border: 4px solid #fff;
    box-shadow: 0 18px 40px rgba(11, 44, 92, 0.18);
}

.quality-box {
    border-radius: 4px;
    background: linear-gradient(160deg, var(--marine), var(--marine-light)) !important;
}

.service-list .list-group-item {
    background: transparent;
    border-color: rgba(11, 44, 92, 0.1);
    padding: 0.9rem 0.25rem;
    font-weight: 500;
}

.local-seo-band {
    background: linear-gradient(120deg, rgba(11, 44, 92, 0.06), rgba(200, 16, 46, 0.05));
    border-left: 4px solid var(--accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    box-shadow: 0 10px 24px rgba(11, 44, 92, 0.12);
    background: var(--marine-dark);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.contact-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(11, 44, 92, 0.08);
    border-top: 3px solid var(--marine);
}

.map-frame {
    min-height: 420px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(11, 44, 92, 0.1);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/*** Footer ***/
.footer { color: #B0B9AE; }
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: none;
    transition: .3s;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}
.footer .btn.btn-link:hover {
    color: #fff;
    letter-spacing: .5px;
    box-shadow: none;
}
.copyright {
    color: #B0B9AE;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/*** Floating actions — WhatsApp + social flower + top ***/
.float-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border: none;
    box-shadow: 0 8px 20px rgba(7, 30, 61, 0.28);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.fab-btn i {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
}

.fab-btn:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff !important;
}

.fab-whatsapp { background: #25D366; }
.fab-social { background: var(--marine); }
.fab-top {
    background: var(--accent);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.fab-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.fab-top i {
    font-size: 1.25rem;
    line-height: 1;
}

.social-flower {
    position: relative;
    width: 52px;
    height: 52px;
}

.social-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.social-petals .petal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: var(--marine-light);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
    box-shadow: 0 6px 16px rgba(7, 30, 61, 0.25);
    pointer-events: none;
    z-index: 1;
}

.social-flower.open .social-petals .petal {
    opacity: 1;
    pointer-events: auto;
}

/* Demi-fleur vers le haut / gauche */
.social-flower.open .social-petals .petal:nth-child(1) { transform: translate(-64px, -8px) scale(1); transition-delay: .02s; }
.social-flower.open .social-petals .petal:nth-child(2) { transform: translate(-48px, -52px) scale(1); transition-delay: .06s; }
.social-flower.open .social-petals .petal:nth-child(3) { transform: translate(-8px, -72px) scale(1); transition-delay: .1s; }
.social-flower.open .social-petals .petal:nth-child(4) { transform: translate(36px, -56px) scale(1); transition-delay: .14s; }
.social-flower.open .social-petals .petal:nth-child(5) { transform: translate(52px, -16px) scale(1); transition-delay: .18s; }
.social-flower.open .social-petals .petal:nth-child(6) { transform: translate(-70px, -36px) scale(1); transition-delay: .08s; }

.social-flower.open .fab-social {
    background: var(--accent);
}

.legal-page {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(11, 44, 92, 0.08);
}

.legal-page h1 { color: var(--marine); }
.legal-page h2 { color: var(--marine); font-size: 1.35rem; margin-top: 1.75rem; }

/*** Articles blog ***/
.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(11, 44, 92, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(11, 44, 92, 0.14);
}
.article-card-media {
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--marine-dark);
}
.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.article-card:hover .article-card-media img {
    transform: scale(1.05);
}
.article-card-body {
    padding: 1.25rem 1.35rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card-body time {
    font-size: .8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.article-card-body h2,
.article-card-body h3 {
    margin: .55rem 0 .75rem;
}
.article-card-body h2 a,
.article-card-body h3 a {
    color: var(--marine);
    text-decoration: none;
}
.article-card-body h2 a:hover,
.article-card-body h3 a:hover {
    color: var(--accent);
}
.article-card-body p {
    color: #5a6575;
    flex: 1;
}
.article-read-more {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    margin-top: .5rem;
}
.article-read-more:hover { color: var(--accent-dark); }

.article-filter .form-control {
    border-color: rgba(11, 44, 92, 0.15);
}
.article-filter .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(200, 16, 46, 0.15);
}

.article-hero {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--marine-dark);
}
.article-hero img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2a3340;
}
.article-content p { margin-bottom: 1.1rem; }
.article-cta {
    background: linear-gradient(120deg, rgba(11, 44, 92, 0.06), rgba(200, 16, 46, 0.06));
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

@media (max-width: 576px) {
    .float-actions { right: 14px; bottom: 14px; }
    .fab-btn { width: 48px; height: 48px; }
}
