/* Mon petit atelier — LA PORTE D'ENTRÉE (0.42.0). Mêmes couleurs et mêmes polices que l'application ; écrite gros et simple. */
:root { --nuit: #1B2340; --nuit-doux: #C8CCDA; --or: #C9A54C; --fond: #F7F3EE; --papier: #fff; --encre: #22180F; --gris: #5A4E48; --trait: #E2D8CF;
  --erreur: #8E1F23; --erreur-fond: #F8E3E3; --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Source Sans 3', -apple-system, system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--sans); font-size: 20px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--nuit); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.tete { background: var(--nuit); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 28px) 20px 28px; }
.tete .dans { max-width: 620px; margin: 0 auto; display: flex; gap: 18px; align-items: center; }
.tete img { width: 76px; height: 76px; border-radius: 18px; flex: none; box-shadow: 0 0 0 2px rgba(201, 165, 76, .55); }
.tete h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 48px; line-height: 1; }
.tete p { margin: 6px 0 0; color: var(--nuit-doux); font-size: 20px; }
.damier { height: 14px; background: repeating-conic-gradient(var(--nuit) 0% 25%, var(--fond) 0% 50%) 0 0 / 28px 28px; border-bottom: 2px solid var(--or); }
main { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 26px 18px 30px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.1; margin: 0 0 14px; }
.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
label.champ { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 21px; }
input.code { font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: 34px; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 12px 10px; border: 2px solid #A99C92; border-radius: 14px; background: #FFFDF9; color: var(--nuit); width: 100%; }
input.code:focus { border-color: var(--nuit); }
input.code::placeholder { color: #C9BEB5; letter-spacing: .12em; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; color: var(--gris); cursor: pointer; }
.case input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--nuit); flex: none; }
.gros { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 68px; border-radius: 14px; border: 0; background: var(--nuit); color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; text-decoration: none; padding: 10px 18px; text-align: center; }
.gros.or { background: var(--or); color: #241A06; }
.gros.blanc { background: var(--papier); color: var(--nuit); border: 2px solid var(--nuit); }
.gros[disabled] { opacity: .6; cursor: wait; }
.erreur { background: var(--erreur-fond); color: var(--erreur); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.code-affiche { font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: 42px; letter-spacing: .08em; color: var(--nuit); line-height: 1; }
.discret { background: none; border: 0; padding: 10px 0; color: var(--nuit); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 18px; align-self: flex-start; min-height: 44px; }
details { margin-top: 18px; background: var(--papier); border: 1px solid var(--trait); border-radius: 16px; padding: 4px 20px; }
summary { cursor: pointer; min-height: 60px; display: flex; align-items: center; font-weight: 700; }
details p { margin: 0 0 14px; }
.nouveau { margin-top: 18px; color: var(--gris); font-size: 18px; }
.pied { text-align: center; color: var(--gris); font-size: 16px; padding: 18px; }
[hidden] { display: none !important; }
/* 0.51.0 : bandeau de la bêta privée (retiré par composer-portail.py quand MA_BETA=0) */
.bandeau-beta { max-width: 620px; margin: 18px auto 0; width: calc(100% - 36px); background: #FBF3DF; border: 2px solid var(--or); border-radius: 14px; padding: 12px 16px; font-size: 18px; color: #3B2E0A; }
@media (max-width: 480px) { html, body { font-size: 19px; } .tete h1 { font-size: 40px; } .tete img { width: 62px; height: 62px; } h2 { font-size: 29px; } input.code { font-size: 30px; } }
