/* Décor commun aux écrans de l'espace. Les valeurs suivent DIRECTION_ARTISTIQUE.md. */
:root {
  --creme: #FAF5ED;
  --noir: #000000;
  --nuit-haut: #04060A;
  --nuit-milieu: #070B12;
  --nuit-bas: #0E1521;
  --crete-loin: #0B111B;
  --crete-proche: #080C13;
  --lichen: #57774F;
  --lichen-fonce: #3d5537;
  --vif: #B0F79E;
  --rose: #5a2a3c;
  --rose-clair: #D9B4C1;
  --bleu: #9ECBF7;
  --bleu-nuit: #1F3A55;
  --texte-2: #B6B0A8;
  --label: #8A8A82;
  --bordure: #32322E;
  --surface: rgba(6, 9, 14, .86);
  --encre-2: #2A2620;
  --piste: #E3DACB;
  --domaine: var(--vif);
}
.f-outils { --domaine: var(--rose-clair); }
.f-visios { --domaine: var(--bleu); }

* { box-sizing: border-box; margin: 0; }
body { background: var(--nuit-haut); font-family: 'Poppins', Arial, sans-serif; color: var(--creme); }

/* Le ciel étoilé, en couche fixe derrière tout le contenu */
.ciel { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--nuit-haut) 0%, var(--nuit-milieu) 45%, var(--nuit-bas) 100%); }
.ciel .etoiles-fond { position: absolute; inset: 0; width: 100%; height: 100%; }
.ciel circle { fill: var(--creme); }
.ciel .sc { animation: lueur 9s ease-in-out infinite; }
.ciel .sc:nth-of-type(2n) { animation-duration: 11s; animation-delay: -4s; }
@keyframes lueur { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ciel .loin { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; }

.affiche { position: relative; z-index: 1; max-width: 460px; min-height: 100vh; margin: 0 auto; padding: 10px; }
.cadre { border: 1.5px solid var(--creme); min-height: calc(100vh - 20px); display: flex; flex-direction: column; }
.large .affiche { max-width: 460px; }
@media (min-width: 760px) { .large .affiche { max-width: 760px; } }

/* L'affiche repliée en bandeau (150 px), ou pleine (connexion) */
.entete { position: relative; height: 150px; overflow: hidden; flex: none;
  background: linear-gradient(var(--nuit-haut) 0%, var(--nuit-haut) 35%, var(--nuit-bas) 100%); }
.entete.pleine { height: 230px; }
.etoiles { position: absolute; inset: 0; width: 100%; height: 100%; }
.etoiles circle { fill: var(--creme); }
.etoiles .sc { animation: scintille 5s ease-in-out infinite; }
.etoiles .sc:nth-child(3n) { animation-delay: -1.7s; animation-duration: 6.5s; }
@keyframes scintille { 0%, 100% { opacity: .9; } 50% { opacity: .45; } }
.lune { position: absolute; border-radius: 50%; width: 38px; height: 38px; top: 18px; right: 92px;
  background: radial-gradient(circle at 38% 36%, #EBD3DC 0 20%, var(--rose-clair) 55%);
  box-shadow: 0 0 0 10px rgba(217,180,193,.06), 0 0 40px 8px rgba(217,180,193,.22); }
.pleine .lune { width: 64px; height: 64px; top: 40px; right: 34px; }
.lune::before, .lune::after { content: ''; position: absolute; border-radius: 50%; background: rgba(90,42,60,.16); }
.lune::before { width: 22%; height: 22%; left: 54%; top: 30%; }
.lune::after { width: 14%; height: 14%; left: 30%; top: 60%; }
.relief { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; display: block; }
.pleine .relief { height: 104px; }
.reflet { stroke: var(--creme); stroke-width: 1.4; stroke-linecap: round; fill: none; opacity: .75; stroke-dasharray: 5 16; animation: coule 3.2s linear infinite; }
@keyframes coule { to { stroke-dashoffset: -42; } }
.titre { position: absolute; left: 14px; top: 1px; padding: 9px 8px 9px 0; font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; line-height: .88; letter-spacing: .01em; font-size: 30px; color: var(--creme); text-decoration: none; }
.titre span { color: var(--lichen); margin-left: .22em; }
.pleine .titre { top: 31px; font-size: 58px; }
.pleine .titre span { display: block; margin-left: 0; }
.tampon { position: absolute; right: 12px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--rose-clair); color: var(--creme); display: grid; place-items: center; font-weight: 600; font-size: 13px; transform: rotate(-8deg); background: rgba(0,0,0,.35); text-decoration: none; }
.tampon:focus-visible, .titre:focus-visible { outline: 2px solid var(--vif); outline-offset: 3px; }

/* Le retour et le titre de l'écran */
.chemin { display: flex; justify-content: space-between; align-items: center; padding: 4px 16px 0; font-size: 13px; }
.chemin a { color: var(--creme); text-decoration: none; font-weight: 500; padding: 13px 14px 13px 0; }
.chemin a:hover { text-decoration: underline; text-underline-offset: 3px; }
.chemin span { color: var(--label); }
.tete-ecran { padding: 6px 16px 4px; }
.tete-ecran .no { font-family: 'Libre Baskerville', Georgia, serif; font-style: italic; font-size: 13px; color: var(--texte-2); }
.tete-ecran h1 { font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 34px; line-height: 1.05; margin: 2px 0 4px; }
.tete-ecran h1::after { content: ''; display: block; width: 46px; height: 4px; background: var(--domaine); margin-top: 8px; }
.tete-ecran p { font-size: 14px; line-height: 1.45; color: var(--texte-2); }

/* Les blocs d'un écran d'usage : simples, sans cartes */
.bloc { margin: 14px 12px 0; background: var(--surface); border: 1px solid var(--bordure); padding: 13px 14px 14px; }
.bloc h2 { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.bloc p, .bloc li { font-size: 13.5px; line-height: 1.5; }
.bloc p + p { margin-top: 7px; }
.bloc .doux { color: var(--texte-2); }
.bloc.accent { border-left: 3px solid var(--domaine); }
.texte { padding: 4px 16px 0; }
.texte h2 { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; font-size: 18px; margin: 18px 0 6px; }
.texte p, .texte li { font-size: 14px; line-height: 1.55; }
.texte p + p { margin-top: 8px; }
.texte ul { padding-left: 18px; }
.texte li + li { margin-top: 4px; }
.texte .doux { color: var(--texte-2); }

/* Les formulaires */
.champ { display: block; margin-top: 12px; }
.champ:first-child { margin-top: 0; }
.champ > span { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 5px; }
.champ small { display: block; font-size: 13px; color: var(--texte-2); margin-top: 4px; line-height: 1.4; }
input[type=email], input[type=password], input[type=text], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--creme); background: var(--nuit-bas); border: 1px solid #4a4a44; border-radius: 6px; padding: 10px 11px; }
textarea { min-height: 70px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--vif); outline-offset: 1px; border-color: var(--creme); }
input[type=date] { color-scheme: dark; }
.deux { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.bouton { display: block; width: 100%; margin-top: 16px; font: inherit; font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; color: var(--noir); background: var(--creme); border: 0; border-radius: 6px; padding: 12px 14px; cursor: pointer; }
.bouton:hover { background: #fff; }
.bouton:focus-visible { outline: 2px solid var(--vif); outline-offset: 3px; }
.bouton.second { background: none; color: var(--creme); border: 1.5px solid var(--creme); }
.lien { color: var(--creme); font-size: 13.5px; text-underline-offset: 3px; padding: 13px 0; }
.centre { text-align: center; margin-top: 12px; }

/* Les étiquettes d'état */
.etat { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.2; padding: 2px 8px 3px; border-radius: 3px; color: var(--noir); white-space: nowrap; }
.etat.fait { background: var(--creme); }
.etat.cale { background: var(--bleu); }
.etat.attente { background: var(--rose-clair); }
.etat.libre { background: none; color: var(--creme); border: 1px dashed var(--texte-2); }

/* Un message après un formulaire : une erreur à corriger, ou une confirmation */
.message-form { margin: 12px 12px 0; border-left: 3px solid var(--rose-clair); background: var(--surface); padding: 9px 12px; font-size: 13.5px; line-height: 1.45; }
.message-form.bon { border-left-color: var(--vif); }

.pied-page { margin-top: auto; border-top: 1.5px solid var(--creme); padding: 10px 14px 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 13px; color: var(--texte-2); }
.pied-page a { color: var(--texte-2); text-underline-offset: 3px; }
.espace { height: 18px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .etoiles .sc, .reflet, .ciel .sc { animation: none; }
}
