/* Styles du portail, servis a part pour la Content-Security-Policy (pas de style en ligne). */
/* Bleu marine du logo Y-Nissy, en touches legeres. */
:root { color-scheme: light dark; --marine: #2b3654; --accent: var(--marine); --teinte: #f4f6fa; --bord: #2b365426; --sur-accent: #fff; }
@media (prefers-color-scheme: dark) {
    :root { --accent: #8ea3d6; --teinte: #161a24; --bord: #8ea3d633; --sur-accent: #10131b; }
    .logo { filter: brightness(0) invert(.9); }
}
body { font-family: system-ui, sans-serif; max-width: 34rem; margin: 0 auto; padding: 0 1rem 3rem; line-height: 1.5; background: var(--teinte); }
html { border-top: 4px solid var(--accent); }
a { color: var(--accent); }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--bord); font-size: .9rem; }
.entete .logo { height: 2.6rem; width: auto; display: block; }
.entete .deconnexion { display: inline; }
.entete .deconnexion button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.entete-connexion { justify-content: center; border-bottom: 0; padding-top: 2.5rem; }
.entete-connexion .logo { height: auto; width: min(17rem, 80%); }
body.large { max-width: 60rem; }
.menu { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: -0.5rem 0 1.5rem; font-size: .95rem; }
.menu a { text-decoration: none; padding-bottom: .2rem; border-bottom: 2px solid transparent; }
.menu a.actif { border-bottom-color: var(--accent); font-weight: 600; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { font-weight: 600; }
.discret { opacity: .7; font-size: .9rem; }
.pastille { display: inline-block; padding: .05rem .5rem; border-radius: 1rem; font-size: .8rem; border: 1px solid var(--bord); }
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; margin: 1rem 0; }
.carte { border: 1px solid var(--bord); border-radius: .5rem; padding: .8rem 1rem; text-decoration: none; color: inherit; }
.carte strong { display: block; font-size: 1.6rem; color: var(--accent); }
pre.source { overflow: auto; max-height: 70vh; padding: 1rem; border: 1px solid var(--bord); border-radius: .4rem; font-size: .85rem; line-height: 1.45; tab-size: 4; }
.fil { font-size: .9rem; margin: .5rem 0 1rem; word-break: break-all; }
.message { border-left: 3px solid var(--bord); padding: .2rem 0 .2rem 1rem; margin: 1rem 0; }
.message-ynissy { border-left-color: var(--accent); }
textarea { width: 100%; padding: .6rem; margin-top: .3rem; box-sizing: border-box; border: 1px solid var(--bord); border-radius: .4rem; font: inherit; }
main { background: Canvas; border: 1px solid var(--bord); border-radius: .6rem; padding: .5rem 1.5rem 1.5rem; }
h1 { font-size: 1.5rem; }
label { display: block; margin-top: 1rem; font-weight: 600; }
input[type=email], input[type=password], input[type=text], input[type=number], select { width: 100%; padding: .6rem; margin-top: .3rem; box-sizing: border-box; border: 1px solid var(--bord); border-radius: .4rem; font-size: 1rem; }
button { margin-top: 1.5rem; padding: .7rem 1.2rem; background: var(--accent); color: var(--sur-accent); border: 0; border-radius: .4rem; font-size: 1rem; cursor: pointer; }
.flash { padding: .7rem 1rem; border-radius: .4rem; margin-bottom: 1rem; border: 1px solid var(--bord); }
.flash-erreur { border-color: #dc2626; }
.aide, .form-text { font-size: .9rem; opacity: .8; }
ul.codes { font-family: ui-monospace, monospace; font-size: 1.1rem; columns: 2; }
/* Bouton « œil » des champs mot de passe (js/mot-de-passe.js). */
.champ-mdp { position: relative; display: block; margin-top: .3rem; }
.champ-mdp input { margin-top: 0; padding-right: 2.8rem; }
.champ-mdp .oeil { position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); margin: 0; padding: .35rem; display: flex; background: none; color: inherit; opacity: .7; border-radius: .3rem; }
.champ-mdp .oeil:hover, .champ-mdp .oeil:focus-visible { opacity: 1; }
.champ-mdp .oeil:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Bandeau « agir pour un client » (D31). */
.agir-pour { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .6rem 1rem; margin-bottom: 1rem; border: 2px solid #d97706; border-radius: .5rem; background: color-mix(in srgb, #d97706 12%, Canvas); }
.agir-pour p { margin: 0; }
.agir-pour button { margin-top: 0; padding: .45rem .9rem; font-size: .9rem; }
/* Formulaires en ligne de la liste des boites (bouton « Webmail »). */
.formulaire-en-ligne { display: inline; }
.bouton-petit { margin: 0; padding: .2rem .6rem; font-size: .85rem; }
/* Bouton secondaire (clore une demande). */
.bouton-secondaire { background: transparent; color: var(--accent); border: 1px solid var(--bord); }
