/* ==========================================================================
   GLM 2 ROUES — feuille de style principale
   Direction : atelier moto. Noir cambouis, crème, rouge bannière du logo.
   ========================================================================== */

:root {
  --ink: #101113;
  --ink-2: #191B1E;
  --ink-3: #24272B;
  --cream: #F4F1E8;
  --cream-2: #E7E2D4;
  --red: #C0262C;
  --red-dark: #8E1A1F;
  --steel: #7C848C;
  --line-dark: rgba(244, 241, 232, 0.14);
  --line-light: rgba(16, 17, 19, 0.14);

  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --wrap: 1140px;
  --gut: 24px;
  --radius: 3px;
}

/* --- Base ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: 0; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 780px; margin-inline: auto; padding-inline: var(--gut); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 12px 18px; z-index: 999;
}
.skip:focus { left: 0; }

/* --- Étiquettes atelier (motif récurrent) -------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
  display: block;
}
.on-dark .eyebrow { color: #E8837F; }

/* --- Barre de navigation -------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-dark);
}
.topbar .wrap {
  display: flex; gap: 18px; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  min-height: 38px;
}
.topbar a { color: var(--cream); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.nav .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-txt { line-height: 1; }
.brand-name {
  font-family: var(--display); color: var(--cream);
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.brand-sub {
  font-family: var(--mono); color: var(--steel);
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--cream); text-decoration: none;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 12px; border-radius: var(--radius);
}
.nav-links a:hover { background: var(--ink-3); color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--red); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark);
  color: var(--cream); padding: 10px 14px; border-radius: var(--radius);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
}

.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: currentColor; color: var(--cream); background: none; }
.btn-ghost:hover { background: var(--ink-3); color: #fff; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-3); color: #fff; transform: translateY(-1px); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero::after {
  /* denture de pignon, reprise du logo */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px;
  background:
    repeating-linear-gradient(90deg,
      var(--cream) 0 18px, transparent 18px 36px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 55%);
  mask-image: linear-gradient(180deg, transparent 0, #000 55%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 48px; align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .line-red { color: var(--red); display: block; }
.hero-lede { font-size: 1.15rem; max-width: 46ch; color: #DAD6CB; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge img { width: 100%; max-width: 300px; margin-inline: auto; border-radius: 50%; }

/* bandeau rouge incliné, écho au ruban du logo */
.ribbon {
  background: var(--red); color: #fff;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 13px 0; text-align: center;
}
.ribbon strong { font-weight: 600; }

/* --- Sections ------------------------------------------------------------- */

.section { padding: 74px 0; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-tint { background: var(--cream-2); }
.section-head { max-width: 62ch; margin-bottom: 40px; }

.page-head {
  background: var(--ink); color: var(--cream);
  padding: 62px 0 56px;
  border-bottom: 6px solid var(--red);
}
.page-head p { color: #DAD6CB; max-width: 60ch; margin-bottom: 0; }

/* --- Grilles -------------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--cream);
  border: 1px solid var(--line-light);
  border-top: 4px solid var(--ink);
  padding: 26px 24px;
  border-radius: var(--radius);
}
.card .num {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--red); display: block; margin-bottom: 10px;
}
.card p:last-child { margin-bottom: 0; }
.section-dark .card {
  background: var(--ink-2); border-color: var(--line-dark); border-top-color: var(--red);
  color: #DAD6CB;
}

/* --- Fiche d'atelier : le bloc signature --------------------------------- */

.fiche {
  background: #FBFAF5;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -28px rgba(16, 17, 19, 0.55);
  overflow: hidden;
}
.fiche-head {
  background: var(--ink); color: var(--cream);
  padding: 18px 26px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.fiche-head h2 { font-size: 1.25rem; margin: 0; }
.fiche-ref {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.16em; color: var(--steel); text-transform: uppercase;
}
.fiche-perf {
  height: 12px;
  background: repeating-linear-gradient(90deg,
    var(--cream-2) 0 8px, transparent 8px 16px);
  border-bottom: 1px dashed var(--line-light);
}
.fiche-body { padding: 30px 26px 34px; }

fieldset {
  border: 0; border-top: 1px solid var(--line-light);
  margin: 0 0 26px; padding: 22px 0 0;
}
fieldset:first-of-type { border-top: 0; padding-top: 0; }
legend {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); padding: 0 10px 0 0;
}

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

label {
  display: block;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #4A4F55; margin-bottom: 7px;
}
label .req { color: var(--red); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="url"], select, textarea {
  width: 100%;
  font-family: var(--body); font-size: 1rem;
  color: var(--ink); background: #fff;
  border: 1px solid #C9C4B6; border-radius: var(--radius);
  padding: 12px 13px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: 2px solid rgba(192, 38, 44, 0.25); outline-offset: 0; }

.hint { font-size: 0.85rem; color: #5C6169; margin: 6px 0 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.consent label { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 0.92rem; color: #3A3E44; line-height: 1.5; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius);
  font-size: 0.95rem; display: none;
}
.form-status.is-ok { display: block; background: #E3EFE4; border: 1px solid #7FA985; color: #1F4526; }
.form-status.is-error { display: block; background: #FBE6E6; border: 1px solid var(--red); color: var(--red-dark); }

/* --- Listes et données --------------------------------------------------- */

.datalist { list-style: none; margin: 0; padding: 0; }
.datalist li {
  display: grid; grid-template-columns: 220px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line-light);
}
.datalist dt, .datalist .k {
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: #5C6169;
}
.section-dark .datalist li { border-color: var(--line-dark); }
.section-dark .datalist .k { color: var(--steel); }

.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 14px; height: 2px; background: var(--red);
}

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  padding: 20px 0 20px 66px; position: relative;
  border-top: 1px solid var(--line-light);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 20px;
  font-family: var(--mono); font-size: 0.95rem; color: var(--red);
  letter-spacing: 0.08em;
}
.steps li strong { display: block; font-size: 1.05rem; }

/* --- Contenus juridiques -------------------------------------------------- */

.legal { padding: 60px 0 84px; }
.legal h2 { font-size: 1.35rem; margin-top: 44px; }
.legal h3 { font-size: 1.02rem; margin-top: 28px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .updated {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: #5C6169;
}
.callout {
  background: #FFF6E8; border-left: 4px solid #D08A1E;
  padding: 18px 20px; border-radius: var(--radius); margin: 26px 0;
  font-size: 0.95rem;
}
.callout p:last-child { margin-bottom: 0; }
.todo {
  background: #FFF0F0; border-left: 4px solid var(--red);
  padding: 18px 20px; border-radius: var(--radius); margin: 26px 0;
  font-size: 0.95rem;
}
.todo p:last-child { margin-bottom: 0; }
mark.fill { background: #FFE9A8; padding: 1px 5px; border-radius: 2px; font-weight: 500; }

/* --- Pied de page --------------------------------------------------------- */

.footer {
  background: var(--ink); color: #B9BDC2;
  padding: 60px 0 30px;
  font-size: 0.94rem;
  border-top: 6px solid var(--red);
}
.footer h3 { color: var(--cream); font-size: 0.9rem; letter-spacing: 0.14em; margin-bottom: 16px; }
.footer a { color: #DAD6CB; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer-legal {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--steel); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer-logo { width: 74px; height: 74px; border-radius: 50%; margin-bottom: 16px; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { order: -1; }
  .hero-badge img { max-width: 190px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .nav-toggle { display: block; }
  .nav .wrap { flex-wrap: wrap; min-height: 68px; }
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    width: 100%; padding-bottom: 14px; gap: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 8px; border-bottom: 1px solid var(--line-dark); }
  .nav-links .btn { margin-top: 12px; text-align: center; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .datalist li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; text-align: center; }
}

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

@media print {
  .nav, .topbar, .footer .footer-grid, .hero-actions { display: none; }
  body { background: #fff; }
}
