/* ============================================================
   GROUPE SOCOTA — Home Page V2
   Light · Eco · Premium · 2025
   ============================================================ */

/* ─── Hero stats strip — centrés ─── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  flex-wrap: wrap;
  width: 100%;
}
.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0 28px;
}
/* num + unit sur la même ligne */
.hstat-top {
  display: flex;
  align-items: baseline;
  gap: 2px;
  justify-content: center;
}
.hstat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}
.hstat-unit {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1;
}
.hstat-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.hstat-sep {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  align-self: center;
}

/* ─── Value num (replaces emoji icon) ─── */
.value-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ─── Hero biz pill nav ─── */
.hero-biz-nav {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201,187,168,0.3);
  padding: 0 var(--gutter);
}
.hero-biz-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  text-decoration: none;
  color: var(--charcoal);
  border-right: 1px solid rgba(201,187,168,0.25);
  transition: var(--t-med);
  position: relative;
}
.hero-biz-item:last-of-type { border-right: none; }
.hero-biz-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform var(--t-med);
}
.hero-biz-item:hover::after { transform: scaleX(1); }
.hero-biz-item:hover { color: var(--sage); }
.hero-biz-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-biz-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-biz-divider { display: none; }

/* ─── About Section ─── */
.section-about {
  padding: var(--section-v) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}
.about-left { max-width: 540px; }
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

/* Collage layout */
.about-collage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 520px;
}
.collage-main {
  grid-row: 1 / -1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.collage-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.collage-main:hover img { transform: scale(1.04); }
.collage-main-caption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(250,248,244,0.88);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.collage-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.collage-sm {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.collage-sm img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.collage-sm:hover img { transform: scale(1.05); }

/* Values row */
.values-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--sand);
  transition: var(--t-med);
}
.value-item:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-soft);
}
.value-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.value-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.value-item p { font-size: 12px; color: var(--slate); line-height: 1.5; margin: 0; }

/* ─── Businesses Section ─── */
.section-biz {
  padding: var(--section-v) 0 0;
}
.section-biz .section-header {
  padding: 0 var(--gutter);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto 72px;
}

/* Panel layout */
.biz-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.biz-panel + .biz-panel { margin-top: 4px; }
.biz-panel-alt {
  /* Content on left, photo on right */
}
/* Photo side */
.biz-panel-photo {
  position: relative;
  overflow: hidden;
}
.biz-panel-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease);
}
.biz-panel:hover .biz-panel-photo img { transform: scale(1.04); }
.biz-panel-photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.biz-panel-index {
  position: absolute;
  bottom: 24px; right: 28px;
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 300;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
/* Content side */
.biz-panel-content {
  padding: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.biz-panel-content .display-md {
  margin: 8px 0 0;
  color: var(--ink);
}
.biz-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.biz-kpis {
  display: flex;
  gap: 0;
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.biz-kpi {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 20px;
  border-right: 1px solid var(--sand);
}
.biz-kpi:last-child { border-right: none; padding-right: 0; padding-left: 20px; }
.biz-kpi:first-child { padding-left: 0; }
.biz-kpi strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.biz-kpi span {
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.04em;
}

/* ─── Impact / ESG Section ─── */
.section-impact {
  padding: var(--section-v) 0;
}
.impact-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.esg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.esg-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--sand);
  background: var(--white);
  transition: var(--t-med);
}
.esg-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.esg-card-header {
  padding: 28px 28px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--sand);
}
.esg-card-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.esg-icon { font-size: 28px; flex-shrink: 0; }
.esg-card-body { padding: 24px 28px; }
.esg-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.esg-list li {
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.esg-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-size: 11px;
  top: 2px;
}

/* ─── Chairman / Mot du Président ─── */
.section-chairman {
  padding: var(--section-v) 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.section-chairman::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 0% 50%, rgba(74,103,65,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 100% 20%, rgba(184,154,90,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.chairman-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.chairman-photo-col {
  position: relative;
}
.chairman-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--charcoal);
}
.chairman-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}
.chairman-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,22,0.45) 0%, transparent 50%);
  pointer-events: none;
}
.chairman-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--ink) 100%);
}
.chairman-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  color: rgba(184,154,90,0.25);
  letter-spacing: 0.1em;
  user-select: none;
}
.chairman-photo-frame img {
  position: relative;
  z-index: 1;
}
.chairman-photo-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-radius: 4px 0 0 0;
  opacity: 0.7;
}
.chairman-photo-accent-br {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-radius: 0 0 4px 0;
  opacity: 0.7;
}
.chairman-content-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.chairman-overline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.chairman-overline::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.chairman-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}
.chairman-title em {
  font-style: italic;
  color: var(--gold-light);
}
.chairman-quote {
  position: relative;
  padding: 28px 28px 28px 48px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.chairman-quote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 60px;
  color: var(--gold);
  line-height: 1;
  opacity: 0.5;
}
.chairman-quote p {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
}
.chairman-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chairman-body p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}
.chairman-signature {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.chairman-sig-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.chairman-sig-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}
.chairman-sig-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 4px;
}
.chairman-sig-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.chairman-sig-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Responsive chairman */
@media (max-width: 1024px) {
  .chairman-inner {
    grid-template-columns: 340px 1fr;
    gap: 48px;
  }
}
@media (max-width: 768px) {
  .chairman-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .chairman-photo-frame {
    aspect-ratio: 4/3;
    max-width: 360px;
    margin: 0 auto;
  }
  .chairman-photo-accent,
  .chairman-photo-accent-br { display: none; }
}

/* ─── Geography Section ─── */
.section-geo {
  position: relative;
  overflow: hidden;
}
.geo-hero-photo {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}
.geo-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.geo-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,25,22,0.25) 0%,
    rgba(28,25,22,0.55) 100%
  );
}
.geo-photo-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.geo-photo-text .display-lg { color: var(--white); }

/* Locations grid */
.geo-locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-top: none;
}
.geo-location-card {
  padding: 40px 36px;
  border-right: 1px solid var(--sand);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--t-med);
}
.geo-location-card:last-child { border-right: none; }
.geo-location-card:hover { background: var(--cream); }
.geo-flag { font-size: 28px; flex-shrink: 0; line-height: 1; padding-top: 4px; }
.geo-loc-body { display: flex; flex-direction: column; gap: 8px; }
.geo-loc-body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.geo-loc-body .body-md { font-size: 13px; }
.geo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.geo-tags span {
  padding: 4px 10px;
  background: var(--sage-pale);
  color: var(--sage);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── News Section ─── */
.section-news {
  padding: var(--section-v) 0;
}
.news-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}
.news-header-row .display-md { margin-top: 8px; }
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  transition: var(--t-med);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.news-card-img {
  position: relative;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.news-card-featured .news-card-img img { aspect-ratio: 3/2; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.news-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.news-card h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin-top: 4px;
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sage);
  text-transform: uppercase;
  margin-top: auto;
  transition: gap var(--t-fast), color var(--t-fast);
}
.news-link:hover { color: var(--sage-light); gap: 10px; }

/* ─── CTA Section ─── */
.section-cta {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,25,22,0.4) 0%,
    rgba(28,25,22,0.65) 100%
  );
}
.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-v) var(--gutter);
  width: 100%;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-addresses {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.cta-addr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 40px;
  text-align: center;
}
.cta-addr-sep {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.15);
}
.cta-addr .label {
  font-size: 10px;
  letter-spacing: 0.18em;
}
.cta-addr span:last-child { font-size: 14px; }

/* ─── ESG card — icon colonne (sans emoji) ─── */
.esg-card-header { gap: 16px; }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .biz-panel { grid-template-columns: 1fr; min-height: auto; }
  .biz-panel-photo { min-height: 400px; }
  .biz-panel-alt .biz-panel-content { order: -1; }
  .impact-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .esg-grid { grid-template-columns: repeat(3, 1fr); }
  .geo-locations-grid { grid-template-columns: repeat(2, 1fr); }
  .geo-location-card:nth-child(2) { border-right: none; }
  .geo-location-card:nth-child(3) { border-top: 1px solid var(--sand); }
  .geo-location-card:nth-child(4) { border-right: none; border-top: 1px solid var(--sand); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-collage { height: 380px; }
  .hero-biz-nav { overflow-x: auto; justify-content: flex-start; }
  .hero-biz-item { padding: 16px 24px; }
  .hero-stats { gap: 0; }
  .hstat { padding: 0 20px 0 0; }
  .hstat-sep { margin: 0 20px 0 0; }
  .esg-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 768px) {
  .values-row { grid-template-columns: 1fr; }
  .impact-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .geo-locations-grid { grid-template-columns: 1fr; }
  .geo-location-card { border-right: none; border-bottom: 1px solid var(--sand); padding: 28px 24px; }
  .geo-location-card:last-child { border-bottom: none; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-card-featured { grid-column: auto; }
  .cta-addresses { flex-direction: column; gap: 24px; }
  .cta-addr-sep { width: 44px; height: 1px; }
  .hero-biz-nav { flex-direction: column; }
  .hero-biz-item { border-right: none; border-bottom: 1px solid rgba(201,187,168,0.25); }
  .hero-biz-item:last-of-type { border-bottom: none; }
  .biz-kpis { flex-direction: column; gap: 16px; padding: 16px 0; }
  .biz-kpi { border-right: none; padding: 0 !important; border-bottom: 1px solid var(--sand); padding-bottom: 16px !important; }
  .biz-kpi:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 20px; }
  .hstat-sep { display: none; }
  .hstat { padding: 0; }
  .impact-stats-grid { grid-template-columns: 1fr; }
  .about-collage { height: 300px; grid-template-columns: 1fr; }
  .collage-side { display: none; }
}
