/* =====================================================
   E.B.B — Charte graphique
   Palette inspirée du logo :
     Rouge malien  #C62828
     Vert BTP      #2E7D32
     Or/Jaune      #F9A825
     Bleu maison   #1565C0
     Fond clair    #F5F5F5
     Texte         #1A1A1A
===================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- Variables CSS --- */
:root {
  --ebb-rouge:       #C62828;
  --ebb-rouge-dark:  #8E0000;
  --ebb-rouge-light: #EF5350;
  --ebb-vert:        #2E7D32;
  --ebb-vert-dark:   #1B5E20;
  --ebb-vert-light:  #4CAF50;
  --ebb-or:          #F9A825;
  --ebb-or-dark:     #E65100;
  --ebb-bleu:        #1565C0;
  --ebb-bleu-light:  #42A5F5;

  --ebb-primary:     var(--ebb-rouge);
  --ebb-secondary:   var(--ebb-vert);
  --ebb-accent:      var(--ebb-or);

  --ebb-bg:          #F7F7F7;
  --ebb-bg-dark:     #1A1A1A;
  --ebb-text:        #212121;
  --ebb-text-muted:  #616161;
  --ebb-white:       #FFFFFF;
  --ebb-border:      #E0E0E0;

  --ebb-shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --ebb-shadow:      0 4px 20px rgba(0,0,0,.12);
  --ebb-shadow-lg:   0 8px 40px rgba(0,0,0,.18);

  --ebb-radius:      0.75rem;
  --ebb-radius-lg:   1.25rem;
  --ebb-radius-pill: 50rem;

  --ebb-transition:  all .25s ease;
}

/* ====================================================
   BASE
==================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: var(--ebb-text);
  background-color: var(--ebb-bg);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--ebb-text);
}

a {
  color: var(--ebb-primary);
  text-decoration: none;
  transition: var(--ebb-transition);
}
a:hover { color: var(--ebb-rouge-dark); }

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

/* Accessibilité focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ebb-accent);
  outline-offset: 2px;
}

/* ====================================================
   NAVBAR PUBLIQUE
==================================================== */
.ebb-navbar {
  background: var(--ebb-bg-dark) !important;
  padding: 0.6rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.ebb-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.ebb-navbar .navbar-brand img.ebb-logo-nav {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.ebb-navbar .navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ebb-navbar .navbar-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ebb-white);
  letter-spacing: 1px;
}

.ebb-navbar .navbar-brand .brand-sub {
  font-size: 0.65rem;
  color: var(--ebb-accent);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ebb-navbar .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--ebb-radius);
  transition: var(--ebb-transition);
}

.ebb-navbar .nav-link:hover,
.ebb-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}

.ebb-navbar .nav-link.active {
  border-bottom: 2px solid var(--ebb-accent);
}

.ebb-navbar .btn-contact-nav {
  background: var(--ebb-rouge);
  color: #fff !important;
  border-radius: var(--ebb-radius-pill);
  padding: 0.4rem 1.2rem !important;
  font-weight: 600;
  border: none;
}
.ebb-navbar .btn-contact-nav:hover {
  background: var(--ebb-rouge-dark) !important;
  transform: translateY(-1px);
}

.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { filter: invert(1); }

/* ====================================================
   HERO SECTION
==================================================== */
.ebb-hero {
  background: linear-gradient(135deg, var(--ebb-bg-dark) 0%, #2d2d2d 60%, #1a1a1a 100%);
  color: var(--ebb-white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.ebb-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(198,40,40,.15) 0%, transparent 70%);
  pointer-events: none;
}

.ebb-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46,125,50,.12) 0%, transparent 70%);
  pointer-events: none;
}

.ebb-hero .hero-badge {
  display: inline-block;
  background: rgba(249,168,37,.15);
  border: 1px solid var(--ebb-accent);
  color: var(--ebb-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: var(--ebb-radius-pill);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ebb-hero h1 {
  color: var(--ebb-white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.ebb-hero h1 span {
  color: var(--ebb-accent);
}

.ebb-hero p.lead {
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.ebb-hero .hero-logo {
  max-width: 300px;
  width: 100%;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.5));
  animation: heroFadeIn .8s ease;
}

@keyframes heroFadeIn {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ====================================================
   BOUTONS
==================================================== */
.btn-ebb-primary {
  background: var(--ebb-rouge);
  color: #fff;
  border: none;
  border-radius: var(--ebb-radius-pill);
  font-weight: 600;
  padding: 0.7rem 2rem;
  transition: var(--ebb-transition);
}
.btn-ebb-primary:hover {
  background: var(--ebb-rouge-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198,40,40,.35);
}

.btn-ebb-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--ebb-radius-pill);
  font-weight: 600;
  padding: 0.7rem 2rem;
  transition: var(--ebb-transition);
}
.btn-ebb-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

.btn-ebb-vert {
  background: var(--ebb-vert);
  color: #fff;
  border: none;
  border-radius: var(--ebb-radius-pill);
  font-weight: 600;
  padding: 0.6rem 1.6rem;
  transition: var(--ebb-transition);
}
.btn-ebb-vert:hover {
  background: var(--ebb-vert-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50,.35);
}

/* ====================================================
   SECTION TITRES
==================================================== */
.ebb-section {
  padding: 5rem 0;
}

.ebb-section-alt {
  background: var(--ebb-white);
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ebb-rouge);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--ebb-rouge), var(--ebb-or));
  border-radius: 2px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ====================================================
   CARTES ACTIVITÉS
==================================================== */
.ebb-card {
  background: var(--ebb-white);
  border: 1px solid var(--ebb-border);
  border-radius: var(--ebb-radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--ebb-transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ebb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--ebb-rouge), var(--ebb-vert));
  opacity: 0;
  transition: var(--ebb-transition);
}

.ebb-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ebb-shadow-lg);
  border-color: var(--ebb-rouge);
}
.ebb-card:hover::before { opacity: 1; }

.ebb-card .card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(198,40,40,.1), rgba(46,125,50,.1));
  border-radius: var(--ebb-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--ebb-rouge);
  margin-bottom: 1.2rem;
}

.ebb-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.ebb-card .card-text {
  color: var(--ebb-text-muted);
  font-size: 0.9rem;
}

/* ====================================================
   CARTES ARTICLES / ACTUALITÉS
==================================================== */
.article-card {
  background: var(--ebb-white);
  border-radius: var(--ebb-radius-lg);
  overflow: hidden;
  box-shadow: var(--ebb-shadow-sm);
  transition: var(--ebb-transition);
  height: 100%;
  border: 1px solid var(--ebb-border);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ebb-shadow);
}

.article-card .article-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.article-card .article-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--ebb-rouge) 0%, var(--ebb-vert) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.5);
}

.article-card .card-body { padding: 1.4rem; }
.article-card .article-date {
  font-size: 0.78rem;
  color: var(--ebb-rouge);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-card .article-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .article-excerpt {
  font-size: 0.88rem;
  color: var(--ebb-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .btn-read-more {
  font-size: 0.85rem;
  color: var(--ebb-rouge);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
}
.article-card .btn-read-more:hover { gap: 0.6rem; }

/* ====================================================
   CARTES RÉALISATIONS
==================================================== */
.realisation-card {
  border-radius: var(--ebb-radius-lg);
  overflow: hidden;
  box-shadow: var(--ebb-shadow-sm);
  transition: var(--ebb-transition);
  position: relative;
  background: var(--ebb-bg-dark);
}
.realisation-card:hover { transform: translateY(-4px); box-shadow: var(--ebb-shadow-lg); }
.realisation-card img { width: 100%; height: 240px; object-fit: cover; transition: var(--ebb-transition); }
.realisation-card:hover img { transform: scale(1.04); }
.realisation-card .card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  padding: 2rem 1.2rem 1.2rem;
  color: #fff;
}
.realisation-card .overlay-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.realisation-card .overlay-date { font-size: 0.78rem; color: var(--ebb-accent); }

/* ====================================================
   CARTES PARTENAIRES
==================================================== */
.partenaire-card {
  background: var(--ebb-white);
  border: 1px solid var(--ebb-border);
  border-radius: var(--ebb-radius-lg);
  padding: 1.8rem;
  text-align: center;
  transition: var(--ebb-transition);
  height: 100%;
}
.partenaire-card:hover { box-shadow: var(--ebb-shadow); transform: translateY(-3px); }
.partenaire-card img { max-height: 80px; max-width: 160px; object-fit: contain; margin-bottom: 1rem; }
.partenaire-card .partenaire-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.partenaire-card .partenaire-desc { font-size: 0.85rem; color: var(--ebb-text-muted); }

/* ====================================================
   SECTION CONTACT
==================================================== */
.contact-info-card {
  background: linear-gradient(135deg, var(--ebb-rouge-dark), var(--ebb-rouge));
  color: #fff;
  border-radius: var(--ebb-radius-lg);
  padding: 2.5rem;
}
.contact-info-card h3 { color: #fff; font-weight: 700; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.contact-info-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-item .info-text { font-size: 0.9rem; line-height: 1.4; }
.contact-info-item .info-text a { color: rgba(255,255,255,.85); }
.contact-info-item .info-text a:hover { color: #fff; }

.social-contact-links { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--ebb-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: var(--ebb-transition);
}
.social-btn:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.social-btn.whatsapp  { background: #25D366; }
.social-btn.facebook  { background: #1877F2; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-btn.phone     { background: var(--ebb-vert); }
.social-btn.email     { background: var(--ebb-bleu); }

/* Formulaire contact */
.contact-form-card {
  background: var(--ebb-white);
  border-radius: var(--ebb-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--ebb-shadow);
}
.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: 0.5rem;
  border: 1.5px solid var(--ebb-border);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: var(--ebb-transition);
}
.contact-form-card .form-control:focus {
  border-color: var(--ebb-rouge);
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

/* ====================================================
   FOOTER
==================================================== */
.ebb-footer {
  background: #111111;
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}

.ebb-footer .footer-brand img {
  height: 70px;
  width: auto;
  margin-bottom: 1rem;
}

.ebb-footer .footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.ebb-footer .footer-brand-sub {
  font-size: 0.78rem;
  color: var(--ebb-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ebb-footer h6 {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.ebb-footer .footer-link {
  color: rgba(255,255,255,.55);
  font-size: 0.88rem;
  display: block;
  padding: 0.18rem 0;
  transition: var(--ebb-transition);
}
.ebb-footer .footer-link:hover {
  color: var(--ebb-accent);
  padding-left: 4px;
}

.ebb-footer .footer-contact-item {
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255,255,255,.65);
}
.ebb-footer .footer-contact-item i { color: var(--ebb-rouge); margin-top: 2px; flex-shrink: 0; }
.ebb-footer .footer-contact-item a { color: rgba(255,255,255,.65); }
.ebb-footer .footer-contact-item a:hover { color: var(--ebb-accent); }

.ebb-footer .footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.ebb-footer .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: var(--ebb-transition);
}
.ebb-footer .footer-social a:hover { transform: translateY(-3px); }
.ebb-footer .footer-social .wa:hover  { background: #25D366; color: #fff; }
.ebb-footer .footer-social .fb:hover  { background: #1877F2; color: #fff; }
.ebb-footer .footer-social .ig:hover  { background: #E1306C; color: #fff; }
.ebb-footer .footer-social .tel:hover { background: var(--ebb-vert); color: #fff; }

.ebb-footer .footer-bottom {
  background: rgba(0,0,0,.3);
  margin-top: 3rem;
  padding: 1.2rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
}

/* ====================================================
   BOUTON WHATSAPP FLOTTANT
==================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--ebb-transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  color: #fff;
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.whatsapp-float .wa-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--ebb-transition);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ====================================================
   PAGE À PROPOS
==================================================== */
.about-stat-card {
  background: var(--ebb-white);
  border-radius: var(--ebb-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--ebb-shadow-sm);
  border-top: 4px solid var(--ebb-rouge);
}
.about-stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ebb-rouge);
}
.about-stat-card .stat-label { font-size: 0.9rem; color: var(--ebb-text-muted); }

/* ====================================================
   PAGE RÉALISATION DÉTAIL
==================================================== */
.realisation-gallery-thumb {
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: var(--ebb-transition);
}
.realisation-gallery-thumb:hover { transform: scale(1.03); box-shadow: var(--ebb-shadow); }
.realisation-gallery-thumb img { width: 100%; height: 180px; object-fit: cover; }

/* ====================================================
   PAGINATION
==================================================== */
.pagination .page-link {
  border-radius: 0.5rem !important;
  border: 1.5px solid var(--ebb-border);
  color: var(--ebb-text);
  margin: 0 2px;
  font-weight: 500;
  transition: var(--ebb-transition);
}
.pagination .page-link:hover { background: var(--ebb-rouge); border-color: var(--ebb-rouge); color: #fff; }
.pagination .page-item.active .page-link {
  background: var(--ebb-rouge);
  border-color: var(--ebb-rouge);
  color: #fff;
}

/* ====================================================
   BREADCRUMB
==================================================== */
.ebb-breadcrumb {
  background: var(--ebb-white);
  border-bottom: 1px solid var(--ebb-border);
  padding: 0.8rem 0;
}
.ebb-breadcrumb .breadcrumb {
  margin: 0;
  font-size: 0.85rem;
}
.ebb-breadcrumb .breadcrumb-item a { color: var(--ebb-rouge); }
.ebb-breadcrumb .breadcrumb-item.active { color: var(--ebb-text-muted); }

/* ====================================================
   BADGES STATUT
==================================================== */
.badge-publie    { background: var(--ebb-vert);      color: #fff; }
.badge-brouillon { background: #9E9E9E;               color: #fff; }
.badge-lu        { background: var(--ebb-bleu);       color: #fff; }
.badge-non-lu    { background: var(--ebb-rouge);      color: #fff; }

/* ====================================================
   SECTION BANDEAU STATS / CTA
==================================================== */
.ebb-cta-band {
  background: linear-gradient(135deg, var(--ebb-rouge-dark), var(--ebb-rouge) 50%, var(--ebb-or-dark));
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.ebb-cta-band h2 { color: #fff; font-size: 2rem; font-weight: 800; }
.ebb-cta-band p  { color: rgba(255,255,255,.85); font-size: 1.05rem; }

.ebb-stats-band {
  background: var(--ebb-bg-dark);
  color: #fff;
  padding: 3rem 0;
}
.ebb-stats-band .stat-item { text-align: center; }
.ebb-stats-band .stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ebb-accent);
  display: block;
}
.ebb-stats-band .stat-lbl {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====================================================
   ADMIN — LAYOUT & SIDEBAR
==================================================== */
.ebb-admin-sidebar {
  background: #1A1A1A;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.ebb-admin-sidebar .sidebar-brand {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ebb-admin-sidebar .sidebar-brand img {
  height: 40px;
  width: auto;
}

.ebb-admin-sidebar .sidebar-brand .brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.ebb-admin-sidebar .sidebar-brand .brand-sub {
  font-size: 0.68rem;
  color: var(--ebb-accent);
  display: block;
}

.ebb-admin-sidebar .nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.3);
  padding: 1rem 1rem 0.4rem;
}

.ebb-admin-sidebar .nav-link {
  color: rgba(255,255,255,.65) !important;
  border-radius: 0.5rem;
  margin: 1px 0.5rem;
  padding: 0.6rem 0.8rem !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--ebb-transition);
  display: flex;
  align-items: center;
}
.ebb-admin-sidebar .nav-link i { width: 20px; margin-right: 0.5rem; }
.ebb-admin-sidebar .nav-link:hover {
  background: rgba(255,255,255,.07);
  color: #fff !important;
}
.ebb-admin-sidebar .nav-link.active {
  background: var(--ebb-rouge) !important;
  color: #fff !important;
}

.ebb-admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--ebb-border);
  padding: 0.7rem 1.5rem;
  box-shadow: var(--ebb-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Admin cards dashboard */
.admin-stat-card {
  background: var(--ebb-white);
  border-radius: var(--ebb-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--ebb-border);
  transition: var(--ebb-transition);
}
.admin-stat-card:hover { box-shadow: var(--ebb-shadow); }
.admin-stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--ebb-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.admin-stat-card .stat-num { font-size: 1.8rem; font-weight: 800; margin: 0.5rem 0 0.1rem; }
.admin-stat-card .stat-label { font-size: 0.82rem; color: var(--ebb-text-muted); }

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 768px) {
  .ebb-hero { padding: 4rem 0 3rem; min-height: auto; }
  .ebb-hero h1 { font-size: 1.9rem; }
  .ebb-section, .ebb-section-alt { padding: 3rem 0; }
  .ebb-hero .hero-logo { max-width: 200px; }
  .contact-info-card, .contact-form-card { padding: 1.5rem; }
  .ebb-footer { padding: 3rem 0 0; }
  .ebb-admin-sidebar { min-height: auto; position: relative; }
}

@media (max-width: 576px) {
  .section-title { font-size: 1.5rem; }
  .ebb-cta-band h2 { font-size: 1.5rem; }
  .whatsapp-float { bottom: 1rem; right: 1rem; width: 50px; height: 50px; font-size: 1.4rem; }
}

/* ====================================================
   UTILITAIRES DIVERS
==================================================== */
.text-rouge { color: var(--ebb-rouge) !important; }
.text-vert  { color: var(--ebb-vert) !important; }
.text-or    { color: var(--ebb-or) !important; }
.bg-rouge   { background: var(--ebb-rouge) !important; }
.bg-vert    { background: var(--ebb-vert) !important; }

.divider-rouge {
  height: 4px;
  background: linear-gradient(90deg, var(--ebb-rouge), var(--ebb-or), var(--ebb-vert));
  border: none;
  border-radius: 2px;
  margin: 3rem 0;
}

/* Rétrocompatibilité avec app.css */
.hero-section { display: none; } /* remplacé par .ebb-hero */
.card-activite { transition: var(--ebb-transition); }
.card-activite:hover { transform: translateY(-4px); box-shadow: var(--ebb-shadow); }
img.placeholder-img { background: #dee2e6; min-height: 200px; object-fit: cover; }

/* ====================================================
   PORTFOLIO — Page Réalisations
==================================================== */

/* Hero portfolio */
.portfolio-hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0a0a 50%, #0a1a0a 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C62828' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}
.portfolio-hero .hero-stat {
  text-align: center;
  padding: 1rem 2rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.portfolio-hero .hero-stat:last-child { border-right: none; }
.portfolio-hero .hero-stat .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ebb-accent);
  display: block;
  line-height: 1;
}
.portfolio-hero .hero-stat .lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: .3rem;
  display: block;
}

/* Filtres catégories */
.portfolio-filters {
  background: #fff;
  border-bottom: 1px solid var(--ebb-border);
  padding: 1rem 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.portfolio-filters .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.1rem;
  border-radius: var(--ebb-radius-pill);
  border: 1.5px solid var(--ebb-border);
  background: #fff;
  color: var(--ebb-text);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--ebb-transition);
  white-space: nowrap;
}
.portfolio-filters .filter-btn:hover {
  border-color: var(--ebb-rouge);
  color: var(--ebb-rouge);
  background: rgba(198,40,40,.05);
}
.portfolio-filters .filter-btn.active {
  background: var(--ebb-rouge);
  border-color: var(--ebb-rouge);
  color: #fff;
}
.portfolio-filters .filter-btn .count {
  background: rgba(255,255,255,.25);
  border-radius: 50rem;
  font-size: .72rem;
  padding: .05rem .4rem;
  font-weight: 700;
}
.portfolio-filters .filter-btn:not(.active) .count {
  background: rgba(0,0,0,.08);
  color: var(--ebb-text-muted);
}
.filter-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .2rem;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }

/* Cartes portfolio */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ebb-radius-lg);
  cursor: pointer;
  display: block;
  text-decoration: none;
  box-shadow: var(--ebb-shadow-sm);
  background: var(--ebb-bg-dark);
}
.portfolio-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.portfolio-card:hover img {
  transform: scale(1.07);
}
.portfolio-card .portfolio-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--ebb-rouge-dark), var(--ebb-vert-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,.25);
}
.portfolio-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.45) 45%,
    rgba(0,0,0,.0) 75%
  );
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity .3s ease;
}
.portfolio-card .cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 50rem;
  color: #fff;
  letter-spacing: .5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.portfolio-overlay .p-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .3rem;
  line-height: 1.3;
}
.portfolio-overlay .p-meta {
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  margin-bottom: .8rem;
}
.portfolio-overlay .p-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--ebb-rouge);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 50rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: all .3s ease;
  align-self: flex-start;
}
.portfolio-card:hover .p-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Badges catégories */
.cat-construction  { background: rgba(198,40,40,.85); }
.cat-renovation    { background: rgba(230,81,0,.85); }
.cat-plomberie     { background: rgba(21,101,192,.85); }
.cat-electricite   { background: rgba(249,168,37,.85); color: #333 !important; }
.cat-menuiserie    { background: rgba(46,125,50,.85); }
.cat-commerce      { background: rgba(106,27,154,.85); }
.cat-autre         { background: rgba(66,66,66,.85); }

/* Page detail projet */
.projet-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.projet-hero-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--ebb-bg-dark);
}
.projet-hero-wrapper .projet-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 0 2rem;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
}
.projet-hero-placeholder {
  height: 460px;
  background: linear-gradient(135deg, var(--ebb-bg-dark), #2d1a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,.1);
}
.projet-info-card {
  background: #fff;
  border-radius: var(--ebb-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--ebb-border);
  box-shadow: var(--ebb-shadow-sm);
  margin-bottom: 1rem;
}
.projet-info-card .info-row {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--ebb-border);
  font-size: .88rem;
}
.projet-info-card .info-row:last-child { border-bottom: none; }
.projet-info-card .info-row i {
  color: var(--ebb-rouge);
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}
.projet-info-card .info-label {
  color: var(--ebb-text-muted);
  font-size: .78rem;
  display: block;
}

/* Galerie detail */
.galerie-thumb {
  border-radius: .75rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.galerie-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.galerie-thumb:hover img { transform: scale(1.06); }
.galerie-thumb .galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(198,40,40,.0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  opacity: 0;
  transition: all .3s ease;
}
.galerie-thumb:hover .galerie-overlay {
  opacity: 1;
  background: rgba(0,0,0,.35);
}

/* Mini-cartes projets similaires */
.similaire-card {
  display: block;
  text-decoration: none;
  border-radius: var(--ebb-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--ebb-shadow-sm);
  transition: var(--ebb-transition);
}
.similaire-card:hover { transform: translateY(-3px); box-shadow: var(--ebb-shadow); }
.similaire-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.similaire-card .s-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .8rem;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
}
.similaire-card .s-title {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .portfolio-hero { padding: 3rem 0 2.5rem; }
  .portfolio-card img { height: 220px; }
  .projet-hero-img { height: 260px; }
  .projet-hero-placeholder { height: 260px; }
}

/* ====================================================
   BOUTON LANGUE FR / EN
==================================================== */
.lang-btn {
  display: inline-flex !important;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem !important;
  border-radius: 50rem !important;
  border: 1.5px solid rgba(255,255,255,.25) !important;
  color: rgba(255,255,255,.75) !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .5px;
  transition: var(--ebb-transition);
  text-decoration: none;
}
.lang-btn:hover {
  border-color: var(--ebb-accent) !important;
  color: var(--ebb-accent) !important;
  background: rgba(249,168,37,.08) !important;
}
.lang-btn .lang-flag { font-size: .9rem; line-height: 1; }
.lang-btn .lang-label { font-size: .75rem; font-weight: 800; }
