/* profjulien.com — page d'accueil « mosaïque » (15 nov. 2026). Aucune ressource extérieure. */
/* ===== Polices du site (aucune ressource extérieure) ===== */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url(polices/bricolage-grotesque-latin-477b564b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url(polices/bricolage-grotesque-latin-ext-cc70a62e.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-weight: 400 900; font-display: swap;
  src: url(polices/nunito-latin-798ec6b6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Nunito'; font-weight: 400 900; font-display: swap;
  src: url(polices/nunito-latin-ext-012b6110.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fredoka'; font-weight: 300 700; font-display: swap; src: url(polices/fredoka-latin-11adc634.woff2) format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 300 700; font-display: swap; src: url(polices/lexend-latin-45b4c66f.woff2) format('woff2'); }

/* ===== Jetons ===== */
:root {
  --titre: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --police: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --rond: 'Fredoka', 'Nunito', sans-serif;
  --encre: #2B2340;
  --fond: #F3ECE0;
  --tuile: #FFFFFF;
  --item: #FFFFFF;
  --texte: #2B2340;
  --doux: #5B5470;
  --trait: rgba(43, 35, 64, .12);
  --ombre: 0 1px 0 rgba(43, 35, 64, .04), 0 10px 30px -18px rgba(43, 35, 64, .35);
  --melange: 26%;
  --focus: #3B5BFD;
  --gap: 14px;
  --r: 26px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #13101A; --tuile: #1E1927; --item: #28222F; --texte: #F1ECF8; --doux: #BDB5CD;
    --trait: rgba(255, 255, 255, .10); --ombre: 0 10px 30px -18px rgba(0, 0, 0, .8); --melange: 13%; --focus: #9DB0FF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police); font-size: 16px; line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 10; }
.evitement:focus { top: 12px; }
[hidden] { display: none !important; }

.page { width: min(1440px, 100%); margin: 0 auto; padding: 0 22px 22px; }

/* ===== Barre du haut ===== */
.barre { display: flex; align-items: center; gap: 18px; height: 58px; }
.marque { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.marque img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--encre); background: #1E3B31; }
.marque small { font-family: var(--police); font-weight: 700; font-size: .9rem; color: var(--doux); letter-spacing: 0; }
.barre nav { margin-left: auto; }
.barre nav ul { display: flex; gap: 4px; }
.barre nav a { display: block; padding: 7px 13px; border-radius: 999px; font-weight: 800; font-size: .95rem; text-decoration: none; }
.barre nav a:hover { background: var(--tuile); }
.barre nav .abo { background: var(--encre); color: #FFD166; }
.barre nav .abo:hover { background: var(--encre); filter: brightness(1.25); }
@media (prefers-color-scheme: dark) { .barre nav .abo { background: #FFD166; color: var(--encre); } .marque img { border-color: #FFD166; } }

/* ===== La mosaïque ===== */
.mosaique { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tuile { position: relative; background: var(--tuile); border-radius: var(--r); box-shadow: var(--ombre); padding: 20px; min-width: 0; }
.etiquette { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--doux); }
.tuile h2 { font-family: var(--titre); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }

/* -- Rangée « à la une » -- */
.t-pinpon { grid-column: span 6; }
.t-dring { grid-column: span 3; }
.colonne { grid-column: span 3; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

/* ===== PINPON ===== */
.t-pinpon {
  --pj: #FFD166;
  background: var(--pj); color: var(--encre); border: 3px solid var(--encre); box-shadow: 7px 7px 0 var(--encre);
  padding: 22px 28px 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "texte scene" "boutons boutons"; gap: 16px 18px; overflow: hidden; isolation: isolate;
}
.t-pinpon::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -170px; top: -150px; border-radius: 50%;
  background: radial-gradient(circle, #FFE29A 0 38%, transparent 38.5% 52%, #FFDB85 52.5% 66%, transparent 66.5%); opacity: .9; }
@media (prefers-color-scheme: dark) { .t-pinpon { box-shadow: 7px 7px 0 #000; border-color: #000; } }
.pp-texte { grid-area: texte; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.pp-etiquette { font-family: var(--rond); font-weight: 600; font-size: .9rem; background: #FF7B6B; color: var(--encre); padding: 4px 13px; border-radius: 999px; border: 2.5px solid var(--encre); box-shadow: 3px 3px 0 var(--encre); rotate: -2deg; }
.t-pinpon h2 { font-family: var(--rond); font-weight: 700; font-size: clamp(3.6rem, 5.6vw, 5rem); letter-spacing: -.02em; line-height: .95; margin: 12px 0 4px; }
.pp-slogan { font-family: var(--rond); font-weight: 600; font-size: 1.28rem; }
.pp-pitch { margin-top: 10px; font-size: 1.02rem; font-weight: 600; color: #3A3150; max-width: 34ch; }
.pp-pitch strong { font-weight: 900; color: var(--encre); }
.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; width: 100%; }
.chiffres li { background: #fff; border: 2.5px solid var(--encre); border-radius: 14px; box-shadow: 3px 3px 0 var(--encre); padding: 7px 4px 6px; text-align: center; line-height: 1.1; }
.chiffres li:nth-child(2) { background: #A9DCFA; } .chiffres li:nth-child(3) { background: #7FE0D4; } .chiffres li:nth-child(4) { background: #F9A8D4; }
.chiffres b { display: block; font-family: var(--rond); font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chiffres span { font-weight: 800; font-size: .78rem; }
.boutons { grid-area: boutons; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pp-url { font-family: var(--rond); font-weight: 600; font-size: .95rem; margin-left: auto; text-decoration: none; opacity: .8; }
.pp-url:hover { opacity: 1; text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: 11px 20px; border-radius: 999px; font-family: var(--rond); font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -2px); }
.btn-pp { background: var(--encre); color: #FFD166; border: 2.5px solid var(--encre); box-shadow: 4px 4px 0 rgba(43, 35, 64, .35); }
.btn-pp-2 { background: #fff; color: var(--encre); border: 2.5px solid var(--encre); box-shadow: 4px 4px 0 var(--encre); }
.btn-pp-2:hover { box-shadow: 5px 6px 0 var(--encre); }

.pp-scene { grid-area: scene; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.mascotte { width: 112px; overflow: visible; animation: rebond 3.2s cubic-bezier(.4, 0, .3, 1) infinite; margin-top: 8px; }
@keyframes rebond { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
.gyro-dome { fill: #FF7B6B; animation: gyro 1s steps(1) infinite; }
.gyro-halo { fill: #FF7B6B; opacity: 0; animation: gyro-halo 1s ease-out infinite; transform-origin: 56px 20px; transform-box: view-box; }
.gyro-rayons { animation: rayons 1s ease-out infinite; }
@keyframes gyro { 50% { fill: #6FB3F2; } }
@keyframes gyro-halo { 0% { opacity: .35; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes rayons { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.mascotte.alerte .gyro-dome, .mascotte.alerte .gyro-halo, .mascotte.alerte .gyro-rayons { animation-duration: .25s; }
.pupille { transition: transform .15s; }
.sticker { position: absolute; font-family: var(--rond); font-weight: 600; font-size: .86rem; padding: 3px 11px; border-radius: 999px; border: 2.5px solid var(--encre); box-shadow: 3px 3px 0 var(--encre); background: #fff; white-space: nowrap; }
.st-1 { top: 6px; left: 0; rotate: -8deg; background: #7FE0D4; }
.st-2 { top: 52px; right: -4px; rotate: 7deg; background: #F9A8D4; }

.mini-jeu { width: 100%; max-width: 280px; background: #fff; border: 2.5px solid var(--encre); border-radius: 20px; box-shadow: 5px 5px 0 var(--encre); padding: 12px 14px 10px; text-align: center; }
.mj-titre { font-family: var(--rond); font-weight: 600; font-size: .9rem; color: #5B5470; }
.mj-question { font-family: var(--rond); font-weight: 700; font-size: 1.7rem; line-height: 1.15; margin: 0 0 8px; }
.mj-choix { display: flex; justify-content: center; gap: 8px; }
.mj-choix button { font-family: var(--rond); font-weight: 700; font-size: 1.2rem; min-width: 62px; padding: 6px 10px; border-radius: 12px; border: 2.5px solid var(--encre); background: #A9DCFA; color: var(--encre); box-shadow: 3px 3px 0 var(--encre); cursor: pointer; transition: transform .15s; }
.mj-choix button:nth-child(2) { background: #FFD166; } .mj-choix button:nth-child(3) { background: #B79CED; }
.mj-choix button:hover { transform: translateY(-2px); }
.mj-choix button.bon { background: #7BD389 !important; animation: pop .4s; }
.mj-choix button.pas { animation: secouer .4s; }
@keyframes pop { 50% { transform: scale(1.15); } }
@keyframes secouer { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.mj-retour { margin-top: 6px; font-weight: 800; font-size: .86rem; min-height: 1.4em; }
.mj-etoiles { min-height: 1.3em; color: #E8A400; font-size: 1.05rem; letter-spacing: 2px; line-height: 1.2; }
.mj-etoiles span { display: inline-block; animation: etoile .6s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes etoile { from { transform: scale(0) rotate(-180deg); } }

/* ===== DRING ===== */
.t-dring { background: #0C0919; color: #ECE9FF; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 20px 20px; }
.ciel { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 34%, rgba(143, 118, 255, .32), transparent 46%), radial-gradient(circle at 10% 95%, rgba(193, 63, 209, .22), transparent 45%), radial-gradient(circle at 95% 8%, rgba(255, 182, 39, .12), transparent 35%); }
.ciel i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: scintiller var(--d) ease-in-out infinite; animation-delay: var(--r); }
@keyframes scintiller { 0%, 100% { opacity: .12; } 50% { opacity: .95; } }
.t-dring .etiquette { color: #CDBFFF; border: 1px solid rgba(143, 118, 255, .55); padding: 4px 12px; border-radius: 999px; letter-spacing: .1em; }
.cloche { position: relative; width: 100px; height: 100px; border: 0; padding: 0; background: none; cursor: pointer; margin: 18px 0 4px; border-radius: 36px; }
.cloche img { position: relative; width: 100%; height: 100%; border-radius: 36px; box-shadow: 0 24px 60px rgba(106, 76, 245, .55); transform-origin: 50% 10%; }
.cloche.sonne img { animation: dring 1.6s cubic-bezier(.36, .07, .19, .97); }
@keyframes dring { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 25% { transform: rotate(-13deg); } 40% { transform: rotate(9deg); } 55% { transform: rotate(-6deg); } 70% { transform: rotate(3deg); } 85% { transform: rotate(-1deg); } }
.onde { position: absolute; inset: 0; border-radius: 36px; border: 2px solid rgba(179, 162, 255, .75); opacity: 0; pointer-events: none; }
.cloche.sonne .onde { animation: onde 1.6s cubic-bezier(.2, .6, .3, 1); }
.cloche.sonne .o2 { animation-delay: .25s; } .cloche.sonne .o3 { animation-delay: .5s; }
@keyframes onde { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2); border-radius: 50%; } }
.cloche-aide { font-size: .8rem; color: #A39FC4; font-weight: 700; }
.t-dring h2 { font-family: 'Lexend', var(--titre); font-weight: 700; font-size: 2.5rem; letter-spacing: -.05em; margin: 6px 0 0;
  background: linear-gradient(120deg, #C4B6FF 10%, #E58AF0 55%, #FFB627); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-dring h2 span { opacity: .6; }
.brouillard { display: grid; gap: 2px; filter: blur(5px); user-select: none; margin: 6px 0 4px; width: 100%; }
.brouillard p { font-family: 'Lexend', sans-serif; font-size: 1rem; color: #CFC8FF; white-space: nowrap; overflow: hidden; }
.bientot { font-family: var(--titre); font-weight: 800; font-size: 1.75rem; letter-spacing: -.03em; line-height: 1.15; margin: 2px 0 auto; }
.bientot small { display: block; font-family: var(--police); font-size: .9rem; font-weight: 700; color: #B8B2DA; letter-spacing: 0; margin-top: 2px; }
.dring-boutons { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 12px; }
.btn-dr { background: linear-gradient(120deg, #6A4CF5, #C13FD1); color: #fff; font-family: var(--titre); font-weight: 800; box-shadow: 0 12px 30px -10px rgba(140, 90, 255, .9); }
.btn-dr-2 { color: #ECE9FF; font-family: var(--titre); font-weight: 700; font-size: .95rem; box-shadow: inset 0 0 0 2px rgba(143, 118, 255, .55); padding: 8px 16px; }
.t-dring :focus-visible { outline-color: #FFE066; }

/* ===== Petites tuiles de droite ===== */
.t-moi { background: #1E3B31; color: #F4EFE2; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 14px 16px; }
.t-moi img { width: 64px; height: 64px; flex: none; border-radius: 50%; border: 3px solid #F6D365; object-fit: cover; background: #163026; }
.t-moi .etiquette { color: #F6D365; font-size: .7rem; }
.t-moi h2 { font-size: 1.2rem; margin: 2px 0 2px; }
.t-moi p { font-size: .86rem; line-height: 1.35; color: #D3DED5; }
.t-moi .contact { grid-column: 1 / -1; margin: 0; background: #F6D365; color: var(--encre); }
.t-moi .contact small { color: #4B4060; }
.t-moi :focus-visible { outline-color: #F6D365; }

.t-reseaux { padding: 12px 16px 10px; }
.t-reseaux h2 { font-size: 1.15rem; }
.reseaux { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; }
.reseaux a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; font-size: .7rem; font-weight: 800; color: var(--doux); flex: 1; padding: 2px 0; border-radius: 12px; }
.reseaux a span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--c); color: #fff; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.reseaux a:hover span { transform: translateY(-3px) rotate(-6deg); }
.reseaux svg { width: 23px; height: 23px; fill: currentColor; }
.contact { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 16px; background: color-mix(in srgb, #7FE0D4 32%, var(--tuile)); text-decoration: none; transition: transform .15s; }
.contact:hover { transform: translateY(-2px); }
.contact > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--encre); color: #F6D365; }
.contact svg { width: 19px; height: 19px; }
.contact b { display: block; font-family: var(--titre); font-size: .95rem; line-height: 1.15; }
.contact small { display: block; font-size: .82rem; font-weight: 800; }
.contact i { margin-left: auto; font-style: normal; font-weight: 900; }

/* ===== La lettre (tuile) : même formulaire et même traitement que le dialogue #abonnement ===== */
.t-lettre { background: #FFE0D6; color: var(--encre); padding: 13px 16px 12px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.t-lettre h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.lt-cloche { width: 22px; height: 22px; flex: none; color: #C2341F; transform-origin: 50% 15%; }
.t-lettre:hover .lt-cloche, .t-lettre:focus-within .lt-cloche { animation: dring 1s cubic-bezier(.36, .07, .19, .97); }
.lt-sous { font-size: .8rem; font-weight: 700; line-height: 1.3; color: #6B4A52; margin-top: 3px; }
.form-lettre { position: relative; }
.lt-champs { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px; margin-top: 9px; }
.t-lettre input { width: 100%; min-width: 0; padding: 7px 11px; border-radius: 12px; border: 2px solid #E8B7A8; background: #fff; color: var(--encre); font-size: .92rem; font-weight: 600; }
.t-lettre input::placeholder { color: #8A7378; opacity: 1; }
.t-lettre input:focus-visible { outline-offset: 1px; border-color: var(--encre); }
.btn-lt { position: relative; grid-column: 1 / -1; background: var(--encre); color: #FFD166; font-family: var(--titre); font-weight: 800; padding: 8px 16px; font-size: .98rem; }
.btn-lt[disabled] { opacity: .6; cursor: progress; }
.btn-lt.fait { background: #2E9E5B; color: #fff; }
.t-lettre .abo-message { margin-top: 8px; font-size: .86rem; line-height: 1.35; }
.t-lettre .abo-message.reussi { padding: 7px 10px; color: var(--encre); }
.lt-note { font-size: .74rem; font-weight: 700; line-height: 1.35; color: #6B4A52; margin-top: 6px; }
.lt-note a { color: inherit; text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .t-lettre { background: #3A2430; color: #FBE9E3; }
  .lt-cloche { color: #FF9E8C; }
  .lt-sous, .lt-note { color: #E8C9C0; }
  .t-lettre input { background: #2A1B23; color: #FBE9E3; border-color: #7A5363; }
  .t-lettre input::placeholder { color: #B89AA3; }
  .t-lettre input:focus-visible { border-color: #FBE9E3; }
  .btn-lt { background: #FFD166; color: var(--encre); }
  .t-lettre .abo-message.erreur { color: #FF9E8C; }
}

/* ===== Dialogue de la lettre ===== */
.dlg { border: 0; padding: 0; margin: auto; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border-radius: 28px; color: var(--encre); background: #FFD166; box-shadow: 10px 10px 0 var(--encre); overscroll-behavior: contain; }
.dlg::backdrop { background: rgba(19, 14, 32, .62); backdrop-filter: blur(3px); }
.dlg[open] { animation: entrer .28s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes entrer { from { transform: translateY(18px) scale(.97); opacity: 0; } }
.dlg-corps { position: relative; padding: 26px 26px 24px; }
.dlg-fermer { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--encre); background: #fff; color: var(--encre); font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 1; }
.dlg-fermer:hover { transform: rotate(90deg); transition: transform .2s; }
.dlg .etiquette-abo { display: inline-block; background: var(--encre); color: #FFD166; padding: 5px 14px; border-radius: 999px; font-weight: 900; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.dlg h2 { font-family: var(--titre); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.dlg-abo h2 { font-size: clamp(1.9rem, 6vw, 2.5rem); margin: 12px 48px 8px 0; }
.dlg-abo p { font-weight: 600; }
.onomato { display: inline-block; font-stretch: 85%; }
.o-1 { color: #C2341F; rotate: -4deg; animation: gyro-texte 2.4s ease-in-out infinite; }
.o-2 { color: #5B3FE0; rotate: 3deg; transform-origin: 50% 0; animation: sonnette 2.4s ease-in-out 1.2s infinite; }
@keyframes gyro-texte { 0%, 40%, 100% { color: #C2341F; } 20% { color: #2F6FD0; } }
@keyframes sonnette { 0%, 30%, 100% { transform: rotate(0); } 5% { transform: rotate(8deg); } 10% { transform: rotate(-7deg); } 15% { transform: rotate(5deg); } 20% { transform: rotate(-3deg); } }
/* « Au menu » : de simples étiquettes décoratives (pas de bord ni d'ombre de bouton : ce n'est pas un choix) */
.au-menu-titre { margin-top: 14px; font-size: .86rem; font-weight: 800; }
.au-menu { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0 18px; }
.au-menu li { background: var(--c); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: .86rem; rotate: var(--r); cursor: default; user-select: none; }
.abo-carte { position: relative; background: #FFF8EC; border: 3px solid var(--encre); border-radius: 22px; box-shadow: 6px 6px 0 var(--encre); padding: 20px; }
.champ { display: grid; gap: 5px; margin-bottom: 12px; font-weight: 800; }
.champ small { font-weight: 600; opacity: .7; }
.champ input { font: inherit; font-weight: 600; padding: 11px 15px; border-radius: 14px; border: 2px solid var(--encre); background: #fff; color: var(--encre); }
.champ input:focus-visible { outline-offset: 1px; }
.btn-abo { position: relative; width: 100%; gap: .6em; background: var(--encre); color: #FFD166; font-family: var(--titre); font-weight: 800; font-size: 1.12rem; padding: 13px 20px; }
.btn-abo[disabled] { opacity: .6; cursor: progress; }
.btn-abo.fait { background: #2E9E5B; color: #fff; }
.abo-cloche { width: 22px; height: 22px; transform-origin: 50% 15%; }
.btn-abo:hover .abo-cloche, .btn-abo:focus-visible .abo-cloche { animation: dring 1s cubic-bezier(.36, .07, .19, .97); }
.abo-rgpd { font-size: .8rem; font-weight: 600; color: #5B5470; margin-top: 12px; }
.abo-message { margin-top: 10px; font-weight: 800; min-height: 1.2em; }
.abo-message:empty { display: none; }
.abo-message.erreur { color: #B42318; }
.abo-message.reussi { background: #7BD389; border: 2px solid var(--encre); border-radius: 14px; padding: 10px 14px; }
.promesses { font-weight: 800; font-size: .88rem; margin-top: 14px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.abo-non { margin-top: 8px; text-align: center; }
.lien-non { border: 0; background: none; padding: 4px 10px; border-radius: 8px; color: #4B3F2A; font: inherit; font-size: .86rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien-non:hover { color: var(--encre); }
.confetti { position: absolute; left: 50%; top: 50%; pointer-events: none; font-size: 1.1rem; line-height: 1; animation: confetti 1.1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes confetti { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rot)) scale(1); opacity: 0; } }

/* Sans JavaScript : la lettre s'affiche en bas de page, les éléments interactifs se cachent */
html:not(.js) .dlg-abo { display: block; position: static; margin: 22px auto 0; box-shadow: 6px 6px 0 var(--encre); }
html:not(.js) .mini-jeu, html:not(.js) .recherche, html:not(.js) .cloche-aide, html:not(.js) .dlg-fermer { display: none; }

/* ===== Boîte à outils ===== */
.t-boite { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px 22px; padding: 12px 14px 12px 22px; flex-wrap: wrap; }
.t-boite h2 { font-size: 1.5rem; }
.t-boite h2 em { font-style: normal; color: #B83F0B; }
@media (prefers-color-scheme: dark) { .t-boite h2 em { color: #FFB38A; } }
.t-boite .sous { font-weight: 700; color: var(--doux); font-size: .95rem; }
.recherche { position: relative; margin-left: auto; flex: 0 1 480px; min-width: 260px; }
.recherche svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--doux); pointer-events: none; }
.recherche input { width: 100%; padding: 12px 44px 12px 44px; border-radius: 999px; border: 2px solid var(--trait); background: var(--fond); color: var(--texte); font-size: 1rem; font-weight: 700; }
.recherche input::placeholder { color: var(--doux); opacity: .85; font-weight: 600; }
.recherche input:focus-visible { outline-offset: 0; border-color: var(--focus); border-radius: 999px; }
.recherche input::-webkit-search-cancel-button { cursor: pointer; }
.recherche kbd { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font: 800 .8rem var(--police); border: 1.5px solid var(--trait); border-radius: 7px; padding: 1px 7px; color: var(--doux); pointer-events: none; }
.recherche input:not(:placeholder-shown) + kbd { display: none; }
.boite-etat { flex-basis: 100%; font-size: .9rem; font-weight: 800; color: var(--doux); text-align: right; padding-right: 8px; }
.boite-etat:empty { display: none; }

.t-creations { grid-column: 1 / -1; padding: 14px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.t-creations h2 { font-size: 1.05rem; }
.t-creations p { font-size: .8rem; color: var(--doux); font-weight: 700; }
.creations { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.creation { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 14px; background: var(--fond); text-decoration: none; max-width: 260px; }
.creation b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creation small { display: block; font-size: .76rem; color: var(--doux); font-weight: 700; }
.creation > span:last-child { min-width: 0; }

.t-cat { --c: #E9ECEF; --span: 3; background: color-mix(in srgb, var(--c) var(--melange), var(--tuile)); padding: 16px; grid-column: span var(--span); transition: opacity .25s, filter .25s; }
.cat-tete { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; }
.cat-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--c); font-size: 1.25rem; }
.t-cat h3 { font-family: var(--titre); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.1; }
.cat-dit { font-size: .82rem; font-weight: 700; color: var(--doux); line-height: 1.3; }
.cat-nb { margin-left: auto; align-self: flex-start; font-size: .74rem; font-weight: 900; padding: 3px 9px; border-radius: 999px; background: var(--tuile); color: var(--doux); white-space: nowrap; }
.outils { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 7px; }
.outil { --o: #868E96; display: flex; align-items: center; gap: 10px; height: 100%; padding: 8px 10px 8px 8px; border-radius: 15px; background: var(--item); text-decoration: none; box-shadow: 0 1px 0 var(--trait); border: 2px solid transparent; transition: transform .15s, border-color .15s, opacity .2s, filter .2s, box-shadow .15s; }
.outil:hover { transform: translateY(-2px); border-color: var(--o); box-shadow: 0 8px 18px -10px var(--o); }
.pastille { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--o); color: var(--sur, #fff); font-size: 1.2rem; font-weight: 900; font-family: var(--titre); line-height: 1; }
.pastille.court { font-size: .86rem; letter-spacing: -.04em; }
.outil-texte { min-width: 0; }
.outil b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-family: var(--titre); font-weight: 800; font-size: 1rem; line-height: 1.15; letter-spacing: -.01em; }
.outil small { display: block; font-size: .8rem; font-weight: 600; color: var(--doux); line-height: 1.25; margin-top: 1px; }
.plusieurs { white-space: nowrap; font-family: var(--police); font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--o) 16%, var(--item)); color: var(--doux); }

/* Recherche : on éteint ce qui ne correspond pas, on fait briller le reste */
.mosaique.cherche .outil:not(.trouve) { opacity: .28; filter: grayscale(1); }
.mosaique.cherche .outil.trouve { border-color: var(--o); box-shadow: 0 0 0 3px color-mix(in srgb, var(--o) 28%, transparent), 0 10px 20px -12px var(--o); }
.mosaique.cherche .outil.premier { transform: translateY(-2px); }
.mosaique.cherche .t-cat.vide { opacity: .55; }

.t-promesses { grid-column: span 2; background: var(--encre); color: #FFF8EC; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
@media (prefers-color-scheme: dark) { .t-promesses { background: #2E2740; } }
.t-promesses h2 { font-size: 1.1rem; color: #FFD166; margin-bottom: 10px; }
.t-promesses li { display: flex; gap: 8px; align-items: baseline; font-weight: 800; font-size: .92rem; padding: 4px 0; line-height: 1.3; }
.t-promesses li::before { content: '✓'; color: #7FE0D4; font-weight: 900; }
.t-promesses li.p-plus { display: block; margin-top: 6px; font-size: .86rem; color: #E6DFF2; }
.t-promesses li.p-plus::before { content: none; }
.t-promesses li.p-plus .plusieurs { display: inline-block; margin-right: 4px; }
.t-promesses .plusieurs { background: #FFD166; color: var(--encre); flex: none; }

.secours-tuile { grid-column: 1 / -1; }
.secours { columns: 4 220px; font-size: .9rem; }
.secours li { break-inside: avoid; padding: 2px 0; }

/* ===== Pied ===== */
.t-pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding: 16px 20px; font-size: .88rem; font-weight: 700; color: var(--doux); }
.t-pied .nom { font-family: var(--titre); font-weight: 800; color: var(--texte); font-size: 1rem; }
.t-pied ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.t-pied a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.t-pied a:hover { color: var(--texte); }
.t-pied .pied-contact { color: var(--texte); font-weight: 900; }
.pied-outils { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: .8rem; }
.pied-outils .pied-titre { font-weight: 900; color: var(--texte); }
.t-pied .pied-outils ul { gap: 2px 10px; }
.pied-outils a { text-decoration: none; }
.pied-outils a:hover { text-decoration: underline; }
.t-pied .fin { flex-basis: 100%; font-size: .78rem; font-weight: 600; }

@media (min-width: 1200px) and (max-height: 820px) {
  .t-pinpon { padding-top: 18px; padding-bottom: 20px; row-gap: 12px; }
  .t-pinpon h2 { font-size: 4.3rem; margin-top: 8px; }
  .pp-pitch { margin-top: 6px; font-size: .96rem; }
  .chiffres { margin-top: 10px; }
  .chiffres b { font-size: 1.15rem; }
  .mascotte { width: 96px; }
  .st-2 { top: 40px; }
  .cloche { width: 88px; height: 88px; margin-top: 14px; }
  .t-dring { padding-top: 18px; padding-bottom: 16px; }
  .t-moi p { font-size: .82rem; }
  .t-moi img { width: 56px; height: 56px; }
  .reseaux a span { width: 38px; height: 38px; }
}
/* ===== Écrans moyens ===== */
@media (max-width: 1199px) {
  .t-pinpon { grid-column: span 8; }
  .t-dring { grid-column: span 4; }
  .colonne { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .t-cat { grid-column: span 6; } .t-cat.seule { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
  .t-pinpon, .t-dring { grid-column: 1 / -1; }
  .t-dring { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; text-align: left; justify-items: start; align-items: center; }
  .t-dring > * { grid-column: 2; }
  .t-dring .cloche-wrap { grid-column: 1; grid-row: 1 / span 6; display: grid; justify-items: center; }
  .dring-boutons { flex-direction: row; flex-wrap: wrap; }
  .bientot { margin: 4px 0 0; }
  .colonne { grid-template-columns: 1fr 1fr; }
  .t-lettre { grid-column: 1 / -1; }
}
/* ===== Téléphone ===== */
@media (max-width: 719px) {
  .page { padding: 0 12px 16px; }
  .mosaique { gap: 12px; }
  .barre { height: auto; padding: 10px 2px; flex-wrap: wrap; gap: 8px; }
  .marque small { display: none; }
  .barre nav { margin-left: auto; }
  .barre nav li:not(.garde) { display: none; }
  .t-pinpon { grid-template-columns: 1fr; grid-template-areas: "texte" "boutons" "scene"; padding: 20px 18px 22px; box-shadow: 5px 5px 0 var(--encre); }
  .pp-url { display: none; }
  .t-pinpon h2 { font-size: 3.6rem; margin-top: 12px; }
  .pp-scene { position: static; }
  .mascotte { position: absolute; top: 16px; right: 14px; width: 92px; margin: 0; }
  .sticker { display: none; }
  .mini-jeu { max-width: none; }
  .chiffres { gap: 6px; }
  .chiffres b { font-size: 1.15rem; }
  .chiffres span { font-size: .7rem; }
  .boutons { width: 100%; } .boutons .btn { flex: 1 1 100%; }
  .t-dring { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px 18px; }
  .t-dring > *, .t-dring .cloche-wrap { grid-column: 1; grid-row: auto; }
  .cloche { width: 96px; height: 96px; margin-top: 14px; }
  .dring-boutons { flex-direction: column; }
  .colonne { display: flex; }
  .t-boite { gap: 12px; padding: 16px; }
  .recherche { flex: 1 1 100%; min-width: 0; margin: 0; }
  .recherche kbd { display: none; }
  .t-cat, .t-cat.seule { grid-column: 1 / -1; }
  .outils { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Dialogues : retouches */
.dlg:focus, .dlg:focus-visible { outline: none; }
@media (max-width: 719px) {
  .dlg { box-shadow: 5px 5px 0 var(--encre); width: calc(100vw - 20px); }
  .dlg-corps { padding: 22px 18px 20px; }
}

/* Les promesses de la boîte à outils, dans son en-tête (au lieu d'une tuile à part qui décalait la grille) */
.promesses-ligne { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; padding: 0; list-style: none; font-weight: 800; font-size: .86rem; color: var(--doux); }
.promesses-ligne li { display: flex; align-items: center; gap: 5px; }
.promesses-ligne li::before { content: '✓'; color: #0CA678; font-weight: 900; }
.promesses-ligne li.p-plus::before { content: none; }
.promesses-ligne .plusieurs { background: #FFD166; color: #2B2340; }
