/* dododiscovers.com : charte des Reels de la série « Dodo découvre Maurice » (couleurs de
   motion-studio/films/logo-instagram/base.js, titres des couvertures en Archivo noir très condensé).
   Mise en page : proposition 1, « la couverture », retenue par Mathis le 2026-12-05. */

@font-face {
  font-family: 'Archivo'; src: url(polices/archivo-latin-wdth-normal.woff2) format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; src: url(polices/archivo-latin-ext-wdth-normal.woff2) format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; src: url(polices/inter-latin-wght-normal.woff2) format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; src: url(polices/inter-latin-ext-wght-normal.woff2) format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --encre: #111111; --rouge: #B80828; --blanc: #FFFFFF; --creme: #E6DFCB;
  --papier: #E9E7E1; --fine: #D9D6CF; --majeure: #CBC8C0; --axe: rgba(184, 8, 40, 0.72);
  --ombre: rgba(0, 0, 0, 0.22);
  --titre: 'Archivo', 'Arial Narrow', sans-serif; --texte: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; font-family: var(--texte); color: var(--encre); line-height: 1.45; -webkit-font-smoothing: antialiased; background: var(--papier); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* papier quadrillé des Reels : lignes fines toutes les 16 px, majeures toutes les 80 px */
.page {
  position: relative; overflow: hidden; min-height: 100svh; padding: 44px 22px 32px;
  background-color: var(--papier);
  background-image:
    linear-gradient(to right, var(--majeure) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--majeure) 1.5px, transparent 1.5px),
    linear-gradient(to right, var(--fine) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fine) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
}
.axe { position: absolute; background: var(--axe); pointer-events: none; }
.axe-v { width: 2px; top: 0; bottom: 0; left: calc(50% - 1px); }
.axe-h { height: 2px; left: 0; right: 0; top: 330px; }

/* titre des couvertures : deux lignes, noir puis rouge */
.tete { position: relative; text-align: center; }
.tete h1 { margin: 0; font-family: var(--titre); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.005em; font-size: clamp(44px, 13.6vw, 60px); }
.tete h1 span { display: block; }
.tete h1 .l2 { color: var(--rouge); }
.tete p { max-width: 30ch; margin: 14px auto 0; font-size: 15.5px; color: #3a3a3a; text-wrap: balance; }

/* le dodo de trois-quarts, exporté du code des Reels en calques superposés (assets/dodo/anime/, outils/exporter-dodos.mjs),
   content tout le temps (humeur « fier »), avec une bulle « Bienvenue ! ». Il arrive avec un petit sursaut en battant
   déjà des ailes (retour de Mathis : dès l'arrivée sur le site), puis recommence toutes les 4 s : battement très rapide (dix coups par seconde pendant un peu plus d'une demi-seconde), avec des ailes
   fantômes floues, des traits de vitesse et un petit saut (demandes de Mathis du 2026-12-06). Pivots : calques.json. */
.scene { position: relative; width: 82%; margin: 34px 0 -34% -8%; }
.dodo { position: relative; container-type: inline-size; animation: pose 0.7s cubic-bezier(.3, 1.6, .5, 1) both 0.15s; transform-origin: 50% 90%; }
.dodo img { width: 100%; }
.dodo img:not(.corps) { position: absolute; inset: 0; height: 100%; }
.vol { animation: saut 4s ease-in-out 0.6s infinite; }
.aile-0, .fantome-0 { transform-origin: 70.82% 46.97%; }
.aile-1, .fantome-1 { transform-origin: 19.92% 48.24%; }
.aile-0 { animation: aile-0 4s linear 0.6s infinite, flou 4s linear 0.6s infinite; }
.aile-1 { animation: aile-1 4s linear 0.6s infinite, flou 4s linear 0.6s infinite; }
.fantome { opacity: 0; filter: blur(3px); animation: fantome 4s linear 0.6s infinite; }
.fantome-0.a { transform: rotate(8deg); } .fantome-0.b { transform: rotate(18deg); }
.fantome-1.a { transform: rotate(-8deg); } .fantome-1.b { transform: rotate(-18deg); }
.traits { opacity: 0; animation: traits 4s linear 0.6s infinite; }
@keyframes pose { from { transform: scale(.86) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aile-0 { 0% { transform: none; } 1.25%, 3.75%, 6.25%, 8.75%, 11.25% { transform: rotate(26deg); }
  2.5%, 5%, 7.5%, 10% { transform: rotate(-6deg); } 12.5%, 100% { transform: none; } }
@keyframes aile-1 { 0% { transform: none; } 1.25%, 3.75%, 6.25%, 8.75%, 11.25% { transform: rotate(-26deg); }
  2.5%, 5%, 7.5%, 10% { transform: rotate(6deg); } 12.5%, 100% { transform: none; } }
@keyframes flou { 0% { filter: none; } 1.25%, 11.25% { filter: blur(1.3px); } 12.5%, 100% { filter: none; } }
@keyframes fantome { 0% { opacity: 0; } 1.25%, 11.25% { opacity: .45; } 12.5%, 100% { opacity: 0; } }
@keyframes traits { 0% { opacity: 0; } 1.25%, 5%, 8.75%, 11.25% { opacity: 1; } 3.12%, 6.88% { opacity: .4; } 13.5%, 100% { opacity: 0; } }
@keyframes saut { 0% { transform: none; } 6% { transform: translateY(-5%); } 14%, 100% { transform: none; } }

/* le tampon « DODO APPROVED », frappé à l'encre rouge à même le papier, à côté de « Maurice » (emplacement 2 des
   variantes, sans pastille ni contour : demande de Mathis du 2026-12-06). Multiplication : le quadrillage se voit à
   travers l'encre. Il s'abat une fois, peu après l'arrivée. */
.tete h1 { position: relative; }
.tete h1 .tampon { position: absolute; z-index: 1; display: block; color: var(--rouge); pointer-events: none; mix-blend-mode: multiply;
  transform: rotate(var(--r)); animation: tamponner .4s cubic-bezier(.2, 1.5, .4, 1) both 1.6s; }
.tampon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tampon.titre { width: 90px; height: 90px; right: -6px; top: 40px; }
@keyframes tamponner { from { opacity: 0; transform: rotate(var(--r)) scale(1.9); } to { opacity: 1; transform: rotate(var(--r)) scale(1); } }
@media (min-width: 960px) { .tampon.titre { width: 150px; height: 150px; right: auto; left: 72%; top: 57%; } }

/* la bulle : blanche, trait noir, détourage blanc, comme les autocollants ; sa pointe vise le bec */
.bulle { position: absolute; z-index: 3; left: 64%; top: -7%; margin: 0; white-space: nowrap;
  font-family: var(--titre); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: min(7.5cqw, 40px); line-height: 1;
  color: var(--encre); background: var(--blanc); border: 3px solid var(--encre); border-radius: .45em; padding: .22em .4em .14em;
  box-shadow: 0 0 0 6px var(--blanc), 0 8px 14px 4px rgba(0, 0, 0, .18);
  transform: rotate(-5deg); transform-origin: 14% 110%; animation: bulle .55s cubic-bezier(.3, 1.6, .5, 1) both .9s; }
.bulle::before { content: ''; position: absolute; left: 14%; bottom: -.3em; width: .5em; height: .5em; background: var(--blanc);
  border-right: 3px solid var(--encre); border-bottom: 3px solid var(--encre); transform: rotate(45deg); }
@keyframes bulle { from { opacity: 0; transform: rotate(-5deg) scale(.3); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }

.pied { position: relative; z-index: 2; margin-top: 34px; text-align: center; }
.reseaux { display: flex; justify-content: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.reseaux a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--encre); color: var(--blanc); }
.reseaux svg { width: 22px; height: 22px; fill: currentColor; }
.pied small { display: block; margin-top: 14px; font-size: 12.5px; color: #555; }

@media (min-width: 960px) {
  /* colonne des liens plus large que celle du titre, pour que les aperçus des sites se lisent (demande de Mathis du
     2026-12-06) ; le dodo, plus grand, sort par le bas comme sur les couvertures */
  .page { display: grid; grid-template-columns: 0.85fr 1.15fr; grid-template-rows: 1fr auto; column-gap: 4vw;
    padding: 6vh 5vw 0; height: 100vh; min-height: 760px; }
  .axe-v { left: calc(5vw + 86vw * 0.425 + 2vw); }
  .axe-h { top: 72vh; }
  .tete { grid-column: 1; grid-row: 1; align-self: start; text-align: left; }
  .tete h1 { font-size: clamp(72px, 7vw, 132px); }
  .tete p { margin: 18px 0 0; font-size: 18px; max-width: 30ch; }
  .scene { position: absolute; left: 3vw; bottom: -16vh; width: min(720px, 39vw, 66vh); margin: 0; }
  .pied { grid-column: 2; grid-row: 2; margin: 0 0 4vh; text-align: left; display: flex; align-items: center; gap: 18px; }
  .pied small { margin: 0; }
  .reseaux { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
