/* ============================================
   ST-SAOUL — STYLES.CSS
   Thème ultra-foncé | Design artiste musical
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,600;1,300&display=swap');

/* ---- VARIABLES ---- */
:root {
  --bg-deep:      #080808;
  --bg-dark:      #0f0f0f;
  --bg-card:      #141414;
  --bg-sidebar:   #0d0d0d;
  --border:       #1e1e1e;
  --accent:       #c8002a;
  --accent-glow:  rgba(200, 0, 42, 0.35);
  --text-primary: #e8e4dc;
  --text-muted:   #ffffff;
  --text-dim:     #3a3632;
  --header-h:     110px;
  --sidebar-w:    290px;
}

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

html { scroll-behavior: smooth; background: var(--bg-deep); }

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- HEADER ---- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#site-header img {
  height: 62px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(200, 0, 42, 0.2));
  transition: filter 0.4s ease;
}

#site-header img:hover {
  filter: drop-shadow(0 0 28px rgba(200, 0, 42, 0.5));
}

/* ---- MAIN LAYOUT ---- */
#main-wrapper {
  margin-top: var(--header-h);
  padding-top: 10px;
}

/* ---- MAP SECTION ---- */
#map-section {
  display: flex;
  max-width: 1200px;
  width: calc(100% - 48px);
  height: auto;
  margin: 40px auto;
  position: relative;
  border-radius: 4px;
  border: 1px solid var(--accent);
  overflow: hidden;
  align-items: stretch;
}

#map-image-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

#map-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* ---- MAP PINS ---- */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  display: block;
  cursor: pointer;
}

#pin-1 { left: 72.4%; top: 39.2%; }
#pin-2 { left: 66.6%; top: 68.7%; }

.pin-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid rgba(255, 100, 100, 0.5);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(200, 0, 42, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 2;
}

.pin-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(200, 0, 42, 0.5);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pin-pulse 1.8s ease-out infinite;
  z-index: 1;
}

.map-pin:hover .pin-dot,
.map-pin.active-spot .pin-dot {
  transform: translate(-50%, -50%) scale(1.8);
  background: #d4001f;
  border-color: rgba(255, 220, 220, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 200, 200, 0.4), 0 0 28px rgba(200, 0, 42, 0.9);
}

.map-pin:hover .pin-ripple,
.map-pin.active-spot .pin-ripple {
  animation: pin-pulse-fast 0.65s ease-out infinite;
  background: rgba(200, 0, 42, 0.8);
}

@keyframes pin-pulse-fast {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(7);   opacity: 0; }
}

@keyframes pin-pulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* ---- SIDEBAR MAP NAV ---- */
#map-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-left: 1px solid var(--accent);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-self: stretch;
}

#map-sidebar::-webkit-scrollbar { width: 4px; }
#map-sidebar::-webkit-scrollbar-track { background: var(--bg-deep); }
#map-sidebar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.sidebar-header {
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--accent);
}

.sidebar-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.sidebar-header p {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.spot-list { list-style: none; padding: 10px 0; flex: 1; }

.spot-list li { border-bottom: 1px solid rgba(30,30,30,0.7); }

.spot-list li a,
.spot-list li button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.spot-list li button {
  width: 100%;
  background: none;
  border: 0;
  outline: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.spot-list li a::before,
.spot-list li button::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 7px var(--accent-glow);
  transition: box-shadow 0.2s;
}

.spot-list li a:hover,
.spot-list li button:hover {
  background: rgba(200, 0, 42, 0.07);
  color: #fff;
  padding-left: 26px;
}

.spot-list li a:hover::before,
.spot-list li button:hover::before { box-shadow: 0 0 14px var(--accent); }

.spot-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-left: auto;
}

/* ---- ARTIST LANDING ---- */
#artist-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
  position: relative;
}

#artist-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--accent);
  pointer-events: none;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.section-title::before,
.section-title::after {
  content: '';
  height: 1px;
  width: 50px;
  background: var(--accent);
}

/* ---- CONTACT LINK ---- */
.contact-line {
  margin-bottom: 0;
}

#contact-section {
  text-align: center;
  padding: 40px 24px;
}

.contact-link {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #ffffff !important;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 8px 24px;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.7;
}

/* ---- SOCIAL LINKS ---- */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 80px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.social-btn img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  background: transparent;
}

.social-btn:hover { opacity: 0.45; transform: scale(0.93); }

/* Partner links */
.partner-grid { margin-bottom: 0; }

.partner-grid .social-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 18px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 12px;
  opacity: 1;
}

.partner-grid .social-btn img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.partner-grid .social-btn:hover {
  border-color: var(--accent);
  background: rgba(200, 0, 42, 0.08);
  color: #fff;
  opacity: 1;
  transform: none;
}

/* ---- EMBEDS ---- */
.embeds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.embed-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.embed-block iframe { display: block; width: 100%; border: none; }
.embed-block.full-width { grid-column: 1 / -1; }

/* ---- DIVIDER ---- */
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 60px;
}

.section-sep {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--accent);
  margin: 0 0 40px;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
#newsletter-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 70px 24px;
}

#newsletter-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-text { margin-bottom: 36px; }

.newsletter-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-top: 10px;
  font-weight: 300;
}

/* Honeypot — totalement invisible */
#hp-website {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- GRILLE DU FORMULAIRE ---- */
#newsletter-form {
  text-align: left;
}

.nl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* Ligne pleine largeur (note + bouton) */
.nl-row-full  { grid-template-columns: 1fr; }
.nl-row-submit {
  grid-template-columns: 1fr;
  margin-top: 6px;
  justify-items: center;
}

/* Chaque champ : label + input */
.nl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nl-field label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nl-opt {
  font-weight: 300;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.nl-req { color: var(--accent); }

/* Inputs — border rouge, placeholder blanc */
.nl-field input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--accent);       /* border rouge */
  border-radius: 2px;
  color: #ffffff;                         /* texte saisi en blanc */
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Placeholder blanc */
.nl-field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

/* Focus : glow rouge */
.nl-field input:focus {
  border-color: #ff0033;
  box-shadow: 0 0 0 2px rgba(200, 0, 42, 0.25);
}

/* Bouton S'abonner */
#nl-submit {
  width: auto;
  min-width: 220px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#nl-submit:hover    { background: #a8001f; }
#nl-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Spinner */
#nl-btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nl-spin 0.7s linear infinite;
  flex-shrink: 0;
}

#nl-submit.loading #nl-btn-spinner { display: block; }
#nl-submit.loading #nl-btn-label  { opacity: 0.7; }

@keyframes nl-spin { to { transform: rotate(360deg); } }

/* Message retour */
#nl-message {
  margin-top: 16px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  min-height: 22px;
  text-align: center;
}

#nl-message.success { color: #4caf82; }
#nl-message.error   { color: #e05252; }

/* ---- FOOTER ---- */
#site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--accent);
  padding: 28px 20px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: bold;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#site-footer span { color: var(--text-muted); }

/* ---- SCROLL FADE-IN ---- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1248px) {
  #map-section { width: calc(100% - 48px); }
}

@media (max-width: 820px) {
  :root { --sidebar-w: 220px; }

  #map-section {
    flex-direction: column;
    height: auto;
    width: calc(100% - 32px);
    margin: 20px auto;
  }

  #map-image-wrapper { width: 100%; flex: none; }

  #map-sidebar {
    width: 100%;
    height: auto;
    max-height: 260px;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  #artist-section { padding: 60px 20px; }

  /* Formulaire newsletter : 1 colonne sur tablette */
  .nl-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --header-h: 80px; }

  #site-header { justify-content: center; padding: 0; }
  #site-header img { margin: 0 auto; }

  #map-section { width: calc(100% - 24px); margin: 16px auto; }
  #artist-section { padding: 48px 16px; }

  .social-grid { gap: 10px; }

  .social-btn {
    flex: 0 0 calc(50% - 5px);
    width: calc(50% - 5px);
  }

  .partner-grid .social-btn {
    flex: 0 0 100%;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.82rem;
    justify-content: flex-start;
  }

  .section-title { font-size: 1.3rem; }
  .embeds-grid { grid-template-columns: 1fr; }
  #newsletter-section { padding: 50px 16px; }

  .ThaCodingMan,
  .ThaCodingMan a { color: #e9672b !important; }
}

@media (max-width: 640px) {
  #map-section { flex-direction: column; height: auto; }

  #map-sidebar {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .embeds-grid { grid-template-columns: 1fr; }
  .social-grid { gap: 10px; }
}

/* ThaCodingMan */
.ThaCodingMan { padding-top: 10px; color: #e9672b !important; text-decoration: none; }
.ThaCodingMan a { padding-top: 20px; color: #e9672b !important; text-decoration: none; }
.ThaCodingMan a:hover { color: #FF0000 !important; }

/* ---- MODAL INSTAGRAM ---- */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 560px;
  width: 92%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 20px 16px 16px;
}

#modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 1;
}

#modal-close:hover { color: var(--accent); }

#modal-content { margin-top: 8px; }

#modal-content .instagram-media { margin: 0 auto !important; }
