/* ══════════════════════════════════════
   SAVOIR-FAIRE — ONGLETS D'EXPERTISE (styles spécifiques à cette page)
   ══════════════════════════════════════ */
:root {
  --mint:      #00c96e;
  --mint-dark: #00a85c;
  --black:     #0c0c0c;
  --card-dark: #16181b;
  --ease:      cubic-bezier(.4,0,.2,1);
}

/* Hero photo un peu moins assombri ici pour laisser passer les couleurs du coucher de soleil */
.page-hero--photo::before {
  background: linear-gradient(180deg, rgba(13,13,13,0.25) 0%, rgba(13,13,13,0.8) 100%);
}

/* Fond sombre sur toute la largeur : le panneau interne est limité en
   largeur (voir .tab-panel.active) sur très grands écrans, ce fond évite
   que le blanc de la page n'apparaisse sur les côtés à ce moment-là. */
#expertise-tabs { background: var(--card-dark); }

/* ── TAB STRIP ── */
.tab-strip {
  background: var(--black);
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(255,255,255,.06);
  scrollbar-width: none;
}
.tab-strip::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1; min-width: 130px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 18px 10px;
  cursor: pointer; background: none; border: none;
  border-bottom: 3px solid transparent;
  transition: all .25s var(--ease);
  overflow: hidden;
}
.tab-num {
  font-size: .62rem; font-weight: 700; letter-spacing: 2px;
  color: rgba(255,255,255,.28); transition: color .25s;
}
.tab-label {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.2rem; letter-spacing: 1.5px;
  color: rgba(255,255,255,.4); text-transform: uppercase;
  transition: color .25s;
  white-space: nowrap;
  text-align: center; line-height: 1.15;
}
.tab-btn:hover .tab-label { color: #e0e0e0; }
.tab-btn.active { border-bottom-color: var(--mint); }
.tab-btn.active .tab-num   { color: var(--mint); }
.tab-btn.active .tab-label { color: #ffffff; }

/* ── PANELS ── */
.tab-panel { display: none; }
.tab-panel.active {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  max-width: 1600px;
  margin-inline: auto;
  align-items: start;
  background: var(--card-dark);
  animation: fadeUp .3s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ratio fixe (et non une hauteur en px) : le cadrage reste identique quelle
   que soit la largeur d'écran, au lieu de se déformer/zoomer en continu. */
.panel-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--card-dark);
}
.panel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-img-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 50%, var(--card-dark) 100%);
}
/* Au-delà de la largeur où le panneau se centre (voir .tab-panel.active),
   un dégradé symétrique côté gauche fond la photo dans la bande sombre. */
@media (min-width: 1600px) {
  .panel-img-overlay {
    background: linear-gradient(90deg, var(--card-dark) 0%, transparent 12%, transparent 50%, var(--card-dark) 100%);
  }
}

/* Cadrages spécifiques à certaines photos (desktop) */
#panel-0 .panel-img img { object-position: center 15%; }
#panel-2 .panel-img img { object-position: center 65%; }
#panel-4 .panel-img img { transform: scale(1.22); object-position: 60% 75%; }

.panel-content {
  background: var(--card-dark); padding: 68px 60px;
  display: flex; flex-direction: column; justify-content: center;
}

#expertise-tabs .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mint); margin-bottom: 14px;
}
#expertise-tabs .tag::before { content: ''; width: 24px; height: 2px; background: var(--mint); display: inline-block; }

.panel-content h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2.9rem; letter-spacing: 1px; text-transform: uppercase;
  color: #ffffff; margin-bottom: 20px; line-height: 1.05;
}
.panel-content p { color: #a7aab0; font-size: 1.04rem; font-weight: 300; margin-bottom: 14px; line-height: 1.7; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill-row .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  font-size: .82rem; font-weight: 600;
  background: rgba(0,201,110,.13); color: var(--mint);
}
.pill-row .pill::before { content: '✓'; }

/* ── QUOTE ── */
.quote-strip { background: var(--mint); padding: 56px 24px; text-align: center; }
.quote-strip blockquote {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2.4rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--black); max-width: 820px; margin: 0 auto; line-height: 1.2;
}
.quote-strip cite {
  display: block; margin-top: 12px; font-style: normal;
  font-size: .8rem; font-weight: 700; letter-spacing: 1px;
  opacity: .5; text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .tab-panel.active { grid-template-columns: 1fr; }
  .panel-img { aspect-ratio: 4/3; }
  /* Le cadre mobile est bien plus court qu'en desktop : ces 3 photos ont
     besoin d'un cadrage propre pour ne pas couper la tête. */
  #panel-0 .panel-img img { object-position: center 8%; }
  #panel-2 .panel-img img { object-position: center 30%; }
  #panel-4 .panel-img img { transform: scale(1.1); object-position: 55% 52%; }
  .panel-content { padding: 38px 26px; min-height: 720px; }
  .tab-btn { min-width: 88px; padding: 12px 6px; }
  .tab-label {
    font-size: .86rem; letter-spacing: .5px;
    white-space: normal; word-break: normal;
    overflow-wrap: break-word; max-width: 100%;
  }
  .panel-content h2 { font-size: 2.1rem; }
  .panel-content p { font-size: .98rem; }
  .quote-strip blockquote { font-size: 1.7rem; }
}
