/*! Wonderguide — la bascule Nuit / Jour hors du header (tableau de bord, guides, pages autonomes).
   Même interrupteur que celui du header : la lune à gauche, le soleil à droite, le curseur sous la version en cours.
   Variante --clair : pour une surface claire en version Nuit (guides Classique et Carte postale, pages blanches). */

.wg-nj{
    position:relative;flex:none;display:inline-block;vertical-align:middle;box-sizing:border-box;
    width:60px !important;height:32px !important;min-width:0 !important;min-height:0 !important;
    margin:0 !important;padding:0 !important;
    background:transparent !important;box-shadow:none !important;
    border:1px solid rgba(215,202,175,.42) !important;border-radius:0 !important;
    color:#D7CAAF !important;line-height:0;cursor:pointer;
    -webkit-appearance:none;appearance:none;
    transition:border-color .3s;
}
.wg-nj:hover{border-color:#D7CAAF !important;}
.wg-nj:focus-visible{outline:1px solid #D7CAAF;outline-offset:4px;}
.wg-nj__piste{
    position:absolute;inset:3px;
    display:grid;grid-template-columns:1fr 1fr;align-items:center;justify-items:center;
}
.wg-nj__curseur{
    position:absolute;left:0;top:0;width:50%;height:100%;
    background:#D7CAAF;
    transition:transform .45s cubic-bezier(.7,0,.2,1);
}
.wg-nj svg,.wg-nj-choix svg{
    position:relative;z-index:1;display:block;width:14px;height:14px;flex:none;
    fill:none !important;stroke:currentColor !important;stroke-width:1.5;
    transition:color .3s;
}
.wg-nj .wg-nj__nuit{color:#04080F;}                 /* posée sur le curseur */

/* Surface claire en version Nuit */
.wg-nj--clair{border-color:rgba(0,19,59,.3) !important;color:#00133B !important;}
.wg-nj--clair:hover{border-color:#00133B !important;}
.wg-nj--clair:focus-visible{outline-color:#00133B;}
.wg-nj--clair .wg-nj__curseur{background:#00133B;}
.wg-nj--clair .wg-nj__nuit{color:#D7CAAF;}

/* Le même choix, en toutes lettres */
.wg-nj-choix{display:inline-flex;vertical-align:middle;border:1px solid rgba(215,202,175,.35);}
.wg-nj-choix button{
    display:flex !important;align-items:center;gap:8px;box-sizing:border-box;
    height:42px !important;min-height:0 !important;padding:0 16px !important;margin:0 !important;
    background:transparent !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;
    font-family:inherit !important;font-size:14px !important;font-weight:600 !important;letter-spacing:0 !important;text-transform:none !important;line-height:1 !important;
    color:rgba(250,249,247,.74) !important;-webkit-text-fill-color:rgba(250,249,247,.74) !important;
    cursor:pointer;-webkit-appearance:none;appearance:none;
    transition:background .2s,color .2s;
}
.wg-nj-choix button[aria-pressed="true"]{
    background:#D7CAAF !important;
    color:#04080F !important;-webkit-text-fill-color:#04080F !important;
}
.wg-nj-choix button:focus-visible{outline:1px solid #D7CAAF;outline-offset:3px;}
.wg-nj-choix--clair{border-color:rgba(0,19,59,.24);}
.wg-nj-choix--clair button{color:rgba(0,19,59,.74) !important;-webkit-text-fill-color:rgba(0,19,59,.74) !important;}
.wg-nj-choix--clair button[aria-pressed="true"]{background:#00133B !important;color:#D7CAAF !important;-webkit-text-fill-color:#D7CAAF !important;}
.wg-nj-choix--clair button:focus-visible{outline-color:#00133B;}

/* Sans JavaScript, la version ne peut pas changer : pas de bascule */
html:not([data-wg-apparence]) .wg-nj,html:not([data-wg-apparence]) .wg-nj-choix,html:not([data-wg-apparence]) [data-wg-apparence-bloc]{display:none !important;}
html:not([data-wg-apparence]) body .wgv__section:has(+ .wgv__section[data-wg-apparence-bloc]){border-bottom:none;margin-bottom:0;}   /* la section d'avant redevient la dernière */

/* Logo des cartes de connexion et d'inscription : l'image d'origine en Nuit, le même logo en figue en Jour */
html[data-wg-apparence="jour"] .wg-auth-logo img{display:none;}
html[data-wg-apparence="jour"] .wg-auth-logo .wg-logo-jour{display:inline-block !important;height:28px;width:auto;vertical-align:middle;}   /* masqué dans la page elle-même, pour la Nuit */

/* Bascule posée en coin d'une page autonome */
.wg-nj--coin{position:fixed;top:20px;right:20px;z-index:50;}
@media(max-width:600px){.wg-nj--coin{top:14px;right:14px;}}
@media print{.wg-nj,.wg-nj-choix{display:none !important;}}

/* Pendant le fondu d'une version à l'autre, rien d'autre ne bouge */
html.wg-bascule *{transition:none !important;}

/* ── Version Jour ── */
[data-wg-apparence="jour"] .wg-nj{
    width:68px !important;height:40px !important;border:0 !important;border-radius:15px !important;
    background:#F7E0CF !important;color:rgba(59,32,48,.56) !important;
    transition:background .3s;
}
[data-wg-apparence="jour"] .wg-nj:hover{background:#EBB9A7 !important;}
[data-wg-apparence="jour"] .wg-nj:focus-visible{outline:2px solid #914C58;outline-offset:3px;}
[data-wg-apparence="jour"] .wg-nj__piste{inset:4px;}
[data-wg-apparence="jour"] .wg-nj__curseur{
    transform:translateX(100%);border-radius:11px !important;background:#FFFBF5;
    box-shadow:0 1px 2px rgba(59,32,48,.12),0 6px 14px -6px rgba(59,32,48,.45);
}
[data-wg-apparence="jour"] .wg-nj svg,[data-wg-apparence="jour"] .wg-nj-choix svg{width:15px;height:15px;stroke-linecap:round;stroke-linejoin:round;}
[data-wg-apparence="jour"] .wg-nj .wg-nj__nuit{color:rgba(59,32,48,.56);}
[data-wg-apparence="jour"] .wg-nj .wg-nj__jour{color:#3B2030;}

[data-wg-apparence="jour"] .wg-nj-choix{gap:4px;padding:4px;border:0;border-radius:16px !important;background:#F7E0CF;}
[data-wg-apparence="jour"] .wg-nj-choix button{
    height:40px !important;border-radius:12px !important;
    color:rgba(59,32,48,.84) !important;-webkit-text-fill-color:rgba(59,32,48,.84) !important;
}
[data-wg-apparence="jour"] .wg-nj-choix button[aria-pressed="true"]{
    background:#FFFBF5 !important;box-shadow:0 1px 2px rgba(59,32,48,.12),0 6px 14px -6px rgba(59,32,48,.45) !important;
    color:#3B2030 !important;-webkit-text-fill-color:#3B2030 !important;
}
[data-wg-apparence="jour"] .wg-nj-choix button:focus-visible{outline:2px solid #914C58;outline-offset:2px;}

/* Le fond de page de la version Jour : le lin, quelle que soit la page */
html[data-wg-apparence="jour"] body{background-color:#FBF3E9;}

/* Le réglage de la version de départ d'un guide (fiche du bien, onglet « Vue » du guide) */
.wg-nj-guide{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;}
.wg-nj-guide__etat{font-size:14px;line-height:1.4;opacity:.8;}
.wg-nj-guide[aria-busy="true"] .wg-nj-choix{opacity:.6;pointer-events:none;}
