/* =========================================================
   Contessa Med — page « Amira » (<langue>/amira/)
   S'ajoute à style.css (jetons, boutons, en-tête, pied de page, .ba).
   ========================================================= */

/* ---------- (a) Ouverture ---------- */
.am-hero { padding: 48px 0 96px; position: relative; overflow: hidden; }
.am-hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%;
  inset-inline-start: -260px; top: -200px; pointer-events: none;
  background: radial-gradient(circle, rgba(230, 198, 126, .26), transparent 65%);
}
.am-hero-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.am-hero-photo { margin: 0; justify-self: center; width: min(440px, 100%); }
.am-hero-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 28%;
  border-radius: 999px 999px 24px 24px; outline: 1px solid var(--gold); outline-offset: 14px;
  box-shadow: 0 40px 80px -40px rgba(17, 27, 58, .5);
}
.am-hero h1 { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1.2rem; }
.am-name {
  align-self: flex-start; direction: ltr; padding: .08em .2em 0 0;
  font-family: var(--f-script); font-weight: 400; font-size: clamp(4.2rem, 9vw, 6.6rem); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.am-role { font-family: var(--f-body); font-size: .84rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); line-height: 1.6; }
:lang(ar) .am-role, :lang(zh) .am-role { letter-spacing: .02em; font-size: 1rem; }
.am-traits { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.am-traits li { display: flex; gap: 14px; align-items: flex-start; }
.am-traits svg {
  flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #fff;
  border: 1px solid var(--gold); fill: none; stroke: var(--gold-dark); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.am-traits h2 { font-size: 1.3rem; margin: 0 0 .2em; }
.am-traits p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- (b) Frise « ascenseur » ----------
   Colonne 1 : cabine collante qui affiche l'étape en cours.
   Colonne 2 : les étapes, reliées par un rail qui se remplit d'or au défilement. */
.tl { --lift: 150px; --gap: 56px; position: relative; display: grid; grid-template-columns: var(--lift) 1fr; column-gap: var(--gap); }
.tl-lift {
  position: sticky; top: 112px; align-self: start; grid-column: 1; grid-row: 1;
  padding: 18px 12px 16px; border-radius: 18px; text-align: center;
  background: radial-gradient(ellipse at top, var(--navy-soft), var(--navy-deep) 75%); color: var(--ivory);
  border: 1px solid var(--gold); box-shadow: var(--shadow);
}
.tl-lift::before, .tl-lift::after { content: ""; display: block; width: 0; height: 0; margin: 0 auto 8px; border: 6px solid transparent; border-bottom-color: var(--gold-light); border-top: 0; }
.tl-lift::after { margin: 8px auto 0; border-bottom: 0; border-top: 6px solid rgba(230, 198, 126, .35); }
.tl-lift-label { display: block; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
:lang(ar) .tl-lift-label, :lang(zh) .tl-lift-label { letter-spacing: 0; font-size: .85rem; }
.tl-lift-year { display: block; font-family: var(--f-display); font-size: 2.3rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.tl-lift-year.swap { animation: liftSwap .45s ease; }
@keyframes liftSwap { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.tl-rail { position: absolute; top: 6px; bottom: 40px; inset-inline-start: calc(var(--lift) + var(--gap) / 2 - 1px); width: 2px; background: var(--line); }
.tl-fill { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--tl-progress, 0) * 100%); background: linear-gradient(180deg, #D9B262, #946C2C); }
.tl-list { grid-column: 2; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; padding-bottom: 56px; opacity: .3; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.tl-item.is-in { opacity: 1; transform: none; }
.tl-item::before {
  content: ""; position: absolute; top: 10px; inset-inline-start: calc(var(--gap) / -2 - 8px); width: 16px; height: 16px;
  border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); transition: background .3s, box-shadow .3s;
}
.tl-item.is-active::before { background: var(--gold); box-shadow: 0 0 0 7px rgba(196, 154, 69, .18); }
.tl-year { display: block; font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; color: var(--gold-dark); line-height: 1.3; }
.tl-item h3 { margin: .15em 0 .3em; }
.tl-item p { color: var(--muted); margin: 0; max-width: 58ch; }
/* Emplacements à compléter : volontairement visibles (maquette) */
.tl-todo .tl-year { font-family: var(--f-body); font-size: 1rem; font-weight: 500; color: #8A4B12; }
.tl-badge {
  display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: #8A4B12; background: #FFF4E0; border: 1px dashed #B5651D;
}
:lang(ar) .tl-badge, :lang(zh) .tl-badge { letter-spacing: 0; font-size: .8rem; }
.am-langs {
  max-width: 600px; margin: 8px 0 0; margin-inline-start: calc(var(--lift, 150px) + 56px);
  padding: 22px 26px; border: 1px dashed var(--gold); border-radius: var(--radius); background: var(--ivory);
}
.am-langs h3 { font-size: 1.3rem; margin-bottom: .2em; }
.am-langs p { margin: 0; color: var(--muted); }

/* ---------- (c) Conseil spécialisé ---------- */
.am-advice .section-head { margin-bottom: 24px; }
.adv { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.adv:nth-of-type(even) .adv-media { order: 2; }
.adv-media { aspect-ratio: 1; border-radius: 24px; box-shadow: var(--shadow); }
.adv-media figcaption {
  position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  pointer-events: none; font-size: .7rem; line-height: 1.4;
}
.adv-media figcaption span { padding: 4px 10px; border-radius: 999px; background: rgba(254, 247, 237, .92); color: var(--navy); }
.adv-media figcaption .adv-temp { color: #8A4B12; background: #FFF4E0; border: 1px dashed #B5651D; }
.adv-kicker { font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .2em; }
:lang(ar) .adv-kicker, :lang(zh) .adv-kicker { letter-spacing: 0; font-size: .95rem; }
.adv-text h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.adv-text p { max-width: 52ch; }
.am-disclaimer { margin: 32px 0 0; padding: 20px 24px; border-radius: 14px; background: var(--cream); font-size: .88rem; color: var(--muted); }

/* ---------- Contact ---------- */
.am-cta { text-align: center; }
.am-cta-inner { max-width: 760px; }
.am-cta .lead { margin-inline: auto; }
.am-cta .hero-ctas { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .am-hero { padding-bottom: 72px; }
  .am-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .am-hero-photo { width: min(340px, 84%); }
  .tl { --lift: 0px; --gap: 44px; display: block; padding-inline-start: 44px; }
  .tl-lift {
    position: sticky; top: 86px; z-index: 5; display: inline-flex; align-items: baseline; gap: 10px;
    margin: 0 0 28px; padding: 8px 18px; border-radius: 999px; margin-inline-start: -44px;
  }
  .tl-lift::before, .tl-lift::after { display: none; }
  .tl-lift-year { font-size: 1.4rem; }
  .tl-rail { inset-inline-start: 21px; top: 70px; }
  .tl-item::before { inset-inline-start: -31px; }
  .am-langs { margin-inline-start: 44px; }
  .adv { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .adv:nth-of-type(even) .adv-media { order: 0; }
}
@media (max-width: 600px) {
  .am-hero { padding-top: 28px; }
  .am-traits { grid-template-columns: 1fr; }
  .am-langs { margin-inline-start: 0; }
}
