/* ═══════════════════════════════════════════════════════════════════
   EN-TÊTE UNIQUE — site public ET back-office (V11.1)
   Même barre, même largeur, même marque, même style de menu partout.
   Marque : « MyKollect » en blanc léger, « Or » en turquoise.
   ═══════════════════════════════════════════════════════════════════ */
:root { --mk-w: 1400px; --mk-g: clamp(18px, 3.4vw, 48px); --mk-or: #35d6d9; }
html body.adm { --mk-w: 1320px; }

html body:is(.adm, .nuit) header.entete.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 11, 20, .84) !important;
  border-bottom: 1px solid rgba(167, 235, 236, .13);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
html body:is(.adm, .nuit) header.entete.nav .in.nav-in {
  width: min(100% - 2 * var(--mk-g), 1400px); max-width: 1400px; /* même largeur en public et en admin : le logo ne se déplace pas */
  margin-inline: auto; padding: 0; box-sizing: border-box;
  min-height: 64px; display: flex; align-items: center; gap: 28px;
}

/* marque */
html body header.entete .marque-mko { display: inline-flex !important; align-items: center; gap: 13px; text-decoration: none; flex: none; }
html body header.entete .mko-logo { width: 38px; height: 38px; object-fit: contain; flex: none; }
html body header.entete .mko-nom { display: flex; flex-direction: column; font-family: 'Montserrat', sans-serif; line-height: 1; }
html body header.entete .mko-nom .n { font-size: 1.2rem; font-weight: 300; letter-spacing: .09em; color: #fff; white-space: nowrap; }
html body header.entete .mko-nom .n b { font-weight: 500; color: var(--mk-or); letter-spacing: .09em; }
html body header.entete .mko-nom .n sup { font-size: .55em; font-weight: 400; letter-spacing: 0; margin-left: 2px; color: rgba(255,255,255,.7); vertical-align: super; }
html body header.entete .mko-nom small { font-size: .56rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 6px; }

/* menu : même rendu partout */
html body:is(.adm, .nuit) header.entete.nav .menu { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; margin: 0; }
html body:is(.adm, .nuit) header.entete.nav .menu a,
html body:is(.adm, .nuit) header.entete.nav .menu summary {
  color: #d3e3f0; font-weight: 600; font-size: .92rem; letter-spacing: 0; padding: 10px 15px; border-radius: 12px;
  text-decoration: none; white-space: nowrap; list-style: none;
}
html body:is(.adm, .nuit) header.entete.nav .menu a:hover { background: rgba(99, 230, 226, .1); color: #fff; }
html body:is(.adm, .nuit) header.entete.nav .menu a[aria-current="page"] {
  background: rgba(53, 214, 217, .14); color: #8aeaec; box-shadow: inset 0 -2px 0 var(--mk-or);
}
html body:is(.adm, .nuit) header.entete.nav .nav-droite { display: flex; align-items: center; gap: 8px; margin-left: auto; }
html body:is(.adm, .nuit) header.entete.nav .nav-droite a:not(.btn) { color: #d3e3f0; font-weight: 600; font-size: .9rem; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
html body:is(.adm, .nuit) header.entete.nav .nav-droite a:not(.btn):hover { background: rgba(99, 230, 226, .1); color: #fff; }
html body:is(.adm, .nuit) header.entete.nav .btn.petit { padding: 11px 20px; font-size: .9rem; border-radius: 999px; }

/* back-office : ligne 1 = marque, mode, accès rapides ; ligne 2 = menu du rôle */
@media (min-width: 981px) {
  html body.adm header.entete.nav .in.nav-in { flex-wrap: wrap; row-gap: 0; padding-top: 4px; padding-bottom: 8px; min-height: 0; }
  html body.adm header.entete.nav .in.nav-in > .marque-mko { min-height: 56px; }
  html body.adm header.entete.nav .nav-droite { order: 2; }
  html body.adm header.entete.nav .menu { order: 3; flex: 0 0 100%; margin: 0 -15px; }
  html body.adm header.entete.nav .menu a { padding: 9px 15px; font-size: .9rem; }
}
@media (max-width: 980px) {
  html body:is(.adm, .nuit) header.entete.nav .in.nav-in { flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; min-height: 0; }
  html body header.entete .mko-nom .n { font-size: 1.1rem; }
  html body header.entete .mko-logo { width: 36px; height: 36px; }
}

/* back-office : le contenu a EXACTEMENT la largeur et le bord gauche de l'en-tête */
html body.adm main:not(.etroit) { width: min(100% - 2 * var(--mk-g), var(--mk-w)); max-width: var(--mk-w); margin-inline: auto; padding-inline: 0; box-sizing: border-box; }
html body.adm main.etroit { width: min(100% - 2 * var(--mk-g), 720px); max-width: 720px; margin-inline: auto; padding-inline: 0; box-sizing: border-box; }
html body.adm main { padding-top: 14px; padding-bottom: 60px; }
html body.adm { font-size: 16px; }

/* bouton menu (mobile) : défini ici pour que toutes les pages se comportent pareil, même sans charte.css */
html body header.entete.nav .burger { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(151,190,224,.3); color: #fff; border-radius: 12px; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 980px) {
  html body header.entete.nav .burger { display: inline-flex; }
  html body:is(.adm, .nuit) header.entete.nav .menu,
  html body:is(.adm, .nuit) header.entete.nav .nav-droite { display: none; width: 100%; flex: 0 0 100%; flex-direction: column; align-items: stretch; margin: 0; }
  html body:is(.adm, .nuit) header.entete.nav.ouvert .menu,
  html body:is(.adm, .nuit) header.entete.nav.ouvert .nav-droite { display: flex; }
  html body:is(.adm, .nuit) header.entete.nav .menu a { padding: 13px 14px; font-size: 1rem; }
  html body:is(.adm, .nuit) header.entete.nav .mode-sw { order: 3; width: 100%; }
}

/* ══ V11.3 — ADMIN : TEXTES ET ESPACEMENTS PLUS SERRÉS, EN-TÊTES DE PAGE IDENTIQUES ══ */
html body.adm { font-size: 15px; line-height: 1.5; }
html body.adm main { padding-top: 10px; }
html body.adm .barre { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin: 8px 0 14px; }
html body.adm .barre > div:first-child { min-width: 0; }
html body.adm .barre h1, html body.adm main h1 { font-size: 1.55rem; line-height: 1.15; margin: 0; }
html body.adm .eyebrow-c { font-size: .7rem; margin: 0 0 3px; letter-spacing: .14em; }
html body.adm .barre .champ, html body.adm .st-choix .champ, html body.adm .pc-outils .champ { margin: 0; min-width: 0; }
html body.adm:not(.studio) .champ label, html body.adm:not(.studio) label { font-size: .82rem; margin-bottom: 4px; }
html body.adm.studio .champ label { font-size: .82rem; margin-bottom: 4px; }
html body.adm:not(.studio) :is(input:not([type=checkbox],[type=radio],[type=range],[type=file]), select, textarea) { font-size: .92rem; min-height: 38px; padding: 7px 12px; border-radius: 10px; }
html body.adm:not(.studio) textarea { min-height: 84px; }
html body.adm.studio .st-choix :is(select) { font-size: .92rem; min-height: 38px; padding: 7px 12px; border-radius: 10px; }
html body.adm .btn { font-size: .88rem; min-height: 38px; padding: 7px 16px; }
html body.adm .btn.petit { min-height: 32px; padding: 5px 12px; font-size: .82rem; }
html body.adm .carte { padding: 16px 20px; margin-bottom: 12px; border-radius: 16px; }
html body.adm .carte h2 { font-size: 1.12rem; margin: 0 0 6px; }
html body.adm .carte h3 { font-size: .98rem; margin: 10px 0 6px; }
html body.adm .aide, html body.adm .carte p { font-size: .86rem; line-height: 1.5; }
html body.adm .carte p { margin: 0 0 8px; }
html body.adm table { font-size: .86rem; }
html body.adm :is(th, td) { padding: 8px 10px; }
html body.adm .tabs-pl button, html body.adm .st-onglets button { font-size: .86rem; padding: 7px 16px; }
html body.adm .st-choix { gap: 12px; align-items: flex-end; }
html body.adm .st-choix .btn { white-space: nowrap; }
html body.adm .pc-aide { font-size: .84rem; margin-top: 10px; }
html body.adm .champ { margin-bottom: 10px; }
html body.adm .barre .champ, html body.adm .st-choix .champ { margin-bottom: 0; }
html body.adm .carte > .champ:last-child { margin-bottom: 0; }
html body.adm .carte .champ + .champ { margin-top: 0; }
html body.adm:not(.studio) form label:not(.coche):not(.btn) { display: block; margin-top: 12px; }
html body.adm form :is(.ligne2, .grille2, .deux) label { margin-top: 12px; }
html body.adm form > label:first-child, html body.adm .carte form label:first-child { margin-top: 4px; }
/* Sous-titre de page (identique partout) + lien « Nouvelle expérience » de la zone droite */
html body.adm .sous-titre { margin: 5px 0 0; font-size: .88rem; line-height: 1.45; color: #9db1c9; font-weight: 400; max-width: 80ch; }
html body.adm header.entete.nav .nav-droite a.nav-nouveau:not(.btn) { background: var(--mk-or, #35d6d9); color: #06222a; font-weight: 800; border-radius: 999px; padding: 7px 14px; font-size: .85rem; white-space: nowrap; }
html body.adm header.entete.nav .nav-droite a.nav-nouveau:not(.btn):hover { filter: brightness(1.08); text-decoration: none; }
/* Vignettes d'expérience du back-office : plus grandes, nettes et régulières */
html body.adm .ligne-ev { grid-template-columns: 128px minmax(0, 1fr) auto; }
html body.adm .ligne-ev .vign { width: 128px; height: 76px; border-radius: 12px; background-size: cover; background-position: center; border: 1px solid rgba(139, 190, 225, .22); box-sizing: border-box; }
html body.adm .xp .vign { width: 72px; height: 48px; background-size: cover; background-position: center; border: 1px solid rgba(139, 190, 225, .22); box-sizing: border-box; }

/* Mobile : le menu ouvert flotte au-dessus de la page au lieu de la pousser vers le bas */
@media (max-width: 980px) {
  html body header.entete.nav.ouvert { z-index: 300; }
  html body header.entete.nav.ouvert > .in {
    position: absolute; top: 0; left: 0 !important; right: 0; width: 100% !important; margin: 0 !important; max-width: none !important; z-index: 300; box-sizing: border-box; padding-inline: 18px !important;
    max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    background: #050d18; border-bottom: 1px solid rgba(151,190,224,.28); box-shadow: 0 24px 50px rgba(0,0,0,.55);
  }
}

/* En-tête identique sur toutes les pages : même police partout (sinon les boutons changent de largeur et « bougent » d'une page à l'autre), fixé en haut */
html body header.entete, html body header.entete :is(a, button, summary, span, small, div) { font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html body header.entete.nav { position: -webkit-sticky; position: sticky; top: 0; z-index: 200; }

/* V11.27 : réserve la place de la barre de défilement sur toutes les pages, pour que l'en-tête et les boutons ne bougent pas d'une page à l'autre */
html { scrollbar-gutter: stable; }

/* V11.27 : l'en-tête est identique sur toutes les pages (public et back-office) : même largeur de conteneur, même graisse de bouton */
html body header.entete .nav-droite .btn, html body header.entete .nav-droite a { font-weight: 700; }
@media (min-width: 1025px) { html body header.entete .marque-mko { min-width: 204px; } }

/* ── V11.31 : barre d'expérience et 4 onglets (Fiche, Production, Régie, Suivi) ── */
.ctx { width: min(100% - 2 * var(--mk-g, 24px), 1400px); margin: 0 auto; padding: 14px 0 0; box-sizing: border-box; }
.ctx-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ctx-exp { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 10px; flex: 1 1 340px; min-width: 0; }
.ctx-exp label { flex: 0 0 100%; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #35d6d9; }
.ctx-exp select { flex: 1 1 220px; min-width: 0; max-width: 420px; font-weight: 700; }
.ctx-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(151,190,224,.2); flex: 0 1 auto; max-width: 100%; }
.ctx-tabs a { flex: 1 1 auto; text-align: center; text-decoration: none; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: #c9d9ec; white-space: nowrap; }
.ctx-tabs a:hover { color: #fff; background: rgba(255,255,255,.06); }
.ctx-tabs a.on { background: #35d6d9; color: #06222a; }
.ctx-tabs a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.ctx-sous { margin-top: 10px; border-bottom: 1px solid rgba(151,190,224,.18); }
.ctx-sous .ctx-in { justify-content: flex-start; gap: 4px 6px; }
.ctx-sous a { text-decoration: none; padding: 10px 14px; font-weight: 700; font-size: .92rem; color: #a9bfd6; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ctx-sous a:hover { color: #fff; }
.ctx-sous a.on { color: #fff; border-color: #35d6d9; }
body.avec-ctx { --ctx: 1; }
body.avec-ctx.adm #tabs:not(.sous), body.avec-ctx #tabsRegie { display: none; }
body.avec-ctx .barre .eyebrow-c { display: none; }
@media (max-width: 640px) {
  .ctx { padding-top: 10px; }
  .ctx-exp select { max-width: none; }
  .ctx-tabs { width: 100%; }
  .ctx-tabs a { padding: 11px 6px; flex: 1 1 0; font-size: .9rem; }
  .ctx-sous .ctx-in { flex-wrap: wrap; }
  .ctx-sous { margin-top: 6px; }
  .ctx-sous .ctx-in { gap: 0 2px; }
  .ctx-sous a { padding: 9px 8px; font-size: .84rem; }
}
.ctx-sous3 { margin-top: 0; background: rgba(53,214,217,.05); }
.tabs-pl[hidden] { display: none !important; }

.ctx-bientot { margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(232,163,61,.55); color: #e8a33d; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* Menu public à 7 entrées : reste sur une seule ligne entre 981 et 1240 px */
@media (min-width: 981px) and (max-width: 1240px) {
  html body.nuit header.entete.nav .menu { flex-wrap: nowrap; gap: 0; }
  html body.nuit header.entete.nav .menu a { padding: 9px 8px; font-size: .84rem; white-space: nowrap; }
  html body.nuit header.entete.nav .marque-mko { min-width: 0; }
  html body.nuit header.entete.nav .nav-droite .btn { padding: 9px 12px; font-size: .84rem; white-space: nowrap; }
}
@media (min-width: 981px) and (max-width: 1100px) {
  html body.nuit header.entete.nav .mko-nom small { display: none; }
  html body.nuit header.entete.nav .mko-nom .n { font-size: .95rem; }
  html body.nuit header.entete.nav .menu a { padding: 9px 6px; font-size: .8rem; }
}

/* V12.70 : menu du back-office sur une seule ligne en grand écran */
@media (min-width: 1000px){html body.adm header.entete.nav .menu{gap:2px}html body.adm header.entete.nav .menu a{padding:9px 11px;font-size:.86rem}}
