/* ============================================
   HORIZON BTP — IDENTITÉ VISUELLE UNIQUE
   Style éditorial architectural • Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --noir: #0c0a09;
  --noir-soft: #1c1917;
  --graphite: #44403c;
  --gris: #78716c;
  --beige: #a8a29e;
  --sable: #d6d3d1;
  --creme: #fafaf9;
  --blanc: #ffffff;
  --terre: #9a3412;
  --terre-light: #c2410c;
  --terre-pale: #fdba74;
}

* {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--creme);
  color: var(--noir);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--creme); }
::-webkit-scrollbar-thumb { background: var(--terre); border-radius: 0; }

/* ─── SÉLECTION ─── */
::selection { background: var(--terre); color: var(--blanc); }

/* ─── TYPOGRAPHIE ─── */
.text-brand {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
}

.text-brand-light {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 0.75rem;
}

/* ─── NAVBAR ─── */
.nav-glass {
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* ─── BOUTONS ─── */
.btn-primary {
  background: linear-gradient(to right, var(--terre) 50%, var(--noir) 50%);
  background-size: 200% 100%;
  background-position: left center;
  color: var(--blanc);
  border: 2px solid var(--terre);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background-position 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
}

.btn-primary:hover {
  background-position: right center;
  border-color: var(--noir);
}

.btn-outline {
  background: transparent;
  color: var(--blanc);
  border: 2px solid rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  border-color: var(--blanc);
  background: var(--blanc);
  color: var(--noir);
}

/* ─── HERO ─── */
.hero-overlay {
  background: linear-gradient(135deg, rgba(12,10,9,0.92) 0%, rgba(12,10,9,0.6) 50%, rgba(154,52,18,0.3) 100%);
}

.hero-line {
  width: 60px;
  height: 3px;
  background: var(--terre);
  display: inline-block;
}

/* ─── SECTION NUMBERS ─── */
.section-number {
  font-size: 6rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--sable);
  line-height: 1;
  position: absolute;
  top: -20px;
  left: -10px;
  z-index: 0;
  opacity: 0.5;
}

/* ─── CARD STYLE ─── */
.card-editorial {
  background: var(--blanc);
  border: 1px solid var(--sable);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-editorial::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--terre);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-editorial:hover {
  border-color: var(--beige);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -15px rgba(12,10,9,0.15);
}

.card-editorial:hover::after { width: 100%; }

/* ─── IMAGE ZOOM ─── */
.img-zoom img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-zoom:hover img { transform: scale(1.08); }

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12,10,9,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* ─── FADE IN ─── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

/* ─── TESTIMONIAL ─── */
.testimonial-card {
  position: relative;
  border-left: 3px solid var(--terre);
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  font-weight: 900;
  color: var(--sable);
  position: absolute;
  top: -10px;
  right: 20px;
  line-height: 1;
  opacity: 0.3;
}

/* ─── SEPARATOR ─── */
.sep-line {
  width: 40px;
  height: 3px;
  background: var(--terre);
}

/* ─── FILTER BTNS ─── */
.filter-btn {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 0;
}

/* ─── LINK UNDERLINE ─── */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--terre);
  transition: width 0.3s ease;
}
.link-underline:hover::after { width: 100%; }

/* ─── PAGE HEADER ─── */
.page-header-overlay {
  background: linear-gradient(135deg, rgba(12,10,9,0.9) 0%, rgba(12,10,9,0.7) 100%);
}

/* ─── FORM ─── */
input, textarea, select {
  border-radius: 0 !important;
  border: 1px solid var(--sable) !important;
  background: var(--blanc) !important;
  transition: all 0.3s ease !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--terre) !important;
  box-shadow: 0 0 0 3px rgba(154,52,18,0.1) !important;
  outline: none !important;
}

/* ─── SCROLL REVEAL ─── */
.reveal-line {
  width: 0;
  height: 1px;
  background: var(--sable);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-line.visible { width: 100%; }

/* ─── ANIMATIONS ─── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 60px; }
}

.hero-line-anim {
  animation: lineGrow 1s ease-out 0.5s both;
}
