/* ===========================================================
   Fichouting — Photographe à Nantes
   Design system inspiré de paulfichou.vercel.app
   =========================================================== */

:root {
  --ink: #101518;
  --cream: #f4f7ff;
  --amber: #ffbd59;
  --surface: #ffffff;
  --line: #e3e8f3;
  --muted: #5b6470;

  --font-display: "Mochiy Pop One", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --container: 1180px;
  --radius: 18px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

em {
  font-style: normal;
  color: var(--amber);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; }
.section-dark { background: var(--ink); color: var(--surface); }
.section-dark .why-lead,
.section-dark p { color: rgba(255,255,255,0.75); }
.section-cream { background: var(--cream); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header.light { color: var(--surface); }

.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  background: var(--amber);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-tag.light { background: var(--amber); color: var(--ink); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  font-weight: 400;
}
.section-title.light { color: var(--surface); }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 17px; }
.section-dark .section-sub { color: rgba(255,255,255,0.7); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255,189,89,0.4); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: var(--surface); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--surface); }
.btn-secondary { background: var(--ink); color: var(--surface); }
.btn-secondary:hover { box-shadow: 0 10px 30px rgba(16,21,24,0.3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); background: rgba(255,189,89,0.1); }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVIGATION ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(16,21,24,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav-logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; border-radius: 8px; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
#header:not(.scrolled) .nav-link:not(.nav-cta) { color: var(--surface); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: var(--amber);
  color: var(--ink) !important;
  padding: 10px 22px;
  border-radius: 100px;
}
.nav-cta::after { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: var(--transition);
}
#header:not(.scrolled) .nav-toggle span { background: var(--surface); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--surface);
}
.hero-bg { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,21,24,0.55) 0%, rgba(16,21,24,0.35) 45%, rgba(16,21,24,0.75) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero-sub { font-size: 19px; max-width: 520px; color: rgba(255,255,255,0.88); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  position: relative;
}
.hero-scroll span::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--amber);
  border-radius: 50%;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}
.hero-dots {
  position: absolute;
  bottom: 36px; right: 36px;
  z-index: 2;
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--amber); width: 28px; border-radius: 100px; }

/* ===== INTRO BAND ===== */
.intro-band { background: var(--cream); padding: 50px 0; }
.intro-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}
.intro-stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 28px; color: var(--ink); }
.stat-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.intro-divider { width: 1px; height: 44px; background: var(--line); }
.intro-text { max-width: 480px; font-style: italic; color: var(--ink); font-size: 16px; }

/* ===== WHY ===== */
.why-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center; }
.why-lead { font-size: 19px; margin: 22px 0; color: var(--ink); font-weight: 500; }
.why p { color: var(--muted); margin-bottom: 18px; }
.why-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.why-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 500;
}
.why-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.why-image { position: relative; }
.why-image img { border-radius: var(--radius); width: 100%; height: auto; display: block; }
.why-accent {
  position: absolute;
  bottom: -20px; left: -20px;
  width: 110px; height: 110px;
  background: var(--amber);
  border-radius: var(--radius);
  z-index: -1;
}

/* ===== PORTFOLIO ===== */
.portfolio-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }
.filter-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--amber); color: var(--surface); }
.filter-btn.active { background: var(--amber); color: var(--ink); border-color: var(--amber); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.portfolio-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item.tall { grid-row: span 2; }
.portfolio-item.wide { grid-column: span 2; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,21,24,0) 50%, rgba(16,21,24,0.85) 100%);
  display: flex; align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span { color: var(--surface); font-weight: 600; font-size: 14px; }
.portfolio-item.hide { display: none; }
.portfolio-more { text-align: center; margin-top: 50px; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(16,21,24,0.08); }
.service-card--featured { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.service-card--featured p,
.service-card--featured .service-list li { color: rgba(255,255,255,0.75); }
.service-badge {
  position: absolute; top: -14px; right: 28px;
  background: var(--amber); color: var(--ink);
  font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 100px;
}
.service-icon {
  width: 54px; height: 54px;
  background: var(--cream);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  margin-bottom: 24px;
}
.service-card--featured .service-icon { background: rgba(255,189,89,0.15); color: var(--amber); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 12px; font-weight: 400; }
.service-card p { color: var(--muted); margin-bottom: 20px; font-size: 15px; }
.service-list { margin-bottom: 28px; flex-grow: 1; }
.service-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

/* ===== PROCESS ===== */
.process-steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.process-step { flex: 1; text-align: center; }
.step-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--amber);
  margin-bottom: 14px;
}
.step-content h3 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.step-content p { color: var(--muted); font-size: 14px; }
.process-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: var(--line);
  margin-top: 18px;
}

/* ===== ABOUT ===== */
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-accent {
  position: absolute;
  top: -24px; right: -24px;
  width: 140px; height: 140px;
  border: 8px solid var(--amber);
  border-radius: var(--radius);
  z-index: -1;
}
.about-lead { font-size: 18px; font-weight: 500; margin: 20px 0; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-links { display: flex; gap: 24px; margin-top: 28px; }
.social-link {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--amber);
}

/* ===== TESTIMONIALS ===== */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  overflow: hidden;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial-stars { color: var(--amber); margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14.5px; color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12.5px; color: rgba(255,255,255,0.6); }
.testimonial-nav { display: none; justify-content: center; gap: 14px; margin-top: 32px; }
.t-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--surface);
  cursor: pointer;
  font-size: 16px;
}
.t-btn:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* ===== TARIFS (kept for future use) ===== */
.tarifs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tarif-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; text-align: center; }
.tarif-card--featured { border-color: var(--amber); position: relative; }
.tarif-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 100px; }
.tarif-header h3 { font-family: var(--font-display); font-weight: 400; margin-bottom: 10px; }
.tarif-price { color: var(--muted); margin-bottom: 24px; }
.tarif-list { margin-bottom: 28px; text-align: left; }
.tarif-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--muted); }

/* ===========================================================
   PAGE CONCOURS (concours.html)
   =========================================================== */
#header.header-solid {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(16,21,24,0.06);
}
#header.header-solid .nav-link:not(.nav-cta) { color: var(--ink); }
#header.header-solid .nav-toggle span { background: var(--ink); }

/* Hero */
.cc-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
  color: var(--surface);
}
.cc-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 78% 55%, #23303a 0%, #151d24 45%, #101518 100%);
}
.cc-hero-content { position: relative; z-index: 2; max-width: 720px; }
.cc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.6vw, 58px);
  line-height: 1.18;
  margin-bottom: 22px;
}
.cc-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin-bottom: 34px;
  font-weight: 300;
}

/* Thème */
.cc-theme {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255,189,89,0.12);
  border: 1px dashed var(--amber);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.cc-theme-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.cc-theme-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
.cc-theme p { color: var(--muted); font-size: 15px; }

.cc-hero-punch {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 23px);
  line-height: 1.45;
  color: var(--amber);
  margin-bottom: 20px;
}
.cc-hero-trophy {
  position: absolute;
  right: 5%;
  bottom: 8%;
  height: 52%;
  max-height: 360px;
  width: auto;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,0.5));
  pointer-events: none;
}
/* Décompte */
.cc-countdown {
  margin: 30px 0 34px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-left: 4px solid var(--amber);
  border-radius: 14px;
  display: inline-block;
  backdrop-filter: blur(4px);
}
.cc-cd-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 12px;
}
.cc-cd-boxes { display: flex; gap: 10px; }
.cc-cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.28);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 66px;
}
.cc-cd-box strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--surface);
  font-variant-numeric: tabular-nums;
}
.cc-cd-box span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-top: 7px;
}
.cc-cd-date { display: block; margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.7); }

/* Décompte sur fond clair, centré */
.cc-countdown--center {
  display: block;
  max-width: 520px;
  margin: 0 auto 20px;
  text-align: center;
  background: var(--surface);
  border-color: var(--line);
}
.cc-countdown--center .cc-cd-boxes { justify-content: center; }
.cc-countdown--center .cc-cd-box { background: var(--ink); }
.cc-countdown--center .cc-cd-date { color: var(--muted); }
.cc-countdown--center .cc-cd-live { color: var(--ink); }

.cc-draw-note {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}
.cc-draw-note strong { color: var(--ink); }
.cc-countdown.is-live { border-left-color: #3ecf8e; }
.cc-cd-live {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--surface);
}

.cc-hero-meta { display: flex; gap: 38px; margin-top: 40px; flex-wrap: wrap; }
.cc-hero-meta div { display: flex; flex-direction: column; }
.cc-hero-meta strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--amber);
  line-height: 1;
}
.cc-hero-meta span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}

/* Le lot */
.cc-lot {
  display: flex;
  gap: 32px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  padding: 42px 44px;
  box-shadow: 0 24px 60px rgba(16,21,24,0.08);
}
.cc-lot-icon {
  width: 82px; height: 82px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,189,89,0.18);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.cc-lot-icon svg { width: 40px; height: 40px; }
.cc-lot-icon { background: none; width: auto; height: auto; }
.cc-lot-trophy { width: 96px; height: auto; display: block; }

.volet-final { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 8px 0; }
.volet-trophy { width: 64px; height: auto; flex-shrink: 0; }
.volet-final .matches-grid { margin: 0; }
.cc-lot-text h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.cc-lot-text p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.cc-lot-when { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-lot-when span {
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 100px;
}

/* Deadline */
.cc-deadline {
  max-width: 560px;
  margin: 54px auto 0;
  text-align: center;
  background: rgba(255,189,89,0.14);
  border: 1px dashed var(--amber);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.cc-deadline-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.cc-deadline strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  margin-bottom: 10px;
}
.cc-deadline p { color: var(--muted); font-size: 14.5px; }

/* Format */
.cc-format { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.cc-format-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.cc-format-tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 12px;
}
.cc-format-step h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--surface); margin-bottom: 12px; }
.cc-format-step p { font-size: 14.5px; color: rgba(255,255,255,0.75); }
.cc-format-step strong { color: var(--amber); }

/* ===== VOLETS DEPLIABLES ===== */
.volets { display: flex; flex-direction: column; gap: 14px; }
.volet {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.volet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}
.volet-head::-webkit-details-marker { display: none; }
.volet-head:hover { background: var(--cream); }
.volet-title {
  font-family: var(--font-display);
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.volet-title::before {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.volet[open] .volet-title::before { transform: rotate(45deg); }
.volet-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.volet-body { padding: 4px 24px 26px; }

/* Variante fond sombre */
.volets--dark .volet {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
}
.volets--dark .volet-head:hover { background: rgba(255,255,255,0.07); }
.volets--dark .volet-title { color: var(--surface); }
.volets--dark .volet-meta { color: rgba(255,255,255,0.6); }

.cc-rounds-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 400;
  color: var(--surface);
  text-align: center;
  margin-top: 60px;
}
.cc-rounds-intro {
  text-align: center;
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  margin: 10px 0 28px;
}

/* Confrontations */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.matches-grid.is-final { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin: 0 auto; }
.match {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
}
.match-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--amber);
  min-width: 20px;
  flex-shrink: 0;
}
.match-slots { display: flex; align-items: center; gap: 8px; flex: 1; }
.match-slots .br-slot { flex: 1; height: 24px; }
.match-slots .br-slot.is-filled {
  flex: 1;
  height: auto;
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 0;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.match-slots .br-slot.is-filled { position: relative; }
.match-slots .br-slot.is-filled img { width: 100%; height: 100%; object-fit: cover; display: block; }
.match-slots .br-slot.is-filled:hover { border-color: var(--amber); transform: scale(1.04); }
.slot-vote {
  position: absolute;
  bottom: 2px; right: 2px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 6px;
  pointer-events: none;
}
.match-slots .br-slot.is-win { border-color: #22c55e; }
.match-slots .br-slot.is-win .slot-vote { background: #22c55e; color: #04210f; }
.match-slots .br-slot.is-lose { opacity: 0.5; }
/* Tour estimé (non définitif) : les deux photos en pointillé vert,
   le vainqueur estimé garde un cadre vert plein pour rester lisible. */
.match.is-estim .match-slots .br-slot.is-filled {
  border-style: dashed;
  border-color: rgba(34,197,94,0.55);
}
.match.is-estim .match-slots .br-slot.is-win {
  border-style: solid;
  border-color: #22c55e;
}
/* Résultat estimé (non définitif) : cadre vert en pointillé */
.match-slots .br-slot.is-win.is-estim { border-style: dashed; }
.match-slots .br-slot.is-win.is-estim .slot-vote {
  background: rgba(34,197,94,0.75);
  color: #04210f;
}
.match-estim {
  flex: 0 0 100%;
  margin-top: -4px;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(34,197,94,0.85);
  font-style: italic;
  text-align: center;
}
.match-vs {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
}

/* ===== MOSAIQUE ===== */
.mosaique {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.mos-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.mos-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mos-item:hover { transform: scale(1.06); z-index: 2; box-shadow: 0 10px 26px rgba(0,0,0,0.45); }
.mos-item:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ===== VISIONNEUSE ===== */
.viewer {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(10,13,16,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.viewer.open { display: flex; }
.viewer-fig { margin: 0; text-align: center; max-width: 92vw; }
.viewer-fig img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}
.viewer-fig figcaption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--amber);
  word-break: break-word;
}
.viewer-close, .viewer-prev, .viewer-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: var(--surface);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.viewer-close { top: 24px; right: 24px; width: 46px; height: 46px; font-size: 20px; }
.viewer-prev, .viewer-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 30px; }
.viewer-prev { left: 24px; }
.viewer-next { right: 24px; }
.viewer-close:hover, .viewer-prev:hover, .viewer-next:hover { background: var(--amber); color: var(--ink); }

/* ===== POULES (style infographie) ===== */
.poules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 20px;
}
.poule-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.poule-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16,21,24,0.1); }
.poule-head {
  font-family: var(--font-display);
  font-size: 15px;
  color: #fff;
  padding: 11px 16px;
  letter-spacing: 0.02em;
}
.poule-head.t1 { background: #2f8f6b; }
.poule-head.t2 { background: #c8433c; }
.poule-head.t3 { background: #d4a02a; color: #101518; }
.poule-head.t4 { background: #2b7fc4; }
.poule-head.t5 { background: #d9762f; }
.poule-head.t6 { background: #6b5b95; }
.poule-list { padding: 6px 0; }
.pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.3;
}
.pl-item:last-child { border-bottom: none; }
.pl-photo {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.pl-photo:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(16,21,24,0.25); }
button.pl-photo:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.pl-empty {
  background: var(--cream);
  border: 1px dashed var(--line);
  cursor: default;
  position: relative;
}
.pl-empty::after {
  content: "?";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.pl-name { word-break: break-word; color: var(--muted); }
.pl-name.has-photo { color: var(--ink); font-weight: 500; }

/* ===== RESULTATS DANS LES POULES ===== */
.pl-vote {
  width: 34px;
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pl-vote.is-empty::after { content: "–"; color: var(--line); }

.pl-photo.r1 { box-shadow: 0 0 0 3px #22c55e; }
.pl-photo.r2 { box-shadow: 0 0 0 3px #f59e0b; }
.pl-photo.r3 { box-shadow: 0 0 0 3px #ef4444; }
.pl-empty.r1 { border-color: #22c55e; }
.pl-empty.r2 { border-color: #f59e0b; }
.pl-empty.r3 { border-color: #ef4444; }

.poule-card.is-done .poule-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.poule-flag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.25);
  padding: 3px 9px;
  border-radius: 100px;
}

/* ===== SECTION RESULTATS ===== */
.res-titre {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 400;
  margin-bottom: 8px;
}
.res-intro { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.res-intro strong { color: var(--ink); }
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 46px;
}
.res-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
.res-item.is-ok  { border-left-color: #22c55e; }
.res-item.is-out { border-left-color: #ef4444; opacity: 0.72; }
.res-rang {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--muted);
  min-width: 20px;
  flex-shrink: 0;
}
.res-photo {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  padding: 0; border: none; background: none;
  cursor: pointer;
  display: block;
  transition: transform var(--transition);
}
.res-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.res-photo:hover { transform: scale(1.08); }
.res-empty { background: var(--cream); border: 1px dashed var(--line); cursor: default; }
.res-info { min-width: 0; }
.res-info strong { display: block; font-size: 13.5px; word-break: break-word; }
.res-info span { font-size: 12px; color: var(--muted); }
.res-note { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.res-puce { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.res-puce.is-ok { background: #22c55e; }
.res-puce.is-out { background: #ef4444; }

/* ===== ARBRE DE TOURNOI ===== */
.cc-bracket-legend {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cc-bracket-legend span {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.cc-bracket-legend strong { color: var(--amber); font-family: var(--font-display); margin-right: 4px; }
.cc-bracket-legend .is-final { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 600; }
.cc-bracket-legend .is-final strong { color: var(--ink); }
.cc-bracket-intro {
  text-align: center;
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 34px;
}

.bracket-scroll { overflow-x: auto; padding-bottom: 10px; }
.bracket {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  /* les vignettes de l'arbre imposent des colonnes plus larges qu'à l'origine */
  min-width: 1080px;
}
.br-side { display: flex; gap: 14px; flex: 1; }
.br-side--right { flex-direction: row; }
.br-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 14px;
  /* largeur 0 + flex:1 : les colonnes se partagent la place dispo et les
     pseudos trop longs sont tronqués, au lieu d'élargir l'arbre */
  flex: 1 1 0;
  min-width: 0;
}
.br-col-title {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 2px;
}
.br-match {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 7px;
}
.br-slot {
  display: block;
  height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px dashed rgba(255,255,255,0.22);
}
/* Arbre : slot rempli = vignette + pseudo + votes.
   Vert plein = résultat définitif, pointillé vert = en tête mais vote en cours. */
.br-slot.is-filled {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: auto;
  padding: 3px 6px 3px 3px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.br-slot.is-filled img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.br-slot .br-nm {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: rgba(255,255,255,0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.br-slot .br-vt {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--amber);
  flex-shrink: 0;
}
.br-slot.is-filled:hover { border-color: var(--amber); }
.br-slot.is-win {
  border-color: #22c55e;
  background: rgba(34,197,94,0.14);
}
.br-slot.is-win .br-vt { color: #4ade80; }
/* en tête, mais le vote n'est pas terminé */
.br-slot.is-lead {
  border: 1px dashed #22c55e;
  background: rgba(34,197,94,0.08);
}
.br-slot.is-lead .br-vt { color: #4ade80; }
.br-slot.is-out { opacity: 0.5; }

.br-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  flex-shrink: 0;
}
.br-trophy { width: 92px; height: auto; }
.br-final-label {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--amber);
  margin-top: 14px;
  text-align: center;
}
.br-final-date { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 5px; }
/* Vainqueur du tournoi, sous le trophée */
.br-champion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px;
  border: 2px solid var(--amber);
  border-radius: 14px;
  background: rgba(255,189,89,0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.br-champion:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,189,89,0.25); }
.br-champion img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; display: block; }
.br-champion-nm { font-family: var(--font-display); font-size: 14px; color: var(--surface); }
.br-champion-tag { font-size: 11px; color: var(--amber); }

/* Bracket */
.cc-bracket { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cc-bracket-item {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 78px;
}
.cc-bracket-item strong { font-family: var(--font-display); font-size: 22px; color: var(--surface); line-height: 1; }
.cc-bracket-item span { font-size: 11.5px; color: rgba(255,255,255,0.6); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.cc-bracket-item--final { background: var(--amber); border-color: var(--amber); }
.cc-bracket-item--final strong { color: var(--ink); }
.cc-bracket-item--final span { color: rgba(16,21,24,0.7); }
.cc-bracket-arrow { color: rgba(255,255,255,0.35); font-size: 18px; }

/* Timeline */
.cc-timeline { max-width: 880px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cc-tl-row {
  display: grid;
  grid-template-columns: 70px 1.15fr 1.35fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.cc-tl-row:last-child { border-bottom: none; }
.cc-tl-phase {
  background: var(--cream);
  font-weight: 600;
}
.cc-tl-phase .cc-tl-label { color: var(--ink); font-weight: 700; }
.cc-tl-day { font-family: var(--font-display); font-size: 15px; color: var(--amber); }
.cc-tl-date { color: var(--muted); }
.cc-tl-label { font-weight: 500; }
.cc-tl-count { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.cc-tl-row--final { background: rgba(255,189,89,0.16); }
.cc-tl-row--final .cc-tl-label { font-weight: 700; }
.cc-tl-row--live { background: var(--ink); }
.cc-tl-row--live .cc-tl-label { color: var(--amber); font-weight: 700; }
.cc-tl-row--live .cc-tl-date,
.cc-tl-row--live .cc-tl-count { color: rgba(255,255,255,0.75); }

/* Groupe */
.cc-group { max-width: 760px; margin: 0 auto; text-align: center; }
.cc-quote {
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  margin: 28px 0 24px;
  padding: 26px 30px;
  background: var(--surface);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  text-align: left;
}
.cc-group > p { color: var(--muted); margin-bottom: 30px; font-size: 15.5px; }
.section-dark .cc-group > p { color: rgba(255,255,255,0.75); }

/* ===== QUI JE SUIS ===== */
.qjs {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.qjs-photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.qjs-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.qjs-texte .section-title { margin-bottom: 22px; }
.qjs-lead {
  font-size: 18px;
  color: var(--surface) !important;
  margin-bottom: 18px;
  font-weight: 500;
}
.qjs-texte p { color: rgba(255,255,255,0.75); margin-bottom: 16px; font-size: 15.5px; line-height: 1.7; }
.qjs-texte strong { color: var(--amber); }
.qjs-fin {
  padding-left: 16px;
  border-left: 3px solid var(--amber);
  font-style: italic;
}
.qjs-actions { margin-top: 26px; }

/* Tableau participants */
.cc-search-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto 26px;
  flex-wrap: wrap;
}
.cc-search {
  flex: 1;
  min-width: 240px;
  padding: 13px 20px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
}
.cc-search:focus { outline: none; border-color: var(--amber); background: var(--surface); }
.cc-search-count { font-size: 13.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.cc-table-wrap {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  max-height: 620px;
  overflow-y: auto;
}
.cc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cc-table thead th {
  position: sticky; top: 0;
  background: var(--ink);
  color: var(--surface);
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 20px;
  z-index: 2;
}
.cc-table tbody tr { border-bottom: 1px solid var(--line); }
.cc-table tbody tr:last-child { border-bottom: none; }
.cc-table tbody tr:nth-child(even) { background: var(--cream); }
.cc-table td { padding: 11px 20px; }
.cc-num { color: var(--muted); font-size: 13px; width: 54px; }
.cc-handle a { font-weight: 500; border-bottom: 1px solid transparent; transition: var(--transition); }
.cc-handle a:hover { color: var(--ink); border-bottom-color: var(--amber); }
.cc-open {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 2px solid var(--amber);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.cc-open:hover { color: var(--muted); }
.cc-open::before { content: "▸ "; color: var(--amber); }
.cc-nophoto { color: var(--muted); }
.cc-poule { color: var(--muted); font-size: 13.5px; white-space: nowrap; text-align: right; }
.cc-dm {
  display: inline-block;
  margin-left: 8px;
  background: var(--amber);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 100px;
  vertical-align: middle;
}
.cc-table-note {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 13px;
  color: var(--muted);
}

/* Lots */
.cc-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.cc-prize {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cc-prize:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(16,21,24,0.08); }
.cc-prize--first { border-color: var(--amber); border-width: 2px; }
.cc-prize-rank {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 16px;
}
.cc-prize-rank sup { font-size: 16px; }
.cc-prize h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin-bottom: 18px; }
.cc-prize ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.cc-prize ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

.cc-cta { text-align: center; margin-top: 54px; }

/* Calendrier */
.cc-dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cc-date {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 26px 22px;
}
.cc-date--highlight { border-color: var(--amber); background: rgba(255,189,89,0.1); }
.cc-date-when {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}
.cc-date strong { display: block; font-size: 17px; color: var(--surface); margin-bottom: 8px; }
.cc-date p { font-size: 13.5px; color: rgba(255,255,255,0.7); }

/* Règlement */
.cc-rules-wrap { max-width: 820px; }
.cc-rules { display: flex; flex-direction: column; gap: 14px; }
.cc-rules li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.cc-rules li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 2px;
}
.cc-rules li strong { color: var(--ink); }
.cc-rules-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}
.cc-rules-note a { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--amber); }

/* ===== CONTACT ===== */
.contact-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; }
.contact-info p { color: var(--muted); margin: 20px 0 32px; font-size: 16px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--cream);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--surface);
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  margin-top: 16px;
  background: rgba(255,189,89,0.18);
  color: var(--ink);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.form-success.show { display: block; }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 70px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo-img { height: 56px; width: auto; border-radius: 8px; margin-bottom: 14px; }
.footer-logo p { font-size: 14px; max-width: 280px; }
.footer-links h4, .footer-social h4 { color: var(--surface); font-size: 15px; margin-bottom: 20px; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--amber); }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-icons a:hover { background: var(--amber); color: var(--ink); }
.footer-bottom { text-align: center; padding: 24px 0; font-size: 13px; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(16,21,24,0.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap { max-width: 86vw; max-height: 86vh; }
.lightbox-img-wrap img { max-width: 100%; max-height: 86vh; border-radius: 10px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: var(--surface);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
}
.lightbox-close { top: 28px; right: 28px; width: 44px; height: 44px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--amber); color: var(--ink); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .why-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .why-image, .about-image { order: -1; }
  .cc-prizes { grid-template-columns: 1fr; }
  .cc-dates { grid-template-columns: repeat(2, 1fr); }
  .cc-hero-trophy { height: 55%; right: 2%; opacity: 0.55; }
  .cc-format { grid-template-columns: 1fr; }
  .poules-grid { grid-template-columns: repeat(2, 1fr); }
  .matches-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-lot { flex-direction: column; text-align: center; padding: 34px 28px; }
  .cc-lot-when { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.wide { grid-column: span 2; }
  .process-steps { flex-direction: column; align-items: stretch; }
  .process-connector { width: 2px; height: 36px; margin: 0 auto; }
  .tarifs-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 40px;
    gap: 28px;
    transition: right var(--transition);
  }
  .nav-menu.open { right: 0; }
  .nav-menu .nav-link { color: var(--surface) !important; font-size: 18px; }
  .nav-cta { margin-top: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: 1fr; }
  .intro-band-inner { flex-direction: column; gap: 20px; }
  .intro-divider { display: none; }
  .contact-form { padding: 26px; }
  .cc-hero { padding: 120px 0 70px; min-height: 480px; }
  .cc-dates { grid-template-columns: 1fr; }
  .cc-hero-trophy { display: none; }
  .cc-countdown { display: block; padding: 16px 18px; }
  .cc-cd-boxes { gap: 7px; }
  .cc-cd-box { padding: 9px 8px; min-width: 0; flex: 1; }
  .cc-cd-box strong { font-size: 22px; }
  .cc-cd-box span { font-size: 9.5px; letter-spacing: 0.04em; }
  .volet-final { flex-direction: column; gap: 16px; }
  .cc-hero-meta { gap: 24px; margin-top: 30px; }
  .cc-hero-meta strong { font-size: 23px; }
  .cc-tl-row { grid-template-columns: 52px 1fr; gap: 6px 14px; padding: 14px 18px; }
  .cc-tl-label { grid-column: 2; }
  .cc-tl-count { grid-column: 2; text-align: left; }
  .cc-table td, .cc-table thead th { padding: 10px 14px; }
  .cc-poule { font-size: 12.5px; }
  .poules-grid { grid-template-columns: 1fr; gap: 16px; }
  .qjs { grid-template-columns: 1fr; gap: 30px; }
  .qjs-photo { order: -1; max-width: 340px; margin: 0 auto; }
  .mosaique { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
  .viewer { padding: 20px 12px; }
  .viewer-fig img { max-height: 68vh; }
  .viewer-prev, .viewer-next { width: 44px; height: 44px; font-size: 24px; }
  .viewer-prev { left: 8px; } .viewer-next { right: 8px; }
  .viewer-close { top: 14px; right: 14px; }
  .matches-grid, .matches-grid.is-final { grid-template-columns: 1fr; }
  .volet-head { padding: 15px 18px; }
  .volet-title { font-size: 15px; }
  .volet-body { padding: 4px 16px 22px; }
  .volet-head { flex-wrap: wrap; gap: 6px; }
  .bracket { min-width: 760px; }
  .br-trophy { width: 66px; }
  .cc-theme { padding: 28px 22px; }
  .cc-cta .btn { width: 100%; justify-content: center; }
}
