/* ============================================================
   BSC AUTO GARAGE VENELLOIS — Style Principal
   ============================================================ */

:root {
    --bsc-dark: #0d1e38;
    --bsc-primary: #1d3f85;
    --bsc-accent: #d9a200;
    --bsc-light: #f4f4f4;
    --bsc-white: #ffffff;
    --font-title: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: #222222;
    background: var(--bsc-light);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: var(--bsc-dark);
    color: white;
    padding: 6px 0;
    font-size: 0.85rem;
}

.topbar a {
    color: white;
    text-decoration: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
    background: var(--bsc-dark);
    font-family: var(--font-title);
    letter-spacing: 0.5px;
    transition: background 0.3s, box-shadow 0.3s;
}

#mainNav.scrolled {
    background: rgba(13, 13, 26, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white !important;
}

.navbar-brand .brand-bsc {
    color: var(--bsc-accent);
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 8px 14px !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--bsc-accent) !important;
}

.nav-link.active {
    color: #ffffff !important;
    border-bottom: 2px solid var(--bsc-accent);
    padding-bottom: 6px !important;
}

.btn-rdv {
    background: var(--bsc-accent) !important;
    border-radius: 4px;
    padding: 6px 16px !important;
    color: #0d1e38 !important;
}

.btn-rdv:hover {
    background: var(--bsc-primary) !important;
    color: white !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-block;
    background: var(--bsc-dark);
    color: white;
    padding: 6px 16px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.55);
    animation: slideFromLeft 0.8s ease-out both;
}

.text-accent {
    color: var(--bsc-accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 1.5rem 0;
    font-weight: 400;
}

.hero-btns {
    margin-top: 2rem;
}

.hero-btns .btn-primary {
    background: var(--bsc-dark);
    border-color: var(--bsc-dark);
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.hero-btns .btn-primary:hover {
    background: #1a3560;
    border-color: #1a3560;
}

.hero-btns .btn-outline-light:hover {
    background: white;
    color: var(--bsc-dark) !important;
}

/* ============================================================
   PAGE BANNER (pages intérieures)
   ============================================================ */
.page-banner {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    margin-top: 0;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 26, 0.30);
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.banner-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    animation: fadeIn 1.8s ease both;
}

.page-banner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-banner .breadcrumb-item a {
    color: var(--bsc-accent);
    text-decoration: none;
}

.page-banner .breadcrumb-item.active {
    color: #ccc;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: #aaa;
}

/* ============================================================
   SECTIONS GÉNÉRALES
   ============================================================ */
.section-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bsc-primary);
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--bsc-accent);
}

.section-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 3rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--bsc-accent);
    margin: 10px auto 20px;
}

.section-divider.left {
    margin-left: 0;
    margin-right: auto;
}

/* ============================================================
   CARDS SERVICES
   ============================================================ */
.service-card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card .card-header {
    background: var(--bsc-primary);
    color: white;
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    border: none;
}

.service-icon {
    color: var(--bsc-accent);
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.service-card .card-body {
    padding: 20px;
    background: #dde6f5;
}

.service-card ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.service-card ul li {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card ul li:last-child {
    border-bottom: none;
}

.service-card ul li::before {
    content: "•";
    color: var(--bsc-accent);
    font-weight: bold;
    flex-shrink: 0;
}

.service-card ul li a {
    text-decoration: none;
}

.service-card ul li a:hover {
    text-decoration: underline;
}

/* Images blocs alternés page services */
.svc-photo {
    max-height: 320px;
    width: 100%;
    object-fit: cover;
}

/* Listes blocs alternés page services */
.services-bloc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-bloc-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #444;
}

.services-bloc-list li::before {
    content: "›";
    color: var(--bsc-accent);
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}

.services-bloc-list li:last-child {
    border-bottom: none;
}

.services-bloc-list li a {
    color: var(--bsc-primary);
    font-weight: 500;
    text-decoration: none;
}

.services-bloc-list li a:hover {
    color: var(--bsc-accent);
    text-decoration: underline;
}

/* ============================================================
   BLOC CERTIFICATIONS / LABELS
   ============================================================ */
.certif-section {
    background: var(--bsc-primary);
    color: white;
    padding: 60px 0;
}

.certif-item {
    text-align: center;
    padding: 20px;
}

.certif-item i {
    font-size: 2.5rem;
    color: var(--bsc-accent);
    margin-bottom: 12px;
    display: block;
}

.certif-item h6 {
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ============================================================
   CONTACT MINI
   ============================================================ */
.contact-mini {
    background: var(--bsc-light);
    padding: 60px 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item i {
    color: var(--bsc-accent);
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item .info-text strong {
    display: block;
    font-family: var(--font-title);
    color: var(--bsc-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* ============================================================
   RESTAURATION / SPONSOR BLOC
   ============================================================ */
.restauration-section {
    background: var(--bsc-dark);
    color: white;
    padding: 60px 0;
}

.restauration-section h2 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.restauration-section h2 span {
    color: var(--bsc-accent);
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bsc-primary);
}

.form-control,
.form-select {
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px; /* évite le zoom iOS */
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bsc-accent);
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.15);
}

.btn-bsc {
    background: var(--bsc-accent);
    color: #0d1e38;
    border: none;
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 12px 40px;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

.btn-bsc:hover {
    background: var(--bsc-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================================
   CARTE / MAPS
   ============================================================ */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   ACTUALITÉS — CARDS
   ============================================================ */
.actu-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.actu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.actu-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.actu-badge {
    background: var(--bsc-accent);
    color: #0d1e38;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actu-card .card-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--bsc-primary);
    margin-top: 10px;
}

/* ============================================================
   À PROPOS
   ============================================================ */
.about-img {
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-stat {
    text-align: center;
    padding: 20px;
    background: var(--bsc-light);
    border-radius: 8px;
}

.about-stat .stat-number {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--bsc-accent);
    font-weight: 700;
    line-height: 1;
}

.about-stat .stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main {
    background: var(--bsc-dark);
    color: #ccc;
    padding: 60px 0 0;
}

.footer-title {
    color: var(--bsc-accent);
    font-family: var(--font-title);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-main p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-main a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-main a:hover {
    color: var(--bsc-accent);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li a {
    color: #aaa;
    text-decoration: none;
    line-height: 2.2;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav li a:hover {
    color: var(--bsc-accent);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--bsc-accent);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0 20px;
}

.footer-bottom {
    color: #666;
    padding-bottom: 20px;
    font-size: 0.85rem;
}

/* ============================================================
   MENTIONS LÉGALES
   ============================================================ */
.mentions-section h3 {
    font-family: var(--font-title);
    color: var(--bsc-primary);
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bsc-accent);
    display: inline-block;
}

/* ============================================================
   PLAN D'ACCÈS
   ============================================================ */
.plan-acces-card {
    background: var(--bsc-primary);
    color: white;
    border-radius: 8px;
    padding: 30px;
}

.plan-acces-card h5 {
    font-family: var(--font-title);
    color: var(--bsc-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bsc-dark);
        padding: 10px 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 50vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .hero-btns .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }

    .page-banner {
        height: 200px;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .topbar {
        display: none;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .certif-item {
        margin-bottom: 20px;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 50px;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 0.9rem;
    }

    .navbar-brand .brand-bsc {
        font-size: 1.1rem;
    }
}

/* ============================================================
   SCROLL REVEAL — Intersection Observer
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal="fade-left"]  { transform: translateX(-40px); }
[data-reveal="fade-right"] { transform: translateX(40px); }
[data-reveal="fade"]       { transform: none; }
[data-reveal].is-visible   { opacity: 1; transform: translate(0, 0); }
