/* ============================================================
   Next Draw Sàrl — feuille de style
   Inspiré du nouveau site : Plus Jakarta Sans + verts olive sur fond clair
   ============================================================ */

/* Polices auto-hébergées (variables, sous-ensemble latin — couvre le français).
   Remplace Google Fonts pour supprimer les requêtes bloquant le rendu. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
}
:root {
  --green-deep: #457515;     /* vert olive foncé */
  --green: #588020;          /* vert principal (marque, liens, boutons) */
  --green-bright: #6f8f2f;   /* vert moyen (accents, survols) */
  --green-light: #cce890;    /* vert clair */
  --accent: var(--green);

  --ink: #32373c;            /* titres + texte fort */
  --text: #555b61;           /* texte courant */
  --muted: #6a7076;          /* texte secondaire (contraste ≥ 4.5:1 sur blanc) */
  --line: #e4e6e2;
  --bg: #ffffff;
  --bg-soft: #f5f7f4;        /* gris très légèrement vert */
  --charcoal: #32373c;       /* footer / blocs sombres */
  --white: #ffffff;
  --logo-ink: #3f3f3f;       /* "Next" du logo */
  --logo-green: #6d9e2f;     /* "Draw" du logo */

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 18px 40px -24px rgba(50, 55, 60, 0.4);
  --shadow-sm: 0 6px 20px -12px rgba(50, 55, 60, 0.25);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px -14px rgba(88, 128, 32, 0.9);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-block { width: 100%; }

/* Texte réservé aux lecteurs d'écran (invisible à l'écran) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 40px; left: 0; right: 0;
  z-index: 50;
  transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 26px 0 18px;
}
.site-header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  transition: height 0.3s ease;
}
.site-header.scrolled .brand-logo { height: 34px; }
.brand-suffix {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.6;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover { color: var(--green); }
.nav > a { position: relative; }
.nav > a.is-current { color: var(--green); }
.nav .nav-cta {
  background: var(--green);
  color: var(--white) !important;
  font-weight: 600;
  margin-left: 6px;
}
.nav .nav-cta:hover { background: var(--green-deep); }

/* ============ TOP BAR (barre utilitaire + langues) ============ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 45;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
}
.topbar.is-hidden { transform: translateY(-100%); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.topbar-contact a:hover { color: #fff; }
.topbar-contact svg { width: 15px; height: 15px; opacity: 0.85; }

.lang-switch { display: inline-flex; align-items: center; gap: 1px; }
.lang {
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: 0;
  padding: 4px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.lang:hover { color: #fff; }
/* --green-light : contraste suffisant (≈8.5:1) sur le bandeau charcoal */
.lang.is-active { color: var(--green-light); }
.lang.is-soon { opacity: 0.5; cursor: not-allowed; }
.lang.is-soon:hover { color: rgba(255, 255, 255, 0.7); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 112px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(88, 128, 32, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 128, 32, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(110% 90% at 70% 10%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 980px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(88, 128, 32, 0.4);
  background: rgba(111, 143, 47, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 800;
}
.hero-title .accent { color: var(--green); }
.hero-title .typewrap {
  display: block;
  color: var(--green);
  min-height: 1.18em; /* une ligne sur desktop (les types tiennent sur une ligne) */
}
.hero-title .caret {
  display: inline-block;
  width: 0.055em;
  height: 0.92em;
  background: currentColor;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .caret { animation: none; }
}
.hero-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
}
.hero-stats dd { color: var(--muted); font-size: 0.9rem; }

/* ============ EN-TÊTE DE PAGE (sous-pages) ============ */
.page-head {
  padding: 150px 0 44px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0;
}
.page-head-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 14px auto 0;
}

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; max-width: 680px; margin-inline: auto; }
.section-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
  font-weight: 700;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ============ PRÉSENTATION ============ */
.presentation { background: var(--bg-soft); }
.presentation .grid-2 { grid-template-columns: 0.75fr 1.25fr; }
.presentation-body p { margin-bottom: 16px; color: var(--text); }
.presentation-body strong { color: var(--ink); font-weight: 700; }
.presentation .section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  font-weight: 500;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: inset 0 0 0 5px var(--bg-soft);
  outline: 2px solid var(--green);
}

/* ============ DOMAINES / CARTES ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--green-bright);
}
.card-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: var(--white);
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* Compétences — fond technique discret */
.competences { position: relative; overflow: hidden; }
.comp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
}
.comp-bg svg { width: 100%; height: 100%; display: block; }
.competences .container { position: relative; z-index: 1; }

/* Cartes compétences — icônes soignées */
.comp-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 12px 22px -12px rgba(88, 128, 32, 0.75);
  transition: transform 0.25s ease;
}
.comp-card:hover .comp-badge { transform: translateY(-3px); }
.comp-badge svg { width: 28px; height: 28px; }
.comp-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.comp-card p { color: var(--muted); font-size: 0.96rem; }

/* ============ PROJETS / PORTFOLIO ============ */
.projects { background: var(--bg-soft); }
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.filter:hover { border-color: var(--green); color: var(--green); }
.filter.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.project-card.is-hidden { display: none; }
.project-card.just-shown { animation: proj-in 0.4s ease both; }
@keyframes proj-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2f3a22 0%, #4c6a22 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.project-media svg {
  width: 60px; height: 60px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}
.project-chip {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.project-body { padding: 22px 24px; }
.project-body h3 { font-size: 1.18rem; margin-bottom: 6px; }
.project-body p { color: var(--muted); font-size: 0.93rem; }
.project-deliverable {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green);
}
.project-deliverable::before {
  content: "Notre intervention";
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

/* projets avec photo */
.project-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.project-chip { z-index: 2; }
.project-card.has-photo .project-media::before { opacity: 0; }
.project-card.has-photo .project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}
.project-card.has-photo .project-photo {
  transition: transform 0.4s ease;
}
.project-card.has-photo:hover .project-photo { transform: scale(1.05); }

/* ============ BANDE CTA ============ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  padding: 64px 0;
}
.cta-draw {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}
.cta-draw svg { width: 100%; height: 100%; display: block; }
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin-top: 10px; max-width: 540px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ RÉFÉRENCES ============ */
.references { background: var(--white); }
.logo-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: logo-scroll 50s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item {
  flex: none;
  height: 46px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.logo-item.logo-wide { max-width: 190px; }
.logo-item:hover { filter: grayscale(0); opacity: 1; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 52px;
    width: auto;
  }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ============ CONTACT ============ */
.contact { background: var(--bg-soft); }
.contact .grid-2 { gap: 64px; }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0; }
.contact-list { list-style: none; margin-top: 32px; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list a:hover { color: var(--green); }
.ci {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(111, 143, 47, 0.14);
  color: var(--green);
}
.ci svg { width: 22px; height: 22px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(88, 128, 32, 0.18);
}

/* Honeypot anti-robots : hors écran (display:none serait ignoré par certains bots) */
.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Message de confirmation / erreur sous le bouton d'envoi */
.form-status {
  margin: 0;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  background: rgba(111, 143, 47, 0.14);
  border: 1px solid rgba(88, 128, 32, 0.35);
  color: var(--green-deep);
}
.form-status.is-error {
  background: rgba(179, 38, 30, 0.08);
  border-color: rgba(179, 38, 30, 0.35);
  color: #9a2620;
}

/* ============ FOOTER ============ */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.85); padding: 64px 0 32px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { max-width: 360px; }
.footer-logo {
  display: block;
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1); /* logo entièrement blanc sur fond sombre */
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-claim {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: right;
  max-width: 600px;
}
.footer-brand .brand-text { color: var(--white); font-size: 1.2rem; }
.footer-brand p { margin-top: 12px; font-size: 0.95rem; color: rgba(255,255,255,0.55); }
.footer-contact-mini { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.95rem; }
.footer-contact-mini a { color: rgba(255, 255, 255, 0.85); transition: color 0.18s ease; }
.footer-contact-mini a:hover { color: var(--green-bright); }
/* uniquement le séparateur décoratif « · » (aria-hidden), pas le span de l'e-mail */
.footer-contact-mini > span[aria-hidden="true"] { color: rgba(255, 255, 255, 0.45); }
.footer-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { padding: 6px 12px; border-radius: 6px; font-size: 0.95rem; transition: color 0.18s, background 0.18s; }
.footer-nav a:hover { color: var(--green-bright); background: rgba(255,255,255,0.08); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

/* ============ BOUTON RETOUR EN HAUT ============ */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(88, 128, 32, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.18s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-deep); }
.to-top svg { width: 22px; height: 22px; }

/* indicateur de section active (desktop) */
@media (min-width: 721px) {
  .nav > a.is-current:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 0;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .presentation .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 620px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-contact { display: none; }
  .topbar-inner { justify-content: flex-end; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    background: var(--white);
    padding: 96px 24px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 50px -30px rgba(0,0,0,0.5);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: var(--text); padding: 14px 16px; border-radius: 10px; }
  .nav a:hover { background: var(--bg-soft); }
  .nav .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; z-index: 60; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* l'en-tête fixe (topbar + logo) descend jusqu'à ~126px :
     on réserve davantage pour que le contenu ne passe jamais dessous */
  .hero { padding: 150px 0 64px; }
  .section { padding: 72px 0; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-claim { text-align: left; font-size: clamp(1.3rem, 6vw, 1.7rem); }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  /* sur mobile, les types les plus longs passent sur 2 lignes :
     on réserve la hauteur pour que la page ne saute pas */
  .hero-title .typewrap { min-height: 2.4em; }
  /* le badge « Dessinateurs en génie civil · Lausanne » doit tenir
     sur une seule ligne : taille fluide + espacement réduit */
  .hero .eyebrow {
    font-size: clamp(0.58rem, 3vw, 0.72rem);
    letter-spacing: 0.08em;
    white-space: nowrap;
    padding: 6px 12px;
  }
}

/* ============ MOTION ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* body scroll lock when menu open */
body.no-scroll { overflow: hidden; }

/* ============ CURSEUR STYLE AUTOCAD (réticule) ============ */
.acad-cursor {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.acad-cursor.is-visible { opacity: 1; }
.acad-line {
  position: fixed;
  background: #000000;
}
.acad-h { left: 0; right: 0; top: 0; height: 0.5px; }
.acad-v { top: 0; bottom: 0; left: 0; width: 0.5px; }
.acad-box {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border: 1px solid #000000;
  background: transparent;
}
/* masque le curseur natif quand le réticule est actif */
html.acad-on, html.acad-on * { cursor: none !important; }
html.acad-on input, html.acad-on textarea, html.acad-on select { cursor: text !important; }
