/* ============================================================
   LOC RÉACTION S.A.S — /index.css
   Page d'accueil — Responsive fluide : téléphone → tablette →
   PC → grand écran → TV / projecteur / écran tactile géant
   ============================================================ */

:root {
  --primary: #0A1A38;
  --primary-light: #1B3A6B;
  --gold: #C8A84B;
  --gold-dark: #A8882B;
  --red: #C0392B;
  --green: #1A6B3A;
  --white: #fff;
  --gray: #7C7C9E;
  --gray-light: #E8E4F0;
  --shadow-lg: 0 12px 48px rgba(10,26,56,.18);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Container adaptatif : reste lisible même sur un écran de 4000px (TV/projecteur) */
  --container-max: min(1600px, 94vw);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  overflow-x: hidden;
  /* Typographie fluide : s'agrandit naturellement sur très grands écrans */
  font-size: clamp(15px, 1vw + 10px, 19px);
}
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ─── Cible large : garde tout centré et lisible sur TV/projecteur ─── */
.container {
  width: var(--container-max);
  margin: 0 auto;
}

/* ═══════════════ NAVBAR ═══════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: clamp(60px, 5vw, 78px);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 48px);
  z-index: 999;
  box-shadow: 0 2px 16px rgba(10,26,56,.08);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-icon { width: clamp(36px, 3vw, 48px); height: clamp(36px, 3vw, 48px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: clamp(1rem, 1.3vw, 1.35rem); color: var(--primary); }
.brand-name span { color: #4FA6E8; }
.brand-sub { font-size: clamp(.55rem, .6vw, .68rem); color: var(--gray); letter-spacing: .5px; }

.nav-links {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 36px);
}
.nav-links a {
  font-size: clamp(.85rem, .9vw, .95rem);
  font-weight: 500; color: var(--gray);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-select {
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1.5px solid var(--gray-light);
  background: #fff;
  font-family: inherit;
  font-size: clamp(.78rem, .85vw, .88rem);
  color: var(--primary);
  cursor: pointer;
  outline: none;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: clamp(9px, .9vw, 12px) clamp(16px, 1.8vw, 26px);
  border-radius: var(--radius);
  font-size: clamp(.82rem, .9vw, .92rem);
  font-weight: 600;
  transition: all .3s;
  border: none;
  white-space: nowrap;
}
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: 0 6px 24px rgba(10,26,56,.12); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--primary); font-weight: 700; }
.btn-lg { padding: clamp(12px, 1.3vw, 17px) clamp(24px, 2.6vw, 40px); font-size: clamp(.9rem, 1vw, 1.05rem); border-radius: var(--radius-lg); }

/* ─── Hamburger (visible seulement en dessous du breakpoint tablette) ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2.5px;
  background: var(--primary); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: -100%; bottom: 0;
  width: min(320px, 85vw);
  background: var(--primary);
  z-index: 1000;
  padding: 90px 28px 28px;
  display: flex; flex-direction: column; gap: 6px;
  transition: right .35s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  color: #fff; font-size: 1.05rem; font-weight: 600;
  padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu .lang-select { margin-top: 16px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.mobile-menu .lang-select option { color: #000; }
.menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open ~ .menu-backdrop { opacity: 1; pointer-events: auto; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(90px, 12vh, 140px) clamp(16px, 3vw, 48px) clamp(40px, 6vh, 70px);
  background: linear-gradient(135deg, #0A1A38 0%, #1B3A6B 50%, #0A1A38 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: clamp(300px, 30vw, 600px); height: clamp(300px, 30vw, 600px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,75,.12), transparent 70%);
}
.hero-content {
  width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,168,75,.15); border: 1px solid rgba(200,168,75,.4);
  color: var(--gold); font-size: clamp(.72rem, .8vw, .82rem); font-weight: 700;
  padding: 6px 16px; border-radius: 9999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero-subtitle {
  font-size: clamp(.92rem, 1.1vw, 1.15rem);
  color: rgba(255,255,255,.75); margin-bottom: 32px; line-height: 1.7;
  max-width: 60ch;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(20px, 3vw, 36px); margin-top: 40px; flex-wrap: wrap; }
.hero-stat .val { font-size: clamp(1.3rem, 1.8vw, 2rem); font-weight: 800; color: var(--gold); }
.hero-stat .lbl { font-size: clamp(.68rem, .75vw, .8rem); color: rgba(255,255,255,.6); }

.booking-widget {
  background: rgba(255,255,255,.07); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-xl);
  padding: clamp(22px, 2.6vw, 36px);
}
.bw-title { font-size: clamp(.95rem, 1.1vw, 1.1rem); font-weight: 700; color: #fff; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.bw-field { position: relative; margin-bottom: 14px; }
.bw-field i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gold); }
.bw-input {
  width: 100%; padding: 13px 16px 13px 44px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); color: #fff; font-size: .95rem;
  font-family: inherit; outline: none;
}
.bw-input::placeholder { color: rgba(255,255,255,.45); }
.bw-input:focus { border-color: var(--gold); }
.bw-cta {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary); border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .3s;
}
.bw-cta:hover { transform: translateY(-2px); }
.bw-note { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 12px; text-align: center; }

/* ═══════════════ SECTIONS GÉNÉRALES ═══════════════ */
section.page-section {
  padding: clamp(50px, 8vh, 100px) clamp(16px, 3vw, 48px);
}
.section-inner { width: var(--container-max); margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,26,56,.08); color: var(--primary);
  font-size: clamp(.7rem, .78vw, .8rem); font-weight: 700;
  padding: 5px 14px; border-radius: 9999px; margin-bottom: 14px;
}
.section-h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.section-h2 span { color: var(--gold); }
.section-subtitle { font-size: clamp(.9rem, 1vw, 1.05rem); color: var(--gray); max-width: 62ch; line-height: 1.7; }

/* ═══════════════ SERVICES (grille fluide auto) ═══════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 1.6vw, 24px); margin-top: clamp(30px, 4vh, 48px);
}
.service-card {
  background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius-xl);
  padding: clamp(20px, 2vw, 30px); box-shadow: 0 4px 20px rgba(10,26,56,.06);
  transition: all .3s; text-align: center;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-icon {
  width: clamp(56px, 5.5vw, 76px); height: clamp(56px, 5.5vw, 76px);
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.3rem, 1.8vw, 1.9rem); margin: 0 auto 16px;
}
.si-vtc { background: rgba(10,26,56,.08); color: var(--primary); }
.si-location { background: rgba(200,168,75,.15); color: var(--gold); }
.si-btp { background: rgba(192,57,43,.1); color: var(--red); }
.si-jardin { background: rgba(26,107,58,.1); color: var(--green); }
.si-amo { background: rgba(79,166,232,.12); color: #2E7FC1; }
.service-title { font-size: clamp(.95rem, 1.05vw, 1.05rem); font-weight: 700; margin-bottom: 8px; }
.service-desc { font-size: clamp(.8rem, .88vw, .88rem); color: var(--gray); line-height: 1.6; margin-bottom: 16px; }

/* ═══════════════ ESPACES (grille fluide auto) ═══════════════ */
.roles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2vw, 26px); margin-top: clamp(30px, 4vh, 48px);
}
.role-card {
  border-radius: var(--radius-xl); padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 30px);
  text-align: center; position: relative; overflow: hidden;
}
.role-card.client { background: linear-gradient(135deg, var(--primary), #0D2650); }
.role-card.driver { background: linear-gradient(135deg, #1a1a2e, #2d2d4e); }
.role-card.admin { background: linear-gradient(135deg, var(--green), #145232); }
.role-icon {
  width: clamp(60px, 5.5vw, 76px); height: clamp(60px, 5.5vw, 76px);
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.3rem, 1.8vw, 1.9rem); color: #fff; margin: 0 auto 20px;
}
.role-title { font-size: clamp(1rem, 1.2vw, 1.2rem); font-weight: 800; color: #fff; margin-bottom: 10px; }
.role-desc { font-size: clamp(.8rem, .9vw, .88rem); color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 24px; }
.role-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff;
  padding: 10px 24px; border-radius: 9999px; font-size: clamp(.8rem, .88vw, .88rem); font-weight: 600;
}
.role-card.client .role-btn { background: var(--gold); color: var(--primary); border-color: var(--gold); }

/* ═══════════════ FOOTER ═══════════════ */
.site-footer { background: #0A1A38; padding: clamp(36px, 5vh, 56px) clamp(16px, 3vw, 48px); color: rgba(255,255,255,.7); }
.footer-inner {
  width: var(--container-max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px;
}
.footer-brand { font-size: clamp(1.05rem, 1.2vw, 1.25rem); font-weight: 800; color: #fff; }
.footer-brand span { color: #4FA6E8; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: clamp(.82rem, .9vw, .9rem); }
.footer-bottom {
  width: var(--container-max); margin: 26px auto 0; text-align: center;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: clamp(.72rem, .78vw, .8rem);
}

/* ═══════════════ BREAKPOINTS ═══════════════ */

/* Tablettes et petits écrans : bascule sur le menu hamburger */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-right .lang-select { display: none; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; }
  .booking-widget { order: -1; }
}

/* Téléphones */
@media (max-width: 560px) {
  .hero-stats { gap: 18px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}

/* Très grands écrans : TV / projecteur / borne tactile murale */
@media (min-width: 2000px) {
  :root { --container-max: 1700px; }
  body { font-size: 20px; }
}

/* Écrans tactiles : cibles plus grandes pour le doigt */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-links a, .role-btn, .hamburger { min-height: 44px; }
  .bw-input, .lang-select { min-height: 46px; }
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
