/* Inad@pté.e.s — feuille de style commune (aucune ressource externe, aucun cookie) */
:root {
  --nuit: #0d0d0d;
  --encre: #161616;
  --creme: #f3ead9;
  --creme-doux: #cfc6b6;
  --or: #d4a017;
  --vert: #1f8a3b;
  --jaune: #f2c200;
  --rouge: #d62828;
  --rose: #e86a9a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--creme);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--or); }
a:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* Fil tricolore */
.fil { height: 4px; display: flex; }
.fil span { flex: 1; }
.fil span:nth-child(1) { background: var(--vert); }
.fil span:nth-child(2) { background: var(--jaune); }
.fil span:nth-child(3) { background: var(--rouge); }

/* Seuil */
.seuil {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem 3rem;
  overflow: hidden;
  isolation: isolate;
}
.seuil::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background: repeating-linear-gradient(
    -62deg,
    #e9e2d4 0 22px,
    #0d0d0d 22px 40px,
    #e9e2d4 40px 52px,
    #0d0d0d 52px 86px
  );
  transform: rotate(4deg) scale(1.1);
  opacity: .16;
}
.seuil::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13,13,13,.2) 0%, rgba(13,13,13,.85) 55%, var(--nuit) 100%);
}
.code {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 1rem;
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); color: var(--creme); }
.chapo { font-size: 1.15rem; color: var(--creme-doux); margin: 0 0 .4rem; }
.envers { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--or); margin-top: 1.4rem; }
.descendre {
  display: inline-block;
  margin-top: 2.2rem;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--creme-doux);
  text-decoration: none;
  animation: respire 2.6s ease-in-out infinite;
}
@keyframes respire { 0%,100% { opacity: .45; transform: translateY(0); } 50% { opacity: 1; transform: translateY(4px); } }

/* Sections */
main { max-width: 38rem; margin: 0 auto; }
section { padding: 3.2rem 1.5rem; border-top: 1px solid #262626; }
section p { margin: 0 0 1.1rem; }
.etiquette {
  font-size: .75rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--creme-doux);
  margin-bottom: .6rem;
}
.preuve { font-family: var(--serif); font-size: 1.5rem; color: var(--or); }
.symboles { list-style: none; padding: 0; margin: 0; }
.symboles li { padding: .9rem 0; border-bottom: 1px dashed #2e2e2e; }
.symboles li:last-child { border-bottom: 0; }
.symboles strong { color: var(--or); font-family: var(--serif); font-size: 1.15rem; }
.marque { font-family: var(--serif); }
.marque .arobase { color: var(--or); }

/* Citation */
.citation {
  margin: .4rem 0 1.8rem;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--or);
}
.citation p {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 6.2vw, 2.1rem);
  line-height: 1.25;
  color: var(--creme);
  margin: 0 0 .7rem;
}
.citation cite {
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--or);
}

/* À toi */
.gestes { counter-reset: geste; list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.gestes li {
  counter-increment: geste;
  position: relative;
  padding: 1rem 1rem 1rem 3.4rem;
  margin-bottom: .9rem;
  background: var(--encre);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
}
.gestes li::before {
  content: counter(geste);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--or);
  color: var(--or);
  font-family: var(--serif);
  display: grid;
  place-items: center;
  font-size: .95rem;
}
.gestes strong { display: block; color: var(--creme); margin-bottom: .2rem; }
.mot { font-family: var(--serif); color: var(--or); letter-spacing: .12em; }
.bouton {
  display: block;
  text-align: center;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: var(--or);
  color: var(--nuit);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}
.bouton:active { transform: scale(.98); }

/* Signature */
.signature { text-align: center; padding-bottom: 2.5rem; }
.signature .devise { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--creme); margin: 1.6rem 0 .4rem; }
.signature .infini { color: var(--or); font-size: 1.6rem; }
footer {
  text-align: center;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8d867a;
  padding: 1.5rem 1.5rem 2.5rem;
}
footer a { color: #8d867a; }

/* Pages simples */
.simple { max-width: 38rem; margin: 0 auto; padding: 3rem 1.5rem; }
.simple h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.simple h2 { font-size: 1.25rem; margin-top: 2rem; color: var(--or); }

/* Apparition douce */
@media (prefers-reduced-motion: no-preference) {
  .apparait { animation: apparait .9s ease-out both; }
  .apparait.d1 { animation-delay: .25s; }
  .apparait.d2 { animation-delay: .6s; }
  .apparait.d3 { animation-delay: 1s; }
  @keyframes apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .descendre { animation: none; }
}

/* =========================================================
   v5 — couleurs plus vives, surligneurs, zèbres cachés
   ========================================================= */
:root {
  --vert-clair: #8fe3a0;
  --vert-pale: #e2f7e4;
  --jaune-vif: #ffd23f;
  --rose-vif: #ff7eb6;
  --rouge-vif: #ff5a4e;
}

/* Le gris laisse place au vert clair */
.etiquette { color: var(--vert-clair); font-weight: 600; }
.chapo { color: var(--creme); }
.descendre { color: var(--vert-clair); }
footer, footer a { color: var(--vert-clair); }
.code { color: var(--jaune-vif); }

/* Séparateurs zébrés à la place des traits gris */
section { position: relative; overflow: hidden; border-top: 0; }
section::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--creme) 0 14px, transparent 14px 22px, var(--creme) 22px 28px, transparent 28px 44px);
  opacity: .22;
}

/* Zèbres cachés : un pan de pelage qui dépasse d'un coin */
.zebre-cache::after {
  content: "";
  position: absolute;
  width: 210px; height: 210px;
  background: url("/assets/zebre.svg") center / contain no-repeat;
  opacity: .09;
  pointer-events: none;
}
.zebre-cache.haut-droite::after { top: -60px; right: -70px; transform: rotate(-24deg); }
.zebre-cache.bas-gauche::after { bottom: -80px; left: -70px; transform: rotate(18deg); }
.zebre-cache.bas-droite::after { bottom: -70px; right: -60px; transform: rotate(32deg); }
section > * { position: relative; z-index: 1; }

/* Seuil : un vrai pelage plutôt que des rayures droites */
.seuil::before {
  background: url("/assets/zebre.svg") 0 0 / 260px 260px repeat;
  transform: rotate(-8deg) scale(1.15);
  opacity: .13;
}

/* Surligneurs */
.surligne {
  color: var(--nuit);
  padding: 0 .22em;
  margin: 0 -.05em;
  border-radius: .25em .6em .3em .7em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-style: normal;
}
.surligne.jaune { background: linear-gradient(100deg, rgba(255,210,63,.75), var(--jaune-vif) 12%, var(--jaune-vif) 88%, rgba(255,210,63,.7)); }
.surligne.vert  { background: linear-gradient(100deg, rgba(143,227,160,.75), var(--vert-clair) 12%, var(--vert-clair) 88%, rgba(143,227,160,.7)); }
.surligne.rose  { background: linear-gradient(100deg, rgba(255,126,182,.75), var(--rose-vif) 12%, var(--rose-vif) 88%, rgba(255,126,182,.7)); }
.envers .surligne { font-style: italic; }

/* Symboles en couleurs */
.symboles li:nth-child(1) strong { color: var(--vert-clair); }
.symboles li:nth-child(2) strong { color: var(--jaune-vif); }
.symboles li:nth-child(3) strong { color: var(--rose-vif); }
.preuve { color: var(--jaune-vif); }

/* Citation : bordure tricolore */
.citation { border-left: 0; padding-left: 1.2rem; background: linear-gradient(var(--vert), var(--vert)) left top / 4px 33.4% no-repeat, linear-gradient(var(--jaune), var(--jaune)) left center / 4px 33.4% no-repeat, linear-gradient(var(--rouge), var(--rouge)) left bottom / 4px 33.4% no-repeat; }
.citation cite { color: var(--jaune-vif); }

/* Section claire, vert pâle */
section.clair { background: var(--vert-pale); color: var(--nuit); }
section.clair h2 { color: var(--nuit); }
section.clair .etiquette { color: var(--vert); }
section.clair::before { background: repeating-linear-gradient(90deg, var(--nuit) 0 14px, transparent 14px 22px, var(--nuit) 22px 28px, transparent 28px 44px); opacity: .5; }
section.clair.zebre-cache::after { filter: invert(1); opacity: .07; }

/* Section crème */
section.creme { background: var(--creme); color: var(--nuit); }
section.creme h2 { color: var(--nuit); }
section.creme .etiquette { color: #b5332a; }
section.creme .marque .arobase { color: #b5332a; }
section.creme::before { background: repeating-linear-gradient(90deg, var(--nuit) 0 14px, transparent 14px 22px, var(--nuit) 22px 28px, transparent 28px 44px); opacity: .5; }
section.creme.zebre-cache::after { filter: invert(1); opacity: .08; }
main { max-width: none; }
section { padding-left: max(1.5rem, calc(50vw - 17.5rem)); padding-right: max(1.5rem, calc(50vw - 17.5rem)); }

/* Gestes : pastilles colorées, bouton vif */
.gestes li:nth-child(1)::before { border-color: var(--vert-clair); color: var(--vert-clair); }
.gestes li:nth-child(2)::before { border-color: var(--rose-vif); color: var(--rose-vif); }
.gestes li { border-color: #333; }
.mot { color: var(--jaune-vif); }
.bouton {
  background: var(--jaune-vif);
  box-shadow: 0 0 0 3px var(--nuit), 0 0 0 5px var(--vert-clair);
}
.signature .infini { color: var(--rose-vif); }

/* v6 — grand écran : contenu centré et bouton de largeur raisonnable */
.seuil { padding-left: max(1.5rem, calc(50vw - 19rem)); padding-right: max(1.5rem, calc(50vw - 19rem)); }
.seuil .bouton, section .bouton { max-width: 26rem; }
section .bouton { margin-left: auto; margin-right: auto; }
