/* ==========================================================
   Donebold — landing page
   Charte graphique v0.1 : Encre, Papier, Signal
   ========================================================== */

:root {
  --encre: #0F1B2D;
  --encre-2: #182841;
  --papier: #F5F2EA;
  --signal: #FF5B1F;
  --signal-profond: #C2380A;
  --ardoise: #4A586C;
  --ardoise-claire: #A9B4C4;
  --brume: #E4DFD3;
  --succes: #177049;

  --font-titre: "Geologica", system-ui, sans-serif;
  --font-texte: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-carte: 16px;
  --radius-bouton: 12px;
  --max-width: 1160px;

  --gutter: 20px;
  --section-space: 64px;

  /* Bouton principal : Signal profond + Papier (≈ 4,9:1), plus lisible que Encre sur Signal */
  --cta-bg: var(--signal-profond);
  --cta-fg: var(--papier);

  /* Couleurs contextuelles (changent sur fond sombre) */
  --bg: var(--papier);
  --fg: var(--encre);
  --fg-soft: var(--ardoise);
  --accent-text: var(--signal-profond);
  --focus: var(--signal-profond);
  --check-bg: var(--succes);
  --check-fg: var(--papier);
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}
@media (min-width: 900px) {
  :root { --section-space: 96px; }
}

.dark {
  --bg: var(--encre);
  --fg: var(--papier);
  --fg-soft: var(--ardoise-claire);
  --accent-text: var(--signal);
  --focus: var(--signal);
  --check-bg: var(--papier);
  --check-fg: var(--succes);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--font-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-titre);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.25rem, 3.8vw, 3.35rem); line-height: 1.08; text-wrap: balance; }
h2, h3 { text-wrap: balance; }
h1 .w-light, h1 strong { display: block; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }
.w-light { font-weight: 300; }
h1 strong, h2 strong, h3 strong { font-weight: 800; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--encre);
  color: var(--papier);
  border-radius: var(--radius-bouton);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-bouton);
  font: 500 1rem/1 var(--font-texte);
  text-decoration: none;
  cursor: pointer;
  transition: filter 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn-primary:hover { filter: brightness(0.92); }
.btn-secondary { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn-secondary:hover { background: var(--fg); color: var(--bg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.link {
  color: var(--signal-profond);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Étiquettes, coche « done » ---------- */
.eyebrow {
  margin-bottom: 20px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brume);
  color: var(--encre);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--succes);
}

.check {
  flex: none;
  display: block;
  width: 24px; height: 24px;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--papier);
  border-bottom: 1px solid var(--brume);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand { display: inline-flex; border-radius: 6px; }
.brand img { width: 180px; height: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease;
}
.nav a:not(.btn):hover { border-bottom-color: var(--signal); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1.5px solid var(--encre);
  border-radius: var(--radius-bouton);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--encre);
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--papier);
    border-bottom: 1px solid var(--brume);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav a:not(.btn) { font-size: 1.125rem; }
}

/* ---------- Sections ---------- */
.section {
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--section-space);
}
.section-tight { padding-top: 0; }

.section-head { margin-bottom: 56px; max-width: 920px; }
.section-head h2 { margin-bottom: 16px; }
.section-intro { color: var(--fg-soft); max-width: 65ch; }
.lead {
  color: var(--fg-soft);
  font-size: 1.1875rem;
  max-width: 52ch;
}

/* ---------- Visuels : photo + repli graphique ----------
   Chaque emplacement contient une illustration géométrique (repli) et,
   par-dessus, la photo. Si la photo n'existe pas encore, l'illustration
   reste visible : la page est présentable sans les photos. */
.media {
  position: relative;
  overflow: hidden;
  background: var(--encre);
  border-radius: var(--radius-carte);
}
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-mark {
  position: absolute;
  right: -6%;
  bottom: -8%;
  height: 120%;
  width: auto;
  fill: var(--encre-2);
}
.media-icon {
  position: absolute;
  left: 50%; top: 50%;
  width: 84px; height: 84px;
  transform: translate(-50%, -50%);
  color: var(--ardoise-claire);
  stroke-width: 1;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  color: var(--fg);
  padding-top: var(--section-space);
}
.hero-inner {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
}
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy .lead { margin-bottom: 40px; }

.hero-visual { position: relative; }
.media-hero { aspect-ratio: 4 / 4.6; background: var(--encre-2); }
.media-hero .media-mark { right: -4%; bottom: -6%; height: 108%; }
.media-hero .m-thin { fill: var(--papier); }
.media-hero .m-thick { fill: var(--signal); }

.hero-values {
  display: grid;
  gap: 28px;
  margin-top: 72px;
  padding-block: 40px;
  border-top: 1px solid rgba(169, 180, 196, 0.25);
}
@media (min-width: 760px) {
  .hero-values { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.hero-values li { display: flex; align-items: flex-start; gap: 16px; }
.hv-icon, .media-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hv-icon { flex: none; width: 40px; height: 40px; color: var(--papier); stroke-width: 1.5; }
.hero-values strong { display: block; font-weight: 500; color: var(--papier); }
.hero-values span { color: var(--ardoise-claire); font-size: 0.9375rem; }

/* ---------- Engagements (lignes visuelles) ---------- */
.values { display: grid; gap: 80px; }
@media (min-width: 900px) { .values { gap: 112px; } }

.value { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .value { grid-template-columns: 1fr 1fr; gap: 88px; }
  .value:nth-child(even) .media { order: -1; }
}
.value h3 {
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.08;
}
.value p:not(.label) { color: var(--ardoise); max-width: 50ch; }
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--ardoise);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li {
  position: relative;
  padding-left: 32px;
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 20px; height: 20px;
  /* Lucide « check », couleur Succès */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23177049' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.media-value { aspect-ratio: 4 / 3; }

/* ---------- Cartes génériques ---------- */
.card {
  background: var(--brume);
  border-radius: var(--radius-carte);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ardoise); }
.cards-3 { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Offres ---------- */
.offer { overflow: hidden; }
.offer-visual { background: var(--encre); }
.offer-visual svg { width: 100%; aspect-ratio: 8 / 5; }
.offer-body { padding: 28px 32px 32px; }
.il-a { fill: var(--encre-2); }
.il-b { fill: var(--ardoise); }
.il-c { fill: var(--papier); }
.il-ink { fill: var(--encre); }
.il-sig { fill: var(--signal); }
.il-dot { fill: var(--ardoise-claire); }
.il-stroke { stroke: var(--ardoise); stroke-width: 2; }
.il-line { fill: none; stroke: var(--ardoise); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-thick { stroke-width: 4; }
.il-check { fill: none; stroke: var(--succes); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Trackline ---------- */
.trackline {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) {
  .trackline { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
}
.trackline-copy .tag { margin-bottom: 32px; }
.product-id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.product-id img { border-radius: 10px; }
.product-name { font-family: var(--font-titre); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.trackline-copy h2 { margin-bottom: 20px; }
.trackline-copy .lead { margin-bottom: 32px; }
.checklist { display: grid; gap: 16px; margin-bottom: 40px; }
.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: start;
  color: var(--papier);
}
.checklist .check { margin-top: 2px; }
.note { margin-top: 24px; font-size: 0.9375rem; color: var(--ardoise-claire); }

.shot-frame {
  background: var(--papier);
  border-radius: var(--radius-carte);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--brume);
  border-bottom: 1px solid #d3cdbf;
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ardoise-claire); }
.shot-bar span { margin-left: 12px; color: var(--ardoise); }
.shot-frame img { width: 100%; }
.shot figcaption { margin-top: 16px; color: var(--ardoise-claire); font-size: 0.9375rem; }

/* ---------- Équipe ---------- */
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .section-intro { margin-inline: auto; }

.people { display: grid; gap: 48px; margin-inline: auto; text-align: center; }
@media (min-width: 760px) {
  .people { grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 920px; }
}
.person p:last-child { margin-inline: auto; }
.media-person { aspect-ratio: 1 / 1; margin-bottom: 24px; }
.media-person .initial {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 6rem;
  color: var(--papier);
  line-height: 1;
}
.person h3 { font-size: 1.5rem; }
.role { color: var(--signal-profond); font-weight: 500; margin: 4px 0 12px; }
.person p:last-child { color: var(--ardoise); max-width: 52ch; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy .section-intro { margin-bottom: 32px; }
.reassure {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--encre);
  font-weight: 500;
}
.reassure .check { margin-top: 2px; }

.form { display: grid; gap: 20px; padding: 32px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ardoise);
  border-radius: var(--radius-bouton);
  background: var(--papier);
  color: var(--encre);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--signal-profond); border-width: 2px; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.6em; font-weight: 500; color: var(--encre); }
.form-status:empty { display: none; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--bg);
  color: var(--fg);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}
.footer-line { margin-top: 20px; color: var(--ardoise-claire); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.site-footer a,
.link-btn {
  color: var(--ardoise-claire);
  text-decoration: none;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.site-footer a:hover,
.link-btn:hover { color: var(--papier); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  padding-block: 24px;
  border-top: 1px solid rgba(169, 180, 196, 0.2);
  color: var(--ardoise-claire);
}

/* ---------- Mentions légales ---------- */
.legal {
  width: min(560px, calc(100% - 2 * var(--gutter)));
  padding: 32px;
  border: 0;
  border-radius: var(--radius-carte);
  background: var(--papier);
  color: var(--encre);
}
.legal::backdrop { background: rgba(15, 27, 45, 0.65); }
.legal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.legal-close {
  width: 44px; height: 44px;
  border: 1.5px solid var(--encre);
  border-radius: var(--radius-bouton);
  background: transparent;
  color: var(--encre);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.legal p { color: var(--ardoise); margin-bottom: 16px; }
.legal li { padding: 8px 0; border-top: 1px solid var(--brume); }

/* ---------- Apparition au défilement ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
