body {
  background: var(--black);
  color: var(--off-white);
  font-family: "JetBrains Mono", monospace;
}

:root {
  --red: #8f1d16; /* rouge foncé, élégant, proche du site original */
  --black: #000;
  --white: #fff;
}


/* HEADER */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  padding: 24px 60px;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang span {
  margin-left: 20px;
  cursor: pointer;
  font-weight: bold;
}

/* HERO */

.hero {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
    url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-start; /* important pour le point 2 */
  justify-content: center;

  filter: brightness(1.15);
}

.hero-content {
  margin-top: 160px; /* ajuste entre 120 et 200 selon ton image */
  text-align: center;
}

.hero-content h1 {
  font-size: 64px;
  letter-spacing: 4px;
}


.hero h1 {
  font-family: var(--font-condensed);
  color: var(--red);
  font-size: 64px;
  letter-spacing: 6px;
}

/* RULES */

.rules {
  background: var(--off-white);
  color: var(--black);
  .rules {
  padding: 110px 80px 80px;
}

}

.rules h2 {
  font-family: var(--font-title);
  color: var(--red);
  font-size: 64px;
  letter-spacing: 8px;
  font-weight: 600;
  margin-bottom: 50px;
  text-align: center;
}

.rules h2 span {
  display: block;
  font-size: 32px;
  letter-spacing: 6px;
  margin-bottom: 10px;
}


.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.rule {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  min-height: 420px;
  padding-bottom: 60px;
}

.rule-title {
  font-family: var(--font-title);
  font-size: 45px;
  letter-spacing: 3px;
  margin-top: 10px;
}

.rule-sub {
  font-family: var(--font-title);
  font-size: 35px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}


/* VEHICLES */

.vehicles {
  padding: 120px 10%;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.vehicle {
  background: #000;
}

.vehicle img {
  width: 100%;
}

.vehicle-info {
  background: rgba(0,0,0,0.85);
  padding: 16px;
  font-size: 13px;
}

/* CONTACT */

.contact {
  padding: 140px 10%;
  text-align: center;
}

.contact h2 {
  color: var(--red);
  margin-bottom: 20px;
}

/* FOOTER */

footer {
  border-top: 1px solid var(--red);
  padding: 80px 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}


.rule-icon {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--red-strong);
}


.rule-line {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 6px;
}

.rule-line::before,
.rule-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0,0,0,0.55);
}

.rule-line::before {
  top: 0;
}

.rule-line::after {
  bottom: 0;
}


.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 3000;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}



.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 100px;
}


.menu-nav a:hover {
  opacity: 1;
}

.rule p {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-svg {
  width: 48px;
  height: 48px;
}

.logo-text span {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 2px;
}


.vehicles-header {
  margin-bottom: 60px;
  color: var(--red);
}

.vehicles-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.jp-title {
  font-family: var(--font-title);
  font-size: 32px;
  letter-spacing: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.vehicles-line {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vehicles-line span {
  flex: 1;
  height: 2px;
  background: var(--red);
  opacity: 0.7;
}

.car-icon {
  width: 60px;
  height: auto;
  color: var(--red);
}

.vehicle {
  position: relative;
  background: #000;
}

.vehicle img {
  width: 100%;
  display: block;
}

.vehicle-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  padding: 16px;
}

.vehicle-info p {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 1px;
}

.vehicle-info span {
  font-family: var(--font-text);
  font-weight: 700;
}


.vehicle {
  position: relative;
  background: #000;
}

.vehicle img {
  width: 100%;
  display: block;
}

.vehicle-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  padding: 16px;
}

.vehicle-info p {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 1px;
}

.vehicle-info span {
  font-family: var(--font-text);
  font-weight: 700;
}

.vehicles-cta {
  text-align: center;
  margin-top: 60px;
}

.vehicles-cta button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 14px 40px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vehicles-cta button:hover {
  background: rgba(255,255,255,0.06);
  border-color: #fff;
}

.vehicles {
  position: relative;
  padding: 120px 0 140px;
  background-image: url("../assets/images/hortogonale.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vehicles::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
}

.vehicles > * {
  position: relative;
  z-index: 1;
}




.vehicles-cta {
  position: relative;
  text-align: center;
  margin-top: 90px;
  padding-top: 50px;
}

.vehicles-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px; /* même largeur visuelle que la section */
  height: 2px;       /* même épaisseur que la ligne du haut */
  background: var(--red);
  opacity: 0.6;
}

.vehicles-line span,
.vehicles-cta::before {
  height: 2px;
  background: var(--red);
  opacity: 0.6;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-img {
  filter: drop-shadow(0 0 6px rgba(176,33,24,0.4));
}

.contact {
  min-height: 700px;
  background-image:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
    url("../assets/images/contact-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: brightness(1.15);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.contact h2 {
  color: var(--red);
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.contact-box p {
  font-family: 'Space Mono', monospace;
  color: #fff;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 14px 36px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact button:hover {
  background: rgba(255,255,255,0.08);
}

.contact-inner {
  background: rgba(0,0,0,0.85);
  padding: 80px 60px;
  max-width: 520px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact h2 {
  color: var(--red);
  font-size: 42px;
  margin-bottom: 30px;
}

.contact-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 28px;
  margin-bottom: 40px;
  cursor: pointer;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-line span {
  flex: 1;
  height: 2px;
  background: var(--red);
}

.dragon {
  height: 60px;
}

.footer {
  position: relative;
  background-color: #000;
  background-image: url("../assets/images/footer.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 40% auto;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.95) 55%,
    rgba(0,0,0,0.6) 75%,
    rgba(0,0,0,0) 100%
  );
  z-index: 0;
}


.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-left {
  text-align: center;
}

.footer-logo {
  width: 120px;
  margin-bottom: 20px;
}

.footer-left .jp {
  color: var(--red);
  font-size: 22px;
  margin-bottom: 20px;
}

.flag {
  width: 40px;
  margin: 20px 0;
}

.footer-divider {
  width: 1px;
  height: 200px;
  background: var(--red);
}

.footer-right {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
}

.footer-title {
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--red);
}

.contact-dragon {
  position: absolute;
  left: -40px;
  bottom: -30px;

  width: 260px;
  max-width: 60vw;

  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
}

.footer-flag {
  width: 200px;
  opacity: 0.95;
}

.contact-inner > *:not(.contact-line) {
  position: relative;
  z-index: 2;
}


/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch {
  display: flex;
  gap: 14px;
  align-items: center;
}

.lang-switch button {
  background: none;
  border: none;
  color: #aaa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

/* petit trait rouge */
.lang-switch button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #8c1d18;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.lang-switch button:hover {
  color: #fff;
}

.lang-switch button:hover::after {
  transform: scaleX(1);
}

/* langue active */
.lang-switch button.active {
  color: #8c1d18;
}

.lang-switch button.active::after {
  transform: scaleX(1);
}

.contact-line {
  position: relative;
  width: 420px;
  height: 2px;
  background: var(--red);
  margin: 24px auto;
}


.contact {
  position: relative;
  background: 
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    url("../assets/images/voiture.jpeg") center / cover no-repeat;
}

/* ================= ABOUT ================= */

.about {
  background: #000;
  padding: 120px 80px;
}

.about-inner {
  display: flex;
  gap: 80px;
  max-width: 1400px;
  margin: auto;
  align-items: center;
}

.about-image img {
  width: 520px;
  height: auto;
  object-fit: cover;
  filter: brightness(0.7);
}

.about-content {
  color: #fff;
  max-width: 520px;
}

.about-content h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.about-content .jp {
  font-size: 18px;
  color: #b02118;
}

.about-content .intro {
  font-family: 'Space Mono', monospace;
  line-height: 1.6;
  margin-bottom: 30px;
}

.about-box {
  border-left: 3px solid #b02118;
  padding-left: 20px;
  margin-bottom: 40px;
}

.about-box p {
  font-size: 14px;
  margin-bottom: 10px;
}

blockquote {
  font-style: italic;
  margin-bottom: 40px;
}

blockquote span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #b02118;
}

.about-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #b02118;
  color: #b02118;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  transition: 0.3s;
}

.about-btn:hover {
  background: #b02118;
  color: #000;
}

/* =========================
   FOOTER LINK
========================= */

.footer-link {
  color: #8c1d18;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #8c1d18;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-link:hover::after {
  transform: scaleX(1);
}

/* ===============================
   LANG SWITCH – FIX HOME ONLY
================================ */

.home .lang-switch {
  margin-right: 24px; /* espace entre EN et le burger */
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 48px;
  text-align: center;
}

.menu-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  letter-spacing: 4px;
  color: white;
  text-decoration: none;
  opacity: 0.85;
}

.menu-nav a:hover {
  opacity: 1;
  color: var(--red);
}


.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: black;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-center {
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  margin: 6px 0;
}

/* OVERLAY GLOBAL */
.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.menu-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* PARTIE GAUCHE : on voit le site derrière */
.menu-backdrop{
  flex: 1;
  background: rgba(0,0,0,.25);          /* laisse visible */
  backdrop-filter: blur(1.5px);
}

/* PANNEAU DROIT GRIS */
.menu-panel{
  width: min(760px, 46vw);
  height: 100%;
  display: flex;
  flex-direction: column;

  background: rgba(120,120,120,.35);     /* gris */
  border-left: 1px solid rgba(255,255,255,.08);
}

/* TOP */
.menu-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
}

.menu-brand{
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.brand-mark{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand-circle{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  border: 1.6px solid #b10000;
  color: #b10000;
  font-weight: 700;
  font-size: 16px;
}

.brand-sub{
  font-size: 11px;
  color: #b10000;
  letter-spacing: .4px;
}

.brand-name{
  font-size: 18px;
  letter-spacing: .5px;
}

.menu-close{
  background: transparent;
  border: none;
  color: #b10000;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* LIENS */
.menu-links{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 22px;
  padding: 10px 28px 24px;
}

.menu-item{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: center;

  text-decoration: none;
  padding: 18px 18px;
  border-radius: 0;

  color: rgba(0,0,0,.75); /* texte sombre comme sur la capture */
  font-weight: 600;
}

.menu-ico{
  display: grid;
  place-items: center;
  color: #b10000; /* icônes rouges */
}

.ico{
  width: 44px;
  height: 44px;
}

/* item actif (barre noire) */
.menu-item.is-active{
  background: rgba(0,0,0,.85);
  color: #fff;
}

/* FOOTER NOIR */
.menu-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  background: #000;
  padding: 22px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.menu-meta{
  color: #b10000;
  font-size: 14px;
  line-height: 1.35;
}

.menu-lang{
  display: flex;
  gap: 28px;
}

.menu-lang .lang{
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .6px;
}

/* état par défaut */
.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

/* ouvert OU en fermeture (pour éviter le click-through pendant le fade-out) */
.menu-overlay.open,
.menu-overlay.is-closing{
  pointer-events: auto;
}

.menu-overlay.open{
  opacity: 1;
}

/* backdrop animé */
.menu-backdrop{
  flex: 1;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(1.5px);

  opacity: 0;
  transition: opacity .22s ease;
}
.menu-overlay.open .menu-backdrop{
  opacity: 1;
}

/* panneau qui slide */
.menu-panel{
  width: min(760px, 46vw);
  height: 100%;
  display: flex;
  flex-direction: column;

  background: rgba(120,120,120,.35);
  border-left: 1px solid rgba(255,255,255,.08);

  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.2,.9,.2,1);
}

.menu-overlay.open .menu-panel{
  transform: translateX(0);
}

/* petites animations internes (logo / X / footer) */
.menu-top,
.menu-bottom{
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
}
.menu-bottom{
  transform: translateY(6px);
}

.menu-overlay.open .menu-top,
.menu-overlay.open .menu-bottom{
  opacity: 1;
  transform: translateY(0);
}

/* items: apparaissent un par un */
.menu-item{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, background .18s ease, color .18s ease;
}

/* quand ouvert -> visible */
.menu-overlay.open .menu-item{
  opacity: 1;
  transform: translateY(0);
}

/* stagger (délais seulement à l'ouverture) */
.menu-overlay.open .menu-item:nth-child(1){ transition-delay: .06s; }
.menu-overlay.open .menu-item:nth-child(2){ transition-delay: .10s; }
.menu-overlay.open .menu-item:nth-child(3){ transition-delay: .14s; }

/* hover comme sur ta capture */
.menu-item:hover{
  background: rgba(0,0,0,.70);
  color: #fff;
}

/* actif = noir + blanc */
.menu-item.is-active{
  background: rgba(0,0,0,.85);
  color: #fff;
}

/* motion reduced */
@media (prefers-reduced-motion: reduce){
  .menu-overlay,
  .menu-backdrop,
  .menu-panel,
  .menu-item,
  .menu-top,
  .menu-bottom{
    transition: none !important;
  }
}

.header-left{
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none; /* enlève le soulignement */
  color: inherit;        /* garde la couleur */
  cursor: pointer;
}

/* =========================
   ANIMATIONS SCROLL REVEAL
   ========================= */

.reveal{
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition:
    opacity .65s ease,
    transform .65s cubic-bezier(.2,.9,.2,1),
    filter .65s ease;
  will-change: transform, opacity, filter;
}

.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Titre : petit effet "ciné" (écart des lettres qui se resserre) */
.reveal-title{
  letter-spacing: .22em;
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.2,.9,.2,1),
    filter .7s ease,
    letter-spacing .9s ease;
}
.reveal-title.is-in{
  letter-spacing: .12em;
}

/* Voitures : un poil plus marqué */
.vehicle.reveal{
  transform: translateY(40px) scale(.985);
}
.vehicle.reveal.is-in{
  transform: translateY(0) scale(1);
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-title{
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    letter-spacing: normal !important;
  }
}

/* =========================
   Vehicles cards — plus petites
   (override à la fin du fichier)
   ========================= */

.vehicle-grid{
  width: min(1100px, 90vw);   /* resserre le bloc */
  margin: 0 auto;
  gap: 26px;                  /* réduit l’espace entre cards */
}

.vehicle{
  max-width: 340px;           /* ↓ taille card */
  justify-self: center;       /* centre dans la colonne */
}

/* l’image est le plus gros “coupable” */
.vehicle img{
  height: 430px;              /* ↓ hauteur image */
  object-fit: cover;
  display: block;
}

/* texte un poil plus compact */
.vehicle-info{
  padding: 12px 14px;
}

.vehicle-info p{
  font-size: 12px;
  letter-spacing: .08em;
}

.vehicle-info span{
  font-size: 11px;
}

/* Responsive */
@media (max-width: 980px){
  .vehicle-grid{ gap: 20px; }
  .vehicle{ max-width: 360px; }
  .vehicle img{ height: 420px; }
}

@media (max-width: 620px){
  .vehicle{ max-width: 420px; }
  .vehicle img{ height: 380px; }
}

/* =========================
   VEHICLES : trait rouge au-dessus
   ========================= */

.vehicle-grid{
  position: relative;
  padding-top: 18px; /* espace entre trait et cards */
}

.vehicle-grid::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #b02118; /* ton rouge */
  opacity: .95;
}

/* =========================
   VEHICLES : cards cliquables + anim
   ========================= */

.vehicle{
  cursor: pointer;
  position: relative;
  transform: translateY(0) scale(1);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
  will-change: transform, filter;
}

/* petit hover comme sur les sites "premium" */
.vehicle:hover{
  transform: translateY(-8px) scale(1.02);
  filter: brightness(1.05);
}

/* anim au clic (avant redirection) */
.vehicle.is-clicked{
  transform: translateY(-2px) scale(.98);
  filter: brightness(.92);
}

/* Colonne gauche : image plus grande */
.boss-left,
.about-left{
  flex: 1.2;              /* donne plus de place à l'image */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image elle-même */
.boss-left img,
.about-left img{
  width: min(820px, 52vw); /* ✅ plus large */
  height: auto;
  max-height: 78vh;        /* garde le ratio sans dépasser */
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(.95);
}

.mini-icons{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  opacity: .9;
}

.mini-icons img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

.boss-note{
  margin-top: 26px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 420px;
}

.boss-note-mark{
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  opacity: .95;
}

.boss-note-text{
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,.72);
}

/* Icônes sous le texte : plus claires */
.mini-icons{
  opacity: 1 !important;           /* stop l’assombrissement */
}

.mini-icons img{
  filter: none !important;         /* supprime drop-shadow/brightness */
  opacity: 1 !important;
  transform: translateZ(0);

  /* boost léger si tes png sont sombres */
  filter: brightness(1.25) contrast(1.05) !important;
}

/* Icônes sous le texte : plus claires */
.mini-icons{
  opacity: 1 !important;           /* stop l’assombrissement */
}

.mini-icons img{
  filter: none !important;         /* supprime drop-shadow/brightness */
  opacity: 1 !important;
  transform: translateZ(0);

  /* boost léger si tes png sont sombres */
  filter: brightness(1.25) contrast(1.05) !important;
}

/* Donne plus de place à la colonne image */
.about-left, .boss-left{
  flex: 1.45 !important;
}

/* Image plus grande */
.about-left img, .boss-left img{
  width: min(980px, 62vw) !important;
  max-height: 84vh !important;
  object-fit: cover;
  display: block;
}

.mini-icons img{
  width: 26px !important;
  height: 26px !important;
}

.boss-note-mark{
  width: 104px !important;
  height: 104px !important;
}

.mini-icons{
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.mini-icons img{
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  display: block;

  /* boost visibilité */
  filter: brightness(1.9) contrast(1.2) saturate(1.2) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

@media (max-width: 768px) {

  /* =========================
     GLOBAL
  ========================= */
  body {
    overflow-x: hidden;
  }

  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  h1 {
    font-size: 36px !important;
    letter-spacing: 2px;
  }

  h2 {
    font-size: 32px !important;
    letter-spacing: 3px;
  }

  p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* =========================
     HEADER
  ========================= */
  .header-inner {
    padding: 16px 20px;
  }

  .logo-img {
    height: 36px;
  }

  .logo-jp {
    font-size: 14px;
  }

  .lang {
    display: none; /* inutile sur mobile */
  }

  /* =========================
     HERO
  ========================= */
  .hero {
    min-height: 80vh;
  }

  .hero-content {
    margin-top: 120px;
  }

  .hero-content h1 {
    font-size: 36px;
    letter-spacing: 3px;
  }

  /* =========================
     RULES
  ========================= */
  .rules {
    padding: 80px 20px;
  }

  .rules-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .rule {
    min-height: auto;
    padding-bottom: 40px;
  }

  .rule-title {
    font-size: 32px;
  }

  .rule-sub {
    font-size: 20px;
  }

  .rule-icon img {
    width: 90px;
    height: auto;
  }

  /* =========================
     VEHICLES (HOME)
  ========================= */
  .vehicles {
    padding: 80px 20px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .vehicle img {
    height: auto;
  }

  .vehicle-info {
    font-size: 13px;
  }

  /* =========================
     CONTACT
  ========================= */
  .contact {
    padding: 100px 20px;
  }

  .contact-inner {
    padding: 50px 30px;
  }

  .contact h2 {
    font-size: 32px;
  }

  .contact-dragon {
    display: none; /* trop large pour mobile */
  }

  /* =========================
     FOOTER
  ========================= */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-divider {
    display: none;
  }

  .footer-logo {
    width: 90px;
  }

}

/* =========================================
   MOBILE FIXES (INDEX)
   - HERO: image moins "coupée"
   - RULES: barres rouges qui ne chevauchent plus le texte
========================================= */
@media (max-width: 640px) {

  /* HERO: on garde cover, mais on "descend" l'image pour voir YOUKI ZAKA */
  .hero{
    min-height: 100svh !important;
    background-size: cover !important;
    background-position: 50% 82% !important; /* ↓ ajuste 78% -> 88% si besoin */
  }

  .hero-content{
    margin-top: 120px !important;
    padding: 0 16px;
  }

  .hero-content h1{
    font-size: clamp(28px, 8vw, 42px) !important;
    line-height: 1.05;
  }

  /* RULES: sur mobile, le texte descend trop, et la rule-line absolue le chevauche
     => on repasse la line en "flux normal" */
  .rules{
    padding: 90px 0 !important;
  }

  .rules-grid{
    padding: 0 16px !important;
    gap: 26px !important;
  }

  .rule{
    min-height: unset !important;
    padding: 34px 18px 26px !important;
  }

  .rule p{
    margin-bottom: 0 !important;
  }

  .rule-line{
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 28px auto 0 !important; /* espace entre texte et barres */
    width: 72% !important;
  }
}

/* =========================
   HERO INDEX – MOBILE FINAL FIX
========================= */

@media (max-width: 768px) {

  body.home .hero {
    min-height: 90vh;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
  }

  /* léger masque pour renforcer le contraste */
  body.home .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.25) 35%,
      rgba(0,0,0,0.85) 100%
    );
    pointer-events: none;
  }
}
