/* Timeless Performing Arts — NFC Tap (refonte visuelle, mobile-first)
   Polices : chargées dans le <head> des pages (Cormorant Garamond + Source Sans 3) */

:root {
  color-scheme: dark light;

  /* Branding Timeless Performing Arts — rouge officiel */
  --tpa-red: #880606;
  --tpa-red-dark: #650404;
  --tpa-red-light: #a30b0b;
  --tap-accent: var(--tpa-red);

  /* Fond & atmosphère */
  --tpa-void: #050506;
  --tpa-depth: #0c0b0f;
  --tpa-mist: #161218;
  --tpa-warm-glow: rgba(136, 6, 6, 0.52);
  --tpa-cool-glow: rgba(42, 28, 34, 0.28);

  /* Carte & surfaces */
  --tpa-card-top: #f8f6f4;
  --tpa-card-mid: #f1eeeb;
  --tpa-card-edge: rgba(255, 252, 248, 0.96);
  --tpa-card-border: rgba(18, 16, 20, 0.055);
  --tpa-card-inner-line: rgba(136, 6, 6, 0.06);

  /* Texte */
  --tpa-ink: #0a0a0b;
  --tpa-ink-soft: #3d3a3e;
  --tpa-muted: #6b6569;
  --tpa-faint: #9a9398;

  /* Accents dérivés */
  --tpa-accent-deep: var(--tpa-red-dark);
  --tpa-accent-mid: var(--tpa-red);
  --tpa-accent-glow: rgba(136, 6, 6, 0.35);
  --tpa-accent-soft: rgba(136, 6, 6, 0.12);
  --tpa-accent-faint: rgba(136, 6, 6, 0.07);

  /* Rayons & ombres */
  --tpa-radius-card: 26px;
  --tpa-radius-btn: 16px;
  --tpa-radius-pill: 999px;
  --tpa-shadow-card:
    0 0 0 1px var(--tpa-card-border),
    0 1px 2px rgba(10, 8, 12, 0.03),
    0 20px 48px rgba(8, 6, 10, 0.16),
    0 8px 20px rgba(8, 6, 10, 0.08);
  --tpa-shadow-card-hover:
    0 0 0 1px var(--tpa-card-border),
    0 24px 52px rgba(8, 6, 10, 0.18),
    0 10px 24px rgba(8, 6, 10, 0.1);
  --tpa-shadow-photo:
    0 18px 40px rgba(8, 6, 12, 0.28),
    0 3px 10px rgba(136, 6, 6, 0.1);

  --tpa-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --tpa-font-ui: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tpa-space: clamp(1.15rem, 4.2vw, 1.85rem);
  --tpa-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --tpa-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--tpa-font-ui);
  font-weight: 400;
  color: var(--tpa-ink);
  line-height: 1.55;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 50% -10%, rgba(136, 6, 6, 0.18), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(136, 6, 6, 0.22), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(136, 6, 6, 0.18), transparent 26%),
    radial-gradient(circle at 50% 85%, rgba(136, 6, 6, 0.12), transparent 34%),
    linear-gradient(180deg, #080809 0%, #050506 100%);
  background-color: var(--tpa-void);
  overflow-x: hidden;
}

/* Fond artistique plus visible */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(136, 6, 6, 0.28), transparent 0 24%),
    radial-gradient(circle at 84% 18%, rgba(136, 6, 6, 0.2), transparent 0 22%),
    radial-gradient(circle at 50% 8%, rgba(136, 6, 6, 0.14), transparent 0 18%),
    radial-gradient(circle at 50% 100%, rgba(136, 6, 6, 0.16), transparent 0 28%);
  filter: blur(18px);
  opacity: 1;
}

/* Texture / ambiance / vignette */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg,
      transparent 0%,
      rgba(136, 6, 6, 0.08) 18%,
      transparent 34%,
      transparent 62%,
      rgba(136, 6, 6, 0.06) 76%,
      transparent 100%),
    radial-gradient(ellipse 140% 60% at 50% 110%, rgba(136, 6, 6, 0.08), transparent 60%);
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.92);
  opacity: 1;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin: 0 auto;
  padding:
    calc(var(--tpa-space) + env(safe-area-inset-top))
    var(--tpa-space)
    calc(var(--tpa-space) + env(safe-area-inset-bottom));
}

/* ——— Header marque ——— */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.35rem, 4vw, 1.85rem);
  padding: 0.8rem 1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 35% 0%, rgba(136, 6, 6, 0.26), transparent 52%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.brand-bar--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.brand-bar__logo {
  display: flex;
  align-items: center;
  min-height: 68px;
  flex: 1;
  min-width: 0;
}

.brand-bar--center .brand-bar__logo {
  flex: none;
  justify-content: center;
}

.brand-logo,
.logo {
  display: block;
  width: auto;
  max-width: min(380px, 86vw);
  height: clamp(58px, 15vw, 80px);
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
  image-rendering: auto;
  filter:
    drop-shadow(0 0 24px rgba(255, 248, 242, 0.12))
    drop-shadow(0 0 32px rgba(136, 6, 6, 0.18))
    drop-shadow(0 3px 12px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s var(--tpa-ease-out), filter 0.35s ease;
}

.brand-bar--center .logo,
.brand-bar--center .brand-logo {
  object-position: center;
  margin-left: auto;
  margin-right: auto;
}

.brand-logo--hero.logo {
  height: clamp(58px, 15vw, 80px);
  max-height: 80px;
}

@media (hover: hover) and (pointer: fine) {
  .brand-logo:hover,
  .logo:hover {
    transform: translateY(-1px);
    filter:
      drop-shadow(0 0 28px rgba(255, 248, 242, 0.14))
      drop-shadow(0 0 40px rgba(136, 6, 6, 0.22))
      drop-shadow(0 4px 14px rgba(0, 0, 0, 0.48));
  }
}

/* Langue */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: var(--tpa-radius-pill);
  background: linear-gradient(160deg, rgba(255, 250, 246, 0.06) 0%, rgba(18, 16, 22, 0.46) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.lang-pill {
  position: relative;
  font-family: var(--tpa-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.48rem 0.62rem;
  min-width: 2.35rem;
  text-align: center;
  border-radius: var(--tpa-radius-pill);
  color: rgba(255, 248, 242, 0.5);
  text-decoration: none;
  transition:
    color 0.3s var(--tpa-ease-soft),
    background 0.3s var(--tpa-ease-soft),
    box-shadow 0.3s ease;
}

.lang-pill:hover {
  color: rgba(255, 248, 242, 0.9);
}

.lang-pill.is-active {
  color: var(--tpa-ink);
  background: linear-gradient(165deg, #fffefc 0%, #f2ebe4 100%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lang-pill:focus-visible {
  outline: 2px solid var(--tpa-red);
  outline-offset: 3px;
}

/* ——— Cartes ——— */
.card {
  position: relative;
  border-radius: var(--tpa-radius-card);
  padding: clamp(1.5rem, 5vw, 2.15rem) clamp(1.35rem, 4.5vw, 1.85rem) clamp(1.65rem, 5vw, 2.25rem);
  background: linear-gradient(180deg, var(--tpa-card-top) 0%, var(--tpa-card-mid) 100%);
  border: 1px solid var(--tpa-card-border);
  box-shadow: var(--tpa-shadow-card);
  overflow: hidden;
  transition: box-shadow 0.45s var(--tpa-ease-out), transform 0.45s var(--tpa-ease-out);
}

.card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, var(--tpa-accent-faint), transparent 62%);
  pointer-events: none;
}

.card .card__flow {
  position: absolute;
  z-index: 0;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23880606' stroke-width='1.2' d='M0 96 Q100 20 200 72 T400 88'/%3E%3Cpath fill='none' stroke='%23121016' stroke-width='0.6' opacity='.4' d='M0 102 Q120 40 220 78 T400 98'/%3E%3C/svg%3E")
    center bottom / 100% auto no-repeat;
}

.card-home > *:not(.card__flow),
.card-profile > *:not(.card__flow) {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: var(--tpa-shadow-card-hover);
    transform: translateY(-1px);
  }
}

.card-profile,
.card-home {
  position: relative;
  z-index: 1;
  text-align: center;
}

.tap-animate {
  animation: tpa-rise 0.85s var(--tpa-ease-out) both;
}

@keyframes tpa-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ——— Profil ——— */
.profile-visual {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.profile-figure {
  margin: 0;
  padding: 0;
}

.profile-halo {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 40%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(230, 220, 214, 0.55));
  box-shadow:
    0 0 0 1px rgba(136, 6, 6, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    var(--tpa-shadow-photo);
}

.profile-halo::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 44%;
  background: conic-gradient(
    from 210deg,
    transparent 0deg,
    rgba(136, 6, 6, 0.15) 55deg,
    transparent 110deg,
    rgba(45, 52, 72, 0.08) 200deg,
    transparent 360deg
  );
  opacity: 0.55;
  z-index: -1;
  animation: tpa-halo-rotate 28s linear infinite;
}

@keyframes tpa-halo-rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-halo::before {
    animation: none;
  }
}

.profile-photo {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 38%;
  object-fit: cover;
  background: linear-gradient(155deg, #ebe4dd, #d8cfc6);
  border: 1px solid rgba(18, 16, 20, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.profile-name {
  margin: 0 0 0.4rem;
  font-family: var(--tpa-font-display);
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--tpa-ink);
}

.profile-role {
  margin: 0 0 1.15rem;
  font-family: var(--tpa-font-display);
  font-size: clamp(calc(1.05rem + 1px), 3.2vw, calc(1.2rem + 1px));
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.48;
  color: var(--tap-accent);
  text-rendering: optimizeLegibility;
}

.profile-bio {
  margin: 0 0 1.55rem;
  font-size: 0.94rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--tpa-muted);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.015em;
}

/* ——— Actions & boutons ——— */
.actions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.actions-primary {
  margin-bottom: 1.15rem;
}

.actions-grid {
  display: grid;
  gap: 0.55rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 50px;
  padding: 0.88rem 1.1rem;
  border-radius: var(--tpa-radius-btn);
  font-family: var(--tpa-font-ui);
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.2s var(--tpa-ease-soft),
    box-shadow 0.3s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.2s ease;
}

.btn__text {
  position: relative;
  z-index: 1;
}

.btn:active {
  transform: scale(0.987);
}

.btn-primary:active {
  transform: translateY(0) scale(0.987);
  filter: brightness(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--tpa-red);
  outline-offset: 3px;
}

.btn-primary {
  color: #fffefc;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #a30b0b 0%, #880606 48%, #650404 100%);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.12),
    0 16px 48px rgba(136, 6, 6, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 0.22s var(--tpa-ease-soft),
    box-shadow 0.28s ease,
    filter 0.28s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.05) 28%,
    transparent 52%
  );
  pointer-events: none;
  z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.14),
      0 20px 56px rgba(136, 6, 6, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.btn-primary .btn__ico {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  opacity: 0.95;
  color: rgba(255, 254, 252, 0.96);
}

.btn-secondary {
  color: var(--tpa-ink-soft);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.93rem;
  padding-left: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 244, 0.88));
  border-color: rgba(18, 16, 20, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    background 0.28s var(--tpa-ease-soft),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.2s ease;
}

.btn-secondary::before {
  content: "";
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  margin-left: 0.15rem;
  opacity: 0.72;
  background: var(--tpa-icon) center / contain no-repeat;
}

.btn-secondary[data-action="book"] {
  --tpa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23880606' stroke-width='2'%3E%3Cpath stroke-linecap='round' d='M7 4h10M7 4v4m10-4v4M6 8h12v14H6V8Z'/%3E%3C/svg%3E");
}

.btn-secondary[data-action="web"] {
  --tpa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23880606' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 0 0 18M12 3a15 15 0 0 1 0 18'/%3E%3C/svg%3E");
}

.btn-secondary[data-action="map"] {
  --tpa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23880606' stroke-width='2'%3E%3Cpath d='M12 21s7-4.35 7-10a7 7 0 1 0-14 0c0 5.65 7 10 7 10Z'/%3E%3Ccircle cx='12' cy='11' r='2.5'/%3E%3C/svg%3E");
}

.btn-secondary[data-action="email"] {
  --tpa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23880606' stroke-width='2'%3E%3Cpath d='M4 7h16v10H4V7Z'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
}

.btn-secondary[data-action="tel"] {
  --tpa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23880606' stroke-width='2'%3E%3Cpath d='M8 3h3l2 5-3 2a12 12 0 0 0 6 6l2-3 5 2v3c0 1-1 2-2 2C10.7 21 3 13.3 3 4c0-1 1-2 2-2Z'/%3E%3C/svg%3E");
}

.btn-secondary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(136, 6, 6, 0.06));
  border-color: rgba(136, 6, 6, 0.16);
  color: var(--tpa-ink);
  box-shadow:
    0 8px 22px rgba(18, 16, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-secondary:active {
  transform: scale(0.992);
}

.btn-home {
  text-align: center;
}

/* Accueil */
.home-lead {
  margin: 0 0 1.55rem;
  font-family: var(--tpa-font-display);
  font-size: clamp(calc(1.15rem + 1px), 3.6vw, calc(1.35rem + 1px));
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: var(--tpa-ink-soft);
  letter-spacing: 0.025em;
  text-rendering: optimizeLegibility;
}

.home-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.card-home .btn-primary {
  letter-spacing: 0.05em;
}

/* Pied */
.foot-note {
  margin-top: clamp(1.65rem, 5vw, 2rem);
  text-align: center;
}

.foot-org {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 248, 242, 0.38);
}

/* 404 */
.page-404 .card {
  text-align: center;
}

.page-404 .profile-bio {
  max-width: none;
}

.page-404 .foot-note {
  display: none;
}

/* Pages */
.page-home .brand-bar--center {
  margin-bottom: 1.65rem;
}

@media (max-width: 420px) {
  .brand-bar {
    padding: 0.72rem 0.8rem;
    gap: 0.75rem;
  }

  .brand-logo,
  .logo,
  .brand-logo--hero.logo {
    height: clamp(52px, 14vw, 70px);
    max-height: 70px;
    max-width: 78vw;
  }

  .lang-pill {
    min-width: 2.15rem;
    font-size: 0.68rem;
    padding: 0.44rem 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tap-animate {
    animation: none;
  }

  .btn,
  .brand-logo,
  .logo,
  .card {
    transition: none;
  }
}
