/*
 * Thème « nuit de veille », version raffinée (aperçu du propriétaire). Chargé en dernier par lucia_page_open, SEULEMENT avec le
 * cookie lucia_theme=nuit : sans lui, rien ne change. Couleurs, fonds et formes seulement : aucun mot, aucune mise en page de texte.
 * Principe : la nuit (indigo) n'est que le décor ; tout ce qui se lit ou se remplit est posé sur une feuille chaux, champs à plat
 * (un seul trait fin, sourd), UNE couleur d'action (bleu azulejo), l'or bougie réservé à de rares détails sur la nuit.
 * Palette : nuit #070B1F / #0E1538 ; or bougie #C9973E (détails) et #E6C068 ; chaux #FBF6EE ; encre #2B2522 ;
 *           azulejo #1F3A68 (survol #172C50) ; trait sourd #8C7F70 ; teinte de choix #EAF0F9 ; lien #9A4230.
 * Polices : Playfair Display (titres) et Literata (texte), inchangées.
 */

/* ============================================================ Pages à lire : feuille chaux, encre, azulejo */
body.theme-nuit{
  --oeillet:#1F3A68; --oeillet-survol:#172C50; --oeillet-fonce:#172C50; --focus:#1F3A68;
  --encre-nuit:#070B1F; --indigo:#0E1538; --ivoire:#F7EEDA; --or-clair:#E6C068;
  background:#FBF6EE; color:#2B2522;
}
body.theme-nuit a:hover{color:#6E2D20}
body.theme-nuit .site-pack ol.etapes li::before{background:#1F3A68;color:#fff}
body.theme-nuit .lettre-priere{background:#F3EBDD}
body.theme-nuit .lettre p.lettre-sous-titre{color:#1F3A68}

/* ============================================================ En-tête : bandeau et bannière, un filet simple */
body.theme-nuit .lucia-entete{background:linear-gradient(180deg,#070B1F,#0E1538)}
body.theme-nuit .lucia-entete--bandeau{border-bottom:1px solid #C9973E}
body.theme-nuit .lucia-entete--bandeau .bandeau-marque span{color:var(--or-clair)}
body.theme-nuit .lucia-entete--bandeau .bandeau-marque img{display:none}
body.theme-nuit .lucia-entete--bandeau .bandeau-marque::before{content:"";flex:none;width:32px;height:32px;background:url("symbole-or.svg") center/contain no-repeat}
body.theme-nuit .lucia-entete--banniere{border-bottom:1px solid #C9973E}
body.theme-nuit .lucia-banniere,body.theme-nuit .banniere{border-bottom:0}
body.theme-nuit .banniere-lien{background:#070B1F;border-bottom:0}
body.theme-nuit .site-menu-bouton{background:#070B1F;color:var(--or-clair);border-color:var(--or-clair)}
body.theme-nuit .site-menu-bouton[aria-expanded=true]{background:var(--or-clair);color:#070B1F}
body.theme-nuit .site-barre,body.theme-nuit .site-barre-zone{background:#070B1F;border-color:rgba(201,151,62,.35)}
body.theme-nuit .site-barre a{color:var(--ivoire);border-top-color:rgba(201,151,62,.3)}
body.theme-nuit .site-barre a[aria-current=page]{color:var(--or-clair);border-color:var(--or-clair)}
body.theme-nuit .site-barre a:hover{color:var(--or-clair)}
body.theme-nuit .site-barre-zone{border-bottom:0}
@media (max-width:899px){
  body.theme-nuit .lucia-entete--avec-menu .site-menu-bouton{background:rgba(18,24,51,.92);color:var(--or-clair);border-color:var(--or-clair)}
  body.theme-nuit .lucia-entete--avec-menu .site-menu-bouton[aria-expanded=true]{background:var(--or-clair);color:#070B1F}
  body.theme-nuit .lucia-entete--avec-menu #site-menu-liens{background:#070B1F;border:1px solid rgba(201,151,62,.5)}
}
@media (min-width:900px){
  body.theme-nuit .lucia-entete--bandeau{height:81px}
}

/* ============================================================ Pied de page : un filet simple */
body.theme-nuit .lucia-pied{background:linear-gradient(180deg,#0E1538,#070B1F);border-top:1px solid #C9973E;
  margin-top:40px;padding-top:36px;color:var(--ivoire);font-size:17px}
body.theme-nuit .lucia-pied a,body.theme-nuit .lucia-pied-liens a{color:#F0D58E}
body.theme-nuit .lucia-pied a:hover{color:#fff}

/* ============================================================ Tirage : la nuit (écrans 1, 2 et 8), ciel discret */
body.theme-nuit.tirage:not(.tirage-lecture){
  --chaux:#070B1F; --encre:#F7EEDA; --doux:#E8DFCB; --encre-douce:#E8DFCB; --azulejo:#F3D890; --terre:#F0D58E; --or:#C9973E; --trait:#252F66; --filet:#3A4678;
  color:var(--encre);
  background:
    url("nuit-ciel.svg") 0 0/420px 420px repeat,
    radial-gradient(130% 55% at 50% 0,#1A2360 0,rgba(26,35,96,0) 75%),
    linear-gradient(180deg,#0A1030 0%,#070B1F 100%);
  background-color:#070B1F;
}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours{color:var(--encre)}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours h1,body.theme-nuit.tirage:not(.tirage-lecture) .parcours h2{color:#F3D890;text-shadow:none}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours h1{font-size:28px;line-height:1.25;text-wrap:balance}
/* Ornement des titres sur la nuit : un filet fin et un point */
body.theme-nuit.tirage:not(.tirage-lecture) .parcours h1::after{content:"";display:block;width:150px;height:8px;margin:16px auto 0;
  background:radial-gradient(circle,#E6C068 0 3px,transparent 3.5px) center/8px 8px no-repeat,
    linear-gradient(#C9973E,#C9973E) left center/calc(50% - 12px) 1px no-repeat,
    linear-gradient(#C9973E,#C9973E) right center/calc(50% - 12px) 1px no-repeat}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .sub,body.theme-nuit.tirage:not(.tirage-lecture) .parcours .mention,body.theme-nuit.tirage:not(.tirage-lecture) .parcours .silence{color:#EDE4D0}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .sub{font-size:19px;line-height:1.6}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .sub.encre{color:#F7EEDA}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours #e1 .sub,body.theme-nuit.tirage:not(.tirage-lecture) .parcours #e2 .sub{text-align:center}
body.theme-nuit.tirage:not(.tirage-lecture) .retour{color:#F3D890;font-size:30px;width:48px;height:48px}
body.theme-nuit.tirage:not(.tirage-lecture) .barre{height:6px;border-radius:3px;background:#252F66;box-shadow:none}
body.theme-nuit.tirage:not(.tirage-lecture) .barre i{background:#C9973E;box-shadow:none}
body.theme-nuit.tirage:not(.tirage-lecture) .legende{color:#F3D890}
body.theme-nuit.tirage:not(.tirage-lecture) .slot{border:1px solid rgba(230,192,104,.75);border-radius:8px;color:#E6C068;box-shadow:none}
body.theme-nuit.tirage:not(.tirage-lecture) .slot.plein{border:0}
body.theme-nuit.tirage:not(.tirage-lecture) .dos{box-shadow:0 2px 10px rgba(0,0,0,.55)}
body.theme-nuit.tirage:not(.tirage-lecture) .faces img{border-color:#E6C068}
body.theme-nuit.tirage:not(.tirage-lecture) .erreur{color:#FFB8BE}
body.theme-nuit.tirage:not(.tirage-lecture) .mention a{color:#F0D58E}
body.theme-nuit.tirage:not(.tirage-lecture) .site-evitement{background:#FBF6EE;color:#1F3A68}

/* ---- Écrans 3 à 6 (domaine, prénom, date, e-mail) et lecture finale : une feuille chaux posée sur la nuit */
body.theme-nuit.tirage:not(.tirage-lecture) .parcours :is(#e3,#e4,#e5,#e6) .centre,body.theme-nuit.tirage:not(.tirage-lecture) #apres{
  --chaux:#FBF6EE; --encre:#2B2522; --encre-douce:#5C5249; --doux:#4A403A; --azulejo:#1F3A68; --lien:#9A4230; --terre:#9A4230; --or:#C9973E;
  --filet:#E3D8C6; --trait:#E3D8C6; --papier:#FFFFFF;
  background:#FBF6EE; color:#2B2522; border-radius:6px; box-shadow:0 10px 30px rgba(0,0,0,.35);
}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours :is(#e3,#e4,#e5,#e6) .centre{flex:0 1 auto;margin:auto 0;padding:26px 16px 24px;gap:18px}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours :is(#e3,#e4,#e5,#e6) h1,body.theme-nuit.tirage:not(.tirage-lecture) #apres h1,body.theme-nuit.tirage:not(.tirage-lecture) #apres h2{color:#1F3A68;text-align:left;text-wrap:wrap}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours :is(#e3,#e4,#e5,#e6) h1::after,body.theme-nuit.tirage:not(.tirage-lecture) #apres h1::after{content:none;display:none}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours :is(#e3,#e4,#e5,#e6) .sub{color:#2B2522;text-align:left}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours :is(#e3,#e4,#e5,#e6) .mention{color:#4A403A;font-size:17px;line-height:1.55;text-align:left}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours :is(#e3,#e4,#e5,#e6) .mention a,body.theme-nuit.tirage:not(.tirage-lecture) #apres a:not(.bouton){color:#9A4230}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours :is(#e3,#e4,#e5,#e6) .erreur,body.theme-nuit.tirage:not(.tirage-lecture) #apres .erreur{color:#9B2230}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours form{gap:14px}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .champ-label{display:block;margin:0 0 -6px;text-align:left;font:600 19px/1.3 Literata,serif;color:#2B2522}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .date{gap:8px;grid-template-columns:64px 1fr 86px}
body.theme-nuit.theme-nuit .date select{font-size:18px;padding:8px 22px 8px 9px;background-size:11px 7px;background-position:right 8px center}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .erreur{text-align:left;font-size:18px}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .erreur:not(:empty){background:#FBEDEE;border-left:4px solid #9B2230;border-radius:4px;padding:10px 14px}
body.theme-nuit.tirage:not(.tirage-lecture) #apres{margin:8px -16px 0;padding:28px 16px 32px;border-radius:0}
body.theme-nuit.tirage:not(.tirage-lecture) #apres .lecture{font-size:20px;line-height:1.7;text-align:left}
body.theme-nuit.tirage:not(.tirage-lecture) #apres .envoye,body.theme-nuit.tirage:not(.tirage-lecture) #apres .consentement{font-size:18px;text-align:left;color:#4A403A}
@media (min-width:560px){
  body.theme-nuit.tirage:not(.tirage-lecture) #apres{margin:8px 0 0;padding:32px 28px 36px;border-radius:6px}
}
@media (min-width:760px){
  body.theme-nuit.tirage:not(.tirage-lecture) .parcours{max-width:560px}
  body.theme-nuit.tirage:not(.tirage-lecture) .parcours:has(#apres:not([hidden])){max-width:700px}
  body.theme-nuit.tirage:not(.tirage-lecture) #apres{padding:36px 40px 40px}
  body.theme-nuit.tirage:not(.tirage-lecture) .parcours :is(#e3,#e4,#e5,#e6) .centre{padding:34px 36px 30px}
}

/* ---- Choix du domaine : tuiles claires, trait sourd, petite icône azulejo ; choisie = bord azulejo 2 px + fond bleu pâle */
body.theme-nuit.tirage:not(.tirage-lecture) .grille{gap:12px}
body.theme-nuit.tirage:not(.tirage-lecture) .sujet{background:#FFFFFF;color:#2B2522;border:1px solid #8C7F70;border-radius:6px;min-height:148px;padding:14px 10px;gap:10px;
  font:600 19px/1.3 Literata,serif;box-shadow:none;transition:background-color .15s,border-color .15s,box-shadow .15s}
body.theme-nuit.tirage:not(.tirage-lecture) .sujet::before{content:"";display:block;flex:none;width:42px;height:42px;background:#1F3A68;
  -webkit-mask:url("nuit-i-chemin.svg") center/contain no-repeat;mask:url("nuit-i-chemin.svg") center/contain no-repeat}
body.theme-nuit.tirage:not(.tirage-lecture) .sujet[data-domaine=amour]::before{-webkit-mask-image:url("nuit-i-amour.svg");mask-image:url("nuit-i-amour.svg")}
body.theme-nuit.tirage:not(.tirage-lecture) .sujet[data-domaine=argent]::before{-webkit-mask-image:url("nuit-i-argent.svg");mask-image:url("nuit-i-argent.svg")}
body.theme-nuit.tirage:not(.tirage-lecture) .sujet[data-domaine=chemin]::before{-webkit-mask-image:url("nuit-i-chemin.svg");mask-image:url("nuit-i-chemin.svg")}
body.theme-nuit.tirage:not(.tirage-lecture) .sujet[data-domaine=protection]::before{-webkit-mask-image:url("nuit-i-protection.svg");mask-image:url("nuit-i-protection.svg")}
body.theme-nuit.tirage:not(.tirage-lecture) .sujet:hover,body.theme-nuit.tirage:not(.tirage-lecture) .sujet:active,body.theme-nuit.tirage:not(.tirage-lecture) .sujet:focus-visible{background:#EAF0F9;border-color:#1F3A68;box-shadow:inset 0 0 0 1px #1F3A68}
body.theme-nuit.tirage:not(.tirage-lecture) .sujet:focus-visible{outline:3px solid rgba(31,58,104,.35);outline-offset:2px}

/* ---- Case de l'e-mail : tuile claire, toute la zone se touche */
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .case-lettres{align-items:flex-start;gap:14px;padding:14px;min-height:60px;background:#FFFFFF;border:1px solid #8C7F70;border-radius:6px;cursor:pointer}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .case-lettres label{font-size:18px;line-height:1.5;color:#2B2522;flex:1}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .case-lettres input{margin:1px 0 0}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .case-lettres:has(input:checked){border-color:#1F3A68;background:#EAF0F9;box-shadow:inset 0 0 0 1px #1F3A68}

/* ============================================================ Cases à cocher et ronds : simples, 30 px, azulejo quand choisis */
body.theme-nuit input[type=checkbox],body.theme-nuit input[type=radio]{
  -webkit-appearance:none;appearance:none;flex:0 0 30px;width:30px;height:30px;min-width:30px;margin:0;accent-color:auto;
  border:2px solid #7A6D5F;border-radius:4px;background:#FFFFFF no-repeat center/22px 22px;box-shadow:none;cursor:pointer;
  transition:background-color .15s,border-color .15s}
body.theme-nuit input[type=radio]{border-radius:50%}
body.theme-nuit input[type=checkbox]:checked{background-color:#1F3A68;border-color:#1F3A68;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500' fill='none' stroke='%23fff' stroke-width='3.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body.theme-nuit input[type=radio]:checked{background:#FFFFFF radial-gradient(circle,#1F3A68 0 8px,transparent 9px);border-color:#1F3A68}
body.theme-nuit input[type=checkbox]:focus-visible,body.theme-nuit input[type=radio]:focus-visible{outline:3px solid rgba(31,58,104,.35);outline-offset:3px}
body.theme-nuit .lettre .lettre-champs .lettre-choix input,body.theme-nuit .vista-form label.case input{flex:0 0 30px;width:30px;height:30px;min-width:30px;margin:0}
body.theme-nuit .lettre .lettre-champs .lettre-choix{min-height:60px;padding:10px 16px;border:1px solid #8C7F70;border-radius:6px;background:#FFFFFF;font-size:20px}
body.theme-nuit .lettre .lettre-champs .lettre-choix:has(input:checked){border-color:#1F3A68;background:#EAF0F9;box-shadow:inset 0 0 0 1px #1F3A68}
body.theme-nuit .vista-form label.case{gap:14px;align-items:flex-start;line-height:1.55}
body.theme-nuit .vista-form label.case input{margin-top:1px}

/* ============================================================ Champs : à plat, fond blanc, un seul trait sourd de 1 px, coins 4 px */
body.theme-nuit.theme-nuit input[type=text],body.theme-nuit.theme-nuit input[type=email],body.theme-nuit.theme-nuit input[type=tel],
body.theme-nuit.theme-nuit input[type=number],body.theme-nuit.theme-nuit input[type=date],body.theme-nuit.theme-nuit input[type=password],
body.theme-nuit.theme-nuit input[type=search],body.theme-nuit.theme-nuit select,body.theme-nuit.theme-nuit textarea{
  background:#FFFFFF; color:#2B2522; border:1px solid #8C7F70; border-radius:4px; min-height:60px; font-size:20px;
  padding:10px 14px; box-shadow:none; background-image:none}
body.theme-nuit.theme-nuit textarea{min-height:150px}
body.theme-nuit.theme-nuit select{padding:8px 40px 8px 12px;background-image:url("nuit-chevron-fonce.svg");
  background-repeat:no-repeat;background-size:16px 10px;background-position:right 14px center}
body.theme-nuit.theme-nuit select option{background:#FFFFFF;color:#2B2522}
body.theme-nuit.theme-nuit input::placeholder,body.theme-nuit.theme-nuit textarea::placeholder{color:#6B6458;opacity:1}
body.theme-nuit.theme-nuit input:focus,body.theme-nuit.theme-nuit select:focus,body.theme-nuit.theme-nuit textarea:focus{
  border-color:#1F3A68;outline:0;box-shadow:0 0 0 3px rgba(31,58,104,.3)}
body.theme-nuit.theme-nuit input[aria-invalid=true],body.theme-nuit.theme-nuit select[aria-invalid=true]{border-color:#9B2230}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours input[type=email]{font-size:18px;padding-left:12px;padding-right:8px}
body.theme-nuit .lettre .lettre-champs select{font-size:19px}
body.theme-nuit .lettre .lettre-champs legend,body.theme-nuit .lettre .lettre-champs > label{color:#2B2522;font-weight:600;font-size:20px}

/* ============================================================ Boutons : un seul style, bleu azulejo plein et uni */
body.theme-nuit .bouton,body.theme-nuit button.bouton,body.theme-nuit input[type=submit].bouton,
body.theme-nuit .parcours .bouton,body.theme-nuit .lettre-action .bouton,body.theme-nuit .lettre button.bouton,
body.theme-nuit .suite-lettre .bouton,body.theme-nuit .vista-form .bouton{
  background:#1F3A68 none; color:#fff; border:1px solid #1F3A68; border-radius:6px; min-height:64px; padding:14px 20px;
  font:700 20px/1.3 Literata,serif; text-shadow:none; box-shadow:none; transition:background-color .15s}
body.theme-nuit .bouton::before,body.theme-nuit .bouton::after{content:none;display:none}
body.theme-nuit .bouton:hover,body.theme-nuit .bouton:active,body.theme-nuit .bouton:focus,
body.theme-nuit .parcours .bouton:hover,body.theme-nuit .lettre-action .bouton:hover,body.theme-nuit .lettre-action .bouton:focus,
body.theme-nuit .lettre button.bouton:hover,body.theme-nuit .lettre button.bouton:focus,body.theme-nuit .vista-form .bouton:hover{
  background:#172C50 none; color:#fff; border-color:#172C50; box-shadow:none}
body.theme-nuit .bouton:focus-visible{outline:3px solid rgba(31,58,104,.45);outline-offset:3px}
body.theme-nuit .bouton[disabled]{opacity:.8}
/* Sur la nuit, le bord du bouton est un bleu un peu plus clair (pas de liseré or) */
body.theme-nuit.tirage:not(.tirage-lecture) .parcours #e2 .bouton,body.theme-nuit.tirage:not(.tirage-lecture) .parcours #e8 .bouton{border-color:#3F5E96}
body.theme-nuit.tirage:not(.tirage-lecture) .parcours .bouton:focus-visible{outline-color:#F3D890}
/* Bouton discret : trait azulejo, lien souligné comme avant */
body.theme-nuit .bouton-secondaire{border:1px solid #1F3A68;border-radius:6px;color:#1F3A68;background:transparent}
body.theme-nuit .bouton-secondaire:hover{background:#EAF0F9;color:#1F3A68}

/* ============================================================ Pages à lire : colonne ~65 caractères, encre foncée, interligne 1,7 */
body.theme-nuit .lettre-page{max-width:700px;line-height:1.7;color:#2B2522}
body.theme-nuit .lettre-page p{max-width:66ch}
