/*
 * Signature Glory™ — habillage du bureau (novembre 2026).
 * Référence : écran « Dépôt et contrôle ». Superposé à app.css, activé par la classe « glory » sur <html>.
 * Il ne change ni les données, ni les textes, ni les droits : seulement l'apparence.
 * Décor : drapé prune au foyer lumineux (haut à droite) et rappel discret (bas du menu). Toujours derrière le contenu,
 * jamais devant un texte ou une commande ; un fond uni de repli est prévu si les images manquent.
 */
html.glory {
  --g-sidebar: #2E0F2B;
  --g-prune: #4A1942;
  --g-ink: #452235;
  --g-canvas: #FAF5EF;
  --g-panel: #FCF7F2;
  --g-field: #F1E9EC;
  --g-champagne: #C2A76E;
  --g-sub: #7B2468;
  --g-border: color-mix(in srgb, var(--g-champagne) 45%, transparent);
  --g-shadow: 0 6px 16px rgb(46 15 43 / 11%);
  --texte: var(--g-ink);
  --principale: var(--g-prune);
  --accent: var(--g-champagne);
  --fond: var(--g-canvas);
  --texture: none;
  /* Décor du thème : interchangeable (autre image, ou « none ») ; jamais écrit en dur dans une page. */
  --glory-foyer: url(/assets/glory/bandeau-satin.webp);
  --glory-rappel: url(/assets/glory/rappel-satin-or.webp);
}
/* Glory = prune (référence). Déclinaison aux couleurs d'une autre palette : uniquement si la personne la demande (case « Apparence »). */
html.glory.glory--palette[data-palette]:not([data-palette="nacre-lumiere"]) {
  --g-sidebar: var(--palette-texte);
  --g-prune: var(--palette-principale);
  --g-ink: var(--palette-texte);
  --g-canvas: var(--palette-fond);
  --g-panel: var(--palette-fond);
  --g-field: var(--palette-surface);
  --g-sub: var(--palette-principale);
}
html.glory body { background: var(--g-canvas); }
html.glory body::before { display: none; }

/* --- Structure : menu à gauche, barre haute, contenu --- */
@media (min-width: 761px) {
  html.glory .app { grid-template-columns: 308px minmax(0, 1fr); }
}
html.glory .sidebar {
  background: var(--g-sidebar); color: #fff; border-right: 0; backdrop-filter: none; box-shadow: none; padding: 1.6rem 1rem 0;
  display: flex; flex-direction: column; overflow-y: auto;
}
/* Rappel lumineux : placé APRÈS le menu, jamais derrière les libellés. */
/* Satin et or en bas à gauche (même visuel fourni, recadré et retourné à l'identique, sans agrandissement) : source native 700 px. */
html.glory .sidebar { position: sticky; }
/* Décor en fond du menu, accroché au bas du contenu (défile avec lui) : il passe sous les derniers libellés, même quand le menu défile. */
html.glory .sidebar {
  background-color: var(--g-sidebar);
  background-image:
    linear-gradient(to bottom, var(--g-sidebar) 0, var(--g-sidebar) 30%, color-mix(in srgb, var(--g-sidebar) 40%, transparent) 80%),
    var(--glory-rappel, none);
  background-repeat: no-repeat, no-repeat;
  background-attachment: local, local;
  background-position: left bottom, left 0 bottom calc(var(--rap-dy, 130px) * -1);
  background-size: 100% var(--rap-h, 480px), var(--rap-w, 640px) auto;
}
html.glory nav a { text-shadow: 0 1px 4px color-mix(in srgb, var(--g-sidebar) 85%, transparent); }
html.glory .sidebar > * { position: relative; z-index: 1; }html.glory .brandmark__name { color: #fff; font-size: 2rem; font-weight: 500; }
html.glory .brandmark__sub { color: rgb(255 255 255 / 82%); opacity: 1; letter-spacing: .3em; font-size: .62rem; }
html.glory nav a { color: #fff; font-size: 1.1rem; border-radius: 14px; padding: .7rem .9rem; border: 1px solid transparent; display: flex; align-items: center; gap: .85rem; }
html.glory nav a svg { color: var(--g-champagne); }
html.glory nav a small { color: rgb(255 255 255 / 86%); opacity: 1; }
html.glory nav a:hover:not([aria-current="page"]) { background: rgb(255 255 255 / 8%); }
html.glory nav a[aria-current="page"] { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 38%); box-shadow: none; color: #fff; }
html.glory nav a:focus-visible, html.glory .topbar :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html.glory .pastille-blocages { color: #F6D58A; font-weight: 600; }

html.glory .main { position: relative; isolation: isolate; overflow-x: clip; }
html.glory .main::before { /* bandeau haut uni, sous le drapé */
  /* fond uni derrière le bandeau, dégradé vers l'ivoire : aucun bord net */
  content: ""; position: absolute; inset: 0 0 auto 0; height: var(--band-h); z-index: -2; pointer-events: none;
  background: linear-gradient(to bottom, var(--g-sidebar) 0, var(--g-sidebar) 45%, transparent 92%);
}
html.glory .main::after { /* satin lumineux (visuel fourni) : décoratif, derrière tout le contenu ; le foyer se loge dans la barre haute, le titre reste dégagé */
  /* Bandeau pleine largeur : le drapé de satin ET l'or, comme le visuel attendu (image entière en largeur, jamais agrandie). */
  content: ""; position: absolute; top: 0; right: 0; width: min(100%, var(--satin-max)); height: var(--band-h); z-index: -1; pointer-events: none;
  background: var(--glory-foyer, none) 50% var(--satin-y) / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 94%);
}
/* --satin-y: 100% = on montre le bas de l'image, là où le satin est le plus visible ; l'or n'est qu'un éclat sur le tissu. */
html.glory { --band-h: 210px; --satin-max: 2000px; --satin-y: 100%; }
html.glory .topbar { background: transparent; backdrop-filter: none; border-bottom: 0; min-height: 168px; align-items: flex-start; color: #fff; padding: .9rem 1.7rem .6rem 1.4rem; }
html.glory .brandpick { color: #fff; font-size: .95rem; }
html.glory .brandpick select { background: rgb(255 255 255 / 8%); color: #fff; border: 1px solid rgb(255 255 255 / 32%); border-radius: 10px; font-size: 1.05rem; padding: .45rem .7rem; }
html.glory .brandpick select option { color: #2B1A2A; background: #fff; }
html.glory .conseil-declencheur { color: #fff; border: 1px solid var(--g-champagne); background: color-mix(in srgb, var(--g-sidebar) 45%, transparent); padding: .6rem 1.4rem; font-size: 1.05rem; }
html.glory .conseil-declencheur:hover { background: rgb(255 255 255 / 12%); }
html.glory .topbar .link { color: #fff; }
html.glory .menu-toggle { color: #fff; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 32%); border-radius: 10px; padding: .4rem .8rem; }
html.glory main { padding: 1rem 27px 1.75rem 26px; background: transparent; }
html.glory .foot { border-top: 0; text-align: right; color: var(--g-ink); opacity: .85; }

/* --- Titres et textes --- */
html.glory h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.08; color: var(--g-prune); margin: 0 0 .2rem; }
html.glory .sous-titre-serif { font-family: var(--sans); font-size: 1.15rem; color: var(--g-sub); margin: 0 0 1.1rem; }
html.glory .lede { color: var(--g-ink); }
html.glory h2 { color: var(--g-prune); font-weight: 600; }
html.glory body, html.glory main { color: var(--g-ink); }

/* --- Cartes opaques ivoire, filet champagne, ombre douce vers le bas --- */
html.glory .card, html.glory .carte-verre, html.glory .panneau-carte, html.glory .conseil-carte, html.glory .etape,
html.glory .depot-page .carte-verre {
  background: var(--g-panel); backdrop-filter: none; border: 1px solid var(--g-border); border-radius: 20px; box-shadow: var(--g-shadow);
}
html.glory .etape { grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 1.4rem 1.3rem; margin-bottom: 1.1rem; }
html.glory .etape--active { border-color: var(--g-champagne); box-shadow: 0 8px 18px rgb(46 15 43 / 15%); }
html.glory .etape__corps h2 { font-size: clamp(1.7rem, 2.6vw, 2rem); line-height: 1.2; margin: 0 0 .25rem; }
html.glory .etape__corps > p { font-size: 1.1rem; }
html.glory .etape__numero { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; width: 3rem; height: 3rem; font-size: 1.7rem; font-weight: 600; color: var(--g-prune); background: linear-gradient(145deg, #EBD9B8, #CDB07A); box-shadow: 0 3px 8px rgb(46 15 43 / 20%); }
html.glory .etape--active .etape__numero { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--g-prune) 78%, #fff), var(--g-prune) 70%); color: #EDD58A; box-shadow: 0 3px 10px rgb(46 15 43 / 35%); }

/* --- Boutons : primaire prune, secondaire contour, désactivé clairement distinct --- */
html.glory .btn { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; min-height: 44px; border-radius: 12px; padding: .6rem 1.25rem; background: #fff; color: var(--g-prune); border: 1.5px solid var(--g-prune); box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; text-decoration: none; }
html.glory .btn--primary { background: var(--g-prune); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgb(46 15 43 / 30%); }
html.glory .btn[disabled], html.glory .btn[aria-disabled="true"] { opacity: 1; background: #EBE3E5; color: #7A6B76; border: 1px solid #D9CED3; box-shadow: none; cursor: not-allowed; }
html.glory .btn--filtre { border-radius: 999px; }
html.glory .btn--filtre[aria-pressed="true"] { background: var(--g-prune); color: #fff; }
html.glory .actions--centre { justify-content: center; }
html.glory .etape--active .actions { position: absolute; top: 1.15rem; right: 1.4rem; margin: 0; }
html.glory .etape { position: relative; }
@media (min-width: 901px) { html.glory .etape--active .etape__corps > p:first-of-type { max-width: calc(100% - 330px); } }
@media (max-width: 900px) { html.glory .etape--active .actions { position: static; } }
html.glory .note-rassurante, html.glory .lots-deja summary { font-family: var(--sans); font-style: normal; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; color: var(--g-ink); }

/* --- Menus repliables en barres de champ --- */
html.glory .pub-details, html.glory .lots-deja { background: var(--g-field); border: 1px solid var(--g-border); border-radius: 12px; margin: .55rem 0 0; padding: 0 1rem; }
html.glory .lots-deja { background: var(--g-panel); margin-top: 1.1rem; box-shadow: var(--g-shadow); }
html.glory .pub-details summary, html.glory .lots-deja summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 46px; font-size: 1.08rem; padding: 0; }
html.glory .pub-details summary::-webkit-details-marker, html.glory .lots-deja summary::-webkit-details-marker { display: none; }
html.glory .pub-details summary::after, html.glory .lots-deja summary::after { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
html.glory details[open] > summary::after { transform: rotate(180deg); }
html.glory .pub-details[open], html.glory .lots-deja[open] { padding-bottom: .6rem; }

/* --- Choix des réseaux --- */
html.glory .reseaux-depot__choix { gap: 1rem 1.4rem; }
html.glory .case--reseau { background: var(--g-field); border: 1px solid var(--g-border); border-radius: 12px; padding: .65rem 1rem; font-size: 1.1rem; gap: .7rem; }
html.glory input[type="checkbox"], html.glory input[type="radio"] { accent-color: var(--g-prune); width: 1.2rem; height: 1.2rem; }
html.glory .pill { background: #E4F3E4; color: #1D5A2B; border: 0; padding: .15rem .8rem; }
html.glory .pill--A_RELIRE { background: #F7ECD2; color: #6B4600; }
html.glory .pill--A_TRAITER, html.glory .pill--A_RECONNECTER { background: #F8E1E1; color: #8E2020; }
html.glory .pill--PROGRAMME { background: #EADFF0; color: var(--g-prune); }
html.glory .pill--A_VENIR, html.glory .pill--DISPONIBLE_BIENTOT, html.glory .pill--AUCUN_COMPTE { background: #EFE9EC; color: var(--g-ink); opacity: 1; }

html.glory h1::after, html.glory h1::before { display: none; }
html.glory .carte-lien-creation { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.2rem; margin-bottom: 1rem; }
html.glory .carte-lien-creation p { margin: 0; }

/* --- Étape 3 : état vide, actions, note --- */
html.glory .depot-vide { text-align: center; display: grid; justify-items: center; gap: .2rem; padding: .4rem 0 .6rem; }
html.glory .depot-vide svg { color: var(--g-prune); width: 56px; height: 56px; margin-bottom: .25rem; }
html.glory .depot-vide .msg { background: transparent; color: var(--g-prune); font-weight: 600; font-size: 1.1rem; padding: 0; margin: 0; }
html.glory .depot-vide p { margin: 0; }
html.glory .note-rassurante { text-align: center; margin: .8rem 0 0; font-size: .98rem; }
html.glory .msg--info { background: color-mix(in srgb, var(--g-prune) 7%, #fff); color: var(--g-ink); border-radius: 12px; }
html.glory .msg--ok { background: #E4F3E4; color: #1D5A2B; }
html.glory .msg--erreur { background: #F8E1E1; color: #8E2020; border-radius: 12px; }
html.glory input[type="text"], html.glory input[type="date"], html.glory input[type="time"], html.glory input[type="number"], html.glory select, html.glory textarea { background: var(--g-field); border: 1px solid var(--g-border); border-radius: 10px; color: var(--g-ink); }

/* --- Conseiller (panneau) : mêmes surfaces --- */
html.glory .conseil-panneau { background: var(--g-panel); border-left: 1px solid var(--g-border); }

/* --- Petits écrans : décor réduit, jamais devant le titre ni la marque ; pas de défilement horizontal --- */
@media (max-width: 760px) {
  /* Téléphone : le menu est replié ; « Menu » l'ouvre par-dessus la page, on le referme d'un geste ou en choisissant une rubrique. */
  html.glory .sidebar { background-image: none; display: none; }
  html.glory .sidebar.open { display: flex; position: fixed; inset: 0; z-index: 40; height: auto; padding-bottom: 1.5rem; overscroll-behavior: contain; }
  html.glory .menu-fermer { display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; min-height: 44px; padding: .4rem 1rem; margin-bottom: .4rem; font: inherit; color: #fff; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 32%); border-radius: 10px; }
  html.glory .menu-toggle { min-height: 44px; }
  html.glory .topbar { min-height: 0; align-items: center; gap: .6rem; }
  html.glory nav a { padding: .6rem .9rem; }
  html.glory { --band-h: 190px; }
  html.glory .main::before { display: none; }
  html.glory .topbar { padding: .6rem 1rem; background: var(--g-sidebar); flex-wrap: wrap; }
  html.glory .case--reseau { width: 100%; flex-wrap: wrap; }
  html.glory .reseaux-depot__choix { gap: .6rem; }
  html.glory main { padding: .8rem 16px 1.5rem; }
  html.glory .etape { grid-template-columns: 2.6rem minmax(0, 1fr); padding: 1rem; }
  html.glory .etape__numero { width: 2.6rem; height: 2.6rem; font-size: 1.45rem; }
  html.glory .btn { width: 100%; }
  html.glory .actions--centre { flex-direction: column; align-items: stretch; }
}

/* ===== Passe ergonomique (5 novembre) : menu regroupé, panneaux plus bas, un seul « Créer », identité du logiciel ===== */
html.glory .brandmark { margin-bottom: .9rem; }
html.glory .brandmark__name { font-size: 1.85rem; line-height: 1.05; }
html.glory .marque-chip { display: grid; gap: .1rem; margin: 0 0 .5rem; padding: .55rem .8rem; border-radius: 12px; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 20%); }
html.glory .marque-chip__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--g-champagne); }
html.glory .marque-chip strong { font-size: 1.05rem; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
html.glory .nav__groupe { margin: 0 0 .15rem; }
html.glory .nav__groupe + .nav__groupe { margin-top: .55rem; padding-top: .55rem; border-top: 1px solid rgb(255 255 255 / 14%); }
html.glory .nav__titre { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--g-champagne); font-weight: 600; text-shadow: 0 0 6px color-mix(in srgb, var(--g-sidebar) 95%, transparent), 0 0 12px color-mix(in srgb, var(--g-sidebar) 90%, transparent), 0 1px 2px var(--g-sidebar); margin: 0 0 .15rem .9rem; }
html.glory nav a { padding: .36rem .9rem; font-size: 1.02rem; }
html.glory .nav__groupe + .nav__groupe { margin-top: .4rem; padding-top: .4rem; }
html.glory .brandmark { margin-bottom: .6rem; }
html.glory .marque-chip { margin-bottom: .35rem; padding: .4rem .8rem; }
/* Format / Type : le format, plus long, reçoit la plus grande part ; un libellé trop long est abrégé proprement. */
html.glory .champ--ligne { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
html.glory select { text-overflow: ellipsis; }
@media (max-width: 640px) { html.glory .champ--ligne { grid-template-columns: 1fr; } }
html.glory nav a small { font-size: .78rem; }

/* Panneaux plus bas : mêmes proportions, moins de vide */
html.glory main { padding-top: .6rem; }
html.glory h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
html.glory .sous-titre-serif { margin-bottom: .7rem; font-size: 1.08rem; }
html.glory .etape { padding: .85rem 1.3rem .9rem; margin-bottom: .75rem; }
html.glory .etape__corps h2 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); margin-bottom: .1rem; }
html.glory .etape__corps > p { font-size: 1.02rem; margin: 0 0 .4rem; }
html.glory .etape__numero { width: 2.7rem; height: 2.7rem; font-size: 1.5rem; }
html.glory .etape { grid-template-columns: 2.7rem minmax(0, 1fr); gap: .9rem; }
html.glory .pub-details summary, html.glory .lots-deja summary { min-height: 40px; font-size: 1rem; }
html.glory .pub-details { margin-top: .4rem; }
html.glory .case--reseau { padding: .4rem .9rem; font-size: 1.02rem; }
html.glory .depot-vide { padding: 0 0 .3rem; }
html.glory .depot-vide svg { width: 38px; height: 38px; margin-bottom: 0; }
html.glory .note-rassurante { margin: .5rem 0 0; font-size: .92rem; }
html.glory .btn { min-height: 42px; padding: .45rem 1.1rem; }
html.glory .carte-lien-creation { padding: .45rem 1rem; margin-bottom: .7rem; }
html.glory .lots-deja { margin-top: .75rem; }
html.glory .foot { padding: .6rem 1.5rem; }

/* « Créer un contenu » : un seul bouton, deux choix */
html.glory .menu-creer { position: relative; }
html.glory .menu-creer > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
html.glory .menu-creer > summary::-webkit-details-marker { display: none; }
html.glory .menu-creer > summary::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat; }
html.glory .menu-creer__liste { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 210px; background: #fff; border: 1px solid var(--g-border); border-radius: 12px; box-shadow: 0 10px 24px rgb(46 15 43 / 22%); padding: .3rem; display: grid; }
html.glory .menu-creer__liste a { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 8px; color: var(--g-prune); text-decoration: none; font-size: 1.02rem; }
html.glory .menu-creer__liste a:hover, html.glory .menu-creer__liste a:focus-visible { background: var(--g-field); }
@media (max-width: 760px) {
  html.glory .menu-creer__liste { position: static; margin-top: .4rem; }
  html.glory .nav__groupe + .nav__groupe { margin-top: .4rem; }
}

/* Le sous-titre ne passe jamais sur le drapé : il se replie avant d'atteindre le foyer lumineux. */
html.glory .sous-titre-serif, html.glory main > div > .lede, html.glory main > .lede { max-width: min(560px, 100%); }
@media (max-width: 760px) { html.glory .sous-titre-serif, html.glory main > div > .lede, html.glory main > .lede { max-width: 100%; } }

/* ===== Netteté : jamais d'agrandissement au-delà de la définition utile du fichier =====
   Satin : source native 2000 px de large  -> largeur d'affichage maximale = 2000 / densité de pixels de l'écran.
   Rappel : source native 520 px de large  -> idem (520 / densité). Aucun filtre, aucun flou, aucun scale(). */
@media (min-resolution: 1.75dppx) {
  html.glory { --satin-max: 1000px; }
  html.glory { --rap-w: 320px; --rap-h: 240px; --rap-dy: 65px; }
}
@media (min-resolution: 1.25dppx) and (max-resolution: 1.74dppx) {
  html.glory { --rap-w: 512px; --rap-h: 384px; --rap-dy: 104px; }
}
@media (min-resolution: 2.5dppx) {
  html.glory { --satin-max: 800px; }
  html.glory { --rap-w: 213px; --rap-h: 160px; --rap-dy: 43px; }
}

/* Thèmes : satin recoloré à la couleur du thème, or conservé comme seul accent (une seule famille de couleur par thème). */

/* Décors des thèmes (V2 du 7/11) : taille d'origine, jamais étirés. Haut = foyer, bas = rappel sous le menu. */
html.glory.glory--palette[data-palette]:not([data-palette="nacre-lumiere"]) { --satin-max: 850px; --rap-w: 320px; --rap-h: 244px; --rap-dy: 0px; }
html.glory.glory--palette[data-palette]:not([data-palette="nacre-lumiere"]) .main::after { background-size: auto; background-position: right top;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, #000 0, #000 52%, transparent 94%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, #000 0, #000 52%, transparent 94%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
html.glory.glory--palette[data-palette]:not([data-palette="nacre-lumiere"]) .sidebar { background-size: 100% var(--rap-h), var(--rap-w) var(--rap-h); }
html.glory.glory--palette[data-palette="sauge-lin"] { --glory-foyer: url(/assets/glory/themes/haut-sauge-lin.webp); --glory-rappel: url(/assets/glory/themes/bas-sauge-lin.webp); --g-champagne: #B59A71; }
html.glory.glory--palette[data-palette="bleu-heritage"] { --glory-foyer: url(/assets/glory/themes/haut-bleu-heritage.webp); --glory-rappel: url(/assets/glory/themes/bas-bleu-heritage.webp); --g-champagne: #B49A68; }
html.glory.glory--palette[data-palette="rose-velours"] { --glory-foyer: url(/assets/glory/themes/haut-rose-velours.webp); --glory-rappel: url(/assets/glory/themes/bas-rose-velours.webp); --g-champagne: #B88779; }
html.glory.glory--palette[data-palette="emeraude-ivoire"] { --glory-foyer: url(/assets/glory/themes/haut-emeraude-ivoire.webp); --glory-rappel: url(/assets/glory/themes/bas-emeraude-ivoire.webp); --g-champagne: #B89B58; }
html.glory.glory--palette[data-palette="sable-cacao"] { --glory-foyer: url(/assets/glory/themes/haut-sable-cacao.webp); --glory-rappel: url(/assets/glory/themes/bas-sable-cacao.webp); --g-champagne: #B58B62; }
html.glory.glory--palette[data-palette="lavande-minerale"] { --glory-foyer: url(/assets/glory/themes/haut-lavande-minerale.webp); --glory-rappel: url(/assets/glory/themes/bas-lavande-minerale.webp); --g-champagne: #A49AAD; }
html.glory.glory--palette[data-palette="lagon-porcelaine"] { --glory-foyer: url(/assets/glory/themes/haut-lagon-porcelaine.webp); --glory-rappel: url(/assets/glory/themes/bas-lagon-porcelaine.webp); --g-champagne: #BEA578; }
html.glory.glory--palette[data-palette="graphite-champagne"] { --glory-foyer: url(/assets/glory/themes/haut-graphite-champagne.webp); --glory-rappel: url(/assets/glory/themes/bas-graphite-champagne.webp); --g-champagne: #B69A72; }
html.glory.glory--palette[data-palette="bordeaux-poudre"] { --glory-foyer: url(/assets/glory/themes/haut-bordeaux-poudre.webp); --glory-rappel: url(/assets/glory/themes/bas-bordeaux-poudre.webp); --g-champagne: #BE9585; }
/* Bordeaux & Poudre : rouge renforcé (menu, boutons, titres) (7/11) ; le décor reste inchangé. */
html.glory.glory--palette[data-palette="bordeaux-poudre"][data-palette] { --g-sidebar: #4F1224; --g-prune: #8C1F3C; --g-ink: #4A1626; --g-sub: #8C1F3C; }

/* ===== « Création de vidéos » : plus d'aération (demande du 13/11) =====
   Un rythme vertical régulier entre les blocs, un fil d'étapes qui respire, une zone de saisie plus haute. */
:is(html, html.glory) .videos-page { display: flex; flex-direction: column; gap: 2.2rem; padding-bottom: 1.5rem; }
:is(html, html.glory) .videos-page > * { margin: 0; }
:is(html, html.glory) .videos-page > h1 { margin-bottom: -1rem; }
:is(html, html.glory) .videos-page .sous-titre-serif { margin: 0; line-height: 1.55; }
:is(html, html.glory) .videos-page .fenetre-prompt { display: flex; flex-direction: column; gap: 1.4rem; }
:is(html, html.glory) .videos-page .fenetre-prompt > * { margin: 0; }
:is(html, html.glory) .videos-page .fenetre-prompt .note-rassurante { text-align: left; font-size: 1rem; line-height: 1.55; }
:is(html, html.glory) .videos-page .etapes-fil { gap: .7rem; margin: 0; }
:is(html, html.glory) .videos-page .etapes-fil > i { flex-basis: 2.2rem; }
:is(html, html.glory) .videos-page .fenetre-prompt textarea { min-height: 13rem; padding: 1rem 1.1rem; line-height: 1.6; }
:is(html, html.glory) .videos-page .pub-details { margin: 0; padding-inline: 1.15rem; }
:is(html, html.glory) .videos-page .pub-details[open] { padding-bottom: 1.1rem; }
:is(html, html.glory) .videos-page .pub-details .champ { margin-top: .9rem; }
:is(html, html.glory) .videos-page .pub-details .actions { margin-top: 1.1rem; }
:is(html, html.glory) .videos-page .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
:is(html, html.glory) .videos-page .mes-videos { display: flex; flex-direction: column; gap: 1rem; padding-top: .4rem; }
:is(html, html.glory) .videos-page .mes-videos h2 { margin: 0 0 .9rem; }
:is(html, html.glory) .videos-page .mes-videos .msg { padding: 1.1rem 1.3rem; margin: 0; }
:is(html, html.glory) .videos-page .lots-liste { gap: .9rem; }
:is(html, html.glory) .videos-page .note-rassurante:last-child { text-align: center; margin-top: .4rem; line-height: 1.6; }

/* Logo du bureau (13/11) : un sceau propre, à la place de l'icône générique. */
.brandmark__logo { width: 44px; height: 44px; margin-bottom: .6rem; border-radius: 12px; }

/* Lots de variantes : section « Moteur Client–Marché–Produit » */
:is(html, html.glory) .moteur { display: flex; flex-direction: column; gap: 1.1rem; }
:is(html, html.glory) .moteur h2, :is(html, html.glory) .moteur h3 { margin: 0; }
:is(html, html.glory) .moteur-etat { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
:is(html, html.glory) .moteur-manque { margin: 0; padding-left: 1.2rem; }
:is(html, html.glory) .moteur-manque:empty { display: none; }
:is(html, html.glory) .moteur-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
:is(html, html.glory) .moteur-erreur { min-height: 1.1rem; font-size: .85rem; color: var(--glory-warn, #9a5b00); }
:is(html, html.glory) .moteur-critere { padding: .8rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .5); }
:is(html, html.glory) .moteur-critere[hidden] { display: none; }
:is(html, html.glory) .moteur-apercu { display: flex; flex-direction: column; gap: .6rem; }
:is(html, html.glory) .moteur-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid rgba(0, 0, 0, .08); border-radius: 10px; min-width: 0; }
:is(html, html.glory) .moteur-ligne code { overflow-wrap: anywhere; font-size: .85rem; }

/* ===== Passe téléphone (17 novembre) : approuver et programmer d'une main ===== */
@media (max-width: 760px) {
  /* Filtres : des pastilles côte à côte, pas douze boutons empilés avant la première publication. */
  html.glory .filtres-pub { gap: .4rem; margin-bottom: .5rem; }
  html.glory .btn--filtre { width: auto; min-height: 40px; padding: .35rem .85rem; }
  /* Carte d'une publication : toute la largeur pour le texte et les gestes, l'image au-dessus. */
  html.glory .pub-carte, .pub-carte { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  html.glory .pub-carte .vignette, .pub-carte .vignette { width: 7rem; }
  .reprog-une { padding: .8rem; }
  .reprog-une__quand { margin-left: 0; }
  /* Champs : assez hauts pour le doigt ; 16 px pour que le téléphone ne zoome pas tout seul à la saisie. */
  html.glory input[type="text"], html.glory input[type="date"], html.glory input[type="time"], html.glory input[type="number"], html.glory input[type="url"], html.glory input[type="email"], html.glory input[type="password"], html.glory input[type="search"], html.glory input:not([type]), html.glory select, html.glory textarea { min-height: 44px; font-size: 16px; max-width: 100%; box-sizing: border-box; }
  html.glory input[type="checkbox"], html.glory input[type="radio"] { width: 22px; height: 22px; flex: none; }
  html.glory summary { padding-block: .65rem; }
  html.glory .msg { overflow-wrap: anywhere; max-width: 100%; }
  html.glory span.msg { display: inline-block; min-width: 0; }
  html.glory main li:has(> .msg) { flex-wrap: wrap; }
}
html.glory .double-vignette--gardee figcaption .btn, html.glory .double-vignette--gardee figcaption .btn[disabled] { background: #2e7d4f; color: #fff; border-color: transparent; opacity: 1; cursor: default; }
