/* =========================================================
   Atlantic Monkeys — feuille de style unique
   Thème sombre, responsive (smartphone / tablette / PC).
   ========================================================= */

:root {
  --bg:        #0b0b0d;
  --bg-2:      #141417;
  --surface:   #1b1b20;
  --surface-2: #232329;
  --border:    #2e2e36;
  --text:      #f4f4f5;
  --muted:     #a1a1aa;
  --accent:    #e4322b;       /* rouge indie */
  --accent-2:  #ff5a3c;
  --max:       1100px;
  --radius:    14px;
  --gap:       clamp(1rem, 2.5vw, 2rem);
  --header-h:  64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section--tight-top { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.section--alt { background: var(--bg-2); }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: .25em;
}
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent-2);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; }
.brand img {
  height: 30px; width: auto;
  /* Le logo est un tracé noir : on l'inverse en blanc sur fond sombre. */
  filter: invert(1) brightness(1.6);
}
.brand span { font-size: 1.05rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; margin-inline: auto; background: var(--text); transition: .2s; }

.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav a {
  padding: .5rem .85rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--muted);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

.lang-btn {
  margin-left: .35rem;
  min-width: 44px;
  padding: .45rem .7rem;
  font-weight: 800;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; text-align: center; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,13,.55) 0%, rgba(11,11,13,.8) 60%, var(--bg) 100%);
}
.hero-inner { padding-top: clamp(4rem, 14vw, 8rem); padding-bottom: clamp(1.5rem, 5vw, 3rem); }
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 6rem);
  text-transform: uppercase;
  letter-spacing: -.03em;
  margin: .1em 0 .15em;
}
.hero-logo {
  margin: .2em 0 .3em;
}
.hero-logo img {
  display: block;
  margin-inline: auto;
  width: clamp(260px, 60vw, 620px);
  height: auto;
  filter: invert(1);
}
.hero-tagline { font-size: clamp(1.05rem, 2.6vw, 1.5rem); font-weight: 600; }
.hero-location { color: var(--muted); margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Intro ---------- */
.intro-text { max-width: 760px; margin-inline: auto; text-align: justify; font-size: clamp(1rem, 1.8vw, 1.18rem); color: #d4d4d8; }

/* ---------- Concerts ---------- */
.concert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.section--alt .concert-list, .concerts-page .concert-list { max-width: 760px; margin-inline: auto; }
.concert-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .12s ease;
}
.concert-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.concert-date {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 74px; padding: .5rem 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  line-height: 1.05;
}
.cd-day { font-size: 1.7rem; font-weight: 800; }
.cd-month { text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; color: var(--accent-2); font-weight: 700; }
.cd-year { font-size: .72rem; color: var(--muted); }
.concert-info { display: flex; flex-direction: column; }
.concert-venue { font-weight: 700; font-size: 1.1rem; }
.concert-city { color: var(--muted); }
.concerts-empty { text-align: center; color: var(--muted); }

.section-cta { text-align: center; margin-top: 2rem; }

.booking-box {
  max-width: 620px; margin: 2.5rem auto 0; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.booking-box h3 { font-size: 1.3rem; }
.booking-box p { color: var(--muted); margin-bottom: 1.3rem; }

/* ---------- Membres ---------- */
.members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
/* 3 par ligne -> 3 + 2 centrés en dessous (jamais un membre seul) */
.members-grid .member-card {
  flex: 1 1 calc((100% - 2 * var(--gap)) / 3);
  min-width: 200px;
  max-width: 300px;
}
.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform .15s ease, border-color .2s ease;
}
.member-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.member-photo { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; filter: grayscale(.15); }
.member-body { padding: 1rem 1.1rem 1.3rem; }
.member-name { font-size: 1.2rem; margin-bottom: .1em; }
.member-role { color: var(--accent-2); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.member-bio { color: var(--muted); font-size: .92rem; margin-top: .7rem; text-align: justify; }

/* ---------- Vidéos / façades YouTube ---------- */
.featured-video { max-width: 820px; margin-inline: auto; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .3s; }
.yt-facade:hover .yt-thumb { opacity: 1; transform: scale(1.04); }
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  transition: background .2s, transform .15s;
}
.yt-facade:hover .yt-play { background: var(--accent-2); transform: translate(-50%, -50%) scale(1.08); }
.yt-play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff;
}
.yt-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Écouter (SoundCloud) ---------- */
.listen-wrap { max-width: 820px; margin-inline: auto; }
.listen-wrap p { text-align: center; color: var(--muted); margin-bottom: 1.3rem; }
.sc-embed { width: 100%; height: 320px; border: 0; border-radius: var(--radius); overflow: hidden; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .3s, filter .3s; filter: grayscale(.1); }
.gallery button:hover img { transform: scale(1.05); filter: none; }
.gallery-credit { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.4rem; }

/* Crédit photos : lien vers l'Instagram du photographe */
.gallery-credit a, .footer-bottom-right a { color: var(--accent-2); text-decoration: none; }
.gallery-credit a:hover, .footer-bottom-right a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(0,0,0,.9);
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 100%; max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 48px; height: 48px; font-size: 2rem; line-height: 1;
  background: transparent; color: #fff; border: 0; cursor: pointer;
}

/* ---------- Pro / Presse ---------- */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  max-width: 900px; margin-inline: auto;
}
.download-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem;
  padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.download-card .doc-icon { font-size: 1.8rem; }
.download-card h3 { font-size: 1.1rem; margin: 0; }
.download-card .btn { margin-top: auto; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  max-width: 900px; margin: 2.5rem auto 0;
}
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; text-align: center;
}
.contact-card h3 { font-size: 1.25rem; }
.contact-card p { color: var(--muted); }
.contact-card .contact-line { color: var(--text); font-weight: 600; }
.contact-card a.contact-line:hover { color: var(--accent-2); }

/* ---------- Réseaux (icônes du pied de page) ---------- */
.footer-socials { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; margin-top: .25rem; }
.footer-socials a { display: inline-flex; opacity: .85; transition: opacity .2s; }
.footer-socials a:hover { opacity: 1; }
.footer-socials img { width: 24px; height: 24px; display: block; }

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-block: clamp(2rem, 5vw, 3rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-bottom: 2rem;
}
.footer-col { text-align: center; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: .9rem; }
.footer-col a, .footer-col p { color: var(--text); margin: .25rem 0; }
.footer-col > a { display: block; }
.footer-col a:hover { color: var(--accent-2); }
.footer-brand img { height: 34px; filter: invert(1) brightness(1.6); display: block; margin: 0 auto .6rem; }
.footer-brand p { color: var(--muted); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.4rem;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem 1.5rem; align-items: center;
  color: var(--muted); font-size: .85rem;
}
.footer-bottom-left { justify-self: start; text-align: left; }
.footer-bottom-center { justify-self: center; text-align: center; }
.footer-bottom-right { justify-self: stretch; text-align: center; }
.footer-bottom .claude-verb { color: var(--accent-2); }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablette et moins : navigation repliable (hamburger) */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1rem 1rem;
    transform: translateY(-120%);
    transition: transform .25s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: .9rem 1rem; border-radius: 10px; }
  .lang-btn { margin: .4rem 0 0; align-self: flex-start; }
}

/* Smartphone : empilement, cartes concerts compactes */
@media (max-width: 560px) {
  .concert-card { gap: 1rem; padding: .9rem 1rem; }
  .concert-date { width: 64px; }
  .cd-day { font-size: 1.45rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: .9rem; }
  .footer-bottom-left, .footer-bottom-center, .footer-bottom-right { justify-self: center; text-align: center; }
  /* Smartphone : 1 membre par ligne */
  .members-grid .member-card { flex-basis: 100%; max-width: 360px; }
}

/* Confort tablette : galerie/vidéos en 2 colonnes nettes */
@media (min-width: 561px) and (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  /* Tablette : 2 membres par ligne */
  .members-grid .member-card { flex-basis: calc((100% - var(--gap)) / 2); }
}

/* Réduit les animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
