/* ================================================================
   FANFARONS.FR — mobile-first
   Tokens → Base → Header → Hero → Sections → Composants → Desktop
   ================================================================ */

/* ——— RESET ——— */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ——— TOKENS ——— */
:root {
  --navy:     #0d2557;   /* bleu, mais pas trop */
  --navy-dk:  #091a40;
  --gold:     #c9a227;   /* décoratif : bordures, fonds */
  --gold-lt:  #e2c05a;
  --gold-bg:  #fdf6d8;
  --bg:       #ffffff;
  --bg-warm:  #f5f2eb;
  --ink:      #1a2540;
  --muted:    #56698a;
  --faint:    #8a9ab5;
  --line:     rgba(13, 37, 87, 0.10);
  --c-noel:   #c03010;
  --r:        14px;
  --r-sm:     8px;
  --sh-sm:    0 2px 12px rgba(13, 37, 87, 0.08);
  --sh:       0 8px 32px rgba(13, 37, 87, 0.15);
  --shell:    1140px;
  --fs-body:  clamp(1.375rem, 1.26rem + 0.45vw, 1.625rem);
  --fs-label: clamp(1.05rem, 1rem + 0.2vw, 1.16rem);
  --fs-nav:   clamp(1.08rem, 1.02rem + 0.22vw, 1.18rem);
  --fs-btn:   clamp(1.1rem, 1.04rem + 0.22vw, 1.22rem);
  --fs-h1:    clamp(3rem, 2.3rem + 3vw, 5rem);
  --fs-h2:    clamp(2.1rem, 1.65rem + 1.6vw, 3.2rem);
  --fs-lead:  clamp(1.28rem, 1.12rem + 0.55vw, 1.65rem);
  --fs-body-lg: clamp(1.4rem, 1.3rem + 0.34vw, 1.6rem);
  --fs-body-sm: clamp(1.16rem, 1.1rem + 0.2vw, 1.28rem);
  --fs-meta:  clamp(1.02rem, 0.98rem + 0.16vw, 1.12rem);
  --fs-kicker: clamp(1rem, 0.96rem + 0.14vw, 1.08rem);
}

/* ——— BASE ——— */
body {
  margin: 0; min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
  font-size: var(--fs-body); line-height: 1.75;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
p   { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
p.mt { margin-top: 12px; }
h1, h2, h3, h4 { margin: 0; overflow-wrap: break-word; }
ul  { margin: 0; padding: 0; list-style: none; }

/* ——— SKIP LINK ——— */
.skip-link {
  position: absolute; left: 16px; top: 16px; z-index: 200;
  transform: translateY(-200%);
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* ——— SHELL ——— */
.shell { width: calc(100% - 32px); max-width: var(--shell); margin: 0 auto; }

/* ——— LABEL ——— */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.label::before {
  content: ''; display: inline-block;
  width: 20px; height: 2px; background: var(--gold); flex-shrink: 0;
}
.label-white { color: var(--gold-lt); }
.label-white::before { background: var(--gold-lt); }
.label-dark  { color: var(--navy); }
.label-dark::before  { background: var(--navy); }
.label-noel  { color: var(--c-noel); }
.label-noel::before  { background: var(--c-noel); }

/* ——— BUTTONS ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 30px;
  border-radius: 999px; border: none;
  font-family: inherit; font-size: var(--fs-btn); font-weight: 800;
  cursor: pointer; text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: var(--gold); color: var(--navy-dk);
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.40);
}
.btn-gold:hover { background: var(--gold-lt); }
.btn-ghost {
  border: 2px solid rgba(255,255,255,0.65);
  background: transparent; color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-navy {
  background: var(--navy); color: #fff;
  box-shadow: 0 4px 18px rgba(13, 37, 87, 0.25);
}
.btn-navy:hover { background: var(--navy-dk); }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(13, 37, 87, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 76px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 64px; height: 64px; object-fit: contain; }

/* Burger — visible par défaut (mobile) */
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 8px;
  border-radius: var(--r-sm);
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav — masquée par défaut (mobile), dropdown */
.site-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  flex-direction: column; align-items: stretch;
  padding: 10px 16px 14px; gap: 2px;
  box-shadow: 0 8px 24px rgba(13, 37, 87, 0.10);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  padding: 12px 16px; border-radius: var(--r-sm);
  font-size: var(--fs-nav); font-weight: 700; color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover, .site-nav a:focus { color: var(--navy); background: rgba(13, 37, 87, 0.06); }
.nav-cta {
  background: var(--gold); color: var(--navy-dk) !important;
  text-align: center; border-radius: 999px !important;
  margin-top: 4px;
}
.nav-cta:hover { background: var(--gold-lt) !important; }

/* ================================================================
   HERO LOGO — supprimé du hero (logo vit sur blanc dans le header)
   ================================================================ */

/* ================================================================
   HERO — photo plein format
   ================================================================ */
.hero {
  position: relative;
  min-height: 90svh;
  display: flex; align-items: flex-end;
  background: url('/assets/fanfarons-1.png') center 30% / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(201, 162, 39, 0.28) 0%,
    rgba(9, 26, 64, 0.52) 45%,
    rgba(9, 26, 64, 0.92) 100%
  );
}
.hero-inner {
  position: relative; z-index: 1;
  padding-top: 32px; padding-bottom: 60px;
  color: #fff;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  padding: 7px 16px 7px 7px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.05em;
}
.hero-badge img { border-radius: 50%; width: 32px; height: 32px; }
h1 {
  font-size: var(--fs-h1);
  font-weight: 900; line-height: 1.0; letter-spacing: -0.03em;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(9,26,64,0.45);
  max-width: 10ch;
}
.hero-lead {
  font-size: var(--fs-lead); line-height: 1.65;
  color: rgba(255,255,255,0.84);
  margin-bottom: 32px;
  max-width: 640px;
}
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
.hero-actions .btn { width: 100%; justify-content: center; }

/* ================================================================
   SECTIONS — fond et espacement (mobile-first)
   ================================================================ */
.section { padding: 56px 0; background: var(--bg); }
.section-alt  { background: #f7f9fc; }   /* très léger bleu-blanc pour alterner */
.section-warm { background: #f7f9fc; }
.section-gold { background: var(--gold-bg); }

.section-header { margin-bottom: 36px; }
.section-header.centered { text-align: center; }

.section h2 {
  font-size: var(--fs-h2);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.025em;
  color: var(--ink);
}
.section-cta h2 { color: #fff; }

.section-intro {
  max-width: 720px; margin: 14px 0 0;
  color: var(--ink); font-size: var(--fs-body-lg);
  line-height: 1.72; text-wrap: balance; opacity: 0.88;
}
.section-header.centered .section-intro { margin-left: auto; margin-right: auto; }

/* ================================================================
   ORCHESTRE — texte + photo côte à côte (desktop)
   ================================================================ */
.orchestre-grid {
  display: flex; flex-direction: column; gap: 36px;
}
.orchestre-photo { flex-shrink: 0; }
.orchestre-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover; object-position: center;
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.traits { display: grid; gap: 0; margin-top: 24px; }
.traits li {
  padding: 11px 0 11px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  font-size: clamp(1.12rem, 1.06rem + 0.2vw, 1.24rem); color: var(--ink);
  transition: border-left-color 0.2s, padding-left 0.2s, color 0.2s;
}
.traits li:last-child { border-bottom: none; }
.traits li:hover { border-left-color: var(--gold-lt); padding-left: 22px; color: var(--navy); }

/* ================================================================
   BANDE PHOTO — séparateur décoratif
   ================================================================ */
.photo-strip {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: url('/assets/fanfarons-3.jpg') center 40% / cover no-repeat;
}
.photo-strip::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(9, 26, 64, 0.80) 0%,
    rgba(9, 26, 64, 0.50) 55%,
    rgba(201, 162, 39, 0.50) 100%
  );
}

/* ================================================================
   RÉPÉTITIONS — faits en ligne, sans cards
   ================================================================ */
.reps-facts {
  display: flex; flex-direction: column;
}
.reps-fact {
  display: flex; align-items: center;
  gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.22s;
}
.reps-fact:last-child { border-bottom: none; }
.reps-fact:hover { padding-left: 8px; }
.reps-fact strong { display: block; font-size: clamp(1.2rem, 1.08rem + 0.36vw, 1.4rem); font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.reps-fact span   { display: block; font-size: var(--fs-body-lg); color: var(--muted); }
.reps-fact-icon   { font-size: 1.75rem; flex-shrink: 0; }
.reps-sep         { display: none; }

/* ================================================================
   RÉPERTOIRE — style programme de concert
   ================================================================ */
.rep-program { display: grid; gap: 40px; }
.rep-group-title {
  display: flex; align-items: center; gap: 14px;
  font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
  margin: 0 0 12px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.rep-group-title span { color: var(--gold); font-size: 1.2em; }
.rep-list { display: grid; gap: 0; }
.rep-piece {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.rep-piece:last-child { border-bottom: none; }
.rep-piece-name {
  font-size: clamp(1.12rem, 1.05rem + 0.24vw, 1.26rem); font-weight: 700; color: var(--ink);
}
.rep-piece-tag {
  font-size: clamp(0.92rem, 0.89rem + 0.1vw, 0.98rem); font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
}

/* ================================================================
   DATES — agenda sans cards
   ================================================================ */
.upcoming-list { margin-bottom: 28px; }
.agenda-item {
  display: flex; align-items: center; gap: 20px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background 0.18s, padding-left 0.22s;
}
.agenda-item:first-child { border-top: 1px solid var(--line); }
.agenda-item:hover { background: rgba(201,162,39,0.07); padding-left: 14px; }
.ag-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 48px; flex-shrink: 0; text-align: center;
}
.ag-day   { font-size: clamp(2.3rem, 2.02rem + 0.9vw, 2.9rem); font-weight: 900; line-height: 1; color: var(--navy); transition: color 0.18s; }
.ag-month { font-size: var(--fs-meta); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.agenda-item:hover .ag-day { color: var(--navy); }
.ag-body  { display: flex; flex-direction: column; gap: 3px; }
.ag-title { font-size: clamp(1.22rem, 1.1rem + 0.32vw, 1.4rem); font-weight: 800; color: var(--ink); }
.ag-meta  { font-size: var(--fs-body-lg); color: var(--muted); }
.reps-info {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; margin-bottom: 36px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-body-sm); color: var(--muted);
}
.history-block { padding-top: 24px; border-top: 1.5px solid var(--line); }
.history-title {
  font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 14px;
}
.hist-year {
  font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); margin: 22px 0 8px;
}
.hist-year:first-of-type { margin-top: 0; }
.hist-list { padding: 0; margin: 0; }
.hist-item {
  display: flex; flex-wrap: wrap; gap: 0 12px;
  align-items: baseline; padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: clamp(1.08rem, 1.02rem + 0.2vw, 1.2rem);
  transition: background 0.18s, padding-left 0.2s;
}
.hist-item:last-child { border-bottom: none; }
.hist-item:hover { background: rgba(201,162,39,0.06); padding-left: 12px; }
.hist-date  { color: var(--faint); font-size: clamp(0.94rem, 0.91rem + 0.1vw, 1rem); min-width: 62px; flex-shrink: 0; }
.hist-event { color: var(--ink); font-weight: 700; }
.hist-where { color: var(--muted); font-size: clamp(1rem, 0.96rem + 0.14vw, 1.08rem); }

/* ================================================================
   CTA — photo fond fondu
   ================================================================ */
.section-cta {
  position: relative;
  padding-bottom: 0;
  background: url('/assets/fanfarons-4.jpg') center 60% / cover no-repeat;
}
.section-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(201, 162, 39, 0.20) 0%,
    rgba(9, 26, 64, 0.70) 50%,
    #091a40 100%
  );
}
.section-cta .shell { position: relative; z-index: 1; }
.cta-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.cta-notes {
  font-size: clamp(1.3rem, 1.18rem + 0.36vw, 1.5rem); letter-spacing: 0.32em;
  color: rgba(255,255,255,0.10);
  margin: 0 0 24px; overflow: hidden; white-space: nowrap;
}
.cta-inner h2 { font-size: clamp(2.2rem, 1.78rem + 1.5vw, 3.1rem); }
.cta-inner .cta-body {
  color: rgba(255,255,255,0.78); font-size: var(--fs-body-lg); line-height: 1.68; margin: 18px 0 30px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,0.55);
  padding: 72px 0;
}
.footer-inner {
  display: flex;
  justify-content: center;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand-col {
  align-items: center; text-align: center; gap: 18px;
  width: 100%;
  max-width: 860px;
}
.footer-logo {
  width: 330px; height: 330px; object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.92);
  margin-bottom: 8px;
}
.footer-slogan {
  font-size: clamp(1.38rem, 1.28rem + 0.34vw, 1.58rem);
  line-height: 1.68;
  color: rgba(255,255,255,0.78);
  margin: 0;
  width: 100%;
  max-width: none;
}

/* Petits téléphones larges : 480px+ */
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
}

/* Tablette : 640px+ */
@media (min-width: 640px) {
  .shell  { width: min(var(--shell), calc(100% - 48px)); }
  .section { padding: 80px 0; }
  .photo-strip { height: 240px; }
  .reps-facts { flex-direction: row; gap: 0; }
  .reps-fact  { flex: 1; border-bottom: none; border-right: 1px solid var(--line); padding: 20px 28px; }
  .reps-fact:last-child { border-right: none; }
  .reps-fact:hover { padding-left: 36px; }
  .hero-actions { gap: 14px; }
}

/* Desktop : 900px+ */
@media (min-width: 900px) {
  .section { padding: 96px 0; }

  .nav-burger { display: none; }
  .site-nav {
    display: flex; position: static;
    flex-direction: row; align-items: center; flex-wrap: wrap;
    padding: 0; gap: 2px;
    background: transparent; border: none;
    box-shadow: none; backdrop-filter: none;
  }
  .site-nav a { padding: 10px 16px; }
  .nav-cta { padding: 8px 18px; margin-top: 0; text-align: left; }

  .orchestre-grid {
    display: grid; grid-template-columns: 1fr 360px;
    gap: 64px; align-items: center; flex-direction: unset;
  }
  .orchestre-photo img { aspect-ratio: unset; height: 460px; }

  .hero-lead { max-width: 720px; }
}

/* ================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ================================================================ */

/* Répertoire — surbrillance dorée au survol */
.rep-piece {
  border-radius: var(--r-sm);
  transition: background 0.18s, padding-left 0.22s;
}
.rep-piece:hover { background: rgba(201,162,39,0.08); padding-left: 10px; }
.rep-piece:hover .rep-piece-tag { color: var(--navy); transition: color 0.18s; }
.rep-piece:hover .rep-piece-name { color: var(--navy); transition: color 0.18s; }

/* Rep group — la ligne or s'éclaircit au survol */
.rep-group-title { transition: border-bottom-color 0.25s; }
.rep-group:hover .rep-group-title { border-bottom-color: var(--gold-lt); }

/* Logo header — léger scale */
.brand img { transition: transform 0.3s ease; }
.brand img:hover { transform: scale(1.06); }

/* Icônes répétitions — petit rebond */
@keyframes icon-bounce {
  0%   { transform: translateY(0); }
  35%  { transform: translateY(-6px); }
  65%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}
.reps-fact:hover .reps-fact-icon { animation: icon-bounce 0.45s ease; }

/* Label — la ligne se dessine à l'entrée de page */
@keyframes line-draw {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}
.label::before { animation: line-draw 0.6s ease both; }
