/* ==========================================================
   FESTIVAL FOLIFRETS BAIE-JAMES — style.css
   Thème hivernal : bleu glacé, nuit boréale, blanc neige
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --ice-500: #00aeef;
  --ice-600: #0092c9;
  --ice-100: #e4f7ff;
  --night-900: #10151c;
  --night-800: #1b232e;
  --charcoal: #2e2e2e;
  --snow: #f7fafc;
  --gray-500: #6b7684;
  --gray-300: #b9c2cc;
  --line: rgba(255,255,255,0.12);
  --font-display: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--night-900);
  background: var(--snow);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--ice-600);
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.2; color: var(--night-900); }
h1 { font-size: clamp(32px,5vw,52px); text-transform: uppercase; }
h2 { font-size: clamp(24px,3.2vw,34px); text-transform: uppercase; }
h3 { font-size: 19px; text-transform: uppercase; letter-spacing: 0.03em; }
p { color: var(--gray-500); }
ul.plain { list-style: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 14px; padding: 13px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn-ice { background: var(--ice-500); color: #fff; }
.btn-ice:hover { background: var(--ice-600); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; }

/* ---------- header ---------- */
.topbar {
  background: var(--night-900); color: var(--gray-300); font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar .social { display: flex; gap: 14px; }
.topbar .social a:hover { color: var(--ice-500); }
.topbar .contact { display: flex; gap: 18px; }
.topbar .contact a:hover { color: var(--ice-500); }

.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(16,21,28,0.95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 19px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.logo .mark { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(155deg, var(--ice-500), var(--ice-600)); display:flex; align-items:center; justify-content:center; font-size: 14px; flex-shrink:0; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 38px; height: 38px; background: transparent; border: 0; padding: 0; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav > .nav-item { position: relative; }
.main-nav > .nav-item > a {
  display: block; font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-300); padding: 10px 12px;
  border-radius: 4px; transition: all .15s ease;
}
.main-nav > .nav-item > a:hover, .main-nav > .nav-item.active > a { color: #fff; background: rgba(255,255,255,0.08); }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: var(--night-800);
  border: 1px solid var(--line); border-radius: 6px; padding: 8px; min-width: 240px; z-index: 50;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 12px; font-size: 13px; color: var(--gray-300); border-radius: 4px; white-space: nowrap; }
.dropdown a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.dropdown .group-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ice-500); padding: 8px 12px 2px; font-weight: 700; }
.mega { display: flex; gap: 28px; padding: 14px; }
.dropdown-mega { min-width: 640px; padding: 6px; }
.mega-col { display: flex; flex-direction: column; min-width: 170px; }
.mega-col a { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1200px) { .dropdown-mega { min-width: 520px; } .mega { flex-wrap: wrap; gap: 18px; } .mega-col { min-width: 220px; } }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--night-900), var(--night-800));
  color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(120deg, transparent 0 120px, rgba(255,255,255,.04) 120px 121px);
}
.hero .wrap { position: relative; }
.hero .dates { font-family: var(--font-display); color: var(--ice-500); font-weight: 700; letter-spacing: .06em; margin-bottom: 10px; }
.hero h1 { color: #fff; margin-bottom: 18px; max-width: 720px; }
.hero p.lede { color: var(--gray-300); font-size: 17px; max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-video { position: relative; height: 78vh; min-height: 420px; max-height: 640px; overflow: hidden; background: var(--night-900); }
.hero-video iframe {
  position: absolute; top: 50%; left: 50%; width: 177.77vh; height: 100vh; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%); pointer-events: none; border: 0;
}
.hero-video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,21,28,.35), rgba(16,21,28,.7)); }
.hero-video-content { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding-bottom: 40px; color: #fff; }
.hero-video-content .dates { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px,2.6vw,28px); letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0,0,0,.5); margin-bottom: 18px; }

.on-fete-section { padding: 40px 0; text-align: center; background: #fff; }
.on-fete-section img { max-width: 100%; height: auto; }

.songs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.song-block { text-align: center; }
.song-block h3 { margin-bottom: 16px; }
.song-block audio { width: 100%; }
@media (max-width: 640px) { .songs-grid { grid-template-columns: 1fr; } }

.page-hero {
  background: var(--night-900); color: #fff; padding: 54px 0 44px;
}
.page-hero h1 { color: #fff; margin-top: 8px; font-size: clamp(28px,4vw,40px); }
.breadcrumb { font-size: 13px; color: var(--gray-300); }
.breadcrumb a:hover { color: var(--ice-500); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-ice { background: var(--ice-100); }
.section-dark { background: var(--night-900); color: #fff; }
.section-dark p { color: var(--gray-300); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 700px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius);
  padding: 26px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.card .icon {
  width: 44px; height: 44px; border-radius: 8px; background: var(--ice-100); color: var(--ice-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; font-size: 16px; }
.card p { font-size: 14px; margin: 0; }

.pricing-box {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.pricing-header { background: var(--ice-500); color: #fff; padding: 26px; text-align: center; }
.pricing-header h3 { color: #fff; font-size: 15px; letter-spacing: .06em; }
.pricing-header .price { font-family: var(--font-display); font-size: 46px; font-weight: 800; }
.pricing-body { padding: 24px 26px; }
.pricing-body ul { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.pricing-body li { font-size: 14px; color: var(--night-900); display: flex; gap: 8px; align-items: baseline; }
.pricing-body li::before { content: '✓'; color: var(--ice-600); font-weight: 700; }

.coord-card {
  background: var(--night-900); color: #fff; border-radius: var(--radius); padding: 30px;
}
.coord-card h3 { color: var(--ice-500); font-size: 13px; margin-bottom: 10px; }
.coord-card p { color: var(--gray-300); margin-bottom: 18px; font-size: 14px; }
.coord-card a { color: #fff; }
.coord-card a:hover { color: var(--ice-500); }

table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple th, table.simple td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,.08); }
table.simple th { font-family: var(--font-display); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; color: var(--gray-500); }

.doc-list { display: grid; gap: 10px; }
.doc-list a {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius); padding: 14px 18px; font-family: var(--font-display); font-weight: 700;
  font-size: 14px; color: var(--night-900); transition: all .15s ease;
}
.doc-list a:hover { border-color: var(--ice-500); color: var(--ice-600); }

.doc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.doc-group + .doc-group { margin-top: 30px; }
.doc-group h3 { margin-bottom: 14px; }
@media (max-width: 720px) { .doc-columns { grid-template-columns: 1fr; } }

.logo-wall { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.logo-chip {
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 999px; padding: 10px 20px;
  font-size: 13px; font-weight: 700; color: var(--night-900);
}
.logo-card {
  display: flex; align-items: center; justify-content: center; background: #fff;
  border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius); padding: 14px 22px; height: 88px;
}
.logo-card img { max-height: 60px; max-width: 190px; width: auto; height: auto; object-fit: contain; }
.logo-wall.logo-wall-lg .logo-card { height: 140px; padding: 20px 30px; }
.logo-wall.logo-wall-lg .logo-card img { max-height: 100px; max-width: 300px; }
.logo-wall.logo-wall-sm .logo-card { height: 68px; padding: 10px 16px; }
.logo-wall.logo-wall-sm .logo-card img { max-height: 44px; max-width: 150px; }

.logo-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.logo-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.logo-grid-2 .logo-card, .logo-grid-3 .logo-card { width: 100%; height: 100px; }
.logo-grid-2 .logo-card img, .logo-grid-3 .logo-card img { max-height: 72px; max-width: 100%; }
@media (max-width: 640px) {
  .logo-grid-2, .logo-grid-3 { grid-template-columns: 1fr 1fr; }
}

.logo-card-poster { height: auto; padding: 0; overflow: hidden; }
.logo-card-poster img { max-height: none; max-width: 260px; width: 100%; height: auto; }

.faq-item { border-bottom: 1px solid rgba(0,0,0,.08); padding: 18px 0; }
.faq-item h3 { font-size: 15px; margin-bottom: 8px; color: var(--night-900); }
.faq-item p { font-size: 14px; margin: 0; }

.emergency-band { background: var(--ice-500); color: #fff; padding: 26px 0; }
.emergency-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.emergency-inner .label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.emergency-inner a { font-family: var(--font-display); font-size: 20px; font-weight: 800; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: var(--gray-300); padding: 46px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: .06em; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 14px; color: var(--gray-300); }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--ice-500); }
.footer-bottom { padding-top: 20px; font-size: 13px; color: var(--gray-300); text-align: center; }
.footer-bottom a { color: var(--ice-500); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--night-900); border-bottom: 1px solid var(--line); padding: 8px;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > .nav-item { width: 100%; }
  .main-nav > .nav-item > a { display: block; padding: 12px; }
  .dropdown, .dropdown-mega {
    display: none; position: static; border: 0; background: rgba(255,255,255,.04); min-width: 0; width: 100%;
    margin: 0 0 6px; padding: 4px;
  }
  .nav-item.mobile-open > .dropdown { display: block; }
  .mega { flex-direction: column; gap: 4px; padding: 4px; }
  .mega-col { min-width: 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar .contact span:first-child { display:none; }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .emergency-inner { flex-direction: column; align-items: flex-start; }
}
