/* ═══════════════════════════════════════════════════════════
   CNM — Design system partagé
   Utilisé par : catalogue.html, moteurs.html, occasions.html,
                 mentions-legales.html
   La charte de référence est celle de index.html (thème clair).
   ═══════════════════════════════════════════════════════════ */

:root {
  --white:   #ffffff;
  --off:     #f7f5f2;
  --surface: #eeebe6;
  --border:  #dedad4;
  --border2: #ccc9c2;

  --text:    #0c1821;
  --text2:   #4a5263;
  --text3:   #8a929f;

  --navy:    #0c1821;
  --navy2:   #1a2d42;
  --blue:    #1b5c8a;
  --blue2:   #2474b0;
  --gold:    #b8924a;
  --gold2:   #caa86a;
  --green:   #2a7a52;

  --x-color:      #30b8e0;
  --xpro-color:   #4caf82;
  --lined-color:  #c8a96e;
  --yachts-color: #d4a843;

  --radius: 2px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── HEADER ────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
header.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 24px rgba(12,24,33,0.06);
}
.hd-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hd-logo img { height: 40px; width: 40px; object-fit: contain; }
.hd-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.hd-logo-text .hd-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy);
}
.hd-logo-text .hd-sub {
  font-size: 0.52rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text3);
}
nav { display: flex; align-items: center; gap: 2px; }
nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text2);
  padding: 8px 14px; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s; white-space: nowrap;
}
nav a:hover { color: var(--navy); border-color: var(--gold); }
nav a.active { color: var(--navy); border-color: var(--gold); }
.hd-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white) !important;
  background: var(--navy); padding: 10px 22px;
  margin-left: 12px; border-bottom: none !important;
  transition: background 0.2s;
}
.hd-cta:hover { background: var(--blue) !important; color: var(--white) !important; }

/* Dropdown distributeurs */
.hd-dropdown { position: relative; }
.hd-drop-trigger { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.hd-drop-trigger svg { transition: transform 0.2s; }
.hd-dropdown:hover .hd-drop-trigger svg { transform: rotate(180deg); }
.hd-drop-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white); border: 1px solid var(--border);
  min-width: 260px; padding: 14px 0 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; z-index: 300;
  box-shadow: 0 12px 40px rgba(12,24,33,0.1);
}
.hd-dropdown:hover .hd-drop-menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.hd-drop-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); padding: 8px 18px 4px;
}
.hd-drop-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: none;
  font-size: 0.8rem; text-transform: none; letter-spacing: 0.02em;
  color: var(--text2); font-weight: 400;
}
.hd-drop-menu a:hover { background: var(--off); color: var(--navy); border-bottom: none; }
.hd-drop-menu a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); }

/* Burger mobile */
.hd-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; margin-left: 16px; }
.hd-burger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: 0.3s; }
@media (max-width: 1100px) {
  nav {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; background: var(--white);
    padding: 16px 0; gap: 0; border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(12,24,33,0.08);
  }
  nav.open { display: flex; }
  nav.open a { width: 100%; padding: 12px 28px; border-bottom: none; font-size: 1rem; }
  .hd-burger { display: flex; }
  .hd-drop-menu {
    position: static; transform: none; opacity: 1; pointer-events: all;
    border: none; box-shadow: none; background: var(--off);
    padding: 0 0 0 20px; display: none;
  }
  .hd-dropdown.open .hd-drop-menu { display: block; }
}

/* Resserrement de la nav entre 1101 et 1340 px : évite que le header déborde */
@media (min-width: 1101px) and (max-width: 1340px) {
  nav a { padding: 8px 9px; font-size: 0.72rem; letter-spacing: 0.08em; }
  .hd-cta { padding: 9px 14px; margin-left: 6px; }
  .hd-logo-text .hd-brand { font-size: 0.95rem; }
}

/* ── HERO DE PAGE INTÉRIEURE ───────────────────────── */
.page-hero {
  padding: 132px 5vw 64px;
  background: var(--off);
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.page-hero .hero-tag::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300; line-height: 1.15; color: var(--navy);
  margin-bottom: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--blue); }
.page-hero p {
  font-size: 0.9rem; font-weight: 300; line-height: 1.8;
  color: var(--text2); max-width: 580px;
}

/* ── TITRES DE SECTION ─────────────────────────────── */
.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: ''; display: block; width: 24px; height: 1px; background: currentColor; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 300; color: var(--navy); line-height: 1.2;
  margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--blue); }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 56px 6vw 32px;
  color: var(--white);
}
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 48px; align-items: start; margin-bottom: 40px;
}
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-logo img { height: 44px; width: auto; object-fit: contain; }
.footer-brand strong {
  display: block; font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.96rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--white); margin-bottom: 4px;
}
.footer-brand p {
  font-size: 0.78rem; font-weight: 300; color: rgba(255,255,255,0.35);
  line-height: 1.7; max-width: 320px; margin-top: 12px;
}
.fg-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fg-tag {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.57rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border: 1px solid;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links li a {
  font-size: 0.8rem; font-weight: 300; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.footer-links li a::before { content: '—'; font-size: 0.6rem; color: var(--gold); }
.footer-links li a:hover { color: var(--white); }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  font-size: 0.7rem; color: rgba(255,255,255,0.2); letter-spacing: 0.05em;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ── LIENS UTILITAIRES ─────────────────────────────── */
.back-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text3); display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--navy); }
