:root {
  --red: #d31e25;
  --red-dark: #a8151b;
  --black: #111111;
  --grey-950: #161616;
  --grey-100: #f4f4f2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --font: 'Barlow', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Bebas Neue', Impact, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  margin: 0 0 0.3em;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  -webkit-mask-image: linear-gradient(180deg, black 75%, transparent 100%);
  mask-image: linear-gradient(180deg, black 75%, transparent 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.6) 0%, rgba(17,17,17,0.72) 55%, rgba(17,17,17,0.95) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(211,30,37,0.28) 0%, rgba(211,30,37,0) 35%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  min-width: 0;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-logo-wrap {
  display: inline-block;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.95) 48%, rgba(255,255,255,0.55) 65%, rgba(255,255,255,0) 78%);
  padding: 30px 46px;
  margin-bottom: 12px;
}

.hero-logo {
  width: 280px;
  max-width: 62vw;
  display: block;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.15em;
  line-height: 0.95;
}

.hero h1 span {
  color: var(--red);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.55);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  opacity: 0.95;
  margin-bottom: 1.4em;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211,30,37,0.4);
}

/* Stats */
.stats {
  background: var(--black);
  color: var(--white);
  padding: 44px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, rgba(17,17,17,0.55) 50%, var(--black) 100%);
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.5px;
  color: var(--red);
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.stat-icon {
  display: block;
  height: 46px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.stat-icon-badge {
  height: 56px;
}

.stat-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.stat-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: background 0.15s ease;
}

.stat-social a:hover {
  background: var(--red);
}

/* Why — bloc sombre avec bord diagonal */
.why {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 80px 24px 130px;
  text-align: center;
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 65%;
  opacity: 0.65;
  mix-blend-mode: screen;
  filter: saturate(1.5) contrast(1.15);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 85%, transparent 100%);
}

.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, rgba(17,17,17,0.88) 30%, rgba(17,17,17,0.35) 75%, rgba(17,17,17,0.75) 100%);
  pointer-events: none;
}

.why-inner {
  position: relative;
  z-index: 1;
}

.why h2 {
  font-size: 2.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 900px;
}

.why-list li {
  grid-column: span 2;
}

.why-list li:nth-child(4),
.why-list li:nth-child(5) {
  grid-column: span 3;
}

.why-list li {
  display: flex;
  text-align: left;
  min-height: 96px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.why-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(211,30,37,0.3);
}

.why-item-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.why-item-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.why-item-title::before {
  content: "✓";
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
}

.why-item-text strong {
  font-size: 1rem;
}

.why-item-text span {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.4;
}

.why-tagline {
  position: relative;
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: var(--red);
}

/* Calculatrice de réduction d'impôt */
.calculator-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  padding: 24px 28px;
  max-width: 420px;
  margin: 32px auto 0;
  text-align: left;
}

.calculator-card h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.calculator-sub {
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.4;
}

.calculator-field label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.calculator-field input[type="range"] {
  width: 100%;
  accent-color: var(--red);
  height: 8px;
  border-radius: 999px;
  background: var(--grey-100);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calculator-field input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) var(--calc-fill, 50%), var(--grey-100) var(--calc-fill, 50%));
}

.calculator-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--red);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.calculator-field input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.calculator-field input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: var(--grey-100);
}

.calculator-field input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--red);
}

.calculator-field input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--red);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  cursor: pointer;
}

.calculator-amount {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--red);
  margin: 6px 0 16px;
}

.calculator-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calculator-result {
  background: var(--grey-100);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.calculator-result-main {
  background: var(--black);
  color: var(--white);
}

.calculator-result-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.65;
  margin-bottom: 6px;
}

.calculator-result-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

/* Bande photo entre le bloc "why" et les packs */
.team-band {
  position: relative;
  margin: 0;
  height: 42vh;
  min-height: 280px;
  max-height: 460px;
  overflow: hidden;
}

.team-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
}

.team-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.85) 100%);
}

.team-band figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 1;
  text-align: center;
  color: var(--white);
  font-family: 'Anton', var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
  padding: 0 24px;
  max-width: 900px;
  margin: 0 auto;
}

.packs {
  position: relative;
  background:
    linear-gradient(180deg, var(--black) 0%, rgba(17,17,17,0) 12%),
    linear-gradient(0deg, var(--grey-100) 0%, rgba(244,244,242,0) 15%),
    linear-gradient(135deg, var(--black) 0%, #4a1013 55%, var(--red-dark) 100%);
  padding: 70px 24px 80px;
  overflow: hidden;
}

.packs::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 160%;
  background: linear-gradient(135deg, rgba(211,30,37,0.28), rgba(211,30,37,0) 60%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.packs::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 160%;
  background: linear-gradient(-45deg, rgba(211,30,37,0.2), rgba(17,17,17,0) 60%);
  transform: rotate(8deg);
  pointer-events: none;
}

.packs-inner {
  position: relative;
  z-index: 1;
}

.packs h2 {
  text-align: center;
  font-size: 2.6rem;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: var(--white);
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.pack-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #eee;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

.pack-card.featured {
  border: 2px solid var(--red);
  box-shadow: 0 16px 36px rgba(211,30,37,0.22);
}

.pack-badge {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.pack-head {
  position: relative;
  padding: 24px 22px;
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.pack-head.pack-red { background: var(--red); }
.pack-head.pack-black { background: var(--black); }

.pack-head::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  background: rgba(255,255,255,0.08);
  transform: skewX(-14deg);
}

.pack-head h3 {
  position: relative;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15em;
}

.pack-price {
  position: relative;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.5px;
}

.pack-price span {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}

.pack-features {
  list-style: none;
  padding: 20px 22px 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pack-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.pack-features li:last-child { border-bottom: none; }

.pack-features li::before {
  content: "●";
  color: var(--red);
  font-size: 0.6rem;
  margin-right: 10px;
  vertical-align: middle;
}

.pack-engagement {
  margin: 10px 22px 0;
  font-size: 0.8rem;
  color: var(--red-dark);
  font-weight: 700;
}

.pack-card .btn-choose {
  margin: 18px 22px 22px;
  background: var(--white);
  color: var(--red);
  border-radius: 999px;
  padding: 11px;
  font-weight: 700;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pack-card .btn-choose:hover,
.pack-card.selected .btn-choose {
  background: var(--red);
  color: var(--white);
}

.pack-card.selected {
  outline: 3px solid var(--red);
}

/* Form */
.form-section {
  position: relative;
  background: var(--grey-100);
  padding: 90px 0 130px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 60px));
  margin-bottom: -60px;
  overflow: hidden;
}

.form-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1400px;
  max-width: 230%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.form-wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.form-section h2 {
  text-align: center;
  font-size: 2.2rem;
  text-transform: uppercase;
}

.form-intro {
  text-align: center;
  color: #444;
  margin-bottom: 32px;
}

.sponsor-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--white);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--red);
  border-color: var(--red);
}

.field-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.field-checkbox input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.field-checkbox label {
  font-weight: 500;
  font-size: 0.88rem;
  margin: 0;
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
}

.btn-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}

.form-status.success { color: #1b8a3d; }
.form-status.error { color: var(--red-dark); }

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--black);
  color: var(--white);
  padding: 80px 0 0;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red-dark) 0%, var(--red) 50%, var(--red-dark) 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(211,30,37,0.22), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-brand {
  text-align: center;
}

.footer-logo-wrap {
  display: inline-block;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 0 auto 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.footer-logo {
  display: block;
  width: 150px;
}

.footer-baseline {
  opacity: 0.75;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.footer-links p,
.footer-contact p {
  margin: 0 0 10px;
}

.footer-links a,
.footer-contact a {
  color: var(--white);
  opacity: 0.85;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--red); opacity: 1; }

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

.admin-link {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  color: var(--white);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(2px);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-link:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Navigation haut / bas */
.scroll-nav {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scroll-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(17,17,17,0.65);
  color: var(--white);
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.scroll-nav button:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .scroll-nav { right: 14px; bottom: 14px; }
  .scroll-nav button { width: 40px; height: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-section { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px)); margin-bottom: -40px; }
  .team-band { height: 30vh; min-height: 200px; }
  .why-list { grid-template-columns: 1fr; }
  .why-list li,
  .why-list li:nth-child(4),
  .why-list li:nth-child(5) { grid-column: span 1; }
}
