/* ========================================
   DUFLOT — Design System
   Palette : Noir profond + Orange logo + Acier
   ======================================== */

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

:root {
  /* Couleurs logo */
  --ink:         #0a0a0c;      /* noir hexagone */
  --ink-2:       #141418;      /* noir secondaire */
  --surface:     #1a1a1f;      /* surface sombre */
  --surface-2:   #222228;      /* surface élevée */
  --border:      #2a2a31;
  --border-soft: #202026;

  --text:        #f5f3ef;      /* blanc chaud */
  --text-dim:    #c4c1bb;
  --muted:       #8a8680;
  --muted-2:     #5c5954;

  --accent:      #ED6C22;      /* orange logo — charte graphique */
  --accent-2:    #cc5a16;      /* orange foncé */
  --accent-soft: #ffb084;

  --steel:       #adb3bc;      /* acier (pour touches) */
  --steel-dark:  #3d4149;

  /* Typo — Jost = géométrique type Futura, écho du logo */
  --font-disp: 'Jost', system-ui, sans-serif;
  --font-body: 'Jost', system-ui, sans-serif;

  /* Layout */
  --nav-h: 86px;
  --max-w: 1440px;
  --gutter: clamp(24px, 4vw, 72px);

  /* Transitions */
  --ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ========================================
   NAV
   ======================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled {
  background: rgba(10,10,12,.92);
  border-bottom-color: rgba(255,255,255,.1);
}
.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.nav-logo .badge {
  height: 50px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.nav-logo .badge img { height: 50px; width: auto; display: block; color: var(--text); }
.nav-logo:hover .badge { transform: translateY(-2px); }
.nav-logo .wordmark {
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: .16em;
  color: var(--text);
  line-height: 1;
  padding-right: 4px;
}
.nav-links {
  display: flex; align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a, .nav-links button.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  font-family: var(--font-disp);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-dim);
  position: relative;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 6px; left: 14px; right: 14px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links button.nav-link:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-caret { width: 10px; height: 10px; }

.nav-dropdown { position: relative; }
/* hover bridge so the submenu doesn't close when crossing the gap */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 16px;
}
.nav-submenu {
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 280px;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: all .25s var(--ease);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-submenu a {
  display: block;
  padding: 13px 16px;
  font-size: 13px;
  border-left: 2px solid transparent;
  white-space: nowrap;
}
.nav-submenu a:hover {
  background: var(--surface);
  border-left-color: var(--accent);
  color: var(--text);
}
.nav-submenu a::after { display: none; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--ink) !important;
  font-family: var(--font-disp);
  font-size: 14px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Burger (mobile) */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: ''; position: absolute; left: 0;
  width: 100%; height: 2px; background: var(--text);
  transition: transform .3s var(--ease);
}
.nav-burger span::before { top: -7px; }
.nav-burger span::after  { top: 7px; }

/* ========================================
   GENERIC BLOCKS
   ======================================== */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-disp);
  font-size: 12px; font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-disp);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: 1.08;
}

.h-display {
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
}
.h-display em { font-style: normal; color: var(--accent); }
.h-section {
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.015em;
  margin-bottom: 24px;
}
.h-section em { font-style: normal; color: var(--accent); }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 62ch;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-disp);
  font-size: 14px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ========================================
   HEXAGON — brand motif
   ======================================== */
.hex {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--accent);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  flex-shrink: 0;
}
.hex-outline {
  width: 14px; height: 14px;
  background: var(--accent);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%,
                     0% 50%, 25% 5%, 75% 5%, 95% 50%, 75% 95%, 25% 95%, 5% 50%);
}

/* ========================================
   PAGE HEADER (sous-pages)
   ======================================== */
.page-header {
  position: relative;
  min-height: 70vh;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.page-header-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.page-header-bg img,
.page-header-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
  filter: grayscale(.3) contrast(1.05);
  display: block;
}
.page-header-bg video { opacity: .42; }
.page-header-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,.4) 0%, rgba(10,10,12,.85) 70%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10,10,12,.8) 0%, transparent 60%);
}
.page-header-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page-crumbs {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-disp);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-crumbs a:hover { color: var(--accent); }
.page-crumbs .sep { color: var(--muted-2); }
.page-header h1 {
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.page-header h1 em { color: var(--accent); font-style: normal; }
.page-header p {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--text-dim);
  max-width: 64ch;
}

/* ========================================
   PROCESS PAGE SUBNAV
   ======================================== */
.subnav {
  background: var(--ink-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.subnav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 0;
}
.subnav a {
  flex: 1;
  padding: 20px 18px;
  text-align: center;
  font-family: var(--font-disp);
  font-size: 13px; font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--border);
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.subnav a:last-child { border-right: 0; }
.subnav a:hover { color: var(--text); background: var(--surface); }
.subnav a.active { color: var(--accent); background: var(--ink); }
.subnav a.active::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 32px;
  transition: all .35s var(--ease);
  position: relative;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ========================================
   IMAGE UTILITIES
   ======================================== */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.img-frame img,
.img-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.img-frame:hover img,
.img-frame:hover video { transform: scale(1.04); }
.img-frame .tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-disp);
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.img-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5));
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.img-frame:hover::after { opacity: 1; }

/* ========================================
   FOOTER + CTA
   ======================================== */
.cta-band {
  background: var(--ink-2);
  border-top: 1px solid var(--border);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: 'DUFLOT';
  position: absolute;
  right: -40px; bottom: -60px;
  font-family: var(--font-disp);
  font-size: 280px; font-weight: 900;
  color: rgba(255,255,255,.02);
  letter-spacing: -.04em;
  pointer-events: none;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
}
.cta-band h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.cta-band h2 em { font-style: normal; color: var(--accent); }
.cta-band .cta-actions {
  display: flex; flex-direction: column; gap: 14px;
}
.cta-band .phone {
  font-family: var(--font-disp);
  font-size: 32px; font-weight: 800;
  color: var(--text);
}
.cta-band .phone:hover { color: var(--accent); }

.footer {
  background: #050506;
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.footer-logo .badge {
  height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo .badge img { height: 56px; width: auto; color: var(--text); }
.footer-logo .wordmark {
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: .16em;
  color: var(--text);
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 38ch;
}
.footer h3 {
  font-family: var(--font-disp);
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color .2s var(--ease);
}
.footer a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9a978f;
  font-family: var(--font-disp);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-legal {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-legal a { color: #b5b2ab; }
.footer-legal a:hover { color: var(--text, #fff); }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
  from { transform: translateY(20px); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: .7; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 960px) {
  .nav-inner { gap: 16px; }
  /* hide inline CTA on mobile; it lives inside the drawer flow instead */
  .nav-cta { display: none; }
  .nav-burger {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* mobile drawer */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: var(--ink);
    border-top: 1px solid var(--border);
    padding: 18px var(--gutter) 32px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    z-index: 50;
  }
  .nav.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links > li { width: 100%; }
  .nav-links a, .nav-links button.nav-link {
    width: 100%;
    padding: 15px 6px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links a::after { display: none; }
  /* dropdown submenu inline in drawer */
  .nav-dropdown .nav-submenu {
    position: static;
    display: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 6px 16px;
  }
  .nav-dropdown.open .nav-submenu { display: block; }
  .nav-submenu a {
    font-size: 13px;
    color: var(--text-dim);
    padding: 11px 6px;
  }

  .cta-band .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* Reduced motion: collapse animations so nothing stays hidden */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============ Newsletter (footer) ============ */
.footer-news { margin-top: 10px; }
.footer-news small { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.news-label { display: block; font-family: var(--font-disp); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.news-form { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input { flex: 1 1 150px; min-width: 0; background: var(--ink); border: 1px solid var(--border); color: var(--text); padding: 11px 13px; font-family: var(--font-body); font-size: 14px; }
.news-form input::placeholder { color: var(--muted); }
.news-form input:focus { outline: none; border-color: var(--accent); }
.news-form button { background: var(--accent); color: var(--ink); border: 0; padding: 11px 18px; font-family: var(--font-disp); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .25s var(--ease); white-space: nowrap; }
.news-form button:hover { background: var(--accent-2); }
