/* Thème jour / nuit — surcharge des variables (js/theme.js pose data-theme sur <html>) */

/* Bouton lune / soleil */
.theme-bt{position:absolute;right:0;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:1.5px solid var(--bord);background:transparent;color:var(--texte);display:grid;place-items:center;cursor:pointer;padding:0;font:inherit}
.theme-bt:active{transform:translateY(-50%) scale(.94)}
.theme-bt svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.theme-bt .t-soleil{display:none}
html[data-theme="nuit"] .theme-bt .t-lune{display:none}
html[data-theme="nuit"] .theme-bt .t-soleil{display:block}
.entete{position:relative}

html[data-theme="nuit"]{
    color-scheme:dark;
    --fond:#0d0d0f;--carte:#1a1a1e;--bord:#2e2e33;--texte:#f2f2f0;--doux:#a5a5ab;
    --ac:#f2f2f0;--ac2:#fff;--gris:#8f8f95;--ombre:rgba(0,0,0,.6);
    --sur-ac:#0d0d0f;--panneau:#18181b;
}
/* logo : version claire dédiée la nuit */
img.logo-nuit{display:none!important}
html[data-theme="nuit"] img.logo-jour{display:none!important}
html[data-theme="nuit"] img.logo-nuit{display:block!important}
/* le polaroïd reste blanc : il se détache sur le fond sombre */
html[data-theme="nuit"] .photos{box-shadow:0 1px 2px rgba(0,0,0,.5),0 20px 44px -8px rgba(0,0,0,.75)}
html[data-theme="nuit"] input.champ::placeholder,html[data-theme="nuit"] .ou{color:#6f6f76}
html[data-theme="nuit"] .poignee{background:#3a3a40}
html[data-theme="nuit"] .voile{background:rgba(0,0,0,.75)}
html[data-theme="nuit"] .msg{background:#3a1a1a;color:#ffb4b4}
html[data-theme="nuit"] .msg.ok{background:#16301f;color:#a8e6bf}
html[data-theme="nuit"] .reprise-x{background:#2a2a2f;color:#f2f2f0}
html[data-theme="nuit"] .btn.plein[disabled]{opacity:.4}

/* Essai gratuit */
html[data-theme="nuit"] .essai .photo-ap{background-color:#2a2a2f}
html[data-theme="nuit"] .essai .portrait img{background-color:#2a2a2f}
html[data-theme="nuit"] .essai .sel{background:#26262b}
html[data-theme="nuit"] .essai .rond{border-color:#3a3a40;border-top-color:var(--ac)}
html[data-theme="nuit"] .cam-boite{background:#18181b}
html[data-theme="nuit"] .cam-msg{color:#a5a5ab}
html[data-theme="nuit"] .essai .ok-i{background:#16301f;color:#a8e6bf}
html[data-theme="nuit"] .toast-img{background:#2a2a2f;border:1px solid #3a3a40}
html[data-theme="nuit"] .essai .badge-neuf{background:#fff;color:#111}
