/* =========================================================
   CAZOT SPORT - STYLE PRINCIPAL
   Création : TYAMIDEV
   Partie 1 : Base, variables, header, hero
========================================================= */

/* ---------- VARIABLES ---------- */
@font-face {
  font-family: "CazotBrush";
  src: url("/assets/fonts/BrushScriptMT.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --color-bg: #070707;
  --color-bg-soft: #111111;
  --color-card: rgba(255, 255, 255, 0.08);
  --color-card-border: rgba(255, 255, 255, 0.16);

  --color-text: #ffffff;
  --color-muted: #c7c7c7;

  --color-red: #e50914;
  --color-red-dark: #8f0008;
  --color-red-soft: rgba(229, 9, 20, 0.18);

  --color-white-soft: rgba(255, 255, 255, 0.75);
  --color-black-glass: rgba(0, 0, 0, 0.62);

  --font-main: Arial, Helvetica, sans-serif;

  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-red: 0 0 35px rgba(229, 9, 20, 0.35);

  --transition-fast: 0.25s ease;
  --transition-medium: 0.45s ease;
}

/* ---------- RESET ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font-family: inherit;
}

/* ---------- STRUCTURE GLOBALE ---------- */

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}

.dark-section {
  background:
    radial-gradient(circle at top left, rgba(229, 9, 20, 0.16), transparent 32%),
    linear-gradient(180deg, #080808 0%, #111111 100%);
}

.glass {
  background-color: rgba(0, 0, 0, 0.55);
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45)),
    radial-gradient(circle at 20% 50%, rgba(229, 9, 20, 0.28), transparent 35%);
  z-index: 1;
}

/* ---------- PARALLAX ---------- */

.parallax {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75)),
    url("../assets/images/hero.jpg");
}

.calendar-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.82)),
    url("../assets/images/calendar.jpg");
}

.history-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.86)),
    url("../assets/images/history.jpg");
}

.portfolio-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.84)),
    url("../assets/images/portfolio-bg.jpg");
}

/* ---------- HEADER ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 5%;

  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-family: "CazotBrush", cursive;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.logo span {
  color: var(--color-red);
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white-soft);
  transition: color var(--transition-fast);
}

.main-nav a:hover {
  color: var(--color-text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0;
  height: 2px;

  background: var(--color-red);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--color-red);
  color: white;
  font-size: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-small);
  cursor: pointer;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding: 160px 5% 100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;

  color: var(--color-red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--color-red);
}

.hero h1 {
  font-family: "CazotBrush", cursive;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 26px;
  text-shadow: 0 4px 18px rgba(0,0,0,.45);

  color: #ffffff;
}

.hero h1 span {
  color: #e10600;
}

.hero-text {
  max-width: 680px;
  color: var(--color-muted);
  font-size: 1.2rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

/* ---------- BOUTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 24px;
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;

  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-3px);
}

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

.btn.primary:hover {
  background: #ff101c;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.btn.secondary:hover {
  border-color: var(--color-red);
  background: var(--color-red-soft);
}

/* ---------- RÉSEAUX SOCIAUX ---------- */

.social-links{
    display:flex;
    gap:18px;
    margin-top:40px;
    flex-wrap:wrap;
}

.social-btn{

    width:62px;
    height:62px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:1.55rem;

    text-decoration:none;

    color:#fff;

    background:#181818;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;
}

.social-btn:hover{

    transform:translateY(-6px) scale(1.08);

    box-shadow:0 0 25px rgba(255,0,0,.45);

}

.facebook:hover{
    background:#1877F2;
}

.instagram:hover{
    background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);
}

.threads:hover{
    background:#fff;
    color:#000;
}

.tiktok:hover{
    background:#000;
    box-shadow:
    0 0 20px #25F4EE,
    0 0 35px #FE2C55;
}

.linkedin:hover{
    background:#0A66C2;
}

/* =========================================================
   Partie 2 : Sections, cartes, calendrier, équipe
========================================================= */

/* ---------- TITRES DE SECTION ---------- */

.section-title {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-title h2,
.split h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.section-title p,
.split p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ---------- GRILLES ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

/* ---------- CARTES INFO ---------- */

.info-card,
.event-card {
  position: relative;
  overflow: hidden;

  padding: 30px;
  min-height: 220px;

  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-large);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);

  transition:
    transform var(--transition-medium),
    border-color var(--transition-medium),
    background var(--transition-medium);
}

.info-card::before,
.event-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at top left, rgba(229, 9, 20, 0.32), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);

  opacity: 0;
  transition: opacity var(--transition-medium);
}

.info-card:hover,
.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(255, 255, 255, 0.11);
}

.info-card:hover::before,
.event-card:hover::before {
  opacity: 1;
}

.info-card h3,
.event-card h3 {
  position: relative;
  z-index: 1;

  font-size: 1.35rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.info-card p,
.event-card p {
  position: relative;
  z-index: 1;

  color: var(--color-muted);
}

.event-card .date {
  position: relative;
  z-index: 1;

  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;

  border-radius: 999px;
  background: var(--color-red-soft);
  color: #ffb8bd;

  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* ---------- TEXTES LONGS ---------- */

.text-block {
  padding: 34px;

  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-large);
  backdrop-filter: blur(18px);
}

.text-block p {
  margin-bottom: 18px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

/* ---------- ÉQUIPE / SLIDER ---------- */

.team-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.team-track {
  flex: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 22px;

  overflow-x: hidden;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scrollbar-width: none;

  padding: 8px 2px 20px;
}

.team-track::-webkit-scrollbar {
  display: none;
}

.team-photo {
  flex: 0 0 340px;
  width: 340px;
  height: 430px;

  overflow: hidden;
  border-radius: var(--radius-large);
  border: 1px solid var(--color-card-border);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);

  cursor: pointer;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-track::-webkit-scrollbar {
    display: none;
}

.team-track::-webkit-scrollbar {
  display: none;
}


.team-photo:hover img {
  transform: scale(1.08);
  filter: contrast(1.12) brightness(1.05);
}

.slider-btn {
  width: 56px;
  height: 56px;

  border: none;
  border-radius: 50%;

  background: var(--color-red);
  color: white;

  font-size: 2rem;
  line-height: 1;
  cursor: pointer;

  box-shadow: var(--shadow-red);

  transition:
    transform var(--transition-fast),
    background var(--transition-fast);
}

.slider-btn:hover {
  transform: scale(1.08);
  background: #ff101c;
}

/* =========================================================
   Partie 3 : Portfolio, contact, lightbox, footer, animations
========================================================= */

/* ---------- PORTFOLIO ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
}

.portfolio-img {
  width: 100%;
  height: 260px;
  object-fit: cover;

  border-radius: var(--radius-medium);
  border: 1px solid var(--color-card-border);

  cursor: pointer;

  transition:
    transform var(--transition-medium),
    filter var(--transition-medium),
    border-color var(--transition-medium);
}

.portfolio-img.wide {
  grid-column: span 2;
}

.portfolio-img.tall {
  grid-row: span 2;
  height: 538px;
}

.portfolio-img:hover {
  transform: scale(1.03);
  filter: brightness(1.12) contrast(1.08);
  border-color: var(--color-red);
}


/* ---------- SPONSORS ---------- */

.sponsors-section {
  background:
    radial-gradient(
      circle at top left,
      rgba(229, 9, 20, 0.18),
      transparent 34%
    ),
    linear-gradient(180deg, #080808 0%, #101010 100%);
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.sponsor-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(229, 9, 20, 0.28),
      transparent 40%
    );

  opacity: 0;
  pointer-events: none;

  transition: opacity var(--transition-medium);
}

.sponsor-card:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow:
    var(--shadow-soft),
    0 0 32px rgba(229, 9, 20, 0.18);
}

.sponsor-card:hover::before {
  opacity: 1;
}

.sponsor-card:hover .sponsor-logo img {
  transform: scale(1.06);
}

.sponsor-content {
  position: relative;
  z-index: 1;

  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 28px;
}

.sponsor-content h3 {
  margin-bottom: 14px;

  color: white;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.sponsor-content p {
  margin-bottom: 26px;

  color: var(--color-muted);
}


/* ---------- CONTACT ---------- */

.contact-section {
  background:
    radial-gradient(circle at top right, rgba(229, 9, 20, 0.22), transparent 34%),
    linear-gradient(180deg, #0b0b0b, #050505);
}

.contact-form {
  display: grid;
  gap: 18px;

  padding: 34px;
  border-radius: var(--radius-large);

  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;

  color: var(--color-white-soft);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-small);

  background: rgba(0, 0, 0, 0.45);
  color: white;

  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18);
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(0, 0, 0, 0.88);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(1000px, 95vw);
  max-height: 85vh;

  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 28px;

  border: none;
  background: var(--color-red);
  color: white;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  font-size: 2rem;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  border: none;
  background: var(--color-red);
  color: white;

  width: 52px;
  height: 52px;
  border-radius: 50%;

  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;

  z-index: 120;
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);

  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.65);
  color: white;

  font-weight: 800;
}

/* ---------- FOOTER ---------- */

/* ---------- FOOTER ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;

  padding: 60px 5% 40px;

  background: #030303;
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: var(--color-muted);
}

.footer-brand p {
  margin-top: 18px;
  max-width: 360px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.footer-column a {
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-red);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials a {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255,255,255,.08);
  color: white;

  transition:
    transform var(--transition-fast),
    background var(--transition-fast);
}

.footer-socials a:hover {
  transform: translateY(-4px);
  background: var(--color-red);
}

.tyamidev {
  margin-top: 20px;
}

.tyamidev strong {
  color: white;
}

/* ---------- ANIMATIONS AU SCROLL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.slider-btn {
    flex-shrink: 0;
    z-index: 20;
}

.team-slider {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.team-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  min-width: 0;
}

.team-photo {
  flex: 0 0 340px !important;
  min-width: 340px;
}

.lightbox-arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.lightbox-prev {
  left: 40px !important;
}

.lightbox-next {
  right: 40px !important;
}

.lightbox-close {
  top: 24px !important;
  right: 24px !important;
}


.logo {
  font-size: 2.4rem !important;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 8rem) !important;
  line-height: 0.9 !important;
}

/* ---------- PAGES LÉGALES ---------- */

.legal-page {
  min-height: 100vh;
  padding: 80px 0;
  background:
    radial-gradient(circle at top left, rgba(229, 9, 20, 0.22), transparent 35%),
    linear-gradient(180deg, #070707, #111111);
  color: white;
}

.legal-back {
  margin-bottom: 60px;
}

.legal-card {
  padding: 42px;
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-card-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: white;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--color-muted);
  margin-bottom: 18px;
}

/* ---------- FORMULAIRE DE CONTACT ---------- */

#contactForm {
  width: 100%;
  max-width: 560px;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

#contactForm .form-group {
  width: 100%;
}

#contactForm .form-group input,
#contactForm .form-group textarea {
  display: block;
  width: 100%;

  padding: 16px 18px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;

  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;

  outline: none;
  box-sizing: border-box;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

#contactForm .form-group textarea {
  min-height: 170px;
  resize: vertical;
}

#contactForm .form-group input:focus,
#contactForm .form-group textarea:focus {
  border-color: var(--color-red);
  background: rgba(255, 255, 255, 0.1);
}

#contactForm .form-group input::placeholder,
#contactForm .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

#contactForm .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;

  cursor: pointer;
}

#contactForm .checkbox input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;

  margin: 3px 0 0;

  accent-color: var(--color-red);
}

#contactForm button {
  align-self: flex-start;
}

#contactForm button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form-result {
  min-height: 24px;
  margin: 0;

  font-weight: 600;
}

.form-result.success {
  color: #5ee68a;
}

.form-result.error {
  color: #ff6b6b;
}

@media (max-width: 900px) {
  #contactForm {
    max-width: 100%;
  }

  #contactForm button {
    width: 100%;
  }
}

.logo,
.logo span,
.hero h1 {
  font-family: "CazotBrush", cursive !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.logo,
.logo span,
.hero h1 {
  font-family: "CazotBrush" !important;
  font-weight: 400 !important;
  font-style: normal !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* =========================================================
   ADMINISTRATION
========================================================= */

.admin-body {
  min-height: 100vh;

  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);

  background:
    radial-gradient(
      circle at top right,
      rgba(229, 9, 20, 0.16),
      transparent 30%
    ),
    #080808;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;

  width: 270px;
  padding: 28px 22px;

  display: flex;
  flex-direction: column;

  background: rgba(10, 10, 10, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.admin-brand {
  margin-bottom: 42px;

  font-family: "CazotBrush", cursive;
  font-size: 2.3rem;
  line-height: 1;
}

.admin-brand span {
  color: var(--color-red);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-nav-link,
.admin-logout {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 16px;

  border: none;
  border-radius: 12px;

  background: transparent;
  color: var(--color-muted);

  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;

  cursor: pointer;

  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.admin-nav-link:hover,
.admin-nav-link.active {
  color: white;
  background: rgba(229, 9, 20, 0.16);
}

.admin-nav-link.active {
  box-shadow: inset 3px 0 0 var(--color-red);
}

.admin-nav-link:hover,
.admin-logout:hover {
  transform: translateX(4px);
}

.admin-logout {
  margin-top: auto;
}

.admin-logout:hover {
  color: white;
  background: rgba(229, 9, 20, 0.16);
}

.admin-main {
  grid-column: 2;
  min-width: 0;
  padding: 38px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 34px;
}

.admin-topbar h1 {
  margin-top: 4px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.admin-eyebrow {
  color: var(--color-red);

  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 11px 16px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.06);
}

.admin-user-status {
  width: 11px;
  height: 11px;

  border-radius: 50%;

  background: #55d980;
  box-shadow: 0 0 14px rgba(85, 217, 128, 0.7);
}

.admin-user strong,
.admin-user small {
  display: block;
}

.admin-user small {
  color: var(--color-muted);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;

  margin-bottom: 26px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 18px;

  min-height: 130px;
  padding: 24px;

  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-medium);

  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
}

.admin-stat-icon {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border-radius: 15px;

  background: var(--color-red-soft);
  color: var(--color-red);

  font-size: 1.3rem;
}

.admin-stat-card span,
.admin-stat-card strong {
  display: block;
}

.admin-stat-card span {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.admin-stat-card strong {
  margin-top: 5px;
  color: white;
  font-size: 1.8rem;
  line-height: 1.1;
}

.admin-panel {
  padding: 30px;

  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-large);

  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  margin-bottom: 28px;
}

.admin-panel-header h2 {
  margin-top: 6px;
  font-size: 1.7rem;
}

.admin-panel-text {
  color: var(--color-muted);
}

.admin-empty-state {
  padding: 70px 20px;
  text-align: center;

  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-medium);
}

.admin-empty-state i {
  margin-bottom: 18px;

  color: var(--color-red);
  font-size: 2.7rem;
}

.admin-empty-state h3 {
  margin-bottom: 9px;
  font-size: 1.3rem;
}

.admin-empty-state p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--color-muted);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;

  display: none;
  justify-content: center;
  align-items: flex-start;

  overflow-x: hidden;
  overflow-y: auto;

  padding: 30px 20px;

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-modal.active {
  display: flex;
}

.admin-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.admin-modal-content {
  position: relative;
  z-index: 1;

  width: min(900px, 95%);
  margin: auto 0;

  max-height: none;
  overflow: visible;

  background: #151515;
  border-radius: 24px;

  padding: 40px;
}

.admin-modal.active {
  display: flex;
}

.admin-modal-content input,
.admin-modal-content textarea,
.admin-modal-content button {
  position: relative;
  z-index: 2;
}

.admin-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);
  color: white;

  font-size: 1.8rem;
  cursor: pointer;
}

.admin-modal-header {
  margin-bottom: 26px;
}

.admin-modal-header h2 {
  margin-top: 5px;
}



.admin-form-group {
  display: grid;
  gap: 9px;

  margin-bottom: 20px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-items-list{
    display:grid;
    gap:18px;
}

.admin-form-group label {
  font-weight: 800;
}

.admin-form-group input,
.admin-form-group textarea {
  width: 100%;
  padding: 14px 16px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;

  background: rgba(255, 255, 255, 0.06);
  color: white;

  outline: none;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.14);
}

.admin-logo-preview {
  min-height: 150px;
  margin-bottom: 20px;
  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;

  background: white;
  color: #444;
}

.admin-logo-preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 24px;

  color: var(--color-muted);
  cursor: pointer;
}

.admin-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-red);
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.admin-form-message {
  min-height: 24px;
  margin-top: 18px;
  font-weight: 700;
}

.admin-sponsors-list {
  display: grid;
  gap: 16px;
}

.admin-item-card{

    display:grid;

    grid-template-columns:
        130px
        1fr
        320px;

    gap:30px;

    align-items:center;
}

.admin-item-card img{

    width:120px;

    height:90px;

    object-fit:contain;

    background:white;

    border-radius:12px;

    padding:12px;

}

.admin-item-content h3{

    margin-bottom:8px;

    font-size:1.2rem;

}

.admin-item-content p{

    color:var(--color-muted);

    font-size:.92rem;

}

.admin-item-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:15px;

    min-width:320px;
}

.admin-item-actions button{

    width:42px;

    height:42px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-size:1rem;

    color:white;

}

.admin-edit{

    background:#0b7dda;

}

.admin-delete{

    background:#d62828;

}

@media (max-width: 1000px) {
  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
  }

  .admin-main {
    grid-column: 1;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .admin-main {
    padding: 22px 16px;
  }

  .admin-topbar,
  .admin-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-user {
    width: 100%;
  }

  .admin-panel,
  .admin-modal-content {
    padding: 24px;
  }

  .admin-form-actions {
    flex-direction: column-reverse;
  }

  .admin-form-actions .btn {
    width: 100%;
  }

.admin-form-row{

    grid-template-columns:1fr;

}

.admin-item-card{

    grid-template-columns:1fr;

}

.admin-item-card img{

    width:100%;

    height:180px;

}

}

.admin-item-actions .btn{
    min-width:150px;
    height:52px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    font-size:17px;
    font-weight:700;

    border-radius:16px;

    transition:.25s;
}

.edit-event,
.edit-race,
.edit-sponsor{

    background:#2b2b2b !important;
    color:#fff !important;

    border:1px solid rgba(255,255,255,.15);

    box-shadow:none;
}

.edit-event:hover,
.edit-race:hover,
.edit-sponsor:hover{

    background:#3a3a3a !important;

    transform:translateY(-2px);
}

.delete-event,
.delete-race,
.delete-sponsor{

    background:#e50914 !important;
    color:white !important;

    border:none;
}

.delete-event:hover,
.delete-race:hover,
.delete-sponsor:hover{

    background:#ff2a2a !important;

    transform:translateY(-2px);
}

/* =========================================================
   NOTIFICATIONS TOAST ADMIN
========================================================= */

.admin-toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 20000;

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: min(380px, calc(100% - 40px));

    pointer-events: none;
}

.admin-toast {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 17px 20px;

    background: #1d1d1d;
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid #e50914;
    border-radius: 14px;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);

    font-size: 15px;
    font-weight: 700;

    opacity: 0;
    transform: translateX(40px);

    animation: adminToastIn 0.3s ease forwards;

    pointer-events: auto;
}

.admin-toast.success {
    border-left-color: #22c55e;
}

.admin-toast.error {
    border-left-color: #e50914;
}

.admin-toast.info {
    border-left-color: #3b82f6;
}

.admin-toast i {
    font-size: 20px;
}

.admin-toast.success i {
    color: #22c55e;
}

.admin-toast.error i {
    color: #e50914;
}

.admin-toast.info i {
    color: #3b82f6;
}

.admin-toast-message {
    flex: 1;
}

.admin-toast-close {
    border: 0;
    background: transparent;
    color: #aaa;

    font-size: 20px;
    cursor: pointer;

    padding: 0;
}

.admin-toast-close:hover {
    color: #fff;
}

.admin-toast.admin-toast-out {
    animation: adminToastOut 0.25s ease forwards;
}

@keyframes adminToastIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes adminToastOut {
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

@media (max-width: 600px) {
    .admin-toast-container {
        top: 15px;
        right: 15px;
        left: 15px;

        width: auto;
    }
}

/* =========================================================
   SECTION SPONSORS
========================================================= */

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
  gap: 28px;
  margin-top: 45px;
}

.sponsor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(38, 38, 38, 0.98),
      rgba(19, 19, 19, 0.98)
    );

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.32);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.sponsor-card:hover {
  transform: translateY(-8px);

  border-color:
    rgba(255, 255, 255, 0.28);

  box-shadow:
    0 26px 55px rgba(0, 0, 0, 0.45);
}

/* Zone contenant le logo */

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    background: transparent;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sponsor-logo img {
    width: 100%;
    max-height: 180px;

    object-fit: contain;

    border-radius: 18px;

    transition: .35s ease;

    box-shadow:
        0 8px 30px rgba(0,0,0,.35);
}

.sponsor-card:hover .sponsor-logo img {
  transform: scale(1.06);
}

/* Informations du sponsor */

.sponsor-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.sponsor-content h3 {
  margin: 0 0 14px;

  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sponsor-content p {
  margin: 0;

  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

/* Message lorsqu'il n'y a aucun sponsor */

.sponsors-empty-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 35px;

  color: rgba(255, 255, 255, 0.7);
  text-align: center;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

/* Responsive */

@media (max-width: 768px) {
  .sponsors-grid {
    grid-template-columns: minmax(0, 360px);
    gap: 22px;
    margin-top: 32px;
  }

  .sponsor-card {
    min-height: 370px;
    border-radius: 20px;
  }

  .sponsor-logo {
    height: 210px;
    padding: 24px;
  }

  .sponsor-logo img {
    max-width: 220px;
    max-height: 165px;
  }

  .sponsor-content {
    padding: 24px;
  }
}

/* Couleurs définitives du titre principal */

.hero h1 {
  color: #ffffff !important;
  background: none !important;

  -webkit-background-clip: initial !important;
  background-clip: initial !important;

  -webkit-text-fill-color: #ffffff !important;
}

.hero h1 span {
  color: var(--color-red) !important;
  -webkit-text-fill-color: var(--color-red) !important;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 12px;

  color: var(--color-muted);
  font-size: 0.95rem;
}

.event-location i {
  color: var(--color-red);
}

.race-championship {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 12px;

  color: var(--color-muted);
  font-size: 0.95rem;
}

.race-championship i {
  color: var(--color-red);
}

.boutique-disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.boutique-disabled:hover {
  transform: none;
}