/* MAISON ROYALE — identite royale noire et doree ; styles autonomes */
:root { --mr-black:#090805; --mr-gold:#e4a900; --mr-light:#ffde68; --mr-ink:#17120a; }
html { background:#efb700 !important; }
html body {
  background:linear-gradient(145deg,#eeb30f 0%,#ffd84d 43%,#ecad00 100%) fixed !important;
  color:var(--mr-ink) !important;
  min-height:100vh !important;
}
/* Barres superieures, quelle que soit la page */
html body > header, html body header, html body nav,
html body .header, html body .topbar, html body .navbar,
html body .site-header, html body .app-header {
  background:linear-gradient(115deg,#030303 0%,#181205 48%,#030303 100%) !important;
  color:#ffde65 !important;
  border-bottom:3px solid #d9a000 !important;
}
html body header a, html body nav a, html body .topbar a,
html body .header a, html body .navbar a {
  color:#ffdd5e !important;
}
/* Couronne en relief : superposee avant le titre dans le bandeau */
html body header::before, html body .topbar::before,
html body .site-header::before, html body .app-header::before {
  content:"" !important;
  display:inline-block !important;
  flex:0 0 auto !important;
  width:64px !important;
  height:54px !important;
  margin-right:12px !important;
  vertical-align:middle !important;
  background:url('/static/couronne_royale.svg') center/contain no-repeat !important;
  filter:drop-shadow(0 3px 1px #7e4d00) drop-shadow(0 5px 5px #ffce44aa) !important;
}
/* Couleurs des surfaces et titres */
html body h1,html body h2,html body h3 { color:#1a1308 !important; }
html body .card, html body .panel, html body .login-card,
html body .form-card, html body .box, html body .surface {
  background:#fffdf8 !important;
  border-radius:16px !important;
  box-shadow:0 8px 25px #51360024 !important;
}
/* Boutons principaux et tuiles de menu */
html body button[type="submit"], html body input[type="submit"],
html body .btn-primary, html body .primary,
html body a.btn, html body .menu a, html body .menu-grid a,
html body .tiles a, html body .cards a,
html body a.button {
  background:linear-gradient(180deg,#35290f 0%,#090805 70%) !important;
  color:#ffdc55 !important;
  border:2px solid #e2aa00 !important;
  border-radius:11px !important;
  box-shadow:inset 0 1px 0 #fff2b055,0 4px 10px #0004 !important;
  font-weight:700 !important;
}
html body button[type="submit"]:hover,html body input[type="submit"]:hover,
html body .btn-primary:hover,html body .primary:hover,html body .menu a:hover {
  background:linear-gradient(180deg,#5c410c,#141005) !important;
}
html body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
html body select,html body textarea { background:#fff !important; color:#15110b !important; border-radius:9px !important; }
html body :focus-visible { outline:3px solid #c88f00 !important;outline-offset:2px; }
@media(max-width:650px){
 html body header::before,html body .topbar::before,html body .site-header::before,html body .app-header::before {width:42px !important;height:38px !important;margin-right:6px !important;}
}


/* MAISON ROYALE PREMIUM GLOBAL */

:root {
 --royal-black:#080705;
 --royal-dark:#171108;
 --royal-gold:#d6a000;
 --royal-yellow:#ffd447;
 --royal-white:#fffdf8;
}

/* Fond royal */
html body {
 background:
 radial-gradient(ellipse at 48% 18%,
 #fff0a2 0%,transparent 48%),
 linear-gradient(145deg,
 #d99500 0%,#ffce32 35%,
 #ffd951 65%,#e7a500 100%) !important;
 background-attachment:fixed !important;
 color:#17120a !important;
 min-height:100vh;
}

/* Bandeau noir et or */
html body header,
html body .topbar,
html body .site-header,
html body .app-header {
 background:
 radial-gradient(ellipse at 50% 0%,
 #36280b 0%,transparent 65%),
 linear-gradient(110deg,
 #000 0%,#131007 50%,#000 100%) !important;
 border-bottom:3px solid #e3ae13 !important;
 box-shadow:0 5px 12px #8b5a0040 !important;
 color:#ffda4d !important;
}

/* Couronne et identité */
html body header::before,
html body .topbar::before,
html body .site-header::before,
html body .app-header::before {
 content:"" !important;
 display:inline-block !important;
 width:76px !important;
 height:65px !important;
 margin-right:12px !important;
 vertical-align:middle !important;
 background:
 url("/static/couronne_royale.svg")
 center/contain no-repeat !important;
 filter:
 drop-shadow(0 2px 1px #6d4300)
 drop-shadow(0 5px 5px #f4b800aa) !important;
}

html body header a,
html body .topbar a,
html body .site-header a,
html body .app-header a {
 color:#ffdb55 !important;
}

/* Titres */
html body main h1,
html body main h2,
html body main h3 {
 color:#141008 !important;
 font-weight:800;
}

/* Cartes */
html body .card,
html body .panel,
html body .box,
html body .login-card,
html body .form-card {
 background:#fffdf9 !important;
 border-radius:17px !important;
 box-shadow:0 7px 22px #50350025 !important;
}

/* Tableaux */
html body main table {
 border-collapse:separate;
 border-spacing:0;
 width:100%;
}

html body main th {
 background:linear-gradient(
 180deg,#ffe994,#f1bb31) !important;
 color:#171008 !important;
 font-weight:800 !important;
 border-bottom:2px solid #c99500 !important;
 padding:12px !important;
}

html body main td {
 border-bottom:1px solid #e1bb56;
 padding:11px;
}

html body main tbody tr:nth-child(even) {
 background:#fff5cf;
}

/* Champs de saisie */
html body main input:not([type=checkbox]):not([type=radio]),
html body main select,
html body main textarea {
 border:1px solid #c7a04a !important;
 border-radius:10px !important;
 background:#fff !important;
 color:#17120a !important;
 min-height:44px;
}

html body main input:focus-visible,
html body main select:focus-visible,
html body main textarea:focus-visible {
 outline:3px solid #d7a000 !important;
 outline-offset:1px;
}

/* Boutons et actions */
html body main button[type=submit],
html body main input[type=submit],
html body main .btn-primary,
html body main .primary,
html body main a.btn,
html body main .menu a,
html body main .menu-grid a,
html body main .tiles a,
html body main .cards a {
 background:linear-gradient(
 180deg,#33270e,#050505) !important;
 color:#ffdb55 !important;
 border:2px solid #e3aa00 !important;
 border-radius:12px !important;
 box-shadow:
 inset 0 1px 0 #ffe88b77,
 0 4px 9px #0004 !important;
 font-weight:750 !important;
 transition:filter .15s ease;
}

html body main button[type=submit]:hover,
html body main .btn-primary:hover,
html body main .menu a:hover {
 filter:brightness(1.18);
}

html body button:disabled {
 opacity:.55;
 cursor:not-allowed;
}

/* Conservation de la lisibilité */
html body main label {
 color:#20180a;
}

html body main .alert,
html body main .warning,
html body main .notice {
 border-radius:11px;
}

/* Téléphones Android */
@media(max-width:650px) {
 html body header::before,
 html body .topbar::before,
 html body .site-header::before,
 html body .app-header::before {
  width:48px !important;
  height:43px !important;
 }
 html body main {
  max-width:100%;
 }
 html body main table {
  font-size:14px;
 }
}

/* FIN MAISON ROYALE PREMIUM GLOBAL */


/* ROYAL 3D TOUCH GLOBAL */

/* Boutons noirs avec relief doré */
html body main button:not(:disabled),
html body main input[type="submit"]:not(:disabled),
html body main .btn:not(.btn-danger),
html body main .menu a,
html body main .menu-grid a,
html body main .tiles a,
html body main .cards a {
 background:linear-gradient(
  180deg,#3b321e 0%,#171717 35%,#050505 100%
 ) !important;
 color:#ffda4d !important;
 border:2px solid #d9a400 !important;
 border-radius:13px !important;
 box-shadow:
  inset 0 2px 2px #fff3a255,
  inset 0 -3px 4px #000,
  0 5px 0 #806000,
  0 8px 13px #0004 !important;
 text-shadow:0 1px 1px #000;
 font-weight:750 !important;
 cursor:pointer;
 touch-action:manipulation;
 transition:transform .12s ease,
            box-shadow .12s ease,
            filter .12s ease;
}

/* Sensation d'enfoncement au toucher */
html body main button:not(:disabled):active,
html body main input[type="submit"]:not(:disabled):active,
html body main .btn:not(.btn-danger):active,
html body main .menu a:active,
html body main .menu-grid a:active {
 transform:translateY(4px);
 box-shadow:
  inset 0 3px 7px #0009,
  0 1px 0 #806000 !important;
}

/* Survol ordinateur */
@media(hover:hover) {
 html body main button:not(:disabled):hover,
 html body main .btn:not(.btn-danger):hover,
 html body main .menu a:hover {
  filter:brightness(1.17);
 }
}

/* Champs et listes avec relief 3D */
html body main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
html body main select,
html body main textarea {
 background:linear-gradient(
 180deg,#f0eee8 0%,#ffffff 16%,#ffffff 100%
 ) !important;
 color:#17120a !important;
 border:1.5px solid #b98a16 !important;
 border-radius:12px !important;
 box-shadow:
  inset 0 3px 5px #00000015,
  0 3px 0 #c69833,
  0 5px 8px #00000012 !important;
 padding:12px 14px;
 min-height:48px;
 max-width:100%;
 box-sizing:border-box;
}

/* Champ actif : bordure dorée */
html body main input:focus-visible,
html body main select:focus-visible,
html body main textarea:focus-visible {
 outline:2px solid #e3ae12 !important;
 outline-offset:2px;
 box-shadow:
  inset 0 2px 4px #00000012,
  0 0 0 4px #ffcf4433,
  0 3px 0 #b98a16 !important;
}

/* Boutons désactivés */
html body main button:disabled,
html body main input[type="submit"]:disabled {
 opacity:.55;
 cursor:not-allowed;
 box-shadow:none !important;
}

/* Écrans tactiles */
@media(max-width:650px) {
 html body main button,
 html body main select,
 html body main input {
  min-height:48px;
 }
}

/* FIN ROYAL 3D TOUCH GLOBAL */

/* MAISON ROYALE — TITRE AGRANDI X3 */
body header strong,
body header .brand,
body header .brand-title,
body header .logo-text,
body .topbar .brand,
body .site-header .brand {
    font-size: 3em !important;
    font-weight: 900 !important;
    color: #ffd447 !important;
    line-height: 1.15 !important;
    text-shadow:
        0 2px 0 #986500,
        0 4px 5px rgba(0,0,0,.65) !important;
}

@media (max-width: 650px) {
    body header strong,
    body header .brand,
    body header .brand-title,
    body header .logo-text {
        font-size: 2em !important;
    }
}
