/* ═══════════════════════════════════════════
   SCAFFOLDING EXPRESS — Design System v2
   Style éditorial luxury (Barlow Condensed)
═══════════════════════════════════════════ */

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

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

:root {
  --red: #D32F2F;
  --dark: #0D0D0D;
  --light: #F4F3F0;
  --mid: #1A1A1A;
  --text: #2C2C2C;
  --muted: #888;
}

html { scroll-behavior: smooth; }
body { background: var(--dark); font-family: 'Barlow', sans-serif; overflow-x: hidden; cursor: none; }

/* ── CURSOR ── */
.cursor { position: fixed; width: 8px; height: 8px; background: rgba(255,255,255,.85); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .3s ease, height .3s ease; }
.cursor.big { width: 28px; height: 28px; background: transparent; border: 1.5px solid rgba(255,255,255,.55); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background .4s ease, backdrop-filter .4s ease;
}
nav.scrolled { background: rgba(13,13,13,.9); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav-logo-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{ opacity:1 } 50%{ opacity:.3 } }
.nav-logo-text { font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 700; color: #fff; letter-spacing: .15em; text-transform: uppercase; }
.nav-logo-sub { font-size: .62rem; font-weight: 400; color: rgba(255,255,255,.3); letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { font-family: 'Barlow', sans-serif; font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.45); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { background: var(--red) !important; color: #fff !important; padding: .55rem 1.4rem !important; border-radius: 2px; font-weight: 600 !important; transition: background .2s !important; opacity: 1 !important; }
.nav-cta:hover { background: #B71C1C !important; }

/* Mobile nav */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: .5rem; }
.burger span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,.6); transition: transform .3s, opacity .3s; }
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--dark); z-index: 90; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; font-weight: 900; color: rgba(255,255,255,.5); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; transition: color .2s; }
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; }
.mobile-nav a.nav-cta { font-size: 1rem; background: var(--red); color: #fff; padding: .8rem 2.5rem; border-radius: 2px; }
.mobile-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: rgba(255,255,255,.5); cursor: none; padding: .5rem; }

/* ── PAGE HERO (intérieur) ── */
.page-hero {
  padding: 10rem 3rem 5rem;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(211,47,47,.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.page-hero-label { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.page-hero-label-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.page-hero-label span { font-family: 'Barlow', sans-serif; font-size: .7rem; font-weight: 600; color: var(--red); letter-spacing: .2em; text-transform: uppercase; }
.page-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; color: #fff; text-transform: uppercase; line-height: .92; letter-spacing: -.01em; margin-bottom: 1.5rem; }
.page-hero h1 em { color: var(--red); font-style: normal; }
.page-hero p { font-family: 'Barlow', sans-serif; font-size: .95rem; color: rgba(255,255,255,.35); line-height: 1.75; max-width: 500px; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.breadcrumb a { font-family: 'Barlow', sans-serif; font-size: .72rem; color: rgba(255,255,255,.3); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; transition: color .2s; }
.breadcrumb a:hover { color: rgba(255,255,255,.6); }
.breadcrumb span { font-size: .72rem; color: rgba(255,255,255,.15); }
.breadcrumb-current { font-family: 'Barlow', sans-serif; font-size: .72rem; color: var(--red); text-transform: uppercase; letter-spacing: .1em; }

/* ── SECTIONS COMMUNES ── */
.section-dark { background: var(--dark); padding: 7rem 3rem; }
.section-light { background: var(--light); padding: 7rem 3rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.section-label-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.section-label span { font-family: 'Barlow', sans-serif; font-size: .7rem; font-weight: 600; color: var(--red); letter-spacing: .2em; text-transform: uppercase; }
.section-h2-dark { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; color: #fff; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; }
.section-h2-light { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; color: var(--dark); text-transform: uppercase; line-height: .95; letter-spacing: -.01em; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; flex-wrap: wrap; gap: 2rem; }
.see-all { font-family: 'Barlow', sans-serif; font-size: .78rem; color: rgba(255,255,255,.3); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: .15rem; transition: color .2s, border-color .2s; white-space: nowrap; }
.see-all:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.see-all-dark { color: rgba(0,0,0,.3); border-bottom-color: rgba(0,0,0,.1); }
.see-all-dark:hover { color: var(--dark); border-color: rgba(0,0,0,.4); }

/* ── BOUTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: .6rem; background: var(--red); color: #fff; text-decoration: none; font-family: 'Barlow', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .9rem 2rem; border-radius: 2px; transition: background .2s, transform .2s; border: none; cursor: none; }
.btn-primary:hover { background: #B71C1C; transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: .6rem; background: transparent; color: #fff; text-decoration: none; font-family: 'Barlow', sans-serif; font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .85rem 2rem; border-radius: 2px; border: 1px solid rgba(255,255,255,.2); transition: border-color .2s, background .2s; cursor: none; }
.btn-outline:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }
.btn-ghost { font-family: 'Barlow', sans-serif; font-size: .82rem; color: rgba(255,255,255,.4); text-decoration: none; letter-spacing: .08em; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: .1rem; transition: color .2s, border-color .2s; }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-white { display: inline-flex; align-items: center; gap: .6rem; background: #fff; color: var(--red); text-decoration: none; font-family: 'Barlow', sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 1rem 2.5rem; border-radius: 2px; transition: transform .2s, box-shadow .2s; white-space: nowrap; cursor: none; border: none; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* ── CTA BAND ── */
.cta-band { background: var(--red); padding: 6rem 3rem; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%); border-radius: 50%; }
.cta-band-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; position: relative; }
.cta-band-h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; color: #fff; text-transform: uppercase; line-height: .95; }
.cta-band-sub { font-family: 'Barlow', sans-serif; font-size: .9rem; color: rgba(255,255,255,.6); margin-top: .75rem; }

/* ── FOOTER ── */
footer { background: #080808; padding: 5rem 3rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; text-decoration: none; }
.footer-logo-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.footer-logo-text { font-family: 'Barlow Condensed', sans-serif; font-size: .85rem; font-weight: 700; color: #fff; letter-spacing: .15em; text-transform: uppercase; }
.footer-brand p { font-family: 'Barlow', sans-serif; font-size: .82rem; color: rgba(255,255,255,.25); line-height: 1.8; max-width: 280px; }
footer h4 { font-family: 'Barlow', sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .3rem; }
.footer-links a { font-family: 'Barlow', sans-serif; color: rgba(255,255,255,.25); text-decoration: none; font-size: .82rem; transition: color .2s; display: block; padding: .2rem 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1.5rem 0; display: flex; justify-content: space-between; font-family: 'Barlow', sans-serif; font-size: .72rem; color: rgba(255,255,255,.15); flex-wrap: wrap; gap: 1rem; }

/* ── CARROUSEL AUTO ── */
.slider-section { background: var(--dark); padding: 5rem 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.04); }
.slider-header { max-width: 1200px; margin: 0 auto 2.5rem; padding: 0 3rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.slider-header h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 900; color: #fff; text-transform: uppercase; }
.slider-link { font-family: 'Barlow', sans-serif; font-size: .78rem; color: rgba(255,255,255,.3); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: .15rem; margin-left: auto; transition: color .2s; }
.slider-link:hover { color: #fff; }
.track-wrap { overflow: hidden; mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%); }
.track { display: flex; gap: 1rem; width: max-content; animation: autoScroll 55s linear infinite; }
.track:hover { animation-play-state: paused; }
.slide { flex-shrink: 0; width: 320px; border-radius: 3px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; filter: brightness(.85); }
.slide:hover img { transform: scale(1.05); filter: brightness(1); }
@keyframes autoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── MODAL SLIDESHOW ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 500; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; animation: fadeInModal .5s forwards; }
@keyframes fadeInModal { to { background: rgba(0,0,0,.95); } }
.modal-content { position: relative; max-width: 900px; width: 90%; border-radius: 4px; overflow: hidden; transform: scale(.5); opacity: 0; animation: zoomInModal .5s .2s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes zoomInModal { to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: none; display: grid; place-items: center; z-index: 10; transition: background .2s; }
.modal-close:hover { background: var(--red); }
.modal-slideshow { position: relative; aspect-ratio: 16/9; background: #000; }
.modal-slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.modal-slideshow img.active { opacity: 1; }
.modal-caption { background: #1A1A1A; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.modal-caption span { font-family: 'Barlow', sans-serif; font-size: .78rem; color: rgba(255,255,255,.4); letter-spacing: .1em; text-transform: uppercase; }
.modal-dots { display: flex; gap: .4rem; }
.modal-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); cursor: none; transition: background .2s; }
.modal-dot.active { background: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .page-hero { padding: 8rem 1.5rem 4rem; }
  .section-dark, .section-light { padding: 5rem 1.5rem; }
  .cta-band { padding: 4rem 1.5rem; }
  footer { padding: 4rem 1.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
