/* ================================
   BASE + COULEURS
================================ */
:root {
  --bg: #050505;
  --bg-alt: #0b0b0b;
  --text: #f5f5f5;
  --muted: #9ca3af;
  --gold: #e4c16f;
  --gold-soft: #f3e0b0;
  --border: #1f2933;
  --maxw: 1120px;

  /* Formulaires (réservation / contact) */
  --form-bg: #ffffff;
  --form-text: #000000;
  --form-border: #d1d1d1;
  --form-placeholder: #555;
}

/* ================================
   RESET + BASE
================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================
   TITRES / TEXTE
================================ */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ================================
   HEADER
================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text);
  white-space: nowrap;
}

.nav a.active {
  color: var(--gold);
  font-weight: 600;
}

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

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 0.8rem;
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a.active {
  color: var(--gold);
  font-weight: 600;
}

.header-logo img {
  display: block;
  width: 55px;
  height: auto;
}

/* Menu mobile */
#menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: var(--text);
  background: none;
  border: none;
  margin-left: 4px;
}

/* ================================
   HERO
================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-top-image {
  display: block;
}

/* Bloc texte sous la photo (index) */
.hero-inner {
  padding: 20px 0 10px;
}

.hero-content p {
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--gold-soft);
}

/* ================================
   BOUTONS
================================ */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
}

/* ================================
   SECTIONS / PAGE
================================ */
.page-main {
  padding: 24px 0 40px;
}

.page-header {
  margin-bottom: 20px;
}

.section {
  padding: 32px 0;
}

.section-alt {
  background: var(--bg-alt);
  padding: 32px 0;
}

/* ================================
   CARTES (services, fleet...)
================================ */
.cards {
  display: grid;
  gap: 16px;
}

.cards.three {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: #050505;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
}

/* Flotte */
.fleet-grid {
  display: grid;
  gap: 20px;
}

.vehicle-card img {
  border-radius: 12px 12px 0 0;
}

.vehicle-card .vehicle-body {
  padding-top: 12px;
}

/* Split (home pourquoi / flotte) */
.split {
  display: flex;
  gap: 26px;
  align-items: center;
}

.home-fleet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================================
   TABLES TARIFS
================================ */
.table-wrap {
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px; /* permet le scroll horizontal sur mobile */
}

th,
td {
  padding: 8px 6px;
  border-bottom: 1px solid #111111;
}

th {
  color: var(--gold);
  font-weight: 600;
  text-align: left;
}

/* Colonnes prix alignées à droite */
th:nth-child(2),
th:nth-child(3),
td:nth-child(2),
td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums; /* chiffres bien alignés */
}

/* ================================
   FORMULAIRES (réservation + contact)
================================ */
.reservation-page main {
  padding-top: 40px;
}

/* conteneur générique (réservation / contact) */
.form-container,
.contact-form {
  max-width: 700px;
  margin: 24px auto 0;
  background: var(--form-bg);
  color: var(--form-text);
  border: 1px solid var(--form-border);
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

/* labels */
.form-container label,
.contact-form label {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--form-text);
}

/* inputs */
.form-container input,
.form-container select,
.form-container textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  margin-top: 6px;
  font-size: 16px;
  background: var(--form-bg);
  color: var(--form-text);
  border: 1px solid var(--form-border);
  border-radius: 8px;
}

/* placeholder */
.form-container input::placeholder,
.form-container textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--form-placeholder);
}

/* bouton dans les formulaires */
.form-container .btn-primary,
.contact-form .btn-primary {
  margin-top: 18px;
}

/* iPhone date / time */
input[type="date"],
input[type="time"] {
  color-scheme: light;
}

/* ================================
   LISTES / CHECKLIST
================================ */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.checklist li::before {
  content: "•";
  color: var(--gold);
  margin-right: 6px;
}

/* ================================
   FOOTER
================================ */
.site-footer {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ================================
   WHATSAPP FLOTTANT
================================ */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #22c55e;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .split {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  /* header */
  .nav {
    display: none;
    position: absolute;
    top: 56px;
    right: 20px;
    background: #050505;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
  }

  #menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-inner {
    padding-top: 16px;
  }

  table {
    font-size: 0.88rem;
  }
}