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

:root {
  --noir:        #0A0A0A;
  --rouge:       #8B1A1A;
  --rouge-clair: #B52525;
  --or:          #C9A84C;
  --or-pale:     #E8CC80;
  --creme:       #F0E6D3;
  --fumee:       #1C1C1C;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--noir);
  color: var(--creme);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
  position: relative;
}

/* ─── FONDS ROTATIFS ─── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  filter: blur(1px);
  transform: scale(1.05);
}
.bg.actif { opacity: 1; }

/* ─── OVERLAY lisibilite + halo dore ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(5,2,0,.28) 0%,
      rgba(5,2,0,.20) 40%,
      rgba(5,2,0,.10) 65%,
      rgba(0,0,0,.0)  100%
    ),
    radial-gradient(ellipse 40% 70% at 82% 55%,
      rgba(201,168,76,.12) 0%,
      transparent 70%
    );
  pointer-events: none;
}

/* ─── CONTENEUR PRINCIPAL ─── */
.scene {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(15px, 6vh, 40px) 24px 30px;
  gap: 0;
  overflow: hidden;
}

/* ─── BLOC NOM + FRISES ─── */
.nom-bloc {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 36px;
}
.nom-bloc .ornement-line {
  width: auto;
  flex: 1;
}
.ornement--bas {
  margin-bottom: 0;
}

/* ─── ORNEMENT SUPERIEUR ─── */
.ornement {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 9px;
  opacity: .7;
}
.ornement-line {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--or));
}
.ornement-line.right {
  background: linear-gradient(90deg, var(--or), transparent);
}
.ornement-diamond {
  width: 8px; height: 8px;
  background: var(--or);
  transform: rotate(45deg);
}
.ornement-dot {
  width: 4px; height: 4px;
  background: var(--rouge-clair);
  transform: rotate(45deg);
  margin: 0 -4px;
}

/* ─── EN-TETE "TANGO ARGENTIN" ─── */
.entete {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--or-pale);
  text-shadow:
    0 0 30px rgba(201,168,76,.45),
    0 2px 10px rgba(0,0,0,.85),
    0 0 4px rgba(0,0,0,.9);
  margin-bottom: 30px;
}

/* ─── NOM ─── */
.nom {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  color: var(--or-pale);
  text-shadow:
    0 0 40px rgba(201,168,76,.4),
    0 2px 8px rgba(0,0,0,.85),
    0 0 4px rgba(0,0,0,.9);
  margin-bottom: 9px;
}
.nom span { color: var(--or-pale); }


/* ─── PORTRAIT (cadre adapte aux dimensions de l'image) ─── */
.portrait-wrap {
  position: relative;
  width: clamp(270px, 54vw, 390px);
  margin-bottom: 36px;
  cursor: pointer;
}

/* Cadre exterieur : liseré dore/rouge */
.portrait-cadre {
  position: relative;
  width: 100%;
  padding-top: 81.1782%;
  background: linear-gradient(135deg,
    var(--or-pale) 0%,
    var(--or)      35%,
    var(--rouge)   65%,
    var(--or)      100%
  );
  filter:
    drop-shadow(0 8px 24px rgba(0,0,0,.75))
    drop-shadow(0 0 40px rgba(139,26,26,.3));
}

/* Cadre interieur : image (liseré fin) */
.portrait-frame {
  position: absolute;
  inset: 2.5%;
  overflow: hidden;
}
.portrait-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(.92) saturate(.9);
  transition: filter .6s ease;
  user-select: none;
}
.portrait-frame:hover img {
  filter: contrast(1.1) brightness(1.0) saturate(1.05);
}

/* ─── TITRE DJ ─── */
.titre {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 3.6vw, 2rem);
  font-weight: 500;
  letter-spacing: .14em;
  text-align: center;
  color: var(--or-pale);
  text-shadow:
    0 0 24px rgba(201,168,76,.35),
    0 2px 8px rgba(0,0,0,.85),
    0 0 4px rgba(0,0,0,.9);
  margin-bottom: 4px;
}

/* ─── SEPARATEUR ORNAMENTAL ─── */
.sep-milieu {
  display: flex; align-items: center; gap: 12px;
  margin: 7px 0;
  opacity: .65;
}
.sep-milieu::before,
.sep-milieu::after {
  content: '';
  flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--or));
}
.sep-milieu::after {
  background: linear-gradient(90deg, var(--or), transparent);
}
.sep-milieu-icon {
  font-size: 1rem; color: var(--rouge-clair);
  letter-spacing: 6px;
}

/* ─── TAGLINE ─── */
.tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(.5rem, 3.4vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: .06em;
  text-align: center;
  color: var(--or-pale);
  opacity: .95;
  line-height: 1.6;
  white-space: nowrap;
  max-width: 96vw;
  margin: 16px auto 36px;
  padding: 18px 10px;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 8px;
  background: rgba(5,2,0,.35);
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}

/* ─── EMAIL ─── */
.contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: none;
  background: none;
  color: var(--creme);
  opacity: .65;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(.85rem, 2vw, 1rem);
  letter-spacing: .06em;
  text-decoration: none;
  transition: opacity .35s, color .35s;
}
.contact:hover { opacity: 1; color: var(--or-pale); }
.contact-icon { font-size: .9em; opacity: .8; }

/* ─── ANIMATIONS ENTREE ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.entete       { animation: fadeUp .8s ease both 0s; }
.ornement     { animation: fadeUp .8s ease both .1s; }
.nom          { animation: fadeUp .9s ease both .1s; }
.portrait-wrap{ animation: fadeUp 1s  ease both .4s; }
.titre        { animation: fadeUp .9s ease both .7s; }
.sep-milieu   { animation: fadeUp .8s ease both .85s; }
.tagline      { animation: fadeUp .9s ease both 1s; }
.contact      { animation: fadeUp .9s ease both 1.15s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

@media (max-width: 480px) {
  .ornement-line { width: 50px; }
}

/* ─── POPUP MILONGA ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--fumee);
  border: 1px solid var(--or);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: 320px;
  box-shadow: 0 0 40px rgba(0,0,0,.8), 0 0 20px rgba(201,168,76,.15);
}

.modal-titre {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: .14em;
  color: var(--or-pale);
  text-align: center;
}

.modal-pass-ligne {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--creme);
  letter-spacing: .08em;
}

.modal-input {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--or);
  color: var(--creme);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 6px 12px;
  outline: none;
  width: 160px;
  letter-spacing: .1em;
}
.modal-input:focus {
  border-color: var(--or-pale);
  background: rgba(255,255,255,.11);
}

.modal-erreur {
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem;
  color: var(--rouge-clair);
  letter-spacing: .06em;
}
.modal-erreur[hidden] { display: none; }

.modal-boutons {
  display: flex;
  gap: 20px;
}

.modal-btn {
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  letter-spacing: .12em;
  padding: 8px 24px;
  border: 1px solid var(--or);
  cursor: pointer;
  transition: background .25s, color .25s;
}
.modal-btn--annuler {
  background: transparent;
  color: var(--creme);
}
.modal-btn--annuler:hover, .modal-btn--annuler:focus {
  background: rgba(201,168,76,.15);
  color: var(--or-pale);
  outline: none;
}
.modal-btn--valider {
  background: var(--rouge);
  color: var(--or-pale);
  border-color: var(--rouge);
}
.modal-btn--valider:hover, .modal-btn--valider:focus {
  background: var(--rouge-clair);
  outline: none;
}
