/* Optimum° accueil v2 (26/08/2026) : l'objet (couverture réelle), la preuve, le kiosque, l'auteur.
   Charge après optimum-overrides.css. N'écrase que ce qui est nécessaire. */

/* ===== Hero : titre | couverture ; accroche + formulaire sous le titre ===== */
.opt-hero-v2 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "lead" "object";  /* mobile : le formulaire avant la couverture (ligne de flottaison) */
  gap: 2rem;
  align-items: start;
  padding-top: 2.5rem;
}
.opt-hero-v2 h1 { font-size: clamp(3rem, 7.2vw, 5.6rem); }
.opt-hero-v2 .opt-hero-copy { grid-area: copy; }
.opt-hero-v2 .opt-hero-object { grid-area: object; }
.opt-hero-v2 .opt-hero-lead { grid-area: lead; justify-content: flex-start; }
@media (min-width: 900px) {
  .opt-hero-v2 {
    grid-template-columns: 7fr 5fr;
    grid-template-areas: "copy object" "lead object";
    column-gap: 4rem;
    row-gap: 2.5rem;
  }
}
.opt-hero-v2 .opt-hero-byline { margin-bottom: 1.5rem; }
.opt-hero-v2 .opt-hero-tagline { max-width: 44ch; margin-bottom: 1.75rem; }

/* La couverture comme un objet posé sur la page */
.opt-hero-object {
  display: block;
  justify-self: center;
  width: min(320px, 78%);
  text-decoration: none;
  color: inherit;
  transform: rotate(-1.5deg);
  transition: transform 260ms ease;
}
@media (min-width: 900px) { .opt-hero-object { width: min(380px, 100%); justify-self: end; margin-top: 0.5rem; } }
.opt-hero-object:hover { transform: rotate(0deg) translateY(-4px); }
.opt-hero-object img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 rgba(26, 24, 21, 0.06),
    0 18px 40px -18px rgba(26, 24, 21, 0.35),
    0 40px 80px -40px rgba(124, 45, 18, 0.25);
  background: var(--paper);
}
.opt-hero-object-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 1.1rem;
  text-align: center;
  transform: rotate(1.5deg);
}
.opt-hero-object-caption .mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}
.opt-hero-object-caption .theme {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--ink);
}
/* Le bandeau utilitaire reste, mais plus serré sur l'accueil : le formulaire doit passer la ligne de flottaison. */
.home-template .opt-cartouche { padding-top: 1.4rem; padding-bottom: 0.9rem; }

/* ===== Preuve chiffrée : le chiffre en serif, le libellé en mono ===== */
.opt-proof {
  max-width: 1200px;
  margin: 0 auto 4.5rem;
  padding: 1.4rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  text-align: center;
}
.opt-proof span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.opt-proof span b {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
@media (max-width: 700px) {
  .opt-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.1rem; margin-bottom: 3rem; }
  .opt-proof span { font-size: 0.6rem; letter-spacing: 0.12em; }
  .opt-proof span b { font-size: 1.4rem; }
}

/* ===== Dernier numéro : le numéro tel qu'imprimé ===== */
.opt-latest-num {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rust);
}

/* ===== Le kiosque ===== */
.opt-kiosque { text-align: center; }
.opt-kiosque-title {
  font-family: var(--serif-display) !important;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 auto 1.25rem;
}
.opt-kiosque-title em { color: var(--rust); font-style: italic; }
.opt-kiosque-lede { max-width: 62ch; margin: 0 auto 3rem; }
.opt-kiosque-grid {
  list-style: none;
  margin: 0 auto 3rem;
  padding: 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.25rem;
}
@media (min-width: 800px) { .opt-kiosque-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.opt-kiosque-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}
.opt-kiosque-grid img {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--paper);
  margin-bottom: 0.8rem;
  box-shadow: 0 1px 0 rgba(26, 24, 21, 0.06), 0 14px 30px -16px rgba(26, 24, 21, 0.3);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.opt-kiosque-grid a:hover img { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(26, 24, 21, 0.06), 0 22px 40px -18px rgba(26, 24, 21, 0.35); }
.opt-kiosque-grid .mono {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}
.opt-kiosque-grid .theme {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--ink);
}
.opt-kiosque-grid .pages {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.opt-kiosque-grid li:not(.is-current) img { opacity: 0.92; }

/* ===== L'offre : une seule carte, un seul bouton ===== */
.opt-offre { display: flex; justify-content: center; }
.opt-offre-card {
  width: 100%;
  max-width: 520px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rust);
  padding: 2rem 2rem 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.opt-offre-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}
.opt-offre-amount {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--ink);
  margin-top: 0.35rem;
}
.opt-offre-amount .cents { font-size: 1.6rem; color: var(--rust); }
.opt-offre-period {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--ink-mute);
  margin-bottom: 0.9rem;
}
.opt-offre-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--serif-body);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.opt-offre-list li::before { content: "›"; color: var(--rust); font-weight: 700; margin-right: 0.6rem; }
.opt-offre-card .opt-form-btn { align-self: flex-start; text-decoration: none; display: inline-block; }
.opt-offre-fine {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin: 1rem 0 0;
}

/* ===== L'auteur ===== */
.opt-auteur {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem var(--gutter) 2rem;
}
.opt-auteur .opt-section-num { justify-content: center; }
.opt-auteur-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}
@media (min-width: 700px) {
  .opt-auteur-grid { grid-template-columns: 160px minmax(0, 1fr); gap: 2.5rem; text-align: left; justify-items: start; align-items: start; }
}
.opt-auteur-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 24px -14px rgba(26, 24, 21, 0.35);
}
.opt-auteur-title {
  font-family: var(--serif-display) !important;
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.8rem;
}
.opt-auteur-text {
  font-family: var(--serif-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}
.opt-auteur-links {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}
.opt-auteur-links a { color: var(--rust); text-decoration: none; border-bottom: 1px solid rgba(124, 45, 18, 0.35); }
.opt-auteur-links a:hover { border-bottom-color: var(--rust); }

/* ===== Archives : le Dossier se distingue, le numéro est celui du magazine ===== */
.opt-archive-item.is-dossier .archive-num { color: var(--rust); font-style: italic; font-family: var(--serif-display); letter-spacing: 0; text-transform: none; }
.opt-archive-item.is-dossier { background: linear-gradient(90deg, rgba(124, 45, 18, 0.045), transparent 60%); }

/* ===== Corrections du contre-audit design (26/08) ===== */
/* 01 : le label centré comme 02/03/04, l'extrait coupé proprement */
.opt-latest-block .opt-section-num { justify-content: center; }
.opt-latest-excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* lignes de base : titres à hauteur fixe dans le kiosque et les trois colonnes */
.opt-kiosque-grid .theme { min-height: 2.3em; }
.opt-howto-step h3 { min-height: 2.6em; }
/* métadonnées mono : contraste AA sur beige */
.opt-latest-meta, .archive-date, .archive-time, .archive-meta-line { color: #5E574C; }
/* kiosque en mobile : carrousel horizontal, 1,3 couverture visible, au lieu de 2 × 2 illisibles */
@media (max-width: 700px) {
  .opt-kiosque-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1rem; gap: 1.25rem; -webkit-overflow-scrolling: touch; }
  .opt-kiosque-grid li { scroll-snap-align: center; }
  .opt-kiosque-grid img { max-width: none; }
  .opt-kiosque-lede, .opt-premium-lede { text-align: left; }
}
/* boutons : rouille = rejoindre / s'inscrire, noir = lire */
.gh-navigation .gh-button[data-portal="signup"] { background: var(--rust) !important; }
.gh-navigation .gh-button[data-portal="signup"]:hover { background: var(--rust-deep) !important; }
/* mur payant (page /magazine/ et dossiers) : moins de vide mort autour de trois lignes */
.gh-post-upgrade-cta-content { padding: 44px 32px !important; }

/* ===== Passe mobile mesurée (26/08) : les vides de 100 à 230 px ramenés à un rythme de 40 à 64 px.
   optimum-overrides.css force ces paddings en !important sous 720 px : même arme, même seuil. ===== */
@media (max-width: 720px) {
  .opt-latest-block { padding: 2.75rem var(--gutter) !important; }
  .opt-howto { padding: 2.75rem var(--gutter) 2.25rem !important; }
  .opt-howto-grid { gap: 1.75rem !important; }
  .opt-howto-step + .opt-howto-step { padding-top: 1.5rem !important; }
  .opt-premium { padding: 2.75rem var(--gutter) 2.5rem !important; }
  .opt-kiosque-lede { margin-bottom: 2rem !important; }
  .opt-kiosque-grid { margin-bottom: 2rem !important; }
  .opt-auteur { padding-top: 2.75rem !important; padding-bottom: 1.5rem !important; }
  .opt-devise { padding: 2rem var(--gutter) 2.25rem !important; }
  .gh-footer { margin-top: 1.5rem !important; padding-top: 2.5rem !important; }
  /* archives */
  .opt-archive { padding-bottom: 2rem !important; }
  .opt-archive-header { margin-bottom: 1.5rem !important; }
  .opt-archive-filters { margin-bottom: 1.5rem !important; }
  .opt-archive-item { padding: 1.4rem 0 !important; }
  /* page de lecture : en-tête, encadrés source, fin d'article */
  .gh-content { padding-top: 12px !important; }
  .gh-article-header { margin-bottom: 0.5rem !important; }
  .gh-content > blockquote:first-child, .gh-content > .optimum-reveal:first-child { margin-top: 0.75rem !important; margin-bottom: 1.25rem !important; }
  .gh-content > p:first-of-type { margin-top: 0.75rem !important; }
  .gh-content p:has(a[href*="pubmed.ncbi"]) { margin: 1.25rem 0 !important; }
  .gh-content p:has(a[href*="pubmed.ncbi"]) + p { margin-top: 1.1rem !important; }
  .gh-content p:has(> strong:only-child) { margin-top: 1.75rem !important; margin-bottom: 0.9rem !important; }
  .gh-content hr { margin: 2rem 0 !important; }
  .optimum-post-footer { margin-top: 1.5rem !important; padding-top: 1rem !important; }
  .optimum-post-footer > * { margin-top: 1.5rem !important; margin-bottom: 0 !important; }
  .optimum-post-footer > *:first-child { margin-top: 0 !important; }
  .optimum-cta-card { padding: 1.4rem 1.2rem !important; }
  .optimum-share-block { padding: 1.2rem 1rem !important; }
  .optimum-post-nav { padding-top: 1rem !important; padding-bottom: 0.5rem !important; }
}
/* cibles tactiles : « Lire le numéro → » faisait 20 px de haut sur 20 lignes d'archives */
@media (max-width: 720px) {
  .archive-read-link { display: inline-flex !important; align-items: center; min-height: 44px; padding-right: 0.5rem; }
  .gh-footer-menu a { min-height: 40px; display: inline-flex !important; align-items: center; }
}
