/* =========================
   ÉCLAIRAGE – SIMPLIFIED
========================= */
/* Base hero style is now handled by .page-hero in global.css */


/* ==============================
   SECTION HEAD
================================ */
.lighting-head {
  max-width: 720px;
  margin: 0 auto 56px;
  /* espace AVANT les cartes */
  text-align: center;
}

.lighting-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
  font-weight: 700;
  color: #0f172a;
}

.lighting-head p {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
}

/* ==============================
   LIGHTING — CLEAN 9/16 (NO SCROLL)
================================ */

/* Section */

.lighting-section {
  background: #f6f7fb;
  padding: 64px 0 48px;
  /* ↓ bottom */
  padding-bottom: 112px;
  /* au lieu de 96px */

}


/* Grid: on limite la largeur des cartes pour éviter des cartes géantes */
.lighting-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;

  display: grid;
  gap: 28px;

  /* IMPORTANT: largeur contrôlée => hauteur contrôlée (ratio 9/16) */
  grid-template-columns: repeat(2, minmax(280px, 360px));
  justify-content: center;
  align-items: start;
}

/* Card: ratio verrouillé + hauteur max viewport */
.lighting-card {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 360px;
  height: min(640px, calc(100vh - 220px));
  margin-bottom: 24px;
  transition: transform .25s ease, box-shadow .25s ease;


  /* Garantit: carte visible sans scroller (ajuste si ton header est plus grand) */
  height: min(640px, calc(100vh - 220px));

  border-radius: 22px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

.lighting-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .12);
}

/* Image / content split (comme ta référence) */
.card-image {
  flex: 0 0 56%;
}

.card-content {
  flex: 0 0 44%;
}

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

/* Content scale ↓ pour éviter crop */
.card-content {
  padding: 22px 22px;
  /* ↓ */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content h3 {
  margin: 0;
  font-size: 26px;
  /* ↓ */
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

.underline {
  width: 46px;
  /* ↓ */
  height: 4px;
  background: #facc15;
  margin-top: 14px;
  border-radius: 4px;
}

.card-content p {
  margin-top: 14px;
  /* ↓ */
  font-size: 16.5px;
  /* ↓ */
  line-height: 1.55;
  color: #475569;
}

/* Dark card */
.lighting-card.dark {
  background: linear-gradient(135deg,
      #0b5e92 0%,
      #0a4a74 55%,
      #071e34 100%);
}

.lighting-card.dark h3 {
  color: #fff;
}

.lighting-card.dark p {
  color: #d1d5db;
}




/* ==============================
   DIALUX SECTION
================================ */
.dialux-section {
  position: relative;
  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #f6f7fb 100%);
  padding: 96px 0 112px;
}

.dialux-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

/* TEXT */
.accent-block {
  position: relative;
  padding-left: 28px;
}

.accent-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 64px;
  background: #475569;
  border-radius: 2px;
}

.dialux-text h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 20px;
  color: #0f172a;
}

.dialux-intro {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 28px;
}

.dialux-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.tech-panel {
  background: #ffffff;
  border-left: 3px solid #facc15;
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
  border-radius: 12px;
}

.dialux-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 15px;
  color: #334155;
}

.dialux-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #facc15;
  font-size: 24px;
  line-height: 1;
}

.dialux-note {
  font-size: 14.5px;
  line-height: 1.6;
  color: #64748b;
}

/* VISUAL */
.dialux-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}






/* ==============================
   BENEFITS V2 — VERTICAL FEATURE BLOCKS
================================ */
/* ==============================
   BENEFITS — CAREER INSPIRED
================================ */

.benefits-hero {
  position: relative;
  padding: 96px 0;
  background: #ffffff;

  display: flex;
  color: #ffffff;
  overflow: hidden;
}

/* subtle brand watermark */
.benefits-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/medelec-mark.svg") no-repeat left center;
  background-size: 480px;
  opacity: 0.04;
  pointer-events: none;
}

.benefits-hero-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

/* LEFT */
.benefits-eyebrow {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #facc15;
}

.benefits-hero-left h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 16px 0 18px;
  line-height: 1.15;
  color: rgba(0, 0, 0, 0.85);

}

.benefits-hero-left p {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.85);
}

/* RIGHT */
/* ==============================
   BENEFITS FLOATING PANEL
================================ */

.benefits-wrapper {
  background: #ffffff;
  padding: 72px 24px;
}

.benefits-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 56px;
  margin-top: -40px;


  background: linear-gradient(135deg,
      #0b5e92 0%,
      #0a4a74 55%,
      #071e34 100%);

  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
  color: #ffffff;
}

/* benefit rows */
.benefit-row {
  position: relative;
  padding-left: 28px;
}

.benefit-row+.benefit-row {
  margin-top: 28px;
}

.benefit-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 36px;
  background: #facc15;
  border-radius: 2px;
}

.benefit-row h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.benefit-row p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
}

/* =====================================================
   MOBILE FIXES — SAFE PATCH
   DOES NOT TOUCH DESKTOP
===================================================== */

@media (max-width: 768px) {

  /* -----------------------------
     HERO & INTRO
  ----------------------------- */
  /* Global hero handles mobile responsive padding */

  /* -----------------------------
     SECTION HEADERS
  ----------------------------- */
  .section-head {
    margin-bottom: 40px;
    padding: 0 16px;
  }

  .section-head h2 {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }

  /* -----------------------------
     CARDS GRID
  ----------------------------- */
  .lighting-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .lighting-card {
    max-width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    /* CRITICAL: avoid crop */
  }

  .card-image {
    flex: 0 0 52%;
  }

  .card-content {
    padding: 22px 20px;
  }

  .card-content h3 {
    font-size: 1.35rem;
  }

  .card-content p {
    font-size: 0.95rem;
  }

  /* -----------------------------
     DIALUX SECTION
  ----------------------------- */
  .dialux-section {
    padding: 72px 0;
  }

  .dialux-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }

  .dialux-text {
    padding-left: 20px;
  }

  /* -----------------------------
     BENEFITS SECTION
  ----------------------------- */
  .benefits-hero-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px;
  }

  .benefits-hero-left {
    max-width: 100%;
    text-align: left;
  }

  .benefits-wrapper {
    padding: 0;
  }

  .benefits-panel {
    width: 100%;
    margin: 0;
    padding: 32px 24px;
    border-radius: 20px;
  }

  .benefit-row {
    padding-left: 20px;
  }

  .benefit-row+.benefit-row {
    margin-top: 22px;
  }

  .benefit-row h4 {
    font-size: 1rem;
  }

  .benefit-row p {
    font-size: 0.9rem;
  }

  /* -----------------------------
     GLOBAL SAFETY
  ----------------------------- */
  body {
    overflow-x: hidden;
  }

  .value-section,
  .expertise-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 64px 16px;
  }

  .value-section .text-block,
  .expertise-section .text-block {
    max-width: 100%;
    padding: 0;
    text-align: left;
  }
}