:root {
  --primary: #0b5ed7;
  --primary-dark: #083b78;
  --secondary: #11a68a;
  --dark: #071b33;
  --soft: #f4f8fb;
  --muted: #6c757d;
  --white: #ffffff;
  --border: #e7edf3;
  --shadow: 0 20px 45px rgba(7, 27, 51, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
}

a { text-decoration: none; }

.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  padding: .55rem 0;
}
.topbar i { color: var(--secondary); margin-right: .35rem; }
.topbar-link { color: #fff; font-weight: 600; }

.main-navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231,237,243,.8);
}
.navbar-brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  font-weight: 800;
}
.brand-text { letter-spacing: .03em; color: var(--dark); }
.footer .brand-text, .navbar-brand.text-white .brand-text { color: #fff; }
.nav-link { color: var(--dark); font-weight: 600; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); border: 0; box-shadow: 0 12px 28px rgba(11,94,215,.22); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(.98); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(17,166,138,.45), transparent 32%),
    linear-gradient(135deg, rgba(7,27,51,.98), rgba(8,59,120,.92)),
    url('../img/hero.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7,27,51,.2), rgba(7,27,51,.7));
}
.min-vh-75 { min-height: 75vh; padding: 6rem 0; }
.eyebrow, .section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--secondary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .12em;
}
.eyebrow::before, .section-tag::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}
.lead { color: rgba(255,255,255,.82); max-width: 760px; }
.hero-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badges div {
  min-width: 150px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}
.hero-badges strong { display: block; font-size: 1.8rem; line-height: 1; }
.hero-badges span { color: rgba(255,255,255,.75); font-size: .9rem; }
.hero-card {
  background: rgba(255,255,255,.95);
  color: var(--dark);
  border-radius: 28px;
  padding: 2.2rem;
}
.hero-card .icon-circle {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(17,166,138,.12);
  color: var(--secondary);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.hero-card h2 { font-size: 1.6rem; font-weight: 800; }
.hero-card ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.hero-card li { margin-bottom: .55rem; }
.hero-card li i { color: var(--secondary); margin-right: .5rem; }

.section-padding { padding: 6rem 0; }
.bg-soft { background: var(--soft); }
.section-head { max-width: 720px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 850; line-height: 1.15; margin-top: .75rem; }
.image-panel {
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(11,94,215,.1), rgba(17,166,138,.12));
  padding: 1rem;
}
.image-placeholder {
  min-height: 380px;
  border: 1px dashed rgba(7,27,51,.22);
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  background: #fff;
}
.image-placeholder i { font-size: 4rem; color: var(--primary); }
.image-placeholder p { color: var(--muted); max-width: 350px; }
.mini-card, .service-card, .project-card, .contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(7,27,51,.06);
}
.mini-card { padding: 1.35rem; }
.mini-card i { color: var(--secondary); font-size: 1.7rem; }
.mini-card strong { display: block; margin-top: .8rem; }
.mini-card span { color: var(--muted); font-size: .95rem; }
.service-card {
  padding: 2rem;
  transition: .25s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card > i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(11,94,215,.1);
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1.3rem;
}
.service-card h3 { font-size: 1.25rem; font-weight: 800; }
.service-card p { color: var(--muted); }
.service-card a { color: var(--primary); font-weight: 700; }

.stats-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--dark));
  color: #fff;
}
.stat-box {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.stat-box strong { display: block; font-size: 2.4rem; line-height: 1; }
.stat-box span { color: rgba(255,255,255,.72); }

.project-card { overflow: hidden; height: 100%; }
.project-img {
  height: 210px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(11,94,215,.11), rgba(17,166,138,.16));
  color: var(--primary);
  font-size: 4rem;
}
.project-body { padding: 1.5rem; }
.project-body span { color: var(--secondary); font-weight: 800; font-size: .82rem; text-transform: uppercase; }
.project-body h3 { font-size: 1.2rem; font-weight: 800; margin-top: .5rem; }
.project-body p { color: var(--muted); margin-bottom: 0; }

.bg-dark-section { background: var(--dark); }
.section-tag.light { color: #7ee7d4; }
.rse-list { display: grid; gap: 1rem; }
.rse-list div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  color: #fff;
  padding: 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-weight: 700;
}
.rse-list i { color: #7ee7d4; font-size: 1.6rem; }

.contact-info p { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.contact-info i { color: var(--primary); font-size: 1.2rem; }
.contact-form { padding: 2rem; }
.form-control, .form-select { padding: .85rem 1rem; border-radius: 14px; border-color: var(--border); }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(11,94,215,.12); border-color: var(--primary); }
.form-note { color: var(--secondary); font-weight: 700; }

.footer {
  background: #041121;
  color: rgba(255,255,255,.7);
  padding: 3rem 0;
}
.footer a { color: rgba(255,255,255,.84); margin-left: 1.2rem; font-weight: 600; }
.footer a:hover { color: #fff; }

@media (max-width: 991.98px) {
  .min-vh-75 { min-height: auto; padding: 4rem 0; }
  .hero-card { margin-bottom: 2rem; }
  .section-padding { padding: 4rem 0; }
  .footer a { margin-left: 0; margin-right: 1rem; }
}

@media (max-width: 575.98px) {
  .hero-badges div { flex: 1 1 100%; }
  .contact-form { padding: 1.25rem; }
  .display-4 { font-size: 2.3rem; }
}

/* Ajustements V3 : base de la première proposition + remarques intégrées */
.section-padding.compact { padding: 4.3rem 0; }
.hero-carousel .carousel-item { min-height: 78vh; background-size: cover; background-position: center; position: relative; }
.hero-carousel .container { position: relative; z-index: 2; min-height: 78vh; display: flex; align-items: center; }
.hero-content { max-width: 820px; color: #fff; padding: 6rem 0; }
.hero-content h1, .hero-content h2 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; line-height: 1.05; }
.hero-content h2 { max-width: 900px; }
.page-hero { min-height: 44vh; display: flex; align-items: center; color: #fff; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.page-hero h1 { max-width: 900px; font-size: clamp(2rem, 4vw, 4rem); font-weight: 900; }
.shadow-img { box-shadow: var(--shadow); min-height: 300px; object-fit: cover; width: 100%; background: #dbe8f3; }
.service-card { padding: 0 0 1.6rem; overflow: hidden; }
.service-card img { width: 100%; height: 170px; object-fit: cover; background: #dbe8f3; margin-bottom: 1.2rem; }
.service-card i, .service-card h3, .service-card p, .service-card a { margin-left: 1.5rem; margin-right: 1.5rem; }
.client-card, .detail-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: 0 15px 35px rgba(7,27,51,.08); height: 100%; }
.client-card img, .detail-card img { width: 100%; height: 220px; object-fit: cover; background: #dbe8f3; }
.client-card h4, .client-card p, .detail-card h2, .detail-card p, .detail-card ul { margin-left: 1.5rem; margin-right: 1.5rem; }
.client-card h4, .detail-card h2 { margin-top: 1.5rem; font-weight: 800; }
.client-card p, .detail-card p { color: var(--muted); }
.detail-card { padding-bottom: 1.4rem; }
/* ==========================================
   PARTENAIRES
========================================== */

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}


/* Carte complète */

.logo-grid .partner-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    background: #ffffff !important;

    border: 1px solid #e1e8ef !important;
    border-radius: 18px;

    padding: 14px;

    text-decoration: none !important;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Zone contenant uniquement le logo */

.partner-logo-image {
    width: 100%;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    /*
       Important :
       ce fond permet de voir les parties blanches
       présentes dans certains logos.
    */

    background: #eef3f7;

    border-radius: 12px;

    padding: 15px;

    overflow: hidden;
}


/* Logo */

.partner-logo-image img {
    display: block;

    max-width: 90%;
    max-height: 70px;

    width: auto;
    height: auto;

    object-fit: contain;

    margin: 0;
    padding: 0;

    transition: transform 0.3s ease;
}


/* ==========================================
   CAS DES LOGOS TRÈS BLANCS
========================================== */

.partner-logo-image.dark-logo-bg {

    /*
       Pour Sicame et éventuellement d'autres
       logos majoritairement blancs.
    */

    background: #17324d;
}


/* ==========================================
   NOM DU PARTENAIRE
========================================== */

.partner-name {

    display: block;

    margin-top: 12px;

    font-size: 14px;
    font-weight: 700;

    color: #0b2948;

    text-align: center;

    line-height: 1.3;
}


/* ==========================================
   HOVER
========================================== */

.partner-logo-card:hover {

    transform: translateY(-5px);

    border-color: #14a6a1 !important;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.09);
}


.partner-logo-card:hover img {

    transform: scale(1.06);
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {

    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 576px) {

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .partner-logo-image {
        height: 85px;
    }

    .partner-logo-image img {
        max-height: 55px;
    }

    .partner-name {
        font-size: 13px;
    }

}
.logo-grid.large { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo-grid img { width: 100%; height: 110px; object-fit: contain; padding: 1.2rem; border-radius: 18px; border: 1px solid var(--border); background: #fff; box-shadow: 0 10px 30px rgba(7,27,51,.06); }
.cta-section { position: relative; background-size: cover; background-position: center; color: #fff; padding: 5rem 0; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,27,51,.92), rgba(8,59,120,.80)); }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; }
.footer { padding: 4rem 0 1.5rem; }
.footer h5 { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.footer a { display: block; margin: 0 0 .55rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.7); font-size: .9rem; }
.bg-soft { background: var(--soft); }
@media (max-width: 991px){ .logo-grid, .logo-grid.large{grid-template-columns:repeat(2,1fr)} .footer-bottom{flex-direction:column} .hero-carousel .carousel-item,.hero-carousel .container{min-height:70vh} }
@media (max-width: 575px){ .logo-grid, .logo-grid.large{grid-template-columns:1fr} .section-padding.compact{padding:3rem 0} }

/* Ajouts V4 */
.footer-gallery { display:grid; grid-template-columns:repeat(4,1fr); gap:.55rem; }
.footer-gallery img { width:100%; height:72px; object-fit:cover; border-radius:12px; background:#dbe8f3; border:1px solid rgba(255,255,255,.12); }
.real-card { display:block; position:relative; overflow:hidden; border-radius:22px; box-shadow:0 15px 35px rgba(7,27,51,.1); color:#fff; height:240px; }
.real-card img { width:100%; height:100%; object-fit:cover; background:#dbe8f3; transition:.3s ease; }
.real-card span { position:absolute; left:1rem; right:1rem; bottom:1rem; background:rgba(7,27,51,.78); padding:.75rem 1rem; border-radius:14px; font-weight:800; }
.real-card:hover img { transform:scale(1.06); }
.action-card { background:#fff; border:1px solid var(--border); border-radius:24px; overflow:hidden; height:100%; box-shadow:0 12px 34px rgba(7,27,51,.07); }
.action-card img { width:100%; height:210px; object-fit:cover; background:#dbe8f3; }
.action-card div { padding:1.4rem; }
.action-card span { color:var(--secondary); font-weight:800; text-transform:uppercase; font-size:.78rem; letter-spacing:.08em; }
.action-card h3 { font-size:1.2rem; font-weight:850; margin:.55rem 0; }
.action-card p { color:var(--muted); }
.action-card a { color:var(--primary); font-weight:800; }
.project-card img { width:100%; height:230px; object-fit:cover; background:#dbe8f3; }
.footer p { font-size:.93rem; }
@media(max-width:575px){.footer-gallery{grid-template-columns:repeat(2,1fr)}.real-card{height:220px}}


/* ================================
   LOGO BENCO - HEADER
================================ */

.benco-brand {
    display: flex !important;
    align-items: center;
    padding: 4px 0 !important;
    margin: 0;
    width: auto !important;
}

.benco-navbar-logo {
    display: block !important;

    width: auto !important;
    height: 58px !important;

    max-width: 130px !important;
    max-height: 58px !important;

    object-fit: contain !important;

    position: static !important;
    transform: none !important;
}


/* Tablette */

@media (max-width: 992px) {

    .benco-navbar-logo {
        height: 52px !important;
        max-height: 52px !important;
    }

}


/* Mobile */

@media (max-width: 576px) {

    .benco-navbar-logo {
        height: 46px !important;
        max-height: 46px !important;
    }

}

/* =====================================
   FONDATION - PRESENTATION
===================================== */

.fondation-intro {
    padding: 80px 0;
    background: #ffffff;
}

.fondation-image {
    width: 100%;
    height: 540px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(8, 35, 65, 0.12);
}

.fondation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fondation-intro h2 {
    color: #06264a;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    margin: 15px 0 20px;
}

.fondation-description {
    color: #64748b;
    font-size: 17px;
    line-height: 1.8;
}


/* CARTES */

.fondation-card {
    height: 100%;
    padding: 22px;

    display: flex;
    align-items: flex-start;
    gap: 15px;

    background: #ffffff;
    border: 1px solid #e3eaf1;
    border-radius: 20px;

    transition: 0.3s ease;
}

.fondation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(8, 35, 65, 0.10);
}


/* ICONES */

.fondation-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf5ff;
    color: #0876d1;

    font-size: 23px;
}

.fondation-card h3 {
    margin: 2px 0 6px;

    color: #06264a;
    font-size: 18px;
    font-weight: 800;
}

.fondation-card p {
    margin: 0;

    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 991px) {

    .fondation-intro {
        padding: 55px 0;
    }

    .fondation-image {
        height: 430px;
    }

    .fondation-intro h2 {
        font-size: 38px;
    }
}

@media (max-width: 576px) {

    .fondation-image {
        height: 340px;
        border-radius: 20px;
    }

    .fondation-intro h2 {
        font-size: 32px;
    }

    .fondation-card {
        padding: 18px;
    }
}