/* ============================================
   BIS - Business Intelligence Service
   Feuille de style principale
   ============================================ */

/* --- VARIABLES & RESET --- */
:root {
    --primary-black: #010101;
    --primary-gold:  #a66d1c;
    --gold-light:    #c48b36;
    --bg-light:      #f4f4f4;
    --text-dark:     #1a1a1a;
    --text-grey:     #666666;
    --text-white:    #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
    background-color: #fff;
}

a  { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TYPOGRAPHY UTILS --- */
.text-gold   { color: var(--primary-gold); }
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
    transition: 0.3s;
}
.btn-gold { background-color: var(--primary-gold); color: #fff; }
.btn-gold:hover { background-color: var(--gold-light); }
.btn-outline {
    border: 2px solid var(--primary-gold);
    color: var(--primary-black);
    background: transparent;
}
.btn-outline:hover { background: var(--primary-gold); color: white; }

/* ============================================
   HEADER / TOP-BAR
   ============================================ */
.top-bar {
    background-color: var(--primary-black);
    color: #ccc;
    padding: 8px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid #333;
}
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }

header {
    background: var(--primary-black);
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: padding 0.35s ease;
}
header.scrolled {
    padding: 10px 0;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo img {
    width: 100px;
    height: auto;
    transition: height 0.35s ease;
}
header.scrolled .logo img {
    width: 70px;	
    height: auto;
}
.logo span { color: var(--primary-gold); }

/* Navigation desktop */
nav ul { display: flex; gap: 28px; align-items: center; }
nav a {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s;
}
nav a:hover::after,
nav a.active::after { width: 100%; }
nav a:hover,
nav a.active { color: var(--primary-gold); }

/* Hamburger button (mobile only) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.35s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   OFFCANVAS NAV (mobile)
   ============================================ */
.offcanvas-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1050;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.35s;
}
.offcanvas-overlay.active { display: block; opacity: 1; }

.offcanvas {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--primary-black);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    transition: right 0.38s cubic-bezier(.4,0,.2,1);
    border-left: 3px solid var(--primary-gold);
    overflow-y: auto;
}
.offcanvas.open { right: 0; }

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.offcanvas-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}
.offcanvas-logo span { color: var(--primary-gold); }

.offcanvas-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}
.offcanvas-close:hover { color: var(--primary-gold); }

.offcanvas-nav ul { display: flex; flex-direction: column; gap: 0; }
.offcanvas-nav li { border-bottom: 1px solid #222; }
.offcanvas-nav a {
    display: block;
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 0;
    transition: 0.2s;
}
.offcanvas-nav a:hover,
.offcanvas-nav a.active { color: var(--primary-gold); padding-left: 8px; }

.offcanvas-contact {
    margin-top: 40px;
}
.offcanvas-contact .btn { width: 100%; text-align: center; }

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
}
.section-title h3 {
    font-size: 2.2rem;
    color: var(--primary-black);
    text-transform: uppercase;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

/* Slides */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 0.9s ease;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Content animation */
.hero-slide .hero-content {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}
.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}
.hero-content { width: 100%; }

/* Tag */
.hero-tag {
    display: inline-block;
    background: var(--primary-gold);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 2px;
    margin-bottom: 22px;
}

.hero-carousel h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-carousel h2 {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-outline-white {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    transition: 0.3s;
}
.btn-outline-white:hover { background: #fff; color: var(--primary-black); }

/* Prev / Next buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 2.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }
.carousel-prev:hover,
.carousel-next:hover { background: var(--primary-gold); border-color: var(--primary-gold); }

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    padding: 0;
}
.carousel-dot.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: scale(1.3);
}

/* ============================================
   PAGE HERO (pages internes)
   ============================================ */
.page-hero {
    background: linear-gradient(rgba(1,1,1,0.75), rgba(1,1,1,0.75)),
                url('../img/hero-bg.jpg') center/cover no-repeat;
    padding: 80px 0 70px;
    text-align: center;
    color: white;
}
.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.page-hero p {
    font-size: 1.1rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.breadcrumb {
    margin-top: 16px;
    font-size: 0.82rem;
    color: #aaa;
}
.breadcrumb a { color: #ccc; }
.breadcrumb a:hover { color: var(--primary-gold); }
.breadcrumb span { color: var(--primary-gold); margin: 0 6px; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section { background: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text p {
    font-size: 1.05rem;
    color: var(--text-grey);
    margin-bottom: 20px;
}
.about-img img {
    border-radius: 4px;
    box-shadow: 20px 20px 0px var(--primary-gold);
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* Valeurs */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.value-card {
    background: var(--bg-light);
    padding: 35px 25px;
    border-top: 3px solid var(--primary-gold);
    text-align: center;
}
.value-card .icon { font-size: 2.2rem; margin-bottom: 15px; }
.value-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-black); }
.value-card p { font-size: 0.9rem; color: var(--text-grey); }

/* ============================================
   SERVICES
   ============================================ */
.services-section { background-color: var(--bg-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-card:hover {
    border-bottom: 3px solid var(--primary-gold);
    transform: translateY(-5px);
}
.service-icon { font-size: 2.5rem; color: var(--primary-gold); margin-bottom: 20px; }
.service-card h4 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary-black); }
.service-card p  { font-size: 0.9rem; color: var(--text-grey); }
.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 2px;
}

/* ============================================
   PROJECTS & REALISATIONS
   ============================================ */
.projects-section {
    background-color: var(--primary-black);
    color: white;
}
.projects-section .section-title h3 { color: white; }
.projects-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #ccc;
}
.realisation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.realisation-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.realisation-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: 0.5s;
    filter: grayscale(50%);
}
.realisation-item:hover img { transform: scale(1.1); filter: grayscale(0%); }
.realisation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}
.realisation-overlay h4 { color: var(--primary-gold); margin-bottom: 5px; }

/* ============================================
   PARTNERS
   ============================================ */
.partners-section { text-align: center; background: #fff; }
.partners-text {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-grey);
    font-size: 1.05rem;
}
.partners-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.65;
    transition: opacity 0.3s;
}
.partners-logos:hover { opacity: 0.9; }
.partners-logos img { height: 60px; filter: grayscale(100%); transition: filter 0.3s; }
.partners-logos img:hover { filter: grayscale(0%); }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: var(--bg-light); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.contact-info h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--primary-black); }
.contact-info p  { font-size: 0.95rem; color: var(--text-grey); margin-bottom: 12px; }
.contact-info .icon-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-info .icon-item span:first-child { font-size: 1.2rem; color: var(--primary-gold); }

.contact-info img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 24px;
    box-shadow: 8px 8px 0 var(--primary-gold);
}

.contact-form { background: #fff; padding: 40px; box-shadow: 0 8px 30px rgba(0,0,0,0.07); }
.contact-form h4 { font-size: 1.2rem; margin-bottom: 24px; color: var(--primary-black); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 11px 14px;
    font-size: 0.92rem;
    font-family: 'Poppins', sans-serif;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary-gold); }
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: #000;
    color: #777;
    padding: 55px 0 30px;
    border-top: 5px solid var(--primary-gold);
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo img { height: 36px; }
.footer-logo span { color: var(--primary-gold); }
.footer-col h5 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: #777; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary-gold); }
.footer-col p { font-size: 0.85rem; line-height: 1.7; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: var(--primary-gold); }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
    font-size: 0.78rem;
    color: #555;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Masquer nav desktop, afficher hamburger */
    nav, header .btn { display: none; }
    .hamburger      { display: flex; }

    .hero-carousel { height: 100vh; }
    .hero-carousel h1 { font-size: 2.3rem; }
    .hero-carousel h2 { font-size: 0.95rem; }
    .carousel-prev, .carousel-next { width: 40px; height: 40px; font-size: 1.6rem; }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }

    .about-grid          { grid-template-columns: 1fr; }
    .about-img           { display: none; }

    .services-grid       { grid-template-columns: 1fr; }
    .values-grid         { grid-template-columns: 1fr; }
    .realisation-grid    { grid-template-columns: 1fr; }
    .contact-grid        { grid-template-columns: 1fr; }
    .form-row            { grid-template-columns: 1fr; }

    .footer-grid         { grid-template-columns: 1fr; text-align: center; }
    .footer-logo         { justify-content: center; }

    .page-hero h1        { font-size: 2rem; }
    .section-title h3    { font-size: 1.7rem; }

    .top-bar .container  { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero-carousel { height: 100vh; }
    .hero-carousel h1 { font-size: 1.9rem; }
    .section-padding { padding: 55px 0; }
}
