/* =========================================================
   MICKA — Portfolio musicien
   Palette et réglages globaux : tout se change ici.
   ========================================================= */

:root {
  /* Couleurs — change ces 3 lignes pour changer toute l'ambiance du site */
  --bg:        #0a0a0b;   /* fond principal */
  --bg-alt:    #101012;   /* fond des sections alternées */
  --accent:    #c8a45c;   /* doré : liens, traits, boutons */

  --surface:   #16161a;
  --line:      rgba(255, 255, 255, .10);
  --text:      #ececee;
  --muted:     #9a9aa2;

  /* Typographie */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mise en page */
  --wrap: 1180px;
  --nav-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: .75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ------------------ Boutons ------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--accent); color: #0a0a0b; transform: translateY(-2px); }

.btn--primary { background: var(--accent); color: #0a0a0b; }
.btn--primary:hover { background: #dbb972; border-color: #dbb972; }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: transparent; color: var(--accent); }

.btn--full { width: 100%; }
.btn--small { padding: .55rem 1.1rem; font-size: .7rem; }

/* ------------------ Navigation ------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: clamp(.9rem, 2.2vw, 1.2rem);
  letter-spacing: .22em;
  white-space: nowrap;
  text-decoration: none;
}

.nav__menu { display: flex; align-items: center; gap: 2.25rem; }

.nav__menu a {
  position: relative;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__menu a:hover { color: var(--text); }
.nav__menu a:hover::after,
.nav__menu a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__menu a.is-current { color: var(--text); }

.nav__cta {
  padding: .55rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--accent); color: #0a0a0b !important; }

/* Burger mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 110;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  width: 26px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .2s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ------------------ Hero ------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-h) clamp(1.25rem, 5vw, 3rem) 6rem;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.05);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(10,10,11,.25) 0%, rgba(10,10,11,.82) 60%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(10,10,11,.7) 0%, transparent 30%, var(--bg) 100%);
}

/* Colonne flex : l'espacement reste juste, que la phrase d'accroche
   soit présente ou non. */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__eyebrow {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  font-size: clamp(3rem, 11vw, 8rem);
  font-weight: 500;
  letter-spacing: .02em;
  margin: 0;
}

.hero__tagline {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: .75rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px; height: 56px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ------------------ Sections ------------------ */
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section--alt { background: var(--bg-alt); }

.section__head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

.section__label {
  margin: 0 0 .9rem;
  font-size: .95rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  max-width: 20ch;
}

/* Variante centrée : utile quand la section n'a qu'une colonne. */
.section__head--center { text-align: center; }
.section__head--center .section__title { max-width: none; }

/* ------------------ CV / Parcours ------------------ */
.cv {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.cv__side { position: sticky; top: calc(var(--nav-h) + 2rem); }

/* Variante sans portrait ni colonne "parcours" : un seul bloc de texte. */
.cv--simple { display: block; max-width: 42rem; }

.cv__portrait {
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  overflow: hidden;
}
.cv__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.cv__portrait:hover img { filter: grayscale(0); transform: scale(1.03); }

.cv__block { margin-bottom: 2rem; }
.cv__block h3,
.cv__heading {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.cv__block p { margin: 0; color: var(--text); opacity: .85; font-size: .95rem; }
.cv__block--spaced p { margin-bottom: 1.4rem; }
.cv__block--spaced p:last-child { margin-bottom: 0; }

.cv__heading { margin-top: 3.5rem; }
.cv__heading:first-child { margin-top: 0; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tags li {
  padding: .38rem .85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .78rem;
  color: var(--muted);
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }

.timeline__date {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent);
  padding-top: .3rem;
}

.timeline__body h4 { font-size: 1.3rem; margin-bottom: .3rem; }
.timeline__role {
  margin: 0 0 .6rem;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: .75;
}
.timeline__body p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }

.refs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.refs li {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
}

/* ------------------ Vidéos ------------------ */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.video { position: relative; }

.video__play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.video__play:hover { border-color: var(--accent); transform: translateY(-4px); }

/* Voile sombre + bouton lecture dessiné en CSS (aucune image à charger) */
.video__play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, .45);
  transition: background .3s var(--ease);
}
.video__play:hover::before { background: rgba(10, 10, 11, .2); }

.video__play::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent var(--text);
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, .8));
  transition: border-left-color .3s var(--ease), transform .3s var(--ease);
}
.video__play:hover::after {
  border-left-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.12);
}

.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

.video__meta { padding-top: 1.1rem; }
.video__meta h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.video__meta p { margin: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ------------------ Concerts ------------------ */
.dates__filters { display: flex; gap: .75rem; margin-bottom: 2.5rem; }

.chip {
  padding: .55rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #0a0a0b; }

.dates { list-style: none; margin: 0; padding: 0; }

.date {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  transition: background .3s var(--ease), padding-inline .3s var(--ease);
}
.date:last-child { border-bottom: 1px solid var(--line); }
.date:hover { background: rgba(255, 255, 255, .022); }
.date[hidden] { display: none; }

.date__when { text-align: center; }
.date__day {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
}
.date__month {
  display: block;
  margin-top: .3rem;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.date__what h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.date__what p { margin: 0; font-size: .85rem; letter-spacing: .08em; color: var(--muted); }

.date.is-past { opacity: .5; }
.date.is-past .date__day { color: var(--muted); }

.dates__empty { color: var(--muted); font-style: italic; padding-top: 2rem; }

/* ------------------ Galerie ------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery__item {
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.gallery__item:hover { border-color: var(--accent); }

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(.6);
  transition: transform .6s var(--ease), filter .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); filter: grayscale(0); }

/* Visionneuse */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  background: rgba(6, 6, 7, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade .3s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(20, 20, 22, .8);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }

.lightbox__close {
  top: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px;
  font-size: 1.7rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem;
}
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }

/* ------------------ Contact ------------------ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* Variante colonne unique, tant qu'il n'y a que l'e-mail à afficher.
   Enlève « contact--simple » dans le HTML pour revenir sur deux colonnes. */
.contact--simple {
  grid-template-columns: minmax(0, 1fr);
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
  gap: 2.5rem;
}
.contact--simple .contact__form { text-align: left; }
.contact--simple .contact__info p { font-size: 1.15rem; }

.contact__info h3 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.contact__info h3:not(:first-child) { margin-top: 2.75rem; }
.contact__info p { margin: 0 0 .4rem; font-size: 1.05rem; }
.contact__info a { text-decoration: none; transition: color .3s var(--ease); }
.contact__info a:hover { color: var(--accent); }

.socials { list-style: none; margin: 0; padding: 0; }
.socials li { border-bottom: 1px solid var(--line); }
.socials a {
  display: block;
  padding: .85rem 0;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.socials a:hover { color: var(--accent); padding-left: .5rem; }

.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 300;
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }

.form__note { margin: 1rem 0 0; font-size: .85rem; color: var(--accent); min-height: 1.2em; }

/* ------------------ Footer ------------------ */
.footer { border-top: 1px solid var(--line); padding: 3rem 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .22em;
}
.footer__copy { margin: 0; font-size: .8rem; color: var(--muted); }
.footer__top {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.footer__top:hover { color: var(--accent); }

/* ------------------ Apparition au scroll ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------ Responsive ------------------ */
@media (max-width: 900px) {
  .cv { grid-template-columns: 1fr; }
  .cv__side { position: static; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__burger { display: flex; }

  .nav__menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(10, 10, 11, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
  .nav__menu a { font-size: 1.05rem; letter-spacing: .2em; }

  body.menu-open { overflow: hidden; }

  .timeline__item { grid-template-columns: 1fr; gap: .6rem; }
  .timeline__date { padding-top: 0; }

  .date { grid-template-columns: 64px minmax(0, 1fr); gap: 1.25rem; }
  .date__go { grid-column: 2; }
  .date__day { font-size: 1.7rem; }

  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
}

/* ------------------ Accessibilité : animations réduites ------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------ Impression ------------------ */
@media print {
  .nav, .hero__scroll, .lightbox, .contact__form, .footer__top { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
