/* ============================================================
   FUSION — EXPERTISE.CSS
============================================================ */

/* ── INTRO (bande à motif) ────────────────────────────────── */
.exp-intro { position: relative; padding: 62px 0 54px; text-align: center; overflow: hidden; }
.exp-intro::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background: url('/assets/img/bg-expertises-lines.png') center top / auto 100% repeat-x;
}
.exp-intro .container { position: relative; max-width: 1100px; }
.exp-intro .sec-sub { margin-top: 0; font-size: clamp(17px, 1.15vw, 22px); }
.exp-intro .sec-text { color: var(--f-white); font-size: clamp(16px, 1.2vw, 21px); line-height: 1.65; max-width: 1000px; margin-left: auto; margin-right: auto; margin-top: 30px; }

/* ── PILLS DE NAVIGATION ──────────────────────────────────── */
.exp-explore { padding: 50px 0 40px; }
.exp-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin: 34px auto 0; max-width: 940px; }
.exp-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #3a3a3a; border-radius: 6px;
  padding: 9px 18px 9px 10px;
  font-family: var(--f-font-body); font-size: clamp(14px, .98vw, 17px); color: var(--f-white);
  transition: border-color .25s ease, color .25s ease, background .25s ease, opacity .4s ease, transform .4s ease;
}
.exp-pill img { width: 26px; height: 26px; border-radius: 5px; }
.exp-pill:hover, .exp-pill.active { border-color: var(--f-blue); color: var(--f-blue); }

/* ── LIGNES D'EXPERTISE ───────────────────────────────────── */
.exp-details { padding: 40px 0 40px; }
.exp-row { display: flex; align-items: center; justify-content: space-between; gap: 6%; padding: 90px 7%; scroll-margin-top: 110px; }
.exp-row.is-reverse { flex-direction: row-reverse; }
.exp-row-text { flex: 0 0 46%; }
.exp-row-img { flex: 0 0 40%; }
.exp-row-img img { width: 100%; height: auto; }
.exp-row-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.exp-row-head h2 { font-family: var(--f-font-body); font-weight: 300; text-transform: uppercase; color: var(--f-blue); font-size: clamp(18px, 1.25vw, 23px); }
.exp-row-tagline { display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 1.25vw, 23px); color: var(--f-white); margin-bottom: 26px; }
.exp-row-tagline .check { flex: none; color: var(--f-blue); }
.exp-row-desc { color: var(--f-silver); line-height: 1.8; margin-bottom: 34px; }
.exp-row-tags .f-tag { color: #c4c4c4; border-color: #3a3a3a; font-weight: 300; font-size: 13px; }

/* ── NOTRE APPROCHE ───────────────────────────────────────── */
.page-expertise .page-hero { height: clamp(250px, 20.6vw, 420px); }
.exp-approach { padding: 90px 0 130px; text-align: center; }
.exp-approach-title {
  font-family: var(--f-font-title); font-weight: 700; text-transform: uppercase; color: var(--f-white);
  font-size: clamp(20px, 1.65vw, 31px); line-height: 1.25; margin-top: 18px;
}
.exp-approach-box {
  max-width: 1120px; margin: 60px auto 0;
  background: #1e1e1e; border-radius: 16px;
  padding: 52px 70px;
  font-size: clamp(16px, 1.1vw, 20px); line-height: 1.6; color: var(--f-white);
}

/* Schéma en serpent : 1 → 4 puis 5 → 8 (de droite à gauche) */
.exp-flow { --gap: clamp(28px, 2.4vw, 46px); margin: 90px auto 0; max-width: 1110px; }
.exp-flow-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.exp-flow-row + .exp-flow-row { margin-top: var(--gap); }
.exp-flow-cell { position: relative; display: flex; }
.exp-flow-cell .exp-block { width: 100%; }

.exp-block {
  position: relative; background: #141414; border: 1px solid #141414; border-radius: 18px;
  padding: 34px 14px 36px; text-align: center; color: #fff;
  transition: background .5s ease, border-color .5s ease, color .5s ease, box-shadow .5s ease;
}
.exp-block-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 2px solid var(--f-blue); border-radius: 50%;
  font-family: var(--f-font-title); font-size: 12px; color: var(--f-blue);
  transition: border-color .5s ease, color .5s ease;
}
.exp-block h3 { font-family: var(--f-font-body); font-weight: 300; text-transform: uppercase; font-size: clamp(14px, 1.05vw, 18px); line-height: 1.25; min-height: 2.5em; margin: 16px 0 24px; display: flex; align-items: center; justify-content: center; }
.exp-block-tags { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.exp-block-tags .tag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 7px; }
.exp-block-tags .f-tag { font-size: clamp(12px, .85vw, 15px); margin: 0; padding: 3px .6em; white-space: nowrap; transition: border-color .5s ease, color .5s ease; }

/* État « allumé » (par défaut, si le JS ne tourne pas) : cadre blanc */
.exp-block { background: #000; border-color: #fff; }
.exp-flow:not(.is-armed) .exp-block.is-final, .exp-block.is-current { background: var(--f-blue); border-color: var(--f-blue); }
.exp-flow:not(.is-armed) .exp-block.is-final .exp-block-num, .exp-block.is-current .exp-block-num { border-color: #05345c; color: #05345c; }
.exp-flow:not(.is-armed) .exp-block.is-final .f-tag, .exp-block.is-current .f-tag { border-color: #0a5a96; color: #05345c; }

/* Flèches (chevrons) entre les blocs */
.flow-arrow { position: absolute; top: 50%; right: calc(var(--gap) / -2); width: 30px; margin-top: -9px; transform: translateX(50%); color: #fff; line-height: 0; transition: color .4s ease, opacity .4s ease; }
.flow-arrow svg { display: block; width: 100%; height: auto; }
.flow-arrow.is-back { transform: translateX(50%) scaleX(-1); }
.flow-arrow.is-entry { right: auto; left: calc(var(--gap) / -2); transform: translateX(-50%); }

/* Mode animé : tout est éteint au départ, puis s'allume de 1 à 8 et reste allumé */
.exp-flow.is-armed .exp-block:not(.is-lit):not(.is-current) { background: #141414; border-color: #141414; color: rgba(255,255,255,.34); }
.exp-flow.is-armed .exp-block:not(.is-lit):not(.is-current) .exp-block-num { border-color: #0a4a75; color: #0a4a75; }
.exp-flow.is-armed .exp-block:not(.is-lit):not(.is-current) .f-tag { border-color: #262626; color: rgba(255,255,255,.28); }
.exp-flow.is-armed .flow-arrow:not(.is-lit) { color: #3a3a3a; }
.exp-block.is-current { box-shadow: 0 0 40px rgba(0,155,243,.7); }

@media (max-width: 991px) {
  .exp-flow { padding-left: 0; margin-top: 60px; }
  .exp-flow-row { display: contents; }
  .exp-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .exp-flow-row + .exp-flow-row { margin-top: 0; }
  .exp-flow-cell { order: var(--n); }
  .flow-arrow { display: none; }
}
@media (max-width: 575px) {
  .exp-flow { grid-template-columns: 1fr; }
  .exp-approach-box { padding: 30px 24px; margin-top: 40px; }
}
