/* hyperclik.com - feuille de style unique.
   Mobile d'abord (base 360px), puis min-width 480 / 768 / 1024.
   Thème clair uniquement. */

:root {
  color-scheme: only light;

  --ink: #0f1115;
  --text: #24272d;
  --muted: #5b616b;
  --navy: #0b3a8f;
  --navy-dark: #082a69;
  --green: #0c8340;
  --green-dark: #096a33;
  --tint: #fff1e6;
  --band: #f1f4f9;
  --grey-chip: #eeeeee;
  --line: #d8dce2;
  --white: #ffffff;

  --radius: 6px;
  --shadow-btn: 0 2px 5px rgba(15, 17, 21, 0.24);
  --shadow-card: 0 2px 10px rgba(15, 17, 21, 0.16);

  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1170px;
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(36px, 6vw, 52px);
}

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

html {
  background-color: #ffffff;
  color: #24272d;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: #24272d;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

[v-cloak] {
  display: none !important;
}

img,
video,
svg {
  max-width: 100%;
}

img,
video {
  display: block;
  height: auto;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 12px 16px;
  background-color: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip:focus {
  top: 12px;
}

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 17, 21, 0.14);
}

.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}

.masthead__brand:hover {
  color: var(--navy-dark);
}

.masthead__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666c76;
}

.masthead__meta {
  display: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.masthead__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.masthead__back:hover {
  text-decoration: underline;
}

.masthead__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: transparent;
}

.masthead__bar {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--green);
  transition: width 0.12s linear;
}

/* ---------- Layout (primary: main column + rule + sticky aside) ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
}

.layout__top,
.layout__rest {
  min-width: 0;
}

.layout__rule {
  display: none;
}

.layout__side {
  min-width: 0;
  margin: var(--section) auto 0;
  width: 100%;
  max-width: 520px;
}

/* ---------- Article head ---------- */

.headline {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.headline__accent {
  color: var(--navy);
}

.dek {
  margin: 0 0 20px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: #3a3f47;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  margin: 0;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.byline strong {
  font-weight: 700;
  color: var(--ink);
}

.byline__item + .byline__item::before {
  content: "";
  display: none;
  width: 6px;
  height: 6px;
  margin-right: 14px;
  border-radius: 50%;
  background-color: var(--ink);
  vertical-align: middle;
}

.hero {
  margin: 20px 0 0;
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 62% 50%;
}

.figure__caption {
  margin: 8px 0 0;
  font-size: 0.8438rem;
  line-height: 1.45;
  color: var(--muted);
}

.lead-box {
  margin: 0;
  padding: 16px clamp(16px, 3vw, 20px);
  background-color: var(--tint);
  color: var(--navy-dark);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
}

/* Badge row (accent: grey rounded rows with a check box) */

.badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.badges__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  background-color: var(--grey-chip);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.badges__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  color: var(--green);
  border-radius: 5px;
  box-shadow: 0 0 0 1px #d2d2d2, 0 1px 2px rgba(15, 17, 21, 0.14);
}

.badges__box svg {
  width: 16px;
  height: 16px;
}

/* ---------- Prose ---------- */

.prose p {
  margin: 0 0 1.15em;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  line-height: 1.68;
  color: var(--text);
}

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

.section-title {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-title__accent {
  color: var(--navy);
}

.item {
  margin: var(--section) 0 0;
}

.item__title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background-color: var(--band);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.5rem);
  font-weight: 800;
  line-height: 1.22;
}

.item__num {
  flex: none;
  color: var(--navy);
}

.figure {
  margin: 0 0 1.3em;
}

.figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ticks {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 32px;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  color: var(--text);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.38em;
  width: 7px;
  height: 13px;
  border: solid var(--green);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.split {
  display: grid;
  gap: 20px;
  margin: 0 0 1.3em;
}

.split__media {
  margin: 0;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #d9cfc0;
  border-radius: 8px;
}

.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.split__text > :last-child {
  margin-bottom: 0;
}

/* ---------- Calls to action ---------- */

.cta {
  margin: clamp(28px, 5vw, 40px) 0;
  text-align: center;
}

.cta__lead,
.prose .cta__lead {
  margin: 0 0 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  min-height: 56px;
  padding: 14px 16px;
  background-color: var(--green);
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-btn);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background-color: var(--green-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 17, 21, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn__arrow {
  flex: none;
  width: 24px;
  height: 24px;
}

.link-note,
.prose .link-note {
  max-width: 44ch;
  margin: 10px auto 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Aside card ---------- */

.aside {
  padding: 22px 20px 20px;
  background-color: #ffffff;
  color: var(--ink);
  border: 1px solid #c9ced6;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.aside__title {
  margin: 0;
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.aside__art {
  display: block;
  width: min(190px, 62%);
  height: auto;
  margin: 16px auto 14px;
}

.aside__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.aside__list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 28px;
}

.aside__list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.28em;
  width: 6px;
  height: 11px;
  border: solid var(--green);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.aside .btn {
  max-width: none;
  font-size: 1.1875rem;
}

.aside .link-note {
  max-width: none;
  margin-top: 12px;
}

/* ---------- Closing ---------- */

.closing {
  margin: clamp(40px, 6vw, 60px) 0 0;
  padding: clamp(24px, 5vw, 40px) clamp(18px, 4vw, 40px);
  background-color: var(--tint);
  color: var(--ink);
  border-radius: 8px;
}

.closing .section-title {
  border-bottom-color: rgba(11, 58, 143, 0.25);
}

.closing .cta {
  margin-bottom: 0;
}

/* ---------- Footer (imprint) ---------- */

.footer {
  max-width: var(--wrap);
  margin: clamp(48px, 8vw, 80px) auto 0;
  padding: 0 var(--gutter) 48px;
  background-color: #ffffff;
  color: #4b515b;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.footer p {
  margin: 0;
}

.footer__publisher {
  margin: 0 0 20px;
  color: #4b515b;
}

.footer__publisher strong {
  font-weight: 700;
  color: var(--ink);
}

.footer__policies {
  margin: 0 0 16px;
}

.footer__policies ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__policies a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
}

.footer__policies a:hover {
  color: var(--navy-dark);
  text-decoration-thickness: 2px;
}

.credit-line {
  max-width: 78ch;
  color: #4b515b;
}

/* ---------- Document pages (about + legal) ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--gutter) 0;
  background-color: #ffffff;
  color: var(--text);
}

.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.updated {
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  font-size: 0.875rem;
  color: var(--muted);
}

.doc__intro {
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: #3a3f47;
}

.doc h2 {
  margin: 2em 0 0.6em;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.doc p,
.doc li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}

.doc p {
  margin: 0 0 1em;
}

.doc ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.doc li {
  margin: 0 0 0.4em;
}

.doc address {
  margin: 0 0 1em;
  padding-left: 16px;
  border-left: 3px solid var(--line);
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- 480px ---------- */

@media (min-width: 480px) {
  .byline__item + .byline__item::before {
    display: inline-block;
  }

  .btn {
    width: auto;
    min-width: 300px;
  }

  .aside .btn {
    width: 100%;
    min-width: 0;
  }

  .badges__item {
    font-size: 0.9375rem;
    padding: 8px 12px;
  }
}

/* ---------- 768px ---------- */

@media (min-width: 768px) {
  .masthead__inner {
    min-height: 84px;
  }

  .masthead__label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
  }

  .masthead__meta {
    display: block;
  }

  .layout {
    padding-top: 36px;
  }

  .layout__top,
  .layout__rest {
    max-width: 780px;
    width: 100%;
    margin-inline: auto;
  }

  .badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .badges__item {
    font-size: 0.875rem;
  }

  .split {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }

  .split__media {
    margin-inline: 0;
  }

  .item__title {
    padding: 16px 20px;
  }

  .aside {
    padding: 26px 26px 24px;
  }
}

/* ---------- 1024px: main column + rule + sticky aside ---------- */

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 1px 310px;
    column-gap: 36px;
    padding-top: 40px;
  }

  .layout__top {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    margin-inline: 0;
  }

  .layout__rest {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    margin-inline: 0;
  }

  .layout__rule {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
    background-color: var(--line);
  }

  .layout__side {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 108px;
    margin: 0;
    max-width: none;
  }

  .aside {
    padding: 22px 20px 20px;
  }

  .badges__item {
    font-size: 0.875rem;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .masthead__bar,
  a {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
