/* HADS V23 — Expertise premium visual storytelling + FR */
:root{--hv:#a45bc3;--hvb:rgba(164,91,195,.38)}
.hads-vcard{position:relative!important;overflow:hidden!important;isolation:isolate}
.hads-vcard.hads-vrow{display:grid!important;grid-template-columns:minmax(0,1fr) 122px!important;gap:18px!important;align-items:center!important}
.hads-vcard.hads-vrow>.hads-vimg{grid-column:2;grid-row:1 / span 12}
.hads-vimg{position:relative;width:122px;min-width:122px;height:88px;border-radius:20px;overflow:hidden;border:1px solid rgba(220,171,239,.5);background:#1d1423;box-shadow:0 14px 30px rgba(18,8,24,.18),0 0 26px rgba(164,91,195,.18)}
.hads-vimg:before,.hads-vimg:after{content:"";position:absolute;top:0;bottom:0;width:26px;z-index:2;pointer-events:none}
.hads-vimg:before{left:0;background:linear-gradient(90deg,rgba(118,49,144,.72),transparent)}
.hads-vimg:after{right:0;background:linear-gradient(270deg,rgba(118,49,144,.72),transparent)}
.hads-vimg img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.02);filter:saturate(.94) contrast(1.03);transition:.35s ease}
.hads-vcard:hover .hads-vimg img{transform:scale(1.075);filter:saturate(1.04) contrast(1.05)}
.hads-vcard:after{content:"";position:absolute;right:68px;top:50%;width:115px;height:115px;transform:translateY(-50%);border-radius:50%;background:radial-gradient(circle,var(--hvb),transparent 68%);filter:blur(13px);opacity:.45;z-index:0;pointer-events:none}
.hads-vcard>*:not(.hads-vimg){position:relative;z-index:3}
.hads-vwide{padding-right:158px!important;min-height:126px!important}
.hads-vwide>.hads-vimg{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:126px;min-width:126px;height:92px}
.process-card.hads-vcard,.dev-card.hads-vcard,.source-card.hads-vcard,.production-card.hads-vcard,.quality-card.hads-vcard,.delivery-card.hads-vcard{min-height:138px}
.flow-step.hads-vcard,.co-step.hads-vcard{padding-right:132px!important;min-height:104px!important}
.flow-step.hads-vcard>.hads-vimg,.co-step.hads-vcard>.hads-vimg{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:102px;min-width:102px;height:72px;border-radius:16px}

/* Premium Expertise dropdown with image thumbnails */
.hads-exp-rich a{display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;gap:13px!important;align-items:center!important;min-height:74px!important;padding:8px 16px 8px 9px!important}
.hads-exp-thumb{width:56px;height:56px;border-radius:15px;overflow:hidden;position:relative;border:1px solid rgba(174,94,205,.28);box-shadow:0 0 18px rgba(164,91,195,.12)}
.hads-exp-thumb:after{content:"";position:absolute;inset:0;box-shadow:inset 13px 0 16px rgba(113,45,139,.3),inset -13px 0 16px rgba(113,45,139,.3)}
.hads-exp-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hads-exp-label{font-weight:500;line-height:1.2}

/* keep imagery secondary and elegant on text-heavy cards */
.difference-item.hads-vcard,.connection-item.hads-vcard,.ready-item.hads-vcard,.partner-item.hads-vcard,.balance-item.hads-vcard,.output-item.hads-vcard,.principle.hads-vcard,.system-item.hads-vcard,.approach-item.hads-vcard,.final-item.hads-vcard,.proximity-item.hads-vcard,.co-result-item.hads-vcard,.tech-item.hads-vcard,.material-item.hads-vcard,.factory-item.hads-vcard,.control-item.hads-vcard,.logistics-item.hads-vcard{padding-right:122px!important;min-height:102px}
.difference-item>.hads-vimg,.connection-item>.hads-vimg,.ready-item>.hads-vimg,.partner-item>.hads-vimg,.balance-item>.hads-vimg,.output-item>.hads-vimg,.principle>.hads-vimg,.system-item>.hads-vimg,.approach-item>.hads-vimg,.final-item>.hads-vimg,.proximity-item>.hads-vimg,.co-result-item>.hads-vimg,.tech-item>.hads-vimg,.material-item>.hads-vimg,.factory-item>.hads-vimg,.control-item>.hads-vimg,.logistics-item>.hads-vimg{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:92px;min-width:92px;height:68px;border-radius:14px}

@media(max-width:900px){
 .hads-vcard.hads-vrow{grid-template-columns:minmax(0,1fr) 96px!important;gap:12px!important}
 .hads-vimg{width:96px;min-width:96px;height:72px}
 .hads-vwide{padding-right:124px!important}.hads-vwide>.hads-vimg{width:98px;min-width:98px;height:72px;right:12px}
}
@media(max-width:620px){
 .hads-vcard.hads-vrow{grid-template-columns:1fr!important}
 .hads-vcard.hads-vrow>.hads-vimg,.hads-vwide>.hads-vimg,.flow-step.hads-vcard>.hads-vimg,.co-step.hads-vcard>.hads-vimg,
 .difference-item>.hads-vimg,.connection-item>.hads-vimg,.ready-item>.hads-vimg,.partner-item>.hads-vimg,.balance-item>.hads-vimg,.output-item>.hads-vimg,.principle>.hads-vimg,.system-item>.hads-vimg,.approach-item>.hads-vimg,.final-item>.hads-vimg,.proximity-item>.hads-vimg,.co-result-item>.hads-vimg,.tech-item>.hads-vimg,.material-item>.hads-vimg,.factory-item>.hads-vimg,.control-item>.hads-vimg,.logistics-item>.hads-vimg{
  position:relative!important;right:auto!important;top:auto!important;transform:none!important;width:100%!important;min-width:0!important;height:128px!important;grid-column:1!important;grid-row:auto!important;margin-top:10px
 }
 .hads-vwide,.flow-step.hads-vcard,.co-step.hads-vcard,.difference-item.hads-vcard,.connection-item.hads-vcard,.ready-item.hads-vcard,.partner-item.hads-vcard,.balance-item.hads-vcard,.output-item.hads-vcard,.principle.hads-vcard,.system-item.hads-vcard,.approach-item.hads-vcard,.final-item.hads-vcard,.proximity-item.hads-vcard,.co-result-item.hads-vcard,.tech-item.hads-vcard,.material-item.hads-vcard,.factory-item.hads-vcard,.control-item.hads-vcard,.logistics-item.hads-vcard{padding-right:inherit!important}
 .hads-exp-rich a{grid-template-columns:48px minmax(0,1fr)!important;min-height:64px!important}.hads-exp-thumb{width:48px;height:48px}
}


/* =========================================================
   HADS V24 — REAL MANUFACTURING FLOW
   ========================================================= */
.hads-real-process{
  background:linear-gradient(180deg,#f7f6f8 0%,#f2eff4 100%);
  padding:96px 0 104px;
}
.hads-real-process .production-header{
  max-width:920px;
  margin-bottom:42px;
}
.hads-real-process .production-header h2{
  font-size:clamp(42px,4.7vw,68px);
  line-height:1.03;
  letter-spacing:-.035em;
  margin:12px 0 18px;
}
.hads-real-process .production-header p{
  max-width:780px;
  font-size:16px;
  line-height:1.7;
  color:#68626c;
}
.real-process-track{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px 20px;
  position:relative;
}
.real-process-step{
  position:relative;
  min-height:318px;
  padding:16px 16px 20px;
  border-radius:24px;
  background:rgba(255,255,255,.95);
  border:1px solid rgba(72,50,79,.10);
  box-shadow:0 15px 35px rgba(37,18,45,.07);
  overflow:visible;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.real-process-step:hover{
  transform:translateY(-4px);
  border-color:rgba(163,92,194,.28);
  box-shadow:0 20px 42px rgba(37,18,45,.11);
}
.real-process-step:not(:nth-child(3n))::after{
  content:"→";
  position:absolute;
  right:-18px;
  top:50%;
  transform:translateY(-50%);
  z-index:8;
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:50%;
  background:#fff;
  border:1px solid rgba(163,92,194,.22);
  color:#8e50a9;
  font-weight:900;
  box-shadow:0 8px 20px rgba(55,28,63,.08);
}
.real-process-media{
  position:relative;
  height:164px;
  border-radius:18px;
  overflow:hidden;
  background:#211628;
  margin-bottom:17px;
  border:1px solid rgba(179,119,203,.20);
  box-shadow:0 10px 26px rgba(25,13,31,.11);
}
.real-process-media::before,
.real-process-media::after{
  content:"";
  position:absolute;
  z-index:2;
  top:0;bottom:0;
  width:34px;
  pointer-events:none;
}
.real-process-media::before{
  left:0;
  background:linear-gradient(90deg,rgba(111,45,139,.60),transparent);
}
.real-process-media::after{
  right:0;
  background:linear-gradient(270deg,rgba(111,45,139,.60),transparent);
}
.real-process-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:saturate(.92) contrast(1.03);
  transform:scale(1.015);
  transition:transform .35s ease,filter .35s ease;
}
.real-process-step:hover .real-process-media img{
  transform:scale(1.06);
  filter:saturate(1.02) contrast(1.04);
}
.real-process-index{
  position:absolute;
  top:28px;left:28px;
  z-index:4;
  min-width:42px;height:28px;
  padding:0 9px;
  display:grid;place-items:center;
  border-radius:999px;
  background:rgba(32,20,38,.80);
  border:1px solid rgba(255,255,255,.26);
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.10em;
  backdrop-filter:blur(8px);
}
.real-process-step h3{
  margin:0 0 7px;
  font-size:21px;
  line-height:1.15;
  color:#242127;
}
.real-process-step p{
  margin:0;
  font-size:12px;
  line-height:1.55;
  color:#777079;
}
.operation-badge{
  display:inline-flex;
  margin:0 0 8px;
  padding:5px 8px;
  border-radius:999px;
  background:#f1e5f6;
  color:#7c4396;
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
}
.real-process-step.key-operation{
  border-color:rgba(160,90,190,.24);
  background:linear-gradient(180deg,#fff 0%,#fcf8fd 100%);
}
.real-process-step.key-operation .real-process-media{
  box-shadow:0 10px 28px rgba(117,54,142,.15);
}
.real-process-step.final-step{
  background:linear-gradient(180deg,#fff,#f8f4fa);
  border-color:rgba(128,80,147,.24);
}
.real-process-end{
  margin-top:26px;
  padding:20px 24px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(105deg,#2d1d35,#6d467d);
  box-shadow:0 16px 34px rgba(54,27,63,.16);
}
.real-process-end span{
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
  color:#d7b3e6;
}
.real-process-end strong{
  font-size:15px;
  text-align:right;
}
@media(max-width:1050px){
  .real-process-track{grid-template-columns:repeat(2,minmax(0,1fr))}
  .real-process-step:not(:nth-child(3n))::after{display:none}
  .real-process-step:nth-child(odd)::after{
    content:"→";display:grid;position:absolute;right:-18px;top:50%;transform:translateY(-50%);
    width:34px;height:34px;border-radius:50%;place-items:center;background:#fff;border:1px solid rgba(163,92,194,.22);color:#8e50a9;font-weight:900;z-index:8
  }
}
@media(max-width:680px){
  .hads-real-process{padding:72px 0 78px}
  .real-process-track{grid-template-columns:1fr;gap:16px}
  .real-process-step{min-height:auto}
  .real-process-step::after{display:none!important}
  .real-process-media{height:188px}
  .real-process-end{flex-direction:column;align-items:flex-start}
  .real-process-end strong{text-align:left}
}


/* HADS V25 — selected external industrial reference photos */
.real-process-media img[src^="https://images.pexels.com"]{
  object-position:center 46%;
}
.web-photo-note{
  position:absolute;
  top:28px;
  right:28px;
  z-index:4;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:#74418a;
  border:1px solid rgba(160,90,190,.22);
  font-size:8px;
  font-weight:900;
  letter-spacing:.11em;
  backdrop-filter:blur(8px);
}
@media(max-width:680px){
  .web-photo-note{top:27px;right:27px}
}


/* =========================================================
   HADS V26 — ENRICHED REAL MANUFACTURING FLOW
   ========================================================= */
.hads-real-process-v26 .expertise-step{
  background:linear-gradient(180deg,#fff,#fbf8fc);
}
.hads-real-process-v26 .corporate-step{
  border-color:rgba(95,114,146,.20);
  background:linear-gradient(180deg,#fff,#f8fafc);
}
.hads-real-process-v26 .reinforced-step{
  border-color:rgba(142,75,167,.28);
  background:linear-gradient(180deg,#fff,#fbf7fd);
}
.hads-real-process-v26 .audit-step{
  background:linear-gradient(180deg,#fff,#faf9fb);
  border-color:rgba(81,69,89,.18);
}
.hads-real-process-v26 .real-process-media{
  height:170px;
}
.hads-real-process-v26 .real-process-media img{
  object-position:center center;
}
.hads-real-process-v26 .operation-badge{
  max-width:100%;
  white-space:normal;
  line-height:1.15;
}
.real-process-values{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:28px;
}
.real-process-values>div{
  padding:16px 17px;
  border-radius:17px;
  background:#fff;
  border:1px solid rgba(144,91,163,.16);
  box-shadow:0 10px 25px rgba(34,16,42,.05);
}
.real-process-values strong{
  display:block;
  color:#6f3d84;
  font-size:13px;
  margin-bottom:4px;
}
.real-process-values span{
  display:block;
  color:#7a727d;
  font-size:10px;
  line-height:1.45;
}
@media(max-width:900px){
  .real-process-values{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){
  .real-process-values{grid-template-columns:1fr}
  .hads-real-process-v26 .real-process-media{height:196px}
}


/* =========================================================
   HADS V27 — DEVELOPMENT CARDS + MANUFACTURING REBALANCE
   ========================================================= */

/* Development: the four real development images belong here. */
.dev-grid-v27{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  border:0!important;
}
.dev-card-v27{
  padding:0!important;
  min-height:0!important;
  overflow:hidden;
  border:1px solid rgba(99,71,109,.12)!important;
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 34px rgba(43,24,50,.06);
}
.dev-card-v27:first-child{border-left:1px solid rgba(99,71,109,.12)!important}
.dev-card-v27:hover{transform:translateY(-3px)!important;background:#fff!important;box-shadow:0 18px 42px rgba(43,24,50,.10)!important}
.dev-card-media{
  height:205px;
  overflow:hidden;
  position:relative;
  background:#211629;
}
.dev-card-media::before,.dev-card-media::after{
  content:"";position:absolute;top:0;bottom:0;width:34px;z-index:2;pointer-events:none
}
.dev-card-media::before{left:0;background:linear-gradient(90deg,rgba(111,45,139,.52),transparent)}
.dev-card-media::after{right:0;background:linear-gradient(270deg,rgba(111,45,139,.52),transparent)}
.dev-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.dev-card-v27:hover .dev-card-media img{transform:scale(1.045)}
.dev-card-body{padding:22px 22px 25px}
.dev-card-v27 .dev-number{display:block;margin-bottom:10px}
.dev-card-v27 h3{margin:0 0 8px!important}
.dev-card-v27 p{margin:0!important;line-height:1.6}

/* Manufacturing: concise cards with a stronger visual message. */
.hads-real-process-v27 .real-process-step{min-height:314px}
.hads-real-process-v27 .real-process-media{height:172px}
.hads-real-process-v27 .real-process-step p{max-width:95%}
.hads-real-process-v27 .corporate-step{
  background:linear-gradient(180deg,#fff,#f8fafc);
  border-color:rgba(86,107,135,.20);
}
.hads-real-process-v27 .reinforced-step{
  background:linear-gradient(180deg,#fff,#fbf8fc);
  border-color:rgba(147,82,173,.25);
}

/* Replace the two legacy production visuals by contextual project images. */
.factory-visual{
  background:
    linear-gradient(0deg,rgba(12,12,15,.34),transparent 65%),
    url("../images/expertise/process/operation-standard-2.webp") center/cover no-repeat!important;
}
.technical-operation-photo{
  background:
    linear-gradient(0deg,rgba(10,10,13,.44),transparent 62%),
    url("../images/expertise/process/operation-delicate.webp") center/cover no-repeat!important;
  border-radius:26px;
}
.factory-visual{border-radius:26px;overflow:hidden}

@media(max-width:1100px){
  .dev-grid-v27{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:650px){
  .dev-grid-v27{grid-template-columns:1fr!important}
  .dev-card-media{height:220px}
}


/* =========================================================
   HADS V28 — targeted Manufacturing corrections only
   ========================================================= */

/* Requested first missing image: meticulous checklist control. */
.technical-operation-photo{
  background:
    linear-gradient(0deg,rgba(10,10,13,.44),transparent 62%),
    url("../images/expertise/process/meticulous-checklist-control.webp") center/cover no-repeat!important;
  border-radius:26px;
}

/* Requested last photo-less zone: focus / precision visual on CMT card. */
.flex-card-focus-v28{
  position:relative;
  overflow:hidden;
  min-height:310px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:#fff!important;
  background:
    linear-gradient(0deg,rgba(25,15,30,.82) 0%,rgba(25,15,30,.48) 48%,rgba(25,15,30,.10) 100%),
    url("../images/expertise/process/focus-detail-v28.webp") center 48%/cover no-repeat!important;
}
.flex-card-focus-v28::before,
.flex-card-focus-v28::after{
  content:"";
  position:absolute;
  top:0;bottom:0;
  width:46px;
  z-index:1;
  pointer-events:none;
}
.flex-card-focus-v28::before{left:0;background:linear-gradient(90deg,rgba(112,46,139,.55),transparent)}
.flex-card-focus-v28::after{right:0;background:linear-gradient(270deg,rgba(112,46,139,.55),transparent)}
.flex-card-focus-v28 > *{position:relative;z-index:2}
.flex-card-focus-v28 span{color:#dcbce8!important}
.flex-card-focus-v28 h3,
.flex-card-focus-v28 p{color:#fff!important}


/* =========================================================
   HADS V29 — CORRECTION EXACTE DES 2 ZONES VIDES
   Les URLs sont relatives au dossier /css => ../images/...
   ========================================================= */

/* 1) PREMIÈRE grande zone vide "Organisation industrielle"
      = photo contrôle minutieux suivant checklist */
.factory-visual{
  background:
    linear-gradient(0deg,rgba(12,12,15,.36),rgba(12,12,15,.03) 64%),
    url("../images/expertise/process/meticulous-checklist-control.webp") center 42%/cover no-repeat!important;
  border-radius:28px;
  overflow:hidden;
}

/* 2) DERNIÈRE zone image de "Précision industrielle"
      = photo focus détail */
.technical-operation-photo{
  background:
    linear-gradient(0deg,rgba(10,10,13,.46),transparent 62%),
    url("../images/expertise/process/focus-detail-v28.webp") center 48%/cover no-repeat!important;
  border-radius:28px;
  overflow:hidden;
}

/* Keep the existing text blocks readable over the new factory image. */
.factory-box{
  z-index:2;
}
.factory-visual::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(76,35,91,.16),transparent 20%,transparent 80%,rgba(76,35,91,.16));
  z-index:1;
}

/* CMT returns to its original clean style: the focus image belongs to Precision industrielle. */
.flex-card-focus-v28{
  background:#fff!important;
  color:inherit!important;
  min-height:0;
}
.flex-card-focus-v28::before,
.flex-card-focus-v28::after{
  display:none!important;
}
.flex-card-focus-v28 h3,
.flex-card-focus-v28 p{
  color:inherit!important;
}
