/* ============================================================
   site.css — Visite Vortex — CSS vanilla sans Bootstrap
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --bg:       #0b0b0b;
  --bg2:      #141414;
  --text:     #e9e9e9;
  --muted:    #9aa0a6;
  --border:   #2a2a2a;
  --accent:   #4db6ff;
  --nav-h:    64px;
  --font:     'Roboto Condensed', Arial, sans-serif;
  --radius:   8px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
p { margin-bottom: .85rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11,11,11,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.navbar-brand img { height: 36px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-right: auto;
}
.nav-links a {
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); text-decoration: none; }

.nav-email {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}
.nav-email a { color: var(--text); }
.nav-email a:hover { color: var(--accent); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Offset page ---------- */
main { padding-top: var(--nav-h); }

/* ---------- Section utilitaires ---------- */
.section { padding: 4rem 0; }
.section-dark { background: #000; }

.section-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2rem;
}

/* ---------- Hero vidéo ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.75rem;
}

/* ---------- Bouton ---------- */
.btn {
  display: inline-block;
  padding: .6rem 1.5rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  cursor: pointer;
  font-family: var(--font);
}
.btn:hover { background: var(--accent); color: #05141f; text-decoration: none; }

/* ---------- Grille 2 col ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---------- Chiffres clés ---------- */
.facts-list { display: flex; flex-direction: column; gap: .45rem; }
.facts-list li::before { content: '• '; color: var(--accent); }

/* ---------- Galerie ---------- */
.carousel-wrap { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track {
  display: flex;
  transition: transform .4s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg2); }
.photo-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .6rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.65);
  border: 1px solid var(--border);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 2;
}
.carousel-btn:hover { background: var(--accent); color: #05141f; }
.carousel-btn.prev { left: .5rem; }
.carousel-btn.next { right: .5rem; }

/* ---------- Timeline ---------- */
.timeline-img { width: 100%; border-radius: var(--radius); }

/* ---------- Témoignages ---------- */
.testimonials-wrap { overflow: hidden; }
.testimonials-track {
  display: flex;
  transition: transform .4s ease;
}
.testimonials-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.testimonial-card p { font-style: italic; margin: 0; }
.dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background .2s;
  padding: 0;
}
.dot.active { background: var(--accent); }

/* ---------- Partenaires ---------- */
.partners-list { display: flex; flex-direction: column; gap: 3rem; }
.partner-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.partner-row:last-child { border-bottom: none; padding-bottom: 0; }
.partner-row img { max-height: 110px; width: auto; object-fit: contain; }

/* ---------- Infos pratiques ---------- */
.info-block { margin-bottom: 2.5rem; }
.info-block h2 { margin-bottom: 1rem; }
.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Formulaire ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.form-card {
  background: linear-gradient(180deg, var(--bg2), #101010);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full  { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 600; font-size: .9rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"] {
  background: #0f0f0f;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem .85rem;
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,182,255,.15);
}
.form-group input::placeholder { color: #555; }
.form-group input[required]:not(:placeholder-shown):invalid { border-color: #6b2b2b; }

.radio-group { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding-top: .25rem; }
.radio-group label { font-weight: 400; display: flex; align-items: center; gap: .35rem; cursor: pointer; }
.radio-group input[type="radio"] { accent-color: var(--accent); }

.form-submit { margin-top: .5rem; }
.form-submit button {
  width: 100%;
  padding: .85rem;
  background: var(--accent);
  color: #05141f;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, transform .06s;
}
.form-submit button:hover { background: #79caff; transform: translateY(-1px); }

/* ---------- Page résultat ---------- */
.result-box {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 600px;
  margin-inline: auto;
}
.result-box h1 { font-size: 2rem; margin-bottom: 1.25rem; color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }

/* ============================================================
   Responsive mobile
   ============================================================ */
@media (max-width: 860px) {
  .grid-2,
  .form-layout,
  .testimonials-slide { grid-template-columns: 1fr; }
  .carousel-slide { grid-template-columns: 1fr 1fr; }
  .partner-row { grid-template-columns: 140px 1fr; gap: 1.25rem; }
}

@media (max-width: 600px) {
  /* Navbar mobile */
  .nav-links, .nav-email { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    z-index: 99;
  }
  .nav-email.open {
    display: flex;
    position: fixed;
    top: calc(var(--nav-h) + 200px);
    left: 0; right: 0;
    background: var(--bg);
    padding: .75rem 1.5rem 1.25rem;
    z-index: 99;
    border-bottom: 1px solid var(--border);
  }

  .carousel-slide { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .partner-row { grid-template-columns: 1fr; text-align: center; }
  .partner-row img { margin-inline: auto; }
}
