/* ─── RESET & VARIABLES ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --rouge:   #E8001D;
  --bleu:    #0057A8;
  --jaune:   #FFD600;
  --vert:    #00A651;
  --orange:  #F47920;
  --violet:  #6A0DAD;
  --blanc:   #F5F2ED;
  --noir:    #0D0D0D;
  --gris:    #1A1A1A;
}

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: 'Space Mono', monospace;
  cursor: crosshair;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── CURSEUR ────────────────────────────────────────────── */
.cursor-dot {
  width: 10px; height: 10px;
  background: var(--jaune);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, background 0.2s;
}

/* ─── COLOR TICKER ───────────────────────────────────────── */
.color-ticker {
  display: flex;
  height: 6px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
}
.color-ticker div { flex: 1; }
.ct1 { background: var(--rouge); }
.ct2 { background: var(--bleu); }
.ct3 { background: var(--jaune); }
.ct4 { background: var(--vert); }
.ct5 { background: var(--orange); }
.ct6 { background: var(--violet); }

/* ─── NAV ────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 6px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  border-bottom: 2px solid var(--jaune);
  background: var(--noir);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--blanc);
  text-decoration: none;
}
.nav-logo span:nth-child(1) { color: var(--rouge); }
.nav-logo span:nth-child(2) { color: var(--bleu); }
.nav-logo span:nth-child(3) { color: var(--jaune); }
.nav-logo span:nth-child(4) { color: var(--vert); }

/* Logo custom WordPress */
.nav-logo .custom-logo-link img { height: 40px; width: auto; }

.nav-links {
  display: flex; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--blanc);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links .current-menu-item a { color: var(--jaune); border-color: var(--jaune); }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: crosshair;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blanc);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── SECTIONS GÉNÉRALES ─────────────────────────────────── */
section { padding: 8rem 2.5rem; }

.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--jaune);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* ─── HERO ───────────────────────────────────────────────── */
.section-hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 86px;
  padding-left: 0; padding-right: 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.panels-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-template-areas:
    "ailavg capot  capot  ailavd"
    "ptavg  toit   toit   ptavd"
    "ptarg  toit   toit   ptard"
    "ailarg hayon  hayon  ailard";
  gap: 4px;
  padding: 2rem;
}

.panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(.23,1,.32,1), background-color 0.3s ease;
  cursor: pointer;
}
.panel:hover { transform: scale(1.06) rotate(-1deg); z-index: 2; }

/* Couleurs des pièces — réparties pour qu'aucune pièce voisine ne partage sa teinte */
.pc-rouge  { background: var(--rouge);  }
.pc-bleu   { background: var(--bleu);   }
.pc-jaune  { background: var(--jaune);  }
.pc-vert   { background: var(--vert);   }
.pc-orange { background: var(--orange); }
.pc-violet { background: var(--violet); }

/* Position de chaque pièce dans la grille (vue de dessus) */
.pos-aile-avg  { grid-area: ailavg; }
.pos-capot     { grid-area: capot;  }
.pos-aile-avd  { grid-area: ailavd; }
.pos-porte-avg { grid-area: ptavg;  }
.pos-toit      { grid-area: toit;   }
.pos-porte-avd { grid-area: ptavd;  }
.pos-porte-arg { grid-area: ptarg;  }
.pos-porte-ard { grid-area: ptard;  }
.pos-aile-arg  { grid-area: ailarg; }
.pos-hayon     { grid-area: hayon;  }
.pos-aile-ard  { grid-area: ailard; }

.panel-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(0,0,0,0.35);
  user-select: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 3rem 2rem;
}

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--jaune);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.92;
  margin-bottom: 1.5rem;
}
.hero-title .line-rouge { color: var(--rouge); }
.hero-title .line-bleu  { color: var(--bleu);  display: block; }
.hero-title .line-jaune { color: var(--jaune); }
.hero-title .line-vert  { color: var(--vert);  display: block; }

.hero-sub {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(245,242,237,0.65);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--jaune);
  color: var(--noir);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  border: none;
  cursor: crosshair;
  transition: background 0.2s, transform 0.15s;
  width: fit-content;
}
.hero-cta:hover { background: var(--rouge); color: var(--blanc); transform: translate(3px,-3px); }

.hero-scroll {
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-scroll span { font-size: 0.65rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); }
.scroll-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(255,214,0,0.5), transparent);
}

/* ─── VOITURE ────────────────────────────────────────────── */
.section-voiture { background: var(--gris); }

.voiture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.voiture-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--noir);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clio-svg { width: 90%; height: auto; }

.voiture-specs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.spec-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.spec-item:last-child { border-bottom: none; }

.spec-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 1;
  min-width: 3.5rem;
}
.spec-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.spec-desc  { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 0.95rem; color: rgba(255,255,255,0.75); }

/* ─── RAIDS ──────────────────────────────────────────────── */
.section-raids { background: var(--noir); }

.raids-list { margin-top: 4rem; }

.raid-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: padding-left 0.25s;
  cursor: crosshair;
  text-decoration: none;
  color: var(--blanc);
}
.raid-item:hover { padding-left: 1rem; }
.raid-item:hover .raid-arrow { color: var(--jaune); transform: translateX(4px); }

.raid-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
}

.raid-info h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.raid-meta { font-size: 0.7rem; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; }

.raid-badge {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.8rem;
  border: 1px solid;
  text-transform: lowercase;
  white-space: nowrap;
}
.badge-incoming { border-color: var(--vert); color: var(--vert); }
.badge-done     { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.35); }
.badge-open     { border-color: var(--jaune); color: var(--jaune); }

.raid-arrow { transition: transform 0.25s, color 0.25s; color: rgba(255,255,255,0.2); font-size: 1.2rem; }

/* ─── ÉQUIPE ─────────────────────────────────────────────── */
.section-equipe { background: var(--gris); }

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px;
  margin-top: 4rem;
}

.membre-card {
  position: relative;
  padding: 2rem;
  overflow: hidden;
  cursor: crosshair;
  transition: transform 0.3s;
}
.membre-card:hover { transform: translateY(-4px); }
.membre-card:hover .membre-role { opacity: 1; transform: translateY(0); }

.mc1 { background: var(--rouge); }
.mc2 { background: var(--bleu); }
.mc3 { background: var(--jaune); color: var(--noir); }
.mc4 { background: var(--vert); }
.mc5 { background: var(--orange); }
.mc6 { background: var(--violet); }

.membre-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  line-height: 1;
  opacity: 0.2;
  position: absolute;
  top: 0.5rem; right: 1rem;
}

.membre-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  margin-bottom: 0.3rem;
}

.membre-role {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
  position: relative;
  z-index: 1;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.mc3 .membre-role { opacity: 0.45; }

/* ─── CONTACT ────────────────────────────────────────────── */
.section-contact {
  background: var(--noir);
  border-top: 4px solid var(--jaune);
  text-align: center;
  padding: 8rem 2.5rem;
}
.section-contact .section-title { font-size: clamp(3rem, 8vw, 7rem); }

.contact-sub {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  margin: 1.5rem auto 3rem;
  max-width: 500px;
}

.contact-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.contact-form input[type="email"] {
  flex: 1;
  background: var(--gris);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  color: var(--blanc);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  padding: 1rem 1.2rem;
  outline: none;
  letter-spacing: 0.05em;
}
.contact-form input[type="email"]::placeholder { color: rgba(255,255,255,0.25); }
.contact-form input[type="email"]:focus { border-color: var(--jaune); }

.contact-form button {
  background: var(--jaune);
  border: none;
  color: var(--noir);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  cursor: crosshair;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--rouge); color: var(--blanc); }

.contact-feedback {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  min-height: 1.5rem;
  color: var(--vert);
  margin-bottom: 1.5rem;
}
.contact-feedback.error { color: var(--rouge); }

.socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.socials a {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--jaune); border-color: var(--jaune); }

/* ─── FOOTER ─────────────────────────────────────────────── */
#site-footer {
  background: var(--gris);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
#site-footer span { font-size: 0.65rem; color: rgba(255,255,255,0.2); letter-spacing: 0.1em; }

/* ─── SINGLE RAID ────────────────────────────────────────── */
#raid-single { padding-top: 80px; }

.raid-single-hero {
  background: var(--gris);
  padding: 4rem 2.5rem 0;
}

.raid-back {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2.5rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.raid-back:hover { color: var(--jaune); border-color: var(--jaune); }

.raid-single-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.raid-num-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.raid-single-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.raid-single-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

.raid-single-thumb {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.raid-single-thumb img { width: 100%; height: 100%; object-fit: cover; }

.raid-single-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2.5rem 8rem;
}

.entry-content { font-family: 'Instrument Serif', serif; font-size: 1.15rem; line-height: 1.75; color: rgba(245,242,237,0.8); }
.entry-content h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--blanc); margin: 3rem 0 1rem; }
.entry-content h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--jaune); margin: 2rem 0 0.8rem; }
.entry-content p { margin-bottom: 1.5rem; }
.entry-content a { color: var(--jaune); border-bottom: 1px solid var(--jaune); }
.entry-content img { border: 1px solid rgba(255,255,255,0.08); margin: 2rem 0; }

/* ─── ARCHIVE / INDEX ────────────────────────────────────── */
.archive-wrap { max-width: 1100px; margin: 0 auto; }
#main-content { padding: 8rem 2.5rem; padding-top: calc(8rem + 80px); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
  margin-top: 4rem;
}

.post-card {
  background: var(--gris);
  transition: transform 0.3s;
}
.post-card:hover { transform: translateY(-4px); }

.post-card-thumb { overflow: hidden; aspect-ratio: 16/9; display: block; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-body { padding: 1.5rem; }
.post-card-date { font-size: 0.65rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); margin-bottom: 0.5rem; }
.post-card-title { font-family: 'Instrument Serif', serif; font-size: 1.3rem; font-weight: 400; margin-bottom: 0.8rem; }
.post-card-title a { color: var(--blanc); }
.post-card-title a:hover { color: var(--jaune); }
.post-card-excerpt { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 1rem; }
.post-card-link { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--jaune); border-bottom: 1px solid var(--jaune); padding-bottom: 1px; }

/* ─── SINGLE POST ────────────────────────────────────────── */
#post-single { padding-top: 80px; }
.single-post-wrap { max-width: 720px; margin: 0 auto; padding: 5rem 2.5rem 8rem; }
.post-header { margin-bottom: 3rem; }
.post-date { font-size: 0.65rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); margin-bottom: 0.8rem; }
.post-single-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; }
.post-single-thumb { margin-bottom: 3rem; }
.post-single-thumb img { width: 100%; }

.no-posts { color: rgba(255,255,255,0.3); font-style: italic; margin-top: 3rem; }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes panelPop {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.panel { animation: panelPop 0.5s ease both; }
.panel:nth-child(1) { animation-delay: 0.05s; }
.panel:nth-child(2) { animation-delay: 0.1s; }
.panel:nth-child(3) { animation-delay: 0.15s; }
.panel:nth-child(4) { animation-delay: 0.2s; }
.panel:nth-child(5) { animation-delay: 0.25s; }
.panel:nth-child(6) { animation-delay: 0.3s; }
.panel:nth-child(7) { animation-delay: 0.35s; }
.panel:nth-child(8) { animation-delay: 0.4s; }
.panel:nth-child(9) { animation-delay: 0.45s; }
.panel:nth-child(10) { animation-delay: 0.5s; }
.panel:nth-child(11) { animation-delay: 0.55s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .voiture-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .panels-container { display: none; }
  .hero-text { padding: 2rem; }
  .raid-item { grid-template-columns: 60px 1fr auto; gap: 1rem; }
  .raid-arrow { display: none; }
  .raid-single-header { flex-direction: column; gap: 1rem; }
  .raid-num-big { font-size: 3rem; }
}

@media (max-width: 640px) {
  #site-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--noir); padding: 1.5rem; border-bottom: 2px solid var(--jaune); gap: 1.2rem; }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: flex; }
  section { padding: 5rem 1.5rem; }
  .contact-form { flex-direction: column; }
  .contact-form input[type="email"] { border-right: 1px solid rgba(255,255,255,0.1); border-bottom: none; }
  #site-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
