/* Mes Poésies — site poesies.vinzaudio.fr
   Thème « Cahier » de l'application : papier crème, lignes Seyès pâles, marge rose.
   Aucune ressource externe : polices du système, aucune image obligatoire. */

:root {
  color-scheme: light;
  --fond: #F6F1E4;
  --carte: #FFFCF5;
  --encre: #1F2A44;
  --encre-douce: #45506A;
  --accent: #2C5BD6;
  --accent-fonce: #1F47B0;
  --rose: #E8A4A4;
  --ligne: #BFD3E6;
  --trait: #E4DCC8;
  --marge: 22px;
  --rayon: 18px;
  --police: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--encre);
  background-color: var(--fond);
  /* marge rose, grands carreaux Seyès (tous les 32 px), petites lignes (tous les 8 px) */
  background-image:
    linear-gradient(to right, transparent var(--marge), var(--rose) var(--marge), var(--rose) calc(var(--marge) + 2px), transparent calc(var(--marge) + 2px)),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(191, 211, 230, .75) 31px 32px),
    repeating-linear-gradient(to bottom, transparent 0 7px, rgba(191, 211, 230, .32) 7px 8px);
  background-attachment: fixed, scroll, scroll;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-fonce); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: var(--carte);
  padding: .7rem 1rem; border-radius: 0 0 10px 0; z-index: 10;
}
.evitement:focus { left: 0; }

/* ---------- En-tête ---------- */
.entete {
  background: var(--fond);
  border-bottom: 1px solid var(--trait);
}
.entete-in {
  max-width: 62rem; margin: 0 auto;
  padding: .75rem 16px .5rem calc(var(--marge) + 14px);
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem;
}
.marque {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--encre); text-decoration: none;
  font-weight: 800; font-size: 1.2rem; min-height: 48px;
}
.marque img { width: 40px; height: 40px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .2rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 .6rem; border-radius: 10px;
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.nav a:hover { background: var(--carte); }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Mise en page ---------- */
main { max-width: 62rem; margin: 0 auto; padding: 1rem 16px 3rem calc(var(--marge) + 14px); }

.langues { margin: .6rem 0 1.2rem; font-size: .95rem; }
.langues a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.feuille {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  box-shadow: 0 1px 0 rgba(31, 42, 68, .04), 0 10px 30px -18px rgba(31, 42, 68, .35);
  padding: 1.6rem 1.2rem 2rem;
  margin: 0 0 2rem;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 2rem; margin: 0 0 .4rem; font-weight: 800; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 .7rem; font-weight: 800; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.08rem; margin: 1.5rem 0 .3rem; font-weight: 700; }
p, li, dd { max-width: 68ch; }
ul, ol { padding-left: 1.3rem; }
li { margin: .3rem 0; }

.sous-titre { font-size: 1.2rem; color: var(--encre-douce); margin: 0 0 1.2rem; }
.chapo {
  font-size: 1.08rem;
  border-left: 4px solid var(--rose);
  padding-left: 1rem;
  margin: 1.2rem 0 1.6rem;
}
.maj { font-size: .9rem; color: var(--encre-douce); }

.encart {
  background: #EEF3FB;
  border: 1px solid #D5E1F2;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
}
.encart > :first-child { margin-top: 0; }
.encart > :last-child { margin-bottom: 0; }

/* ---------- Accueil ---------- */
.hero { display: grid; gap: 1.2rem; align-items: center; }
.hero-logo { width: 96px; height: 96px; }

.stores { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 .4rem; padding: 0; list-style: none; }
.stores a {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: .45rem 1.1rem;
  background: var(--encre); color: var(--carte);
  border-radius: 14px; text-decoration: none; line-height: 1.2;
}
.stores a:hover { background: #2D3B5C; color: var(--carte); }
.stores small { font-size: .78rem; opacity: .9; }
.stores strong { font-size: 1.1rem; }
.stores-note { font-size: .9rem; color: var(--encre-douce); margin: .2rem 0 0; }

.captures {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; margin: 1.6rem 0 .4rem; padding: 0; list-style: none;
}
.capture { margin: 0; }
.capture object, .capture img {
  display: block; width: 100%; aspect-ratio: 1320 / 2868; height: auto;
  border-radius: 20px; border: 1px solid var(--trait);
  background: var(--fond);
}
.capture-vide {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; padding: 1rem;
  border: 2px dashed var(--ligne); border-radius: 20px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 23px, rgba(191, 211, 230, .6) 23px 24px),
    var(--carte);
  color: var(--encre-douce); font-size: .92rem; font-weight: 600;
}
.capture figcaption { font-size: .92rem; margin-top: .5rem; color: var(--encre-douce); text-align: center; }

.etapes { counter-reset: etape; list-style: none; padding: 0; display: grid; gap: .8rem; }
.etapes li {
  counter-increment: etape; position: relative; margin: 0;
  padding: .9rem 1rem .9rem 3.4rem;
  background: var(--fond); border-radius: 14px;
}
.etapes li::before {
  content: counter(etape);
  position: absolute; left: .9rem; top: .85rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800;
}

.modes { display: grid; gap: .7rem; margin: 1rem 0; }
.mode { background: var(--fond); border-radius: 14px; padding: .8rem 1rem; }
.mode dt { font-weight: 800; }
.mode dt span { color: var(--accent); margin-right: .35rem; }
.mode dd { margin: .15rem 0 0; }

.atouts { display: grid; gap: .9rem; margin: 1.2rem 0; }
.atout { border: 1px solid var(--trait); border-radius: 14px; padding: .9rem 1rem; background: var(--carte); }
.atout h3 { margin-top: 0; }
.atout p { margin: .2rem 0 0; }

/* ---------- Assistance ---------- */
details {
  border: 1px solid var(--trait); border-radius: 14px;
  background: var(--carte); margin: .7rem 0; padding: 0 1rem;
}
summary {
  cursor: pointer; font-weight: 700; min-height: 48px;
  display: flex; align-items: center; padding: .6rem 0;
}
details[open] summary { border-bottom: 1px dashed var(--trait); margin-bottom: .6rem; }
details > :last-child { margin-bottom: 1rem; }
.chemin { font-weight: 600; background: var(--fond); padding: .05em .4em; border-radius: 6px; }

/* ---------- Pied de page ---------- */
.pied {
  max-width: 62rem; margin: 0 auto;
  padding: 1.4rem 16px 2.4rem calc(var(--marge) + 14px);
  border-top: 1px solid var(--trait);
  font-size: .92rem; color: var(--encre-douce);
}
.pied p { margin: .3rem 0; }
.pied a { color: var(--encre-douce); display: inline-block; padding: .35rem 0; }

hr.sep { border: 0; border-top: 2px dashed var(--trait); margin: 2.5rem 0; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 640px) {
  :root { --marge: 44px; }
  body { font-size: 18px; }
  .feuille { padding: 2.2rem 2.2rem 2.6rem; }
  h1 { font-size: 2.5rem; }
  .hero { grid-template-columns: auto 1fr; }
  .hero-logo { width: 120px; height: 120px; }
  .modes, .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  :root { --marge: 72px; }
  .captures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .atouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  body { background: #fff; }
  .entete, .pied, .langues, .stores, .evitement { display: none; }
  .feuille { box-shadow: none; border: 0; padding: 0; }
}

/* ---------- Fichier de voix ---------- */
.bouton-zone { margin: 1.4rem 0 .4rem; }
.telecharger {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 64px; padding: .6rem 1.4rem;
  background: var(--accent); color: #fff;
  border-radius: 16px; text-decoration: none; line-height: 1.25;
}
.telecharger:hover { background: var(--accent-fonce); color: #fff; }
.telecharger strong { font-size: 1.2rem; }
.telecharger small { font-size: .82rem; opacity: .92; overflow-wrap: anywhere; }
code { font-size: .85em; overflow-wrap: anywhere; }
