/* =====================================================================
   atlasproontv.blog — Atlas Pro ONTV, service d'assistance et d'abonnement
   Direction visuelle : « Papier & Menthe »

   Ordre du fichier
   1. Jetons de conception
   2. Remise à zéro et éléments de base
   3. Primitives de mise en page
   4. Composants
   5. Blocs propres à une page
   6. Adaptatif
   7. Mouvement réduit
   ===================================================================== */

/* =====================================================================
   1. JETONS DE CONCEPTION
   ===================================================================== */
:root {
  /* --- surfaces papier --- */
  --paper: #fbf8f2;
  --paper-2: #f3ede2;
  --paper-3: #ece3d4;
  --card: #ffffff;

  /* --- encres --- */
  --ink: #14201d;
  --ink-2: #3d4b47;
  --ink-3: #6b7a75;

  /* --- filets --- */
  --rule: #e4dbcb;
  --rule-2: #d3c7b2;

  /* --- accent principal : pin --- */
  --pine: #0e6e62;
  --pine-deep: #0a544a;
  --pine-soft: #e3f1ee;
  --pine-wash: rgba(14, 110, 98, 0.07);

  /* --- accent secondaire : argile (alertes, pannes) --- */
  --clay: #b23a55;
  --clay-deep: #8d2b42;
  --clay-soft: #fbebee;

  /* --- ombres --- */
  --sh-1: 0 1px 2px rgba(20, 32, 29, 0.05);
  --sh-2: 0 10px 30px -12px rgba(20, 32, 29, 0.16);
  --sh-3: 0 22px 60px -24px rgba(20, 32, 29, 0.24);

  /* --- rayons --- */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* --- échelle d'espacement --- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;
  --s-10: 120px;

  /* --- familles --- */
  --f-display: "Bitter", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* --- échelle typographique --- */
  --t-h1: clamp(2.1rem, 1.35rem + 3.1vw, 3.5rem);
  --t-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  --t-h3: clamp(1.18rem, 1.04rem + 0.55vw, 1.4rem);
  --t-lead: clamp(1.06rem, 1rem + 0.3vw, 1.22rem);
  --t-body: 1.0435rem;
  --t-sm: 0.94rem;
  --t-xs: 0.84rem;
  --t-label: 0.75rem;

  /* --- mesures --- */
  --wrap: 1180px;
  --measure: 68ch;

  /* --- transitions --- */
  --tr: 200ms cubic-bezier(0.22, 0.68, 0.35, 1);
  --tr-slow: 320ms cubic-bezier(0.22, 0.68, 0.35, 1);

  /* --- en-tête --- */
  --header-h: 72px;
}

/* =====================================================================
   2. REMISE À ZÉRO ET ÉLÉMENTS DE BASE
   ===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* texture papier : deux couches fixes, très discrètes */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 32, 29, 0.045) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  top: -18vh;
  left: -12vw;
  width: 62vw;
  height: 62vw;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, var(--pine-wash), transparent 66%);
}

body > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: 1.1;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.18;
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.32;
  font-weight: 600;
}

h4 {
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 600;
}

p {
  margin: 0 0 var(--s-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--tr);
}

a:hover {
  color: var(--pine-deep);
}

strong,
b {
  font-weight: 700;
  color: var(--ink);
}

ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.35em;
}

li {
  margin-bottom: var(--s-2);
}

li:last-child {
  margin-bottom: 0;
}

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

img {
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--s-7) 0;
}

blockquote {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--pine);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--tr);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--paper);
}

/* =====================================================================
   3. PRIMITIVES DE MISE EN PAGE
   ===================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.section {
  padding-block: var(--s-9);
}

.section--tight {
  padding-block: var(--s-8);
}

.section--paper2 {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section--ink {
  background: var(--ink);
  color: #e8efec;
}

.section--ink h2,
.section--ink h3 {
  color: #fdfcf8;
}

.section--ink .sec-head__aside,
.section--ink p {
  color: #bcc8c4;
}

.measure {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--s-4);
}

.prose h2 {
  margin-top: var(--s-7);
}

.prose h3 {
  margin-top: var(--s-6);
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}

/* --- en-tête de section : « Dossier 01 » --- */
.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s-5);
  row-gap: var(--s-2);
  align-items: start;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}

.sec-head__index {
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  white-space: nowrap;
  padding-top: 0.55em;
}

.sec-head h2 {
  margin: 0;
  grid-column: 2;
}

.sec-head__aside {
  grid-column: 2;
  margin: 0;
  color: var(--ink-3);
  font-size: var(--t-sm);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 var(--s-3);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--pine);
  flex: none;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 64ch;
}

/* =====================================================================
   4. COMPOSANTS
   ===================================================================== */

/* --- 4.1 en-tête collant ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr), box-shadow var(--tr);
}

.site-header.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: var(--sh-1);
}

.site-header > .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.99rem;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
}

.nav__link:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav__link[aria-current="page"] {
  color: var(--pine);
  background: var(--pine-soft);
  font-weight: 700;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* --- 4.2 boutons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr),
    box-shadow var(--tr);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--pine {
  background: var(--pine);
  color: #fff;
  box-shadow: var(--sh-1);
}

.btn--pine:hover {
  background: var(--pine-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: #0b1614;
  color: var(--paper);
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--card);
  color: var(--ink);
  border-color: var(--rule-2);
}

.btn--outline:hover {
  border-color: var(--pine);
  color: var(--pine);
  background: var(--pine-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--pine);
  border-color: transparent;
  padding-inline: 4px;
}

.btn--ghost:hover {
  color: var(--pine-deep);
  text-decoration: underline;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* --- 4.3 étiquettes et puces ---------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.chip--pine {
  background: var(--pine-soft);
  border-color: rgba(14, 110, 98, 0.24);
  color: var(--pine-deep);
}

.chip--clay {
  background: var(--clay-soft);
  border-color: rgba(178, 58, 85, 0.24);
  color: var(--clay-deep);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-row li {
  margin: 0;
}

/* --- 4.4 cartes ----------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
}

.card--pad {
  padding: var(--s-6);
}

.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--pine-soft);
  color: var(--pine-deep);
  margin-bottom: var(--s-4);
}

.card__icon svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  margin-bottom: var(--s-2);
}

.card p {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

/* --- 4.5 fiche de diagnostic (composant signature) ------------------ */
.diag {
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-2);
}

.diag__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule-2);
}

.diag__ref {
  display: block;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.diag__title {
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.diag__row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.diag__row:last-child {
  border-bottom: 0;
}

.diag__key {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.diag__val {
  margin: 0;
  color: var(--ink);
  font-size: var(--t-sm);
}

.diag__val strong {
  color: var(--pine-deep);
}

.diag--alert .diag__head {
  background: var(--clay-soft);
  border-bottom-color: rgba(178, 58, 85, 0.24);
}

/* --- 4.6 formules --------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: start;
}

.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}

.plan--featured {
  border-color: var(--pine);
  border-width: 2px;
  box-shadow: var(--sh-2);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: var(--s-5);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  border: 1px solid var(--rule-2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.plan--featured .plan__badge {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.plan__name {
  font-size: 1.32rem;
  margin: 0 0 2px;
}

.plan__screens {
  margin: 0 0 var(--s-4);
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.plan__price {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  font-family: var(--f-display);
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 var(--s-1);
  letter-spacing: -0.02em;
}

.plan__cur {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pine);
  margin-top: 0.32em;
}

.plan__period {
  margin: 0 0 var(--s-5);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.plan__list {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  border-top: 1px solid var(--rule);
  padding-top: var(--s-4);
}

.plan__list li {
  position: relative;
  padding-left: 1.6em;
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin-bottom: var(--s-3);
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pine);
  opacity: 0.85;
}

.plan .btn {
  margin-top: auto;
}

.plan__note {
  margin: var(--s-3) 0 0;
  font-size: var(--t-xs);
  color: var(--ink-3);
  text-align: center;
}

/* --- 4.7 étapes ----------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 76px;
  padding-bottom: var(--s-6);
  margin-bottom: 0;
}

.steps > li::before {
  content: "Ét. " counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  padding: 5px 0;
  text-align: center;
  border-radius: var(--r-xs);
  background: var(--pine);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 32px;
  bottom: 6px;
  width: 1px;
  background: var(--rule-2);
}

.steps > li:last-child {
  padding-bottom: 0;
}

.steps > li:last-child::after {
  display: none;
}

.steps h3 {
  margin-bottom: var(--s-2);
}

.steps p {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

/* --- 4.8 encarts ---------------------------------------------------- */
.callout {
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--pine);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm);
}

.callout__title {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.99rem;
  margin-bottom: var(--s-2);
  color: var(--ink);
}

.callout p {
  color: var(--ink-2);
  margin-bottom: var(--s-3);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--warn {
  border-left-color: var(--clay);
  background: var(--clay-soft);
  border-color: rgba(178, 58, 85, 0.2);
}

.callout--tip {
  border-left-color: var(--pine);
  background: var(--pine-soft);
  border-color: rgba(14, 110, 98, 0.2);
}

/* --- 4.9 tableaux --------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--sh-1);
}

.table {
  min-width: 620px;
  font-size: var(--t-sm);
}

.table caption {
  text-align: left;
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-xs);
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}

.table th,
.table td {
  padding: 13px var(--s-5);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.table thead th {
  background: var(--paper-2);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--paper);
}

.table td strong {
  color: var(--pine-deep);
}

/* --- 4.10 FAQ ------------------------------------------------------- */
.faq {
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--sh-1);
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.01rem;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--tr), color var(--tr);
}

.faq__trigger:hover {
  background: var(--paper-2);
  color: var(--pine-deep);
}

.faq__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--pine);
  transition: transform var(--tr-slow);
}

.faq__trigger[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__panel {
  display: none;
  padding: 0 var(--s-5) var(--s-5);
}

.faq__panel.is-open {
  display: block;
}

.faq__panel p {
  color: var(--ink-2);
  font-size: var(--t-sm);
  max-width: 72ch;
}

/* --- 4.11 cadre de capture ------------------------------------------ */
.shot {
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  background: var(--card);
  padding: var(--s-3);
  box-shadow: var(--sh-2);
}

.shot img {
  border-radius: var(--r-sm);
  width: 100%;
}

.shot figcaption {
  padding: var(--s-3) var(--s-2) var(--s-1);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

/* --- 4.12 cartes de liens ------------------------------------------- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: var(--s-4);
}

.link-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-5);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--sh-1);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}

.link-card:hover {
  border-color: var(--pine);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  color: var(--ink);
}

.link-card__kicker {
  display: block;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: var(--s-2);
}

.link-card h3 {
  font-size: 1.07rem;
  margin-bottom: var(--s-2);
}

.link-card p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin: 0;
}

.link-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--pine);
}

/* --- 4.13 bandeau d'appel ------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: #e8efec;
  border-radius: var(--r-lg);
  padding: var(--s-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-6);
  align-items: center;
}

.cta-band h2 {
  color: #fdfcf8;
  margin-bottom: var(--s-3);
}

.cta-band p {
  color: #bcc8c4;
  margin: 0;
  max-width: 56ch;
  font-size: var(--t-sm);
}

.cta-band .btn--pine {
  background: var(--pine);
}

.cta-band .btn--outline {
  background: transparent;
  color: #fdfcf8;
  border-color: rgba(253, 252, 248, 0.28);
}

.cta-band .btn--outline:hover {
  background: rgba(253, 252, 248, 0.08);
  border-color: rgba(253, 252, 248, 0.5);
  color: #fdfcf8;
}

/* --- 4.14 moyens de paiement ---------------------------------------- */
.pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pay-row li {
  margin: 0;
}

.pay-row img {
  height: 26px;
  width: auto;
  opacity: 0.85;
}

/* --- 4.15 statistiques --------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}

.stat {
  border-left: 2px solid var(--pine);
  padding-left: var(--s-4);
}

.stat__num {
  display: block;
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat__label {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-xs);
  color: var(--ink-3);
  line-height: 1.5;
}

/* --- 4.16 sommaire collant ------------------------------------------ */
.with-toc {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--card);
  padding: var(--s-4);
  box-shadow: var(--sh-1);
}

.toc__title {
  display: block;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: var(--s-1);
}

.toc a {
  display: block;
  padding: 6px 8px 6px 30px;
  position: relative;
  border-radius: var(--r-xs);
  font-size: var(--t-sm);
  color: var(--ink-2);
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pine);
  top: 8px;
}

.toc a:hover {
  background: var(--pine-soft);
  color: var(--pine-deep);
}

.toc a[aria-current="true"] {
  background: var(--pine-soft);
  color: var(--pine-deep);
  font-weight: 700;
}

/* --- 4.17 bandeau de rappel des prix -------------------------------- */
.price-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: var(--s-5);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--sh-1);
}

.price-strip__item {
  border-left: 2px solid var(--pine);
  padding-left: var(--s-4);
}

.price-strip__screens {
  display: block;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.price-strip__amount {
  display: block;
  font-family: var(--f-display);
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-strip__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--t-xs);
  color: var(--ink-3);
}

/* --- 4.17 fil d'Ariane --------------------------------------------- */
.crumbs {
  padding-top: var(--s-5);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--rule-2);
}

.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--pine);
  text-decoration: underline;
}

/* --- 4.18 formulaire ------------------------------------------------ */
.form {
  display: grid;
  gap: var(--s-4);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  transition: border-color var(--tr), box-shadow var(--tr);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px var(--pine-wash);
  outline: none;
}

.field__hint {
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.field__error {
  display: none;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--clay-deep);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--clay);
}

.field.has-error .field__error {
  display: block;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

/* --- 4.19 bouton flottant ------------------------------------------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--pine);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--sh-3);
  transition: background var(--tr), transform var(--tr);
}

.wa-float:hover {
  background: var(--pine-deep);
  color: #fff;
  transform: translateY(-2px);
}

.wa-float svg {
  width: 21px;
  height: 21px;
  flex: none;
}

/* --- 4.20 pied de page --------------------------------------------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding-block: var(--s-8) var(--s-5);
  margin-top: var(--s-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s-6);
}

.footer-brand p {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--ink-2);
  max-width: 42ch;
}

.site-footer h2 {
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: var(--s-2);
}

.site-footer li a {
  font-size: var(--t-sm);
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--pine);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-2);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

/* --- 4.21 révélation ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--tr-slow), transform var(--tr-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   5. BLOCS PROPRES À UNE PAGE
   ===================================================================== */

/* --- 5.1 héros d'accueil -------------------------------------------- */
.hero {
  padding-block: var(--s-9) var(--s-8);
  border-bottom: 1px solid var(--rule);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: var(--s-8);
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--s-4);
}

.hero .lead {
  margin-bottom: var(--s-5);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  list-style: none;
  padding-left: 0;
}

.hero__proof li {
  margin: 0;
  font-size: var(--t-xs);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__proof svg {
  width: 15px;
  height: 15px;
  color: var(--pine);
  flex: none;
}

.hero__media {
  position: relative;
}

.hero__price-tag {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--sh-3);
}

.hero__price-tag span {
  display: block;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.hero__price-tag strong {
  font-family: var(--f-display);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* --- 5.2 en-tête de page interne ------------------------------------ */
.page-head {
  padding-block: var(--s-8) var(--s-7);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}

.page-head h1 {
  margin-bottom: var(--s-4);
}

.page-head .lead {
  margin-bottom: 0;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-2);
  list-style: none;
  padding-left: 0;
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.page-head__meta li {
  margin: 0;
}

/* --- 5.3 grille de symptômes ---------------------------------------- */
.symptoms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: var(--s-4);
}

.symptom {
  display: flex;
  gap: var(--s-4);
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--clay);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--tr), transform var(--tr);
}

.symptom:hover {
  transform: translateX(3px);
  border-left-color: var(--pine);
  color: var(--ink);
}

.symptom__num {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-3);
  flex: none;
  line-height: 1.45;
}

.symptom h3 {
  font-size: 0.99rem;
  margin-bottom: 4px;
}

.symptom p {
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin: 0;
}

/* --- 5.4 liste d'appareils ------------------------------------------ */
.device-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.device-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px var(--s-4);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  margin: 0;
}

.device-list svg {
  width: 18px;
  height: 18px;
  color: var(--pine);
  flex: none;
}

/* --- 5.5 avis clients ----------------------------------------------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.review {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
}

.review__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--s-3);
  color: var(--pine);
}

.review__stars svg {
  width: 15px;
  height: 15px;
}

.review blockquote {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}

.review__who {
  display: block;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink);
}

.review__where {
  display: block;
  font-size: var(--t-xs);
  color: var(--ink-3);
}

/* --- 5.6 bloc juridique -------------------------------------------- */
.legal h2 {
  font-size: 1.32rem;
  margin-top: var(--s-7);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  font-size: var(--t-sm);
  color: var(--ink-2);
}

/* =====================================================================
   6. ADAPTATIF
   ===================================================================== */
@media (max-width: 1080px) {
  .with-toc {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .toc {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    margin: 0;
    padding: var(--s-5);
    background: var(--paper);
    border-bottom: 1px solid var(--rule-2);
    box-shadow: var(--sh-3);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav .btn {
    width: 100%;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .hero__media {
    order: -1;
  }

  .hero__price-tag {
    left: auto;
    right: 12px;
    bottom: -14px;
  }

  .plans {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .grid-3,
  .reviews {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: var(--s-6);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
  }

  .price-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: var(--s-5);
  }

  .price-strip .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --s-9: 64px;
    --s-10: 80px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .reviews,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .sec-head {
    grid-template-columns: 1fr;
    row-gap: var(--s-2);
  }

  .sec-head h2,
  .sec-head__aside {
    grid-column: 1;
  }

  .sec-head__index {
    padding-top: 0;
  }

  .diag__row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .price-strip {
    grid-template-columns: 1fr;
    padding: var(--s-5);
  }

  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 14px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding-inline: var(--s-4);
  }

  .steps > li {
    padding-left: 0;
  }

  .steps > li::before {
    position: static;
    display: inline-block;
    margin-bottom: var(--s-3);
  }

  .steps > li::after {
    display: none;
  }

  .plan__price {
    font-size: 2.4rem;
  }
}

/* =====================================================================
   7. MOUVEMENT RÉDUIT
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .plan:hover,
  .link-card:hover,
  .symptom:hover,
  .wa-float:hover {
    transform: none;
  }
}
