/* ================================================================
   2B CLEAN — components.css
   Styles additionnels pour les blocs Elementor et sections custom
   ================================================================ */

/* ── Services Hub Grid ── */
.services-hub-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width:1024px){ .services-hub-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width:600px)  { .services-hub-grid { grid-template-columns: repeat(2,1fr); } }

/* ── Réalisations grid ── */
.reals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width:768px) { .reals-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px) { .reals-grid { grid-template-columns: 1fr 1fr; } }

/* ── Testimonials row ── */
.testi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width:768px) { .testi-row { grid-template-columns: 1fr; } }

/* ── Feature grid (icône + titre + desc) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width:900px)  { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px)  { .feature-grid { grid-template-columns: 1fr; } }

.feature-item {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: all var(--t);
}
.feature-item:hover { border-color:var(--c-green); box-shadow:var(--shadow-sm); }
.fi-icon {
  width: 52px; height: 52px;
  background: rgba(125,194,66,.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-green);
  margin-bottom: 14px;
}
.fi-icon svg { width: 26px; height: 26px; }
.feature-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.feature-item p { font-size: .83rem; color: var(--c-text-light); line-height: 1.5; }
.feature-item .fi-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .81rem; font-weight: 600; color: var(--c-green); margin-top: 12px;
}

/* ── Dark feature cards (fond navy) ── */
.feature-item.dark {
  background: var(--c-navy-light);
  border-color: rgba(255,255,255,.06);
}
.feature-item.dark h4 { color: var(--c-white); }
.feature-item.dark p  { color: rgba(255,255,255,.55); }

/* ── Process steps horizontal ── */
.process-wrap { position: relative; }
.process-connector {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.process-connector::before {
  content: '';
  position: absolute;
  top: 28px; left: 40px; right: 40px;
  height: 1.5px;
  background: var(--c-gray-200);
  z-index: 0;
}
.process-connector.dark-bg::before { background: rgba(255,255,255,.12); }
.proc-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 10px;
}
.proc-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-navy);
  border: 2px solid var(--c-green);
  color: var(--c-green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  position: relative;
}
.proc-step.active .proc-num { background: var(--c-green); color: white; border-color: var(--c-green); }
.proc-step h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.proc-step p { font-size: .8rem; color: var(--c-text-light); line-height: 1.45; }

/* Dark steps */
.process-connector.dark-bg .proc-num { background: rgba(125,194,66,.15); }
.process-connector.dark-bg .proc-step h4 { color: white; }
.process-connector.dark-bg .proc-step p  { color: rgba(255,255,255,.5); }

/* ── Sectors chips ── */
.sectors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.sector-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-white);
  border: 1.5px solid var(--c-gray-200);
  border-radius: 50px;
  padding: 9px 20px;
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--t);
  cursor: default;
}
.sector-chip:hover { border-color: var(--c-green); color: var(--c-green); }
.sector-chip svg { width: 18px; height: 18px; color: var(--c-green); }

/* ── Avant Après container ── */
.ba-container {
  position: relative;
  aspect-ratio: 16/7;
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width:600px) { .ba-container { aspect-ratio: 4/3; } }

/* ── Cards résultat/avant-après côte à côte ── */
.result-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.result-pair .rp-img { position: relative; }
.result-pair .rp-img img { width: 100%; height: 300px; object-fit: cover; }
.result-pair .rp-label {
  position: absolute;
  bottom: 12px;
  font-size: .76rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
}
.rp-label.before { left: 12px; background: rgba(0,0,0,.65); color: white; backdrop-filter: blur(4px); }
.rp-label.after  { right: 12px; background: var(--c-green); color: white; }

/* ── Engagement strip (accueil) ── */
.engage-strip {
  background: var(--c-off-white);
  border-top: 1px solid var(--c-gray-200);
  border-bottom: 1px solid var(--c-gray-200);
  padding: 26px 0;
}
.engage-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width:768px) { .engage-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px) { .engage-row { grid-template-columns: 1fr; } }

.engage-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ei-icon {
  width: 46px; height: 46px;
  background: var(--c-navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-green);
  flex-shrink: 0;
}
.ei-icon svg { width: 22px; height: 22px; }
.engage-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--c-navy);
  line-height: 1.3;
}
.engage-item p { font-size: .78rem; color: var(--c-text-light); }

/* ── Articles grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width:900px) { .articles-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r);
  overflow: hidden;
  transition: all var(--t);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.ac-img { height: 165px; overflow: hidden; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .ac-img img { transform: scale(1.05); }
.ac-body { padding: 16px; }
.ac-date { font-size: .74rem; color: var(--c-text-light); margin-bottom: 8px; }
.ac-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--c-navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.ac-link {
  font-size: .8rem; font-weight: 600;
  color: var(--c-green);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ── Espace client cards ── */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width:768px) { .client-grid { grid-template-columns: repeat(2,1fr); } }

.client-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--t);
  cursor: pointer;
}
.client-card:hover { border-color: var(--c-green); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cc-icon {
  width: 56px; height: 56px;
  background: rgba(125,194,66,.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--c-green);
}
.client-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.client-card p { font-size: .82rem; color: var(--c-text-light); line-height: 1.5; }

/* ── Login form ── */
.login-box {
  max-width: 420px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.login-box h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.login-box p { color: var(--c-text-light); font-size: .88rem; margin-bottom: 24px; }

/* ── Section wrappers ── */
.section-pad    { padding: var(--section-py) 0; }
.section-pad-sm { padding: 48px 0; }
.section-navy   { background: var(--c-navy); }
.section-alt    { background: var(--c-off-white); }

.inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.inner-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.inner-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* Two col layouts */
.two-col     { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col-60  { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.two-col-40  { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
@media (max-width:768px) {
  .two-col, .two-col-60, .two-col-40 { grid-template-columns: 1fr; }
}

/* Typography helpers */
.text-white    { color: var(--c-white) !important; }
.text-green    { color: var(--c-green) !important; }
.text-navy     { color: var(--c-navy) !important; }
.text-muted    { color: var(--c-text-light) !important; }
.text-center   { text-align: center !important; }
.text-sm       { font-size: .85rem !important; }

/* Spacing helpers */
.mt-0  { margin-top: 0 !important; }
.mt-8  { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-48 { margin-top: 48px !important; }
.mb-8  { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-48 { margin-bottom: 48px !important; }
