/* =====================================================================
   Kirax — Thème "Location / Design Lumineux" (FR)
   Base sombre Kirax + accent AMBRE / FLAMME pour différencier des projets.
   Utilisé par : location.html  &  design-lumineux.html
   ===================================================================== */

:root {
  --bg:          #06060a;
  --surface:     #100d0a;
  --surface2:    #18130d;
  --border:      rgba(255, 255, 255, 0.07);
  --border-h:    rgba(245, 166, 35, 0.30);
  --text:        #f3ece2;
  --muted:       rgba(243, 236, 226, 0.50);

  /* Accent chaud "bougie" */
  --accent:      #f5a623;
  --accent-hot:  #ff8a3c;
  --accent2:     #c9741b;
  --accent-glow: rgba(245, 166, 35, 0.16);
  --accent-glow2:rgba(245, 166, 35, 0.06);

  --ok:          #26d07c;
  --ok-bg:       rgba(38, 208, 124, 0.12);
  --warn:        #ffb74d;
  --warn-bg:     rgba(255, 183, 77, 0.14);

  --radius:      16px;
  --radius-sm:   10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* -- Atmosphère : grille chaude + halo de flamme en haut -- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(245, 166, 35, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  top: -260px; left: 50%;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(245, 166, 35, 0.10) 0%,
              rgba(255, 138, 60, 0.05) 35%,
              transparent 70%);
  pointer-events: none; z-index: 0;
  animation: flicker 7s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 0.85; }
  25%      { opacity: 1;    }
  50%      { opacity: 0.7;  }
  72%      { opacity: 0.95; }
}

.container {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 90px;
}

/* -- Liens retour -- */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 26px;
  transition: gap 0.2s, color 0.2s;
}
.back-link:hover { gap: 12px; color: var(--accent-hot); }

/* -- Typo -- */
h1, h2, h3 { font-family: "Orbitron", sans-serif; line-height: 1.25; }

.kicker {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.kicker::before {
  content: ""; width: 26px; height: 1px;
  background: var(--accent); opacity: 0.7;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(245,166,35,0.10), transparent 55%),
    linear-gradient(150deg, var(--surface), #140f0a);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 46px 40px;
  margin-bottom: 30px;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 25%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lead {
  color: var(--muted);
  max-width: 620px;
  font-size: 16px;
  line-height: 1.75;
}
.hero .lead strong { color: var(--text); font-weight: 600; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 26px;
  font-size: 13px; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; stroke: var(--accent); flex: none; }

/* =====================================================================
   ONGLETS / FILTRE CATÉGORIES
   ===================================================================== */
.tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 0;
  margin-bottom: 8px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.tab {
  font-family: "Orbitron", sans-serif;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--text); border-color: var(--border-h); }
.tab.active {
  color: #1a1207;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  border-color: transparent;
  box-shadow: 0 0 22px rgba(245, 166, 35, 0.35);
}
.tab .count {
  font-size: 9px;
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
  padding: 1px 7px;
}
.tab.active .count { background: rgba(0,0,0,0.22); }

/* =====================================================================
   BLOC MATÉRIEL
   ===================================================================== */
.rental {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.rental::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 95% 0%, var(--accent-glow), transparent 45%);
  pointer-events: none;
}
.rental > * { position: relative; z-index: 1; }

.rental-head {
  display: flex; align-items: flex-start; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.rental-icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 26px;
  background: var(--accent-glow);
  border: 1px solid var(--border-h);
  box-shadow: 0 0 24px var(--accent-glow);
}
.rental-headtext { flex: 1; min-width: 200px; }
.rental h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 6px;
}
.rental-sub { color: var(--muted); font-size: 15px; }

.cat-tag {
  font-family: "Orbitron", sans-serif;
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow2);
  border: 1px solid rgba(245, 166, 35, 0.22);
  padding: 4px 11px; border-radius: 999px;
  align-self: center;
}

/* Galerie photos du matériel */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.shots img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.shots img:hover {
  transform: scale(1.02);
  border-color: var(--border-h);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Colonnes description / contrôle */
.rental-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
}
.rental-body h3 {
  font-size: 13px; letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
ul.list { list-style: none; display: grid; gap: 9px; }
ul.list li {
  position: relative; padding-left: 22px;
  color: var(--muted); font-size: 14.5px; line-height: 1.55;
}
ul.list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
ul.list li strong { color: var(--text); font-weight: 600; }

.ctrl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
}
.chip.soon { color: var(--warn); border-color: rgba(255,183,77,0.4); }

/* Cas d'usage */
.usecases {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.uc {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.25s, transform 0.25s;
}
.uc:hover { border-color: var(--border-h); transform: translateY(-3px); }
.uc .uc-n {
  font-family: "Orbitron", sans-serif;
  font-size: 10px; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 8px;
}
.uc h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 15px; font-weight: 700;
  margin-bottom: 8px; line-height: 1.35;
}
.uc p { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.uc p:last-child { margin-bottom: 0; }
.uc p strong { color: var(--text); }

/* CTA devis dans un bloc */
.rental-cta {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

/* État vide (catégorie sans matériel) */
.empty-state {
  text-align: center;
  padding: 50px 30px;
  border: 1px dashed var(--border-h);
  border-radius: var(--radius);
  background: var(--accent-glow2);
}
.empty-state .e-icon { font-size: 34px; margin-bottom: 12px; }
.empty-state h2 { font-size: 18px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

/* =====================================================================
   BOUTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px; font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #1a1207;
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.30), 0 4px 12px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(245, 166, 35, 0.5), 0 8px 20px rgba(0,0,0,0.45);
}
.btn-ghost {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border-h);
}
.btn-ghost:hover { background: var(--accent-glow); color: var(--accent); transform: translateY(-2px); }

.hint { color: var(--muted); font-size: 13px; }

/* =====================================================================
   GALERIE "DESIGN LUMINEUX"
   ===================================================================== */
.section-title-block { margin-bottom: 30px; }
.section-title-block h2 {
  font-size: clamp(22px, 4vw, 36px);
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title-block p { color: var(--muted); max-width: 600px; font-size: 16px; }

.masonry {
  columns: 3 280px;
  column-gap: 14px;
}
.ph {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ph img { width: 100%; display: block; transition: transform 0.4s; }
.ph:hover { border-color: var(--border-h); box-shadow: 0 14px 40px rgba(0,0,0,0.55); }
.ph:hover img { transform: scale(1.04); }
.ph figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.ph:hover figcaption { opacity: 1; transform: translateY(0); }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(4, 3, 1, 0.92);
  backdrop-filter: blur(6px);
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lbIn 0.2s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 92vw; max-height: 90vh;
  border-radius: 12px;
  border: 1px solid var(--border-h);
  box-shadow: 0 0 60px rgba(245, 166, 35, 0.2);
}
.lightbox .lb-close {
  position: absolute; top: 22px; right: 26px;
  font-size: 30px; color: var(--text);
  background: none; border: none; cursor: pointer; line-height: 1;
}

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
.fr-footer {
  position: relative; z-index: 1;
  text-align: center;
  color: var(--muted); font-size: 12px;
  margin-top: 50px; padding-top: 26px;
  border-top: 1px solid var(--border);
}
.fr-footer a { color: var(--accent); text-decoration: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .rental-body { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero { padding: 30px 22px; }
  .rental { padding: 22px; }
  .shots { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 1; }
}

/* Petites animations d'entrée */
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 0.6s ease forwards; }
.fade-up:nth-child(2) { animation-delay: 0.08s; }
.fade-up:nth-child(3) { animation-delay: 0.16s; }
.fade-up:nth-child(4) { animation-delay: 0.24s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
   AJOUTS : bandeau cover, sous-section, cartes "Modèles & tarifs"
   ===================================================================== */
.cover-banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  cursor: zoom-in;
  transition: border-color .3s, box-shadow .3s;
}
.cover-banner:hover { border-color: var(--border-h); box-shadow: 0 12px 34px rgba(0,0,0,.5); }

.rental-subhead {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  margin: 32px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.rental-subhead::before {
  content: ""; width: 18px; height: 3px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

.models {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.model {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.model:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.model > img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  display: block; cursor: zoom-in;
  transition: transform .35s;
}
.model:hover > img { transform: scale(1.03); }
.model-info {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.model-info h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 16px; font-weight: 700; line-height: 1.3;
}
.model-info p { color: var(--muted); font-size: 14px; flex: 1; }
.model-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 8px;
}
.price {
  font-family: "Orbitron", sans-serif;
  font-size: 19px; font-weight: 700; color: var(--accent);
  white-space: nowrap;
}
.price small {
  font-family: "DM Sans", sans-serif;
  font-size: 11px; font-weight: 400; color: var(--muted);
}
.model-foot .btn { padding: 9px 16px; font-size: 13px; }

@media (max-width: 620px) { .models { grid-template-columns: 1fr; } }
