/* ===============================
   VARIABLES
================================ */
:root {
  --red: #e10600;
  --red-dark: #9e0500;
  --black: #0b0b0b;
  --black-soft: #111;
  --gray: #1a1a1a;
  --white: #ffffff;
  --text-soft: rgba(255,255,255,0.75);
}

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

/* ===============================
   HEADER
================================ */
.header {
  display: flex;
  align-items: center;
  padding: 30px 60px;
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid rgba(225,6,0,0.6);
}

/* ===============================
   BANDEAU LOGO HAUT
================================ */
.top-banner {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-logo {
  height: 200px;
  max-width: 90%;
  object-fit: contain;
}
   
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;

  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(225,6,0,0.12), transparent 65%),
    linear-gradient(180deg, #0b0b0b 0%, #050505 100%);
}

/* Texture très légère */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 4px
    );

  opacity: 0.25;
}

/* ===============================
   HERO IMAGE FULL WIDTH
================================ */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
      linear-gradient(
      90deg,
      #050505 0%,
      rgba(0,0,0,0.45) 15%,
      rgba(0,0,0,0.45) 85%,
      #050505 100%
    ),
    url("../images/virage.jpg") center / cover no-repeat;

  opacity: 0.85;
  z-index: 0;
}

/* ===============================
   TEXTE SUR IMAGE
================================ */
.hero-overlay {
  text-align: center;
  max-width: 1000px;
  padding: 40px 60px;
  background: rgba(0,0,0,0.45);
  border-radius: 20px;
  backdrop-filter: blur(2px);
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-overlay p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
}


/* ===============================
   SECTIONS
================================ */
.section {
  padding: 110px 60px;
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
}

section,
header,
footer {
  position: relative;
  z-index: 1;
}

/* ===============================
   CARDS – METAL / GLASS
================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 35px 80px rgba(225,6,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* =========================
   CARTES INTERACTIVES
========================= */

.toggle-card {
  cursor: pointer;
}

.toggle-card h3::after {
  content: "⌄";
  display: inline-block;
  margin-left: 8px;
  color: var(--red);
  transition: transform 0.3s ease;
}

.toggle-card.active h3::after {
  transform: rotate(180deg);
}

.toggle-card .details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    max-height 0.5s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
  margin-top: 0;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.toggle-card.active .details {
  max-height: 500px; /* sécurité pour texte long */
  opacity: 1;
  transform: translateY(0);
  margin-top: 18px;
}

/* ===============================
   CONTACT
================================ */
.contact {
  background: linear-gradient(180deg, #000, #0b0b0b);
}

.contact-form {
  max-width: 1100px;
}

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

.form-grid .full {
  grid-column: span 3;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--white);
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: none;
}

.contact-form ::placeholder {
  color: rgba(255,255,255,0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(225,6,0,0.8);
}

/* ===============================
   BUTTON
================================ */
.btn {
  margin-top: 40px;
  padding: 16px 70px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(180deg, #ff1a1a, var(--red-dark));
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(225,6,0,0.5);
  transition: transform .3s ease, box-shadow .3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(225,6,0,0.75);
}

/* ===============================
   MAP
================================ */
.location .map {
  position: relative;
  margin-top: 30px;
}

.location iframe {
  width: 100%;
  height: 400px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}

.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
}

.map-marker img {
  width: 70px;
}

/* ===============================
   FOOTER
================================ */
.footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid rgba(225,6,0,0.6);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .top-banner {
    height: 120px;
  }

  .top-logo {
    height: 90px;
  }

  .hero-image {
    height: calc(100vh - 120px);
  }

  .hero-overlay h1 {
    font-size: 2.1rem;
  }
}
