/* =====================================================
   ÉTUDES DE CAS — STYLES DÉDIÉS
   Inspiré page Secteurs — VERSION FINALE
===================================================== */

/* =====================================================
   Variables locales
===================================================== */
:root{
  --case-primary: var(--color-primary, #0f6b4f);
  --case-ink: var(--color-heading, #0f172a);
  --case-text: var(--color-text, #334155);
  --case-muted: rgba(15, 23, 42, 0.75);

  --case-bg: #ffffff;
  --case-soft: #f6fbf8;
  --case-soft-2: #eef7f2;
  --case-card: #ffffff;

  --case-line: rgba(15, 23, 42, 0.08);
  --case-shadow: 0 18px 50px rgba(0,0,0,0.08);
  --case-shadow-soft: 0 14px 40px rgba(0,0,0,0.06);

  --case-radius: 22px;
}

/* =====================================================
   HERO
===================================================== */
.hero-enterprise--solution{
  position: relative;
  min-height: var(--hero-min-height, 85vh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image: url("../../images/etude-cas.jpg");
  background-size: cover;
  background-position: center;
}

.hero-enterprise--solution .hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15,63,61,.75),
    rgba(0,0,0,.45)
  );
}

.hero-solution-inner{
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 24px;
  color: #fff;
}

.hero-solution-inner h1{
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.hero-solution-inner p{
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: .95;
}

.hero-highlight{
  display: inline-block;
  margin-top: 1.2rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}

/* =====================================================
   INTRO
===================================================== */
.solution-problem{
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  text-align: center;
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(15,107,79,.10), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--case-soft) 100%);
}

.solution-problem .container-narrow{
  max-width: 860px;
  margin: 0 auto;
}

.solution-problem h2{
  color: var(--case-ink);
  margin-bottom: 1.25rem;
}

.solution-problem .lead{
  font-size: 1.2rem;
  line-height: 1.75;
  color: rgba(15,23,42,.82);
  max-width: 70ch;
  margin: 0 auto 1rem;
}

.solution-problem p{
  color: var(--case-muted);
  max-width: 72ch;
  margin: .75rem auto 0;
}

/* =====================================================
   SECTIONS
===================================================== */
.solution-steps{
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  background: var(--case-bg);
}

.solution-steps:nth-of-type(even){
  background: linear-gradient(180deg, #fff 0%, var(--case-soft) 100%);
}

.solution-steps h2{
  text-align: center;
  color: var(--case-ink);
  margin-bottom: 2.25rem;
}

/* =====================================================
   GRID
===================================================== */
.steps-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 2rem;
}

/* =====================================================
   CARDS (type Secteurs)
===================================================== */
.step{
  position: relative;
  background: var(--case-card);
  border-radius: var(--case-radius);
  border: 1px solid var(--case-line);
  box-shadow: var(--case-shadow-soft);
  padding: 2.6rem 2rem 2.1rem;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.step:hover{
  transform: translateY(-4px);
  box-shadow: var(--case-shadow);
}

/* =====================================================
   ROND ICÔNE
===================================================== */
.step::before{
  content: "";
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;

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

  background:
    radial-gradient(circle at 30% 25%, rgba(15,107,79,.22), transparent 55%),
    rgba(15,107,79,.12);

  border: 1px solid rgba(15,107,79,.20);
  box-shadow: 0 18px 40px rgba(15,107,79,.12);
}

/* =====================================================
   ICÔNE SVG (centrée parfaitement)
===================================================== */
.step::after{
  content: "";
  position: absolute;
  top: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

/* =====================================================
   TITRES & TEXTE
===================================================== */
.step h3{
  margin: .25rem 0 .75rem;
  font-size: 1.15rem;
  color: var(--case-ink);
}

.step p{
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.75;
  color: var(--case-muted);
}

/* =====================================================
   MAPPING ICÔNES
===================================================== */
.steps-grid .step:nth-child(1)::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b4f' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E");
}

.steps-grid .step:nth-child(2)::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b4f' stroke-width='2'%3E%3Cpath d='M12 2l7 4v6c0 5-3.5 8-7 10-3.5-2-7-5-7-10V6l7-4Z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.steps-grid .step:nth-child(3)::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b4f' stroke-width='2'%3E%3Cpolyline points='4 14 9 9 13 13 20 6'/%3E%3Cline x1='4' y1='20' x2='20' y2='20'/%3E%3C/svg%3E");
}

/* =====================================================
   SUPPRESSION ICÔNES PARASITES
===================================================== */
.step svg,
.step i,
.step img{
  display: none !important;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width:1024px){
  .steps-grid{
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:680px){
  .steps-grid{
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   SÉCURITÉ DÉBORDEMENTS
===================================================== */
.hero-enterprise,
.solution-problem,
.solution-steps{
  overflow-x: clip;
}



/* =====================================================
   MODE SOMBRE — SECTIONS ALTERNÉES
===================================================== */

.solution-steps:nth-of-type(even){
  background: linear-gradient(
    180deg,
    #0f172a 0%,
    #020617 100%
  );
}

.solution-steps:nth-of-type(even) h2{
  color: #e5e7eb;
}

.solution-steps:nth-of-type(even) .step{
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.solution-steps:nth-of-type(even) .step h3{
  color: #f8fafc;
}

.solution-steps:nth-of-type(even) .step p{
  color: rgba(226,232,240,.8);
}

/* Icône — version sombre */
.solution-steps:nth-of-type(even) .step::before{
  background:
    radial-gradient(circle at 30% 25%, rgba(34,197,94,.25), transparent 55%),
    rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
}


/* =====================================================
   CHIFFRES CLÉS — LISTE SOBRE
===================================================== */

.solution-stats-simple {
    padding: 3.5rem 0;
    background: #ffffff;
}

.stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 520px;
}

.stats-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
    color: #334155;
}

.stats-list li strong {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f3f3d;
    min-width: 90px;
}


/* =====================================================
   CHIFFRES CLÉS — CARTES PREMIUM
===================================================== */

.case-stats {
    padding: 4.5rem 0;
    background: #eef6f1;
}

.case-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.case-stat {
    background: #ffffff;
    border-radius: 22px;
    padding: 2.8rem 2.2rem;
    text-align: center;

    box-shadow:
        0 30px 60px rgba(15, 23, 42, 0.06),
        0 8px 16px rgba(15, 23, 42, 0.04);
}

.case-stat strong {
    display: block;
    font-size: 2.6rem;
    font-weight: 600;
    color: #0f6b4f;
    margin-bottom: 0.6rem;
}

.case-stat span {
    font-size: 1.05rem;
    color: #334155;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .case-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}


/* =====================================================
   TÉMOIGNAGE CLIENT — STYLE SOBRE & PREMIUM
===================================================== */

.case-testimonial {
    padding: 5rem 0 5.5rem;
    background: #ffffff;
    text-align: center;
}

.case-testimonial h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 2.5rem;
}

.testimonial-card {
    position: relative;
    background: #f6fbf8;
    border: 1px solid rgba(15, 107, 79, 0.18);
    border-radius: 26px;
    padding: 2.6rem 2.8rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: -18px;
    left: 24px;
    font-size: 4rem;
    color: rgba(15, 107, 79, 0.25);
    line-height: 1;
}

.testimonial-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    margin: 0;
}

.testimonial-author {
    margin-top: 1.8rem;
    font-size: 1.05rem;
    color: #0f172a;
}



/* =====================================================
   ICÔNES — CENTRAGE PARFAIT DANS LES RONDS
===================================================== */

.step {
    position: relative;
}

/* Le rond */
.step::before{
    content: "";
    width: 62px;
    height: 62px;
    border-radius: 50%;

    margin: 0 auto 1.2rem;

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

    background:
        radial-gradient(circle at 30% 25%, rgba(15,107,79,.22), transparent 55%),
        rgba(15,107,79,.12);

    border: 1px solid rgba(15,107,79,.25);
    box-shadow: 0 18px 40px rgba(15,107,79,.12);

    position: relative;
}

/* L’icône — CENTRÉE DANS LE ROND */
.step::after{
    content: "";
    position: absolute;

    /* position = centre du rond */
    top: calc(2.25rem + 31px); /* padding-top + rayon du rond */
    left: 50%;

    transform: translate(-50%, -50%);

    width: 26px;
    height: 26px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px 26px;

    pointer-events: none;
}

/* 4) Bâtiments tertiaires */
.steps-grid .step:nth-child(4)::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='18'/%3E%3Crect x='14' y='8' width='7' height='13'/%3E%3C/svg%3E");
}
.theme-dark .step::before{
    background:
        radial-gradient(circle at 30% 25%, rgba(34,197,94,.35), transparent 55%),
        rgba(34,197,94,.18);
}


/* =====================================================
   RÉDUCTION DES ESPACES ENTRE SECTIONS — DEMANDE CLIENT
   (sans casser le design)
===================================================== */

/* Sections principales */
.solution-problem,
.solution-steps,
.case-stats,
.case-testimonial,
.contact-vip {
  padding-top: clamp(3rem, 4.5vw, 4rem);
  padding-bottom: clamp(3rem, 4.5vw, 4rem);
}

/* Hero → Intro (réduction spécifique) */
.hero-enterprise--solution {
  min-height: var(--hero-min-height, 85vh);
}

/* Titres de section : moins d’air en dessous */
.solution-steps h2,
.case-testimonial h2 {
  margin-bottom: 1.75rem; /* avant ~2.5rem */
}

/* Grilles internes */
.steps-grid,
.case-stats-grid {
  margin-top: 1.5rem; /* avant trop espacé */
}

/* Témoignage : resserrer */
.case-testimonial {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

/* CTA final : légèrement plus compact */
.contact-vip {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* Mobile : encore plus compact */
@media (max-width: 768px) {
  .solution-problem,
  .solution-steps,
  .case-stats,
  .case-testimonial,
  .contact-vip {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* =====================================================
   HEADER — STRUCTURE BLOQUÉE (FINAL)
===================================================== */
.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    height: 72px;
    min-height: 72px;
}

.header-container {
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
}

.header-nav a {
    flex-shrink: 0;
}

@media (min-width: 1600px) {
    .header-container {
        padding-left: 48px;
        padding-right: 48px;
    }
}


.hero-enterprise--solution{
  background-image: url("../../images/etude-cas.jpg");
  background-size: cover;
  background-position: center;
}

.hero-enterprise--solution .hero-overlay{
  background:
    linear-gradient(
      120deg,
      rgba(15,63,61,.32),
      rgba(0,0,0,.16)
    );
}

