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

:root {
  --violet: #7C3AED;
  --violet-dark: #6D28D9;
  --violet-light: #A78BFA;
  --violet-bg: #F5F3FF;
  --violet-glow: rgba(124, 58, 237, 0.3);
  --grey: #6B7280;
  --border: #E5E7EB;
  --text: #1A1A1A;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ---- TYPO ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
h2 { font-size: 2rem; margin-bottom: 2rem; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 600px; }
.center { text-align: center; }
.section { padding: 80px 0; }
.section-light { background: var(--violet-bg); }

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--violet);
  margin-bottom: 10px;
}

/* ---- BOUTONS ---- */
.btn {
  display: inline-block;
  background: var(--violet);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 0 24px var(--violet-glow);
}
.btn:hover {
  background: var(--violet-dark);
  box-shadow: 0 0 36px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}
.btn-sm  { padding: 10px 20px; font-size: 13px; }
.btn-lg  { padding: 16px 40px; font-size: 16px; }
.btn-full { width: 100%; text-align: center; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #FDFCFF 0%, #EDE9FE 100%);
  padding: 120px 24px 80px;
}
.hero-inner {
  max-width: 1080px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }

.hero-affiche img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(124, 58, 237, 0.35);
}

.hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--violet);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}
.hero-apostrophe { color: var(--violet); }
.hero-year {
  color: var(--violet);
  text-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
}

.hero-details {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: var(--grey);
  margin: 24px 0 36px;
}
.separator { color: var(--violet-light); }

/* ---- ARTISTE ---- */
.artist-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}
.photo-placeholder {
  width: 100%;
  min-height: 360px;
  background: var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 14px;
}
.mascot-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 32px rgba(124, 58, 237, 0.2));
}
.artist-text h2 { color: var(--violet); margin-bottom: 16px; }
.artist-bio { color: var(--grey); line-height: 1.8; margin-bottom: 20px; }
.artist-style { font-size: 13px; font-weight: 600; color: var(--violet); }

/* ---- CARDS ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 28px var(--violet-glow);
  transform: translateY(-2px);
}
.card-icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { color: var(--violet); }
.card p { color: var(--grey); font-size: 15px; line-height: 1.7; margin-top: 6px; }

/* ---- ARTISTES EXPOSANTS ---- */
.exposants-empty {
  text-align: center;
  color: var(--grey);
  font-size: 16px;
  margin-top: 12px;
}
.exposants-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 24px;
}
.exposant {
  display: flex;
  align-items: center;
  gap: 24px;
}
/* alterner le sens une ligne sur deux */
.exposant:nth-child(even) { flex-direction: row-reverse; }
.exposant-info { flex: 0 1 360px; }
.exposant-stack { flex: 1 1 auto; }

.exposant-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--violet);
  margin-bottom: 12px;
}
.exposant-desc {
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 14px;
}
.exposant-insta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
  border: 1.5px solid var(--violet);
  padding: 7px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.exposant-insta:hover { background: var(--violet); color: white; }

/* Pile de photos en éventail (jusqu'à 5 photos) */
.exposant-stack {
  position: relative;
  width: 100%;
  height: 280px;
  cursor: pointer;
  outline: none;
}
.stack-tile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 175px;
  height: 175px;
  margin: -87px 0 0 -87px;
  background: white;
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.22);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.stack-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
/* état au repos : éventail resserré */
.stack-tile:nth-child(1) { transform: rotate(-12deg) translate(-104px, 14px); z-index: 1; }
.stack-tile:nth-child(2) { transform: rotate(-6deg)  translate(-54px, 4px);   z-index: 2; }
.stack-tile:nth-child(3) { transform: rotate(0deg)   translate(0, -4px);      z-index: 5; }
.stack-tile:nth-child(4) { transform: rotate(6deg)   translate(54px, 4px);    z-index: 2; }
.stack-tile:nth-child(5) { transform: rotate(12deg)  translate(104px, 14px);  z-index: 1; }
/* survol : l'éventail s'écarte */
.exposant-stack:hover .stack-tile:nth-child(1),
.exposant-stack:focus-visible .stack-tile:nth-child(1) { transform: rotate(-15deg) translate(-178px, 20px); }
.exposant-stack:hover .stack-tile:nth-child(2),
.exposant-stack:focus-visible .stack-tile:nth-child(2) { transform: rotate(-8deg)  translate(-90px, 6px); }
.exposant-stack:hover .stack-tile:nth-child(3),
.exposant-stack:focus-visible .stack-tile:nth-child(3) { transform: rotate(0deg)   translate(0, -16px); }
.exposant-stack:hover .stack-tile:nth-child(4),
.exposant-stack:focus-visible .stack-tile:nth-child(4) { transform: rotate(8deg)   translate(90px, 6px); }
.exposant-stack:hover .stack-tile:nth-child(5),
.exposant-stack:focus-visible .stack-tile:nth-child(5) { transform: rotate(15deg)  translate(178px, 20px); }

.stack-count {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 14px var(--violet-glow);
  z-index: 5;
  white-space: nowrap;
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(4px);
  display: none;
  padding: 60px 24px 40px;
  overflow-y: auto;
}
.lightbox.open { display: block; }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-title {
  font-family: 'Playfair Display', serif;
  color: white;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 28px;
}
.lightbox-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lightbox-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ---- BOUTON RÉSERVER (par artiste) ---- */
.exposant-actions { margin-top: 18px; }
.btn-reserver {
  display: inline-block;
  background: var(--violet);
  color: white;
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 0 20px var(--violet-glow);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-reserver:hover {
  background: var(--violet-dark);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

/* ---- SECTION RÉSERVATION ---- */
.day-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.day-btn {
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.day-btn:hover { border-color: var(--violet-light); }
.day-btn.active {
  border-color: var(--violet);
  background: var(--violet-bg);
  color: var(--violet);
  font-weight: 600;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.slots-hint {
  grid-column: 1 / -1;
  color: var(--grey);
  font-size: 14px;
  padding: 8px 0;
}
.slot-btn {
  padding: 11px 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
}
.slot-btn:hover { border-color: var(--violet); color: var(--violet); }
.slot-btn.selected {
  border-color: var(--violet);
  background: var(--violet);
  color: white;
  box-shadow: 0 4px 14px var(--violet-glow);
}
.slot-btn.booked {
  background: #F3F4F6;
  color: #B0B4BB;
  border-color: #ECECEF;
  cursor: not-allowed;
  text-decoration: line-through;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237C3AED' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
textarea.form-input { resize: vertical; font-family: 'Inter', sans-serif; }

/* ---- FORMULAIRE ---- */
.form-intro { color: var(--grey); margin-bottom: 36px; line-height: 1.7; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label { font-size: 14px; font-weight: 500; }

.form-input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.radio-group { display: flex; gap: 12px; }
.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.radio-option:has(input:checked) {
  border-color: var(--violet);
  background: var(--violet-bg);
  color: var(--violet);
}
.radio-option input { display: none; }

.form-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  color: #065F46;
  font-size: 15px;
}
.form-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  color: #991B1B;
  font-size: 15px;
}

.rgpd {
  margin-top: 20px;
  font-size: 12px;
  color: var(--grey);
  text-align: center;
  line-height: 1.6;
}
.rgpd a { color: var(--violet); text-decoration: none; }
.rgpd a:hover { text-decoration: underline; }

/* ---- FOOTER ---- */
.footer {
  background: #0F0F0F;
  color: white;
  padding: 44px 0;
  text-align: center;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--violet-light);
  margin-bottom: 8px;
}
.footer-event {
  font-size: 14px;
  color: #9CA3AF;
  margin-bottom: 16px;
}
.footer-legal a {
  font-size: 12px;
  color: #6B7280;
  text-decoration: none;
}
.footer-legal a:hover { color: white; }

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #2A2A2A;
}
.footer-credit span {
  font-size: 12px;
  color: #6B7280;
}
.footer-credit-logo {
  height: 44px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-credit-logo:hover { opacity: 1; }

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-affiche { order: -1; }
  .hero-affiche img { max-width: 320px; }
  .artist-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  h2 { font-size: 1.6rem; }
  .section { padding: 60px 0; }
  .hero-details { flex-direction: column; gap: 4px; align-items: center; }
  .separator { display: none; }

  /* Exposants en colonne, photo au-dessus */
  .exposants-list { gap: 48px; }
  .exposant,
  .exposant:nth-child(even) { flex-direction: column; gap: 18px; text-align: center; }
  .exposant-info { order: 2; flex: 0 0 auto; }
  .exposant-stack { order: 1; flex: 0 0 auto; width: 100%; height: 230px; transform: scale(0.8); }
  .lightbox-grid { grid-template-columns: repeat(2, 1fr); }
}
