/* =========================================================
   HDSB Expédition, feuille de style unique
   Charte : graphite du logo, cuivre du trait, sable clair.
   Police Montserrat hébergée sur le site (aucun appel externe).
   ========================================================= */

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphite: #5e5e66;
  --ink: #1f2125;
  --ink-soft: #3a3c42;
  --copper: #b56d47;
  --copper-dark: #94532f;
  --sand: #f6f3ee;
  --paper: #fcfbf9;
  --mist: #dfe4e7;
  --line: #e2ddd5;
  --text: #2b2d31;
  --muted: #6c6e74;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--copper-dark); }
a:hover { color: var(--copper); }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: clamp(64px, 9vw, 112px) 0; }

/* Petit titre espacé, repris du « EXPÉDITION » du logo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Trait cuivre, rappel du trait de la charte */
.accent-line {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--ink) 0 45%, var(--copper) 45% 100%);
  margin: 0 0 1.6rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 249, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.logo img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--copper-dark); }
.nav-links .btn { color: #fff; padding: 11px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .logo img { height: 34px; }
}

/* ---------- Bandeau d'accueil ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: var(--mist);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 60%;
}
/* Voile clair en haut pour garantir la lisibilité du texte sur le ciel */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246,243,238,0.55) 0%, rgba(246,243,238,0.15) 55%, rgba(31,33,37,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 120px;
}
.hero-kicker {
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2rem;
}
.hero-logo {
  width: min(520px, 78vw);
  margin: 0 auto 2rem;
}
.hero h1 {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 2.2rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { min-height: 92vh; }
  .hero-bg img { object-position: 52% 50%; }
  .hero-content { padding-bottom: 90px; }
}

/* Encart actualité (salon) : affiché par js/main.js jusqu'à sa date de fin */
.news-strip {
  background: var(--ink);
  color: #fff;
  padding: 18px 0;
  font-size: 0.95rem;
}
.news-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  text-align: center;
}
.news-strip strong { color: #e8b896; font-weight: 600; }
.news-strip a { color: #fff; }
.news-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ---------- Présentation ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro-grid .quote {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--copper);
  padding-left: 24px;
  margin: 0 0 1.6rem;
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* ---------- Savoir-faire ---------- */
.bg-sand { background: var(--sand); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: 36px 28px;
}
.card-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 1.4rem;
}
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Plateformes ---------- */
.bg-ink { background: var(--ink); color: #d9dadd; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .eyebrow { color: #a9abb1; }
.bg-ink .lede { color: #c4c6ca; }

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.platform {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  display: flex;
  flex-direction: column;
}
.platform-drive {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 1.2rem;
}
.platform-drive span { color: #e8b896; }
.platform h3 { margin-bottom: 0.3rem; }
.platform-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a9abb1;
  margin-bottom: 1.2rem;
}
.platform p { color: #c4c6ca; font-size: 0.95rem; margin: 0; }
.platform-note {
  margin-top: 40px;
  color: #c4c6ca;
  font-size: 0.95rem;
}
.platform-note strong { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- Fondateurs ---------- */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.founder {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.founder-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 1.4rem;
}
.founder-initial {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}
.founder h3 { margin: 0; }
.founder-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.founder p { color: var(--muted); font-size: 0.97rem; }
.founder p:last-child { margin-bottom: 0; }
.founders-closing {
  margin-top: 36px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}
@media (max-width: 800px) { .founders { grid-template-columns: 1fr; } }

/* ---------- Méthode ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 0.8rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Appel final ---------- */
.cta {
  text-align: center;
  background: var(--sand);
  border-top: 1px solid var(--line);
}
.cta h2 { max-width: 720px; margin-left: auto; margin-right: auto; }
.cta .lede { margin: 0 auto 2rem; }
.cta-direct {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.cta-direct a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cta-direct a:hover { color: var(--copper-dark); }

/* ---------- Contact ---------- */
.page-head { padding-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-aside {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.contact-aside h2 { font-size: 1.2rem; }
.contact-aside dl { margin: 0; }
.contact-aside dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 1.2rem;
}
.contact-aside dd { margin: 0.2rem 0 0; font-weight: 500; }
.contact-aside dd a { color: var(--ink); text-decoration: none; }
.contact-aside dd a:hover { color: var(--copper-dark); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfc9bf;
  border-radius: var(--radius);
  padding: 13px 14px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
  border-color: var(--copper);
}
.form-error {
  background: #fbeae4;
  border-left: 3px solid #b3402a;
  padding: 14px 16px;
  margin-bottom: 24px;
  color: #6e2a1c;
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 18px; }

/* ---------- Pages texte (mentions légales) ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.legal-content ul { padding-left: 1.2rem; }
.legal-todo { background: #fff4d6; padding: 0 4px; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--ink);
  color: #a9abb1;
  padding: 56px 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { width: 170px; margin-bottom: 1rem; }
.site-footer h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer a { color: #d9dadd; text-decoration: none; }
.site-footer a:hover { color: #e8b896; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Accessibilité */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Réalisations ---------- */
.feature { margin: 0 0 24px; }
.feature img,
.gallery img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--mist);
}
.feature img { aspect-ratio: 3 / 2; object-fit: cover; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 5; object-fit: cover; }
.feature figcaption,
.gallery figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* ---------- Actualités : agenda et informations ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.event {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 28px;
}
.event-date { display: flex; flex-direction: column; }
.event-days { font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
.event-month {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.event h3 { margin-bottom: 0.2rem; }
.event-place { color: var(--graphite); font-weight: 500; margin-bottom: 0.6rem; }
.event-body p:last-of-type { margin-bottom: 0.6rem; }
.event-link { font-weight: 600; text-decoration: none; }
.events-empty { color: var(--muted); }
.events-past-title { margin-top: 48px; color: var(--graphite); }
.events-past .event { border-left-color: var(--line); opacity: 0.75; }
.events-past .event-link { display: none; }
@media (max-width: 600px) { .event { grid-template-columns: 1fr; gap: 12px; padding: 22px; } }

.news-list { display: grid; gap: 20px; max-width: 820px; }
.news-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.news-item time {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 0.6rem;
}
.news-item p:last-child { margin-bottom: 0; }
