/* ============================================================
   §5 — CHIRURGIEN
   Fond : #2A3836 — texte blanc / vert clair
   Layout : portrait gauche / texte droite
   v2.0 — spans titre animés + order mobile credentials
   ============================================================ */

.chirurgien-section {
  background: #2A3836;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 6vw, 100px);
  overflow: hidden;
  position: relative;
}

/* Halo radial arrière-plan */
.chirurgien-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74,107,97,0.15) 0%, transparent 70%);
  top: 40%;
  right: 10%;
  transform: translateY(-50%);
  pointer-events: none;
}

.chirurgien-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ——— PORTRAIT ——— */
.chirurgien-portrait-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateX(-28px);
}

/* Halo derrière le bloc image */
.chirurgien-portrait-halo {
  position: relative;
}

.chirurgien-portrait-halo::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 16px;
  background: radial-gradient(ellipse at center, rgba(74,107,97,0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.chirurgien-portrait-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
  z-index: 1;
}

/* Les deux images superposées */
.chirurgien-portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.6s ease;
}

.chirurgien-img-noir   { opacity: 1; z-index: 2; }
.chirurgien-img-blouse { opacity: 0; z-index: 1; }

.chirurgien-portrait-frame:hover .chirurgien-img-noir   { opacity: 0; }
.chirurgien-portrait-frame:hover .chirurgien-img-blouse { opacity: 1; }

/* ——— Point pulsant ——— */
.chirurgien-portrait-dot {
  position: absolute;
  bottom: 72px;
  right: 16px;
  z-index: 10;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transition: opacity 0.3s;
}

.chirurgien-portrait-dot::before,
.chirurgien-portrait-dot::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
}

.chirurgien-portrait-dot::before {
  inset: 0;
  animation: dot-pulse 2s ease-out infinite;
  opacity: 0;
}

.chirurgien-portrait-dot::after {
  width: 7px;
  height: 7px;
  top: 1.5px;
  left: 1.5px;
}

@keyframes dot-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0; }
}

.chirurgien-portrait-frame:hover .chirurgien-portrait-dot {
  opacity: 0;
}

/* ——— Tag nom ——— */
.chirurgien-portrait-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20,34,32,0.9);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
  border-radius: 0 0 10px 10px;
}

.chirurgien-portrait-tag span { display: block; color: #FFFFFF; }

.chirurgien-portrait-tag span:first-child {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.chirurgien-portrait-tag span:last-child {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #CAD5D3;
  text-transform: uppercase;
}

/* ——— Credentials ——— */
.chirurgien-credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
}

.chirurgien-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(13px, 1.15vw, 15px);
  color: #CAD5D3;
  line-height: 1.5;
}

.chirurgien-credentials li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ——— TEXTE ——— */
.chirurgien-text {
  padding-top: 8px;
}

.chirurgien-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.22em;
  color: #4A6B61;
  text-transform: uppercase;
  margin: 0 0 24px;
  opacity: 0;
  transform: translateY(12px);
}

/* ——— Titre splitté en 3 spans ——— */
.chirurgien-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chirurgien-title-part1,
.chirurgien-title-part2,
.chirurgien-title-part3 {
  display: block;
  opacity: 0;
  transform: translateY(18px);
}

.chirurgien-title--light {
  font-weight: 300;
  color: #CAD5D3;
}

.chirurgien-bio {
  margin: 0 0 24px;
  opacity: 0;
  transform: translateY(14px);
}

.chirurgien-bio p {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.75;
  color: rgba(202,213,211,0.82);
  margin: 0 0 18px;
}

.chirurgien-bio p:last-child { margin: 0; }

.chirurgien-bio .ql-tm { color: #CAD5D3; }

.chirurgien-quote {
  border-left: 2px solid #4A6B61;
  margin: 0 0 28px;
  padding: 14px 0 14px 28px;
  opacity: 0;
  transform: translateY(14px);
}

.chirurgien-quote p {
  font-family: 'Rajdhani', sans-serif;
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.chirurgien-quote cite {
  font-family: 'Rajdhani', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A6B61;
}

.chirurgien-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1.5px solid #4A6B61;
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: color 0.25s ease, gap 0.25s ease;
}

.chirurgien-cta:hover {
  color: #CAD5D3;
  gap: 16px;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 900px) {
  .chirurgien-inner {
    grid-template-columns: 1fr;
  }

  /* Portrait col perd le translateX initial, géré par JS */
  .chirurgien-portrait-col {
    max-width: 380px;
    margin: 0 auto;
    transform: translateX(0);
    /* ordre : portrait (1) → credentials (2) → texte suit naturellement */
    order: 1;
  }

  /* Credentials reste dans portrait-col mais en order 2 visuel */
  /* La colonne texte vient après en order 3 */
  .chirurgien-text {
    order: 2;
  }

  /*
    Sur mobile, le scénario place credentials (step 2) AVANT eyebrow (step 3).
    Le bloc credentials est physiquement dans .chirurgien-portrait-col.
    L'ordre DOM naturel est déjà : portrait-col (portrait + credentials) → texte.
    Aucun reorder CSS supplémentaire nécessaire — le JS anime dans l'ordre voulu.
  */
}

@media (max-width: 480px) {
  .chirurgien-section {
    padding: 64px 20px;
  }
}