/* MyArk — composants de la refonte lisibilité (Claude Design, 05/10/2026).
   Pages migrées : fonts.css + tokens.css + composants.css + chrome.css,
   sans style.css. Règles : 7 tailles (tokens), 2 largeurs (lecture 704 px,
   pleine 1 120 px), texte courant sur le fond de page, 3 encarts seulement
   (Avertissement, Repère, Astuce MyArk), 1 bouton Miel par écran. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police-texte); font-size: var(--t-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--lagune); text-underline-offset: 3px; }
a:hover { color: var(--lagune-fort); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: var(--focus); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 {
  font-family: var(--police-titre); color: var(--texte); margin: 0;
  letter-spacing: var(--suivi-titre); text-wrap: balance;
}
p, li { text-wrap: pretty; }
.skip-link {
  position: absolute; left: var(--s-4); top: var(--s-2); z-index: 100;
  padding: var(--s-3) var(--s-4); border-radius: var(--rayon-m);
  background: var(--encre); color: var(--sur-encre); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--sur-encre); }

/* ---------- Mise en page ---------- */
.page {
  max-width: var(--w-pleine); margin: 0 auto;
  padding: var(--s-4) var(--gouttiere) 0;
  display: flex; flex-direction: column; gap: var(--s-7);
}
.lecture { max-width: var(--w-lecture); width: 100%; }
.stack { display: flex; flex-direction: column; gap: var(--s-7); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  font-size: var(--t-small); line-height: var(--lh-small); color: var(--texte-2);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--cible); }
.breadcrumb li + li::before { content: "›"; color: var(--texte-2); }
.breadcrumb a { font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Libellés ---------- */
.eyebrow {
  display: block; margin: 0;
  font-size: var(--t-caption); line-height: var(--lh-caption); font-weight: 700;
  letter-spacing: var(--suivi-caption); text-transform: uppercase; color: var(--lagune);
}

/* ---------- En-tête de page ---------- */
.page-header { display: flex; flex-direction: column; gap: var(--s-4); }
.page-header h1 { font-size: var(--t-display); line-height: var(--lh-display); font-weight: 800; }
.lead { margin: 0; font-size: var(--t-lead); line-height: var(--lh-lead); }
.meta { margin: 0; font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--texte-2); }

/* ---------- Encarts ---------- */
.callout {
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--s-4) 20px; border-left: 3px solid; border-radius: 0 var(--rayon-m) var(--rayon-m) 0;
}
.callout p { margin: 0; }
.callout__label {
  font-size: var(--t-caption); line-height: var(--lh-caption); font-weight: 700;
  letter-spacing: var(--suivi-caption); text-transform: uppercase;
}
.callout--warn { background: var(--miel-teinte); border-color: var(--alerte); }
.callout--warn .callout__label { color: var(--alerte); }
.callout--info { background: var(--lagune-teinte); border-color: var(--lagune); }
.callout--info .callout__label { color: var(--lagune-fort); }

/* ---------- Sommaire ---------- */
.toc {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: 20px var(--s-5); background: var(--carte);
  border: 1px solid var(--bord); border-radius: var(--rayon-l);
}
.toc__title { color: var(--texte-2); }
.toc ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: var(--s-5);
  font-size: var(--t-small); line-height: var(--lh-small);
}
.toc li { border-bottom: 1px solid var(--subtil); }
.toc li:last-child { border-bottom: 0; }
.toc a { display: flex; gap: var(--s-3); align-items: center; min-height: var(--cible); padding: var(--s-2) 0; font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc__n { color: var(--texte-2); font-weight: 400; min-width: 1.5ch; }

/* ---------- Sections de lecture ---------- */
.article { display: flex; flex-direction: column; gap: var(--s-7); }
.article > :not(.wide) { max-width: var(--w-lecture); width: 100%; } /* lecture 704 px ; .wide = pleine largeur */
.prose { display: flex; flex-direction: column; gap: var(--s-4); scroll-margin-top: 80px; }
.prose h2 { font-size: var(--t-title); line-height: var(--lh-title); font-weight: 800; }
.prose h3 { font-size: var(--t-heading); line-height: var(--lh-heading); font-weight: 700; }
.prose p { margin: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--s-2); }
.prose li::marker { color: var(--texte-2); }

/* Rythme des soins (guides du quotidien) : liste de définitions en ligne */
.schedule { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 0 !important; }
.schedule li { display: grid; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: 1px solid var(--bord); }
.schedule li:first-child { border-top: 1px solid var(--bord); }
.schedule strong { font-size: var(--t-small); color: var(--lagune-fort); }
@media (min-width: 768px) { .schedule li { grid-template-columns: 14rem 1fr; gap: var(--s-5); } }

/* ---------- Astuce MyArk (Encre) ---------- */
.tip {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: 20px var(--s-5); border-radius: var(--rayon-l);
  background: var(--encre); color: var(--sur-encre);
}
.tip .callout__label { color: #E9A13B; }
.tip p { margin: 0; }
.tip__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); font-size: var(--t-small); }
.tip__links a { color: var(--lien-sur-encre); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; min-height: var(--cible); }
.tip__links a:hover { color: #66D4C4; text-decoration: underline; }
.tip a:focus-visible { outline-color: #E9A13B; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--bord); }
.faq details { border-bottom: 1px solid var(--bord); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 64px; padding: var(--s-3) 0; cursor: pointer; list-style: none;
  font-size: var(--t-body); line-height: 1.4; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--lagune); font-size: 1.375rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 var(--s-5); }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-2);
  padding: 20px; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon-l);
  transition: box-shadow .15s ease;
}
.card:hover { box-shadow: var(--ombre); }
.card h3 { font-size: var(--t-heading); line-height: var(--lh-heading); font-weight: 700; }
.card p { margin: 0; font-size: var(--t-small); line-height: var(--lh-small); color: var(--texte-2); }
.card a { font-size: var(--t-small); font-weight: 600; text-decoration: none; margin-top: auto; }
.card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toute la carte est cliquable */
.card:has(a:focus-visible) { outline: var(--focus); outline-offset: 2px; }
.card a:focus-visible { outline: none; }

/* ---------- Pastilles ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .35em; min-height: 36px; padding: 0 var(--s-3);
  border: 1px solid var(--bord); border-radius: var(--rayon-pill); background: var(--carte);
  font-size: var(--t-small); font-weight: 600; text-decoration: none; color: var(--lagune-fort);
}
a.chip:hover { border-color: var(--lagune); }
.chip[aria-current="page"] { background: var(--lagune-teinte); border-color: var(--lagune-teinte); color: var(--lagune-fort); }

/* ---------- Boutons ---------- */
.btn, .btn:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--cible); padding: 0 20px; border-radius: var(--rayon-m);
  font-size: var(--t-small); font-weight: 700; text-decoration: none; text-align: center;
}
.btn--primary, .btn--primary:visited { background: var(--miel); color: #0A2E29; }
.btn--primary:hover { background: #F0B254; color: #0A2E29; }
.btn--secondary, .btn--secondary:visited { border: 1px solid var(--lagune); color: var(--lagune); background: transparent; }

/* ---------- Bloc app (Encre, fin de page) ---------- */
.app-block {
  display: grid; gap: var(--s-5); align-items: center;
  padding: var(--s-6) var(--s-5); border-radius: var(--rayon-xl);
  background: var(--encre); color: var(--sur-encre);
}
.app-block .eyebrow { color: #E9A13B; }
.app-block h2 { color: var(--sur-encre); font-size: var(--t-title); line-height: var(--lh-title); font-weight: 800; margin-top: var(--s-2); }
.app-block p { margin: var(--s-3) 0 0; font-size: var(--t-body); }
.app-block__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.app-block__actions a:not(.btn) { color: var(--sur-encre); font-size: var(--t-small); font-weight: 600; min-height: var(--cible); display: inline-flex; align-items: center; }
.app-block a:focus-visible { outline-color: #E9A13B; }
@media (min-width: 768px) {
  .app-block { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding: var(--s-6) var(--s-6); }
}

/* ---------- Blocs de fin ---------- */
.section-head { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.section-head h2 { font-size: var(--t-title); line-height: var(--lh-title); font-weight: 800; }
.more-links { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
.more-links__title { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--texte-2); }
.sources { border-top: 1px solid var(--bord); padding-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.sources h2 { font-family: var(--police-titre); font-size: var(--t-heading); line-height: var(--lh-heading); font-weight: 700; }
.sources p { margin: 0; font-size: var(--t-small); line-height: var(--lh-small); color: var(--texte-2); }
.sources ul { margin: 0; padding-left: 1.25em; font-size: var(--t-small); line-height: var(--lh-small); display: flex; flex-direction: column; gap: var(--s-1); }
.sources li { padding: 2px 0; }
.intro { gap: var(--s-5); }

/* ---------- Note discrète (estimation, réserve) ---------- */
.note { font-size: var(--t-small); line-height: var(--lh-small); color: var(--texte-2); }

/* ---------- Repère chiffré (encart info) ---------- */
.figure { font-family: var(--police-titre); font-size: var(--t-heading); line-height: var(--lh-heading); font-weight: 800; color: var(--texte); }

/* ---------- Sélection affiliée (pleine largeur) ---------- */
.products { display: flex; flex-direction: column; gap: var(--s-4); }
.products .section-head { margin-bottom: 0; }
.products__disclosure { margin: 0; max-width: var(--w-lecture); font-size: var(--t-small); line-height: var(--lh-small); color: var(--texte-2); }
.product .eyebrow { color: var(--texte-2); }
.product .btn { margin-top: auto; }
.product .btn::after { content: none; }
.products__more { font-size: var(--t-small); font-weight: 600; }

/* ---------- Fiche d'identité (races) : bande pleine largeur ---------- */
.identity {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon-l); overflow: hidden;
}
.identity > div { padding: var(--s-4) 20px; border-right: 1px solid var(--bord); border-bottom: 1px solid var(--bord); margin: 0 -1px -1px 0; }
.identity dt {
  font-size: var(--t-caption); line-height: var(--lh-caption); font-weight: 700;
  letter-spacing: var(--suivi-caption); text-transform: uppercase; color: var(--texte-2);
}
.identity dd { margin: var(--s-1) 0 0; font-size: var(--t-lead); line-height: 1.3; font-weight: 700; }
@media (max-width: 520px) { .identity { grid-template-columns: 1fr 1fr; } .identity > div:last-child:nth-child(odd) { grid-column: span 2; } }

/* ---------- Liste de définitions (compatibilité) ---------- */
.deflist { margin: 0; border-top: 1px solid var(--bord); }
.deflist > div { display: grid; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: 1px solid var(--bord); }
.deflist dt { font-weight: 700; }
.deflist dd { margin: 0; }
@media (min-width: 768px) { .deflist > div { grid-template-columns: 11rem 1fr; gap: var(--s-5); } }

/* ---------- Encart : titre interne ---------- */
.callout__title { margin: 0; font-family: var(--police-texte); font-size: var(--t-body); line-height: 1.4; font-weight: 700; letter-spacing: 0; }

/* ---------- Pastille « voir tout » ---------- */
.chip--more { border-color: var(--lagune); color: var(--lagune); }

/* ---------- Bandeau héros Encre (accueil, page App) ---------- */
.hero-band { background: var(--encre); color: var(--sur-encre); }
.hero-band__inner {
  max-width: var(--w-pleine); margin: 0 auto; padding: var(--s-7) var(--gouttiere);
  display: grid; gap: var(--s-6); align-items: center;
}
.hero-band__copy { display: flex; flex-direction: column; gap: var(--s-4); max-width: 36rem; }
.hero-band .eyebrow { color: #E9A13B; }
.hero-band h1 { color: var(--sur-encre); font-size: var(--t-display); line-height: var(--lh-display); font-weight: 800; }
.hero-band h1 em { font-style: normal; color: #E9A13B; }
.hero-band .lead { color: var(--sur-encre); }
.hero-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-2); }
.hero-band__link { color: var(--sur-encre); font-size: var(--t-small); font-weight: 600; min-height: var(--cible); display: inline-flex; align-items: center; }
.hero-band__link:hover { color: #fff; }
.hero-band a:focus-visible { outline-color: #E9A13B; }
.hero-band__note { margin: 0; font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--sur-encre); opacity: .85; }
.proofs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--t-small); }
.proofs li { display: inline-flex; align-items: center; gap: var(--s-2); }
.proofs li::before { content: "✓"; color: var(--lien-sur-encre); font-weight: 700; }
.hero-band__visual { display: flex; justify-content: center; }
.phone--screenshot {
  width: min(240px, 70vw); border: 8px solid #061f1b; border-radius: 40px; overflow: hidden;
  background: #F4F3EF; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.phone--screenshot img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero-band__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding-block: var(--s-8); }
  .phone--screenshot { width: 300px; }
}

/* ---------- Grilles de cartes ---------- */
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card.moment p { color: var(--texte-2); }

/* ---------- Badge officiel App Store et QR code ---------- */
.app-store-badge { display: inline-flex; align-items: center; line-height: 0; border-radius: 10px; min-height: var(--cible); }
.app-store-badge img { display: block; width: auto; height: 44px; }
.app-qr { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .app-qr { display: flex; align-items: center; gap: var(--s-3); flex-basis: 100%; }
  .app-qr img { width: 96px; height: 96px; padding: 6px; border-radius: var(--rayon-m); background: #fff; }
  .app-qr p { margin: 0; max-width: 26ch; font-size: var(--t-caption); line-height: var(--lh-caption); }
}

/* ---------- Page App : héros clair avec capture ---------- */
.app-hero { display: grid; gap: var(--s-6); align-items: center; }
.app-hero .page-header { max-width: var(--w-lecture); }
.page-header h1 em { font-style: normal; color: var(--lagune); }
.app-hero__visual { display: flex; justify-content: center; }
.proofs--clair { color: var(--texte); }
.proofs--clair li::before { color: var(--lagune); }
@media (min-width: 900px) { .app-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* ---------- Tarif MyArk Complet ---------- */
.pricing { display: grid; gap: var(--s-6); align-items: start; }
.price-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5); background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon-l);
}
.price-card p { margin: 0; }
.price-card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.price-card__badge {
  font-size: var(--t-caption); font-weight: 700; color: var(--alerte); background: var(--miel-teinte);
  padding: 2px var(--s-2); border-radius: var(--rayon-pill);
}
.price-card__price strong { font-family: var(--police-titre); font-size: var(--t-title); font-weight: 800; line-height: 1; }
.price-card__price span { color: var(--texte-2); }
.price-card .btn { width: 100%; }
@media (min-width: 900px) { .pricing { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
@media (min-width: 768px) { .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Un seul bouton Miel à l'écran ---------- */
/* Quand la page ouvre sur son propre bouton App Store, celui de l'en-tête passe en secondaire. */
body:has(.page-header .btn--primary, .hero-band .btn--primary) .sh-cta {
  background: transparent; color: var(--lagune-fort); box-shadow: inset 0 0 0 1px var(--lagune);
}
body:has(.page-header .btn--primary, .hero-band .btn--primary) .sh-cta:hover { background: var(--lagune-teinte); }
.hero-band + .page { padding-top: var(--ecart-section); }
@media (max-width: 899px) { .hero-band .phone--screenshot { width: 200px; } }
