/* ============================================================
   THÈME UNIQUE ITERACTIF — itx-theme.css  (CŒUR COMMUN)
   ------------------------------------------------------------------
   Source de vérité du rendu Iteractif pour TOUTES les surfaces :
   - Bulwark webmail : iteractif.css = itx-theme.css + itx-skin-webmail.css
   - SPIP dev/www/i3d: perso.css     = itx-theme.css + itx-skin-spip.css
   - Pages statiques : import direct de itx-theme.css
   Édition : patcher LE CŒUR puis re-générer, jamais les copies.
   RÈGLE MARTIN (15/09/2026) : body padding-top = header − 5px,
   padding-bottom = hauteur exacte du pied (section MARGES DU CORPS).
   ============================================================ */

/* ---------- Variables de base (surchargées par le JS) ---------- */
:root {
  --itx-theme: hsl(274, 25%, 46%);        /* fond clair */
  --itx-theme-dark: hsl(274, 50%, 16%);   /* fond sombre */
  --itx-barre: hsl(274, 57%, 13%);        /* barres header/footer */
  --itx-barre-2: hsl(274, 63%, 8%);       /* dégradé barres */
  --itx-accent: hsl(274, 42%, 28%);       /* titre de la carte */
  --itx-color: #613583;                   /* pastille engrenage */
  --itx-tranche: 12px;
  --itx-header-h: 9.5rem;   /* rem = racine 16px → 152px (place pour logo+slogan+badge) */
  --itx-footer-h: 5.4rem;

  /* Positions fixes calculées en rem (évite le piège em-de-l'élément pour position:fixed) */
  --itx-logo-top: 0.5rem;
  --itx-logo-h: 4rem;        /* hauteur logo badge (64px) */
  --itx-slogan-top: calc(var(--itx-logo-top) + var(--itx-logo-h) + 0.5rem); /* 5rem = 80px */
  --itx-badge-top: calc(var(--itx-slogan-top) + 2rem + 0.45rem); /* 7.45rem ≈ 119px */

  /* Mode clair (teinté de la couleur choisie, surchargé par le JS) */
  --itx-light-bg: hsl(274, 30%, 86%);
  --itx-light-bg-2: hsl(274, 40%, 74%);
  --itx-light-barre: hsl(274, 35%, 70%);
  --itx-light-barre-2: hsl(274, 45%, 58%);
  --itx-light-accent: hsl(274, 42%, 40%);

  /* Accent SPIP (espace privé) : aligné sur le violet Iteractif */
  --spip-color-theme: #613583;
  --spip-color-theme-dark: #4a2763;
  --spip-color-theme-darker: #3a1e4e;
  --spip-color-theme-darkest: #2a1538;
  --spip-color-theme-light: #8a5aa8;
  --spip-color-theme-lighter: #a87fc0;
  --spip-color-theme-lightest: #c9a8d8;
}
#icone_travaux { display: none !important; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--itx-theme);
  background: radial-gradient(circle, var(--itx-theme) 20%, var(--itx-theme-dark) 100%);
  background-color: var(--itx-theme-dark);
  background-attachment: fixed;
}

/* ============================================================
   MARGES DU CORPS — RÈGLE MARTIN (15/09/2026), TOUTES surfaces :
   padding-top    = hauteur de l'en-tête − 5 px   (liseré 5px visible)
   padding-bottom = hauteur du pied de page (exacte, --itx-footer-h)
   ============================================================ */
body {
  padding-top: calc(var(--itx-header-h) - 5px);
  padding-bottom: var(--itx-footer-h);
}

/* ---------- Sélecteur de couleur : COMMUN (SPIP + Bulwark) ---------- */
/* ============================================================
   SÉLECTEUR DE COULEUR (engrenage + panneau) — GLOBAL
   ============================================================ */

/* ---------- Onglets du panneau unifié (16/09/2026) ----------
   RÈGLE MARTIN : « refait intégralement le menu couleurs/thèmes/comptes
   sur TOUS les sites et le webmail ». Un seul panneau, trois onglets,
   identique partout. Structure posée par itx-menu.js. */
.itx-tabs {
  display: flex;
  gap: 0.2em;
  padding: 0.2em;
  margin-bottom: 0.85em;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7em;
}
.itx-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 0.3em;
  font-size: 0.84em;
  font-family: inherit;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  border-radius: 0.5em;
  transition: background 0.15s ease, color 0.15s ease;
}
.itx-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.itx-tab.itx-tab-actif,
.itx-tab[aria-selected="true"] {
  background: var(--itx-color, #613583);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.itx-tab-panel[hidden] { display: none; }

/* Onglet Compte : réutilise .itx-account-item (déjà stylé plus haut). */
.itx-tab-panel[data-panel="compte"] .itx-account-head {
  padding: 0 0.2em 0.55em;
  margin-bottom: 0.4em;
}
.itx-tab-panel[data-panel="compte"] .itx-account-item { margin: 0.15em 0; }
.itx-tab-panel[data-panel="compte"] #itx-acct-logout {
  color: #ffcdd2;
  background: rgba(255, 82, 82, 0.10);
  border-left-color: #ff8a80;
}
.itx-tab-panel[data-panel="compte"] #itx-acct-logout:hover {
  background: rgba(255, 82, 82, 0.22);
  color: #ffb3ab;
}
.itx-tab-panel[data-panel="compte"] .itx-account-item svg { color: #c084fc; }
.itx-tab-panel[data-panel="compte"] #itx-acct-logout svg { color: #ff8a80; }

/* ============================================================ */

/* Bouton engrenage : en haut à droite */
.itx-settings-btn {
  position: fixed;
  top: 0.55em;
  right: 0.9em;
  z-index: 10001;
  width: 2.4em;
  height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.8em;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.itx-settings-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}
.itx-settings-btn svg { width: 1.5em; height: 1.5em; }
.itx-settings-btn .itx-swatch {
  position: absolute;
  bottom: 0.2em;
  right: 0.2em;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--itx-color, #613583);
  border: 2px solid rgba(0, 0, 0, 0.6);
}

/* Menu compte (rouage → menu complet, espace privé ET public connecté)
   Teinté avec la couleur du thème + look moderne (gradient, ombre colorée) */
.itx-account-menu {
  position: fixed;
  top: 3.4em;
  right: 0.9em;
  z-index: 10002;
  width: 17em;
  padding: 0.4em;
  color: #eee;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--itx-color, #613583) 32%, #16121e) 0%,
    color-mix(in srgb, var(--itx-color, #613583) 14%, #0e0b13) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--itx-color, #613583) 45%, rgba(255,255,255,0.12));
  border-radius: 1.2em;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 6px 20px color-mix(in srgb, var(--itx-color, #613583) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: itx-pop 0.18s ease;
  transform-origin: top right;
}
.itx-account-menu[hidden] { display: none; }
.itx-account-head {
  padding: 0.55em 0.7em 0.5em;
  border-bottom: 1px solid color-mix(in srgb, var(--itx-color, #613583) 35%, rgba(255,255,255,0.1));
  margin-bottom: 0.35em;
}
.itx-account-name {
  font-weight: 600;
  font-size: 0.95em;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.itx-account-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.6em;
  width: 100%;
  padding: 0.6em 0.7em 0.6em 0.6em;
  margin: 0.1em 0;
  font-size: 0.92em;
  font-family: inherit;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: left;
  color: #f0eaf7;
  background: color-mix(in srgb, var(--itx-color, #613583) 16%, transparent);
  border: none;
  border-left: 3px solid color-mix(in srgb, var(--itx-color, #613583) 70%, #fff);
  border-radius: 0.5em 0.7em 0.7em 0.5em;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline-offset: 2px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.itx-account-item:hover,
.itx-account-item:focus {
  background: color-mix(in srgb, var(--itx-color, #613583) 40%, transparent);
  color: #fff;
  transform: translateX(2px);
}
.itx-account-item svg { width: 1.2em; height: 1.2em; flex: 0 0 auto; color: #c084fc; opacity: 0.95; }
#itx-account-logout { color: #ffcdd2; background: rgba(255, 82, 82, 0.10); border-left-color: #ff8a80; }
#itx-account-logout:hover { background: rgba(255, 82, 82, 0.22); color: #ffb3ab; }
#itx-account-messages-label.itx-account-messages-badge { font-weight: 600; color: #fff; }
#itx-account-messages-label.itx-account-messages-badge::after {
	content: '';
	display: inline-block;
	width: .5em; height: .5em;
	background: var(--itx-color, #e0241b);
	border-radius: 50%;
	margin-left: .45em;
	vertical-align: middle;
	box-shadow: 0 0 6px var(--itx-color, #e0241b);
}

/* Panneau de couleurs — même traitement que le menu compte pour cohérence */
.itx-panel {
  position: fixed;
  top: 3.4em;
  right: 0.9em;
  z-index: 10002;
  width: 19em;
  padding: 0.95em;
  color: #eee;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--itx-color, #613583) 32%, #16121e) 0%,
    color-mix(in srgb, var(--itx-color, #613583) 14%, #0e0b13) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--itx-color, #613583) 45%, rgba(255,255,255,0.12));
  border-radius: 1.2em;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 6px 20px color-mix(in srgb, var(--itx-color, #613583) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-size: 0.95em;
  animation: itx-pop 0.18s ease;
  transform-origin: top right;
}
@keyframes itx-pop {
  from { opacity: 0; transform: scale(0.92) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.itx-panel[hidden] { display: none; }
.itx-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75em;
}
.itx-panel-titre {
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.itx-panel-close {
  width: 1.7em;
  height: 1.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  border: 0;
  border-radius: 50%;
  font-size: 1em;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.itx-panel-close:hover { color: #fff; background: rgba(255, 255, 255, 0.18); }
.itx-panel-close svg { width: 1em; height: 1em; }
.itx-palette-label {
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5em;
}
.itx-palette {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5em;
  margin-bottom: 0.9em;
}
.itx-couleur {
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.itx-couleur:hover { transform: scale(1.12); }
.itx-couleur.itx-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}
.itx-panel-custom {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.75em;
}
.itx-custom {
  position: relative;
  width: 2.2em;
  height: 2.2em;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease;
}
.itx-custom:hover { transform: scale(1.08); }
.itx-custom input {
  position: absolute;
  inset: -0.4em;
  width: 2.6em;
  height: 2.6em;
  opacity: 0;
  cursor: pointer;
}
.itx-custom-label { color: rgba(255, 255, 255, 0.85); font-size: 0.92em; }
.itx-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding-top: 0.7em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.itx-hex-field {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  flex: 1;
  min-width: 0;
}
.itx-hex-label {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.itx-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5em;
  padding: 0.4em 0.55em;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.itx-hex:focus {
  outline: none;
  border-color: var(--itx-color, #613583);
  background: rgba(255, 255, 255, 0.14);
}
.itx-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 0.85em;
  font-size: 0.88em;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.6em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}
.itx-reset svg { width: 1em; height: 1em; }
.itx-reset:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.04); }

/* ---------- Sélecteur de thème (Clair / Sombre / Système) ---------- */
.itx-theme-label {
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5em;
}
.itx-theme-row {
  display: flex;
  gap: 0.2em;
  padding: 0.2em;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7em;
  margin-bottom: 0.9em;
}
.itx-theme-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.5em 0.2em;
  font-size: 0.82em;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 0;
  border-radius: 0.5em;
  transition: background 0.15s ease, color 0.15s ease;
}
.itx-theme-btn svg { width: 1.1em; height: 1.1em; flex: none; }
.itx-theme-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.itx-theme-btn.itx-active {
  background: var(--itx-color, #613583);
  color: #fff;
}

/* Bouton couleur aléatoire */
.itx-random {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  width: 100%;
  margin-bottom: 0.75em;
  padding: 0.5em 0.7em;
  cursor: pointer;
  font-size: 0.85em;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.6em;
  transition: background 0.15s ease, transform 0.12s ease;
}
.itx-random svg { width: 1.1em; height: 1.1em; }
.itx-random:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Barre de validation (aperçu couleur) ---------- */
.itx-validation {
  display: flex;
  gap: 0.5em;
  margin-top: 0.7em;
}
.itx-valider,
.itx-annuler {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  flex: 1 1 50%;
  padding: 0.6em 0.85em;
  font-size: 0.9em;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.6em;
  transition: filter 0.15s ease, transform 0.12s ease, background 0.15s ease;
}
.itx-valider {
  color: #fff;
  background: var(--itx-color, #613583);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.itx-valider:hover { filter: brightness(1.12); transform: translateY(-1px); }
.itx-annuler {
  color: #eee;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.itx-annuler:hover { background: rgba(255, 255, 255, 0.22); }
.itx-valider svg,
.itx-annuler svg { width: 1em; height: 1em; }

/* Bouton « Enregistrer la couleur » */
.itx-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  width: 100%;
  margin-top: 0.7em;
  padding: 0.6em 0.85em;
  font-size: 0.9em;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
  background: var(--itx-color, #613583);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.itx-save svg { width: 1em; height: 1em; }
.itx-save:hover { filter: brightness(1.12); transform: translateY(-1px); }
.itx-save.itx-saved { background: #2e7d32; }

/* ---------- Couleurs enregistrées ---------- */
.itx-saved-block {
  margin-top: 0.7em;
  padding-top: 0.7em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.itx-saved-label {
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5em;
}
.itx-saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  max-height: 9em;
  overflow-y: auto;
}
.itx-saved-vide {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}
.itx-saved-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.3em 0.45em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5em;
}
.itx-saved-swatch {
  width: 1.6em;
  height: 1.6em;
  flex: none;
  border-radius: 0.4em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease;
}
.itx-saved-swatch:hover { transform: scale(1.12); }
.itx-saved-hex {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.85);
}
.itx-saved-del {
  width: 1.6em;
  height: 1.6em;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 0;
  border-radius: 0.4em;
  transition: background 0.15s ease, color 0.15s ease;
}
.itx-saved-del svg { width: 0.9em; height: 0.9em; }
.itx-saved-del:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ---------- Changement automatique de couleur ---------- */
.itx-auto-block {
  margin-top: 0.7em;
  padding-top: 0.7em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.itx-auto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
}
.itx-auto-label {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.85);
}
.itx-auto-toggle {
  position: relative;
  width: 2.6em;
  height: 1.5em;
  flex: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1em;
  transition: background 0.2s ease;
}
.itx-auto-knob {
  position: absolute;
  top: 0.15em;
  left: 0.15em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: left 0.2s ease;
}
.itx-auto-toggle.itx-on {
  background: var(--itx-color, #613583);
  border-color: var(--itx-color, #613583);
}
.itx-auto-toggle.itx-on .itx-auto-knob { left: 1.25em; }
.itx-auto-options {
  margin-top: 0.6em;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.itx-auto-options[hidden] { display: none; }
.itx-auto-interval-label {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.itx-auto-intervals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4em;
}
.itx-interval-btn {
  padding: 0.4em 0.2em;
  font-size: 0.8em;
  font-family: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5em;
  transition: background 0.15s ease, color 0.15s ease;
}
.itx-interval-btn:hover { background: rgba(255, 255, 255, 0.12); }
.itx-interval-btn.itx-active {
  background: var(--itx-color, #613583);
  border-color: var(--itx-color, #613583);
  color: #fff;
}
/* ============================================================
   SKIN SPIP — itx-skin-spip.css
   Surcharges spécifiques SPIP : login_sos, page « en travaux »,
   espace privé (#bando_*), pages publiques (.page/.nav/.main),
   badge marché, erreurs. Concatené APRÈS itx-theme.css → perso.css.
   ============================================================ */

/* ============================================================
   Iteractif — perso.css (thème global « Relief 3D »)
   Style GLOBAL appliqué à TOUTES les pages :
   - site public (page « En travaux » ET site réel après maintenance)
   - espace privé SPIP (administration)
   Synchronisé avec le webmail Bulwark (iteractif.css).
   Fond violet radial, barres sombres, cartes grises 3D,
   sélecteur de couleur (engrenage + pop-over).
   ============================================================ */
/* ---------- Page de connexion (login_sos) : fond = couleur choisie ---------- */
/* Le CSS natif SPIP (login_prive.css) met un fond rose fixe via
   body.page_login.sans_fond (spécificité 0,2,1) qui écrase le body global.
   On le surcharge pour utiliser la couleur choisie par l'utilisateur. */
body.page_login.sans_fond {
  background: var(--itx-theme);
  background: radial-gradient(circle, var(--itx-theme) 20%, var(--itx-theme-dark) 100%);
  background-color: var(--itx-theme-dark);
  background-attachment: fixed;
}
/* login_prive.css impose font-family: arial (spécificité 0,1,0 sur .page_login,
   plus précis que notre body générique) : on la réaligne sur la police du site
   pour que le formulaire de connexion soit visuellement identique au reste. */
body.page_login {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* RÈGLE MARTIN — marges du corps applicables au LOGIN.
   Le CSS natif SPIP (login_prive.css, `.page_login { padding: 0 }`, spécificité 0,1,0)
   écrase le `body` global (0,0,1) → le corps retombait à 0px et l'en-tête fixe
   recouvrait le haut de la carte de connexion. On reprend la règle Martin avec
   une spécificité supérieure (0,2,1) — même paire de sélecteurs que le fond ci-dessus. */
body.page_login.sans_fond {
  padding-top: calc(var(--itx-header-h) - 5px);
  padding-bottom: var(--itx-footer-h);
}

/* Formulaire de connexion : adapté au style Relief 3D (pas de cadre sombre).
   Le CSS natif met .formulaire_login en position:absolute (flottant hors de
   la carte) → on le remet dans le flux pour qu'il s'insère dans la carte. */
body.page_login .formulaire_login,
body.page_login .formulaire_spip.pass {
  position: static;
  transform: none;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
}
/* Supprimer le cadre sombre natif du fieldset : le formulaire est déjà
   dans la carte grise 3D .entravaux-bloc. */
body.page_login .formulaire_spip fieldset {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
/* Formulaire dans la carte entravaux-bloc : reset du positionnement natif SPIP */
body.page_login .itx-login-bloc .formulaire_login,
body.page_login .itx-login-bloc .formulaire_spip {
  position: static;
  transform: none;
  width: 100%;
  max-width: 100%;
  text-align: left;
}
body.page_login .itx-login-bloc .formulaire_spip fieldset {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

body.page_login label {
  color: #232323;
  text-shadow: none;
}
body.page_login .formulaire_spip fieldset .editer label {
  color: #232323;
}
body.page_login input.text,
body.page_login input.password {
  /* Champs du formulaire de connexion : BLANCS, pas teintés (demande explicite du 07/09) */
  background-color: #f0f0f0;
  background-image: linear-gradient(180deg, #e2e2e2 0%, #f5f5f5 100%);
  color: #1c1c1c;
  border-top: 2px solid rgba(0,0,0,0.2);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  border-left: 1px solid rgba(0,0,0,0.12);
  border-right: 1px solid rgba(0,0,0,0.12);
  border-radius: 0.4em;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.15s;
}
body.page_login input.text:focus,
body.page_login input.password:focus {
  outline: none;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(255, 255, 255, 0.5),
    0 0 0 2px color-mix(in srgb, var(--itx-color, #613583) 35%, transparent);
}
/* Autofill : le navigateur met un fond jaune par défaut. On le remplace
   par une teinte douce de la couleur du thème (fond + texte sombre). */
body.page_login input.text:-webkit-autofill,
body.page_login input.password:-webkit-autofill,
body.page_login input.text:-webkit-autofill:hover,
body.page_login input.password:-webkit-autofill:hover,
body.page_login input.text:-webkit-autofill:focus,
body.page_login input.password:-webkit-autofill:focus {
  -webkit-text-fill-color: #1c1c1c;
  -webkit-box-shadow: 0 0 0 1000px #f0f0f0 inset;
  box-shadow:
    0 0 0 1000px #f0f0f0 inset,
    inset 0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 -2px 4px rgba(255, 255, 255, 0.55);
  caret-color: #1c1c1c;
  transition: background-color 600000s 0s;
}
body.page_login input.text::placeholder,
body.page_login input.password::placeholder {
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
}
body.page_login .details a,
body.page_login .details a:link,
body.page_login .details a:visited {
  color: var(--itx-color, #613583);
  text-decoration: underline;
}
/* Lien "mot de passe oublié" sur fond clair : contraste suffisant */
body.page_login #spip_pass,
body.page_login .details a#spip_pass {
  color: #4a2a6a;
}
body.page_login .choix label {
  color: #232323;
}

/* Bouton « Se connecter » : suit la couleur choisie, en relief 3D.
   NB : c'est un input[type=submit], PAS un <button> — ne pas cibler `button`
   ici, sinon on écrase l'engrenage du sélecteur de couleur (qui est un <button>
   dans body.page_login). */
body.page_login input[type=submit] {
  background-color: var(--itx-color, #613583);
  background-image: linear-gradient(180deg, var(--spip-color-theme-light, #8a5aa8) 0%, var(--itx-color, #613583) 100%);
  color: #fff;
  border-top: 2px solid var(--spip-color-theme-lighter, #a87fc0);
  border-bottom: 2px solid var(--spip-color-theme-dark, #4a2763);
  border-left: 1px solid var(--itx-color, #613583);
  border-right: 1px solid var(--itx-color, #613583);
  border-radius: 0.5em;
  padding: 0.5em 1.4em;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Le CSS natif met .page_login .boutons input.submit en gris clair
   (spécificité 0,2,1) qui écrase la règle ci-dessus. On le surcharge. */
body.page_login .boutons input.submit {
  background-color: var(--itx-color, #613583);
  background-image: linear-gradient(180deg, var(--spip-color-theme-light, #8a5aa8) 0%, var(--itx-color, #613583) 100%);
  color: #fff;
  border-top: 2px solid var(--spip-color-theme-lighter, #a87fc0);
  border-bottom: 2px solid var(--spip-color-theme-dark, #4a2763);
  border-left: 1px solid var(--itx-color, #613583);
  border-right: 1px solid var(--itx-color, #613583);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Centrer le bouton « Se connecter » */
body.page_login .boutons {
  text-align: center;
}
body.page_login input[type=submit]:hover,
body.page_login .boutons input.submit:hover {
  background-color: var(--itx-accent, #4a2763);
  background-image: linear-gradient(180deg, var(--itx-color, #613583) 0%, var(--itx-accent, #4a2763) 100%);
}

/* ============================================================
   PAGE « EN TRAVAUX » (body.page_entravaux)
   ============================================================ */

body.page_entravaux {
  padding-top: calc(var(--itx-header-h) - 5px);
  padding-bottom: var(--itx-footer-h);
}

/* Ajustement position du sélecteur dans la barre haute (plus haute) */
body.page_entravaux .itx-settings-btn {
  top: calc((var(--itx-header-h) - 2.6em) / 2);
  right: 1.2em;
  z-index: 210;
}
body.page_entravaux .itx-panel {
  top: calc(var(--itx-header-h) + var(--itx-tranche) + 0.6em);
  right: 1.2em;
  z-index: 220;
}

/* ===== Barres header/footer : couleur du thème (teintées) ===== */
.entravaux-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--itx-barre) 0%, var(--itx-barre-2) 100%);
  padding: 1.1em 0;
  height: var(--itx-header-h);
  box-sizing: border-box;
  text-align: center;
}

/* ===== Champ de recherche : dans l'en-tête, à gauche du logo ===== */
.itx-recherche {
  position: fixed;
  top: calc((var(--itx-header-h) - 2.4em) / 2);
  left: 0.8em;
  z-index: 210;
}
.itx-recherche .formulaire_recherche {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.itx-recherche .formulaire_recherche label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.itx-recherche .formulaire_recherche input.text {
  width: 14em;
  max-width: 30vw;
  height: 2.4em;
  box-sizing: border-box;
  padding: 0 0.7em;
  font-size: .92em;
  color: var(--itx-dark, #1a0a2e);
  text-align: center;
  background-color: var(--itx-light-bg, #e6ddf0);
  background-image: linear-gradient(180deg, var(--itx-light-bg-2, #d8cce8) 0%, var(--itx-light-bg, #e6ddf0) 100%);
  border-radius: 0.6em;
  border-top: 2px solid rgba(0,0,0,0.2);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  border-left: 1px solid rgba(0,0,0,0.12);
  border-right: 1px solid rgba(0,0,0,0.12);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.15s;
}
.itx-recherche .formulaire_recherche input.text:focus {
  outline: none;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(255, 255, 255, 0.5),
    0 0 0 2px color-mix(in srgb, var(--itx-color, #613583) 35%, transparent);
}
.itx-recherche .formulaire_recherche input.text::placeholder {
  color: var(--itx-accent, #4a2a6a);
  opacity: 0.7;
  text-align: center;
}
.itx-recherche .formulaire_recherche input.submit {
  height: 2.4em;
  box-sizing: border-box;
  padding: 0 1em;
  font-size: .88em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--itx-color, #613583);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--itx-color, #613583) 80%, white) 0%, var(--itx-color, #613583) 100%);
  border-radius: 0.6em;
  border: none;
  border-bottom: 2px solid rgba(0,0,0,0.35);
  box-shadow: 0 2px 8px rgba(97,53,131,0.5);
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s;
}
.itx-recherche .formulaire_recherche input.submit:hover {
  filter: brightness(1.18);
  box-shadow: 0 4px 14px rgba(97,53,131,0.65);
}
.itx-recherche .formulaire_recherche input.submit:active {
  filter: brightness(0.92);
  box-shadow: 0 1px 4px rgba(97,53,131,0.4);
  transform: translateY(1px);
}

/* Masquer le bloc de recherche du corps (aside de la page d'accueil) :
   la recherche est déjà dans l'en-tête (.itx-recherche). */
.aside .formulaire_recherche {
  display: none;
}

.entravaux-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--itx-footer-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--itx-barre) 0%, var(--itx-barre-2) 100%);
  padding: 0 1em;
  text-align: center;
}

.entravaux-footer img {
  height: 1.9em;
  width: auto;
  display: inline-block;
  opacity: 0.85;
}

/* ===== Tranches de séparation (effet 3D) : teintées de la couleur du thème
   (RÈGLE MARTIN 16/09/2026 : la teinte s'applique à TOUT, pas seulement au
   logo). Le dégradé doit rester FONCÉ (effet enfoncé) : on garde les valeurs
   sombres comme base et on y mêle la couleur du thème. ===== */
.itx-tranche-haut,
.itx-tranche-bas {
  position: fixed;
  left: 0; right: 0;
  z-index: 200;
  height: var(--itx-tranche);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--itx-color, #613583) 22%, #6a6a72) 0%,
    color-mix(in srgb, var(--itx-color, #613583) 22%, #3a3a40) 30%,
    color-mix(in srgb, var(--itx-color, #613583) 22%, #16161a) 100%);
}

.itx-tranche-haut {
  top: var(--itx-header-h);
  box-shadow:
    inset 0 -2px 3px rgba(0,0,0,0.6),
    0 10px 18px rgba(0,0,0,0.5);
}

.itx-tranche-bas {
  bottom: var(--itx-footer-h);
  box-shadow:
    inset 0 2px 3px rgba(0,0,0,0.6),
    0 -10px 18px rgba(0,0,0,0.5);
}

/* ===== Logo : cadre gris légèrement teinté de la couleur du thème ===== */
.entravaux-topbar img,
.itx-logo {
  position: fixed;
  top: var(--itx-logo-top, 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  height: var(--itx-logo-h, 4rem);
  width: auto;
  max-width: calc(100vw - 4em);
  object-fit: contain;
  box-sizing: border-box;
  display: inline-block;
  padding: 0.3em 1.4em;
  background-color: color-mix(in srgb, var(--itx-color, #613583) 12%, #b8b8b8);
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--itx-color, #613583) 14%, #808080) 0%,
    color-mix(in srgb, var(--itx-color, #613583) 10%, #d6d6d6) 100%);
  border-radius: 0.9em;
  border-top: 2px solid color-mix(in srgb, var(--itx-color, #613583) 18%, #404040);
  border-bottom: 2px solid color-mix(in srgb, var(--itx-color, #613583) 6%, #fafafa);
  border-left: 1px solid color-mix(in srgb, var(--itx-color, #613583) 16%, #666666);
  border-right: 1px solid color-mix(in srgb, var(--itx-color, #613583) 16%, #666666);
  box-shadow:
    inset 0 8px 16px rgba(0, 0, 0, 0.5),
    inset 0 -4px 8px rgba(255, 255, 255, 0.6);
}

/* Logo clair/sombre : affichage conditionnel selon le thème */
.itx-logo-clair {
  display: none;
}
html[data-itx-light] .itx-logo-sombre {
  display: none;
}
html[data-itx-light] .itx-logo-clair {
  display: inline-block;
}

/* ===== Slogan : badge gris 3D en bas du logo, dans le header ===== */
.itx-slogan {
  position: fixed;
  top: var(--itx-slogan-top, 5rem);  /* rem → aucun em-de-l'élément parasite */
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.25em 1.1em;
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #232323;
  background-color: color-mix(in srgb, var(--itx-color, #613583) 12%, #b8b8b8);
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--itx-color, #613583) 14%, #a8a8a8) 0%,
    color-mix(in srgb, var(--itx-color, #613583) 10%, #c2c2c2) 100%);
  border-radius: 0.6em;
  border-top: 2px solid color-mix(in srgb, var(--itx-color, #613583) 18%, #4d4d4d);
  border-bottom: 2px solid color-mix(in srgb, var(--itx-color, #613583) 5%, #f5f5f5);
  border-left: 1px solid color-mix(in srgb, var(--itx-color, #613583) 15%, #737373);
  border-right: 1px solid color-mix(in srgb, var(--itx-color, #613583) 15%, #737373);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 -2px 4px rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

/* ===== Carte centrale : gris clair neutre, effet incrusté ===== */
body.page_entravaux {
  --entravaux-box-shadow: none;
}

body.page_entravaux .entravaux-bloc {
  position: relative;
  z-index: 1;
  border-radius: 0.9em;
  border-top: 2px solid rgba(0,0,0,0.22);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  border-left: 1px solid rgba(0,0,0,0.14);
  border-right: 1px solid rgba(0,0,0,0.14);
  box-shadow:
    inset 0 8px 16px rgba(0, 0, 0, 0.18),
    inset 0 -4px 8px rgba(255, 255, 255, 0.55);
  margin: auto;
  width: 30em;
  max-width: 100vw;
  min-height: 20em;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  background-color: var(--itx-light-bg, #e6ddf0);
  background-image: linear-gradient(180deg, var(--itx-light-bg-2, #d8cce8) 0%, var(--itx-light-bg, #e6ddf0) 100%);
}

body.page_entravaux .entravaux-bloc header { padding: 1.5em 2em; }
body.page_entravaux .entravaux-bloc .corps { padding: 1.5em 2em; }

body.page_entravaux .entravaux-bloc h1 {
  display: block;
  color: var(--itx-accent);
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 0.6em;
  margin-bottom: 1em;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: #666666;
  text-decoration-thickness: 2px;
}

body.page_entravaux .entravaux-bloc .corps p,
body.page_entravaux .entravaux-bloc .corps div {
  color: #232323;
  line-height: 1.6;
  margin-bottom: 0.4em;
}

/* ===== Pied de page : cadres Relief 3D alignés sur ceux de l'en-tête ===== */
.entravaux-footer .coord {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  padding: 0.55em 1.6em;
  font-size: .88em;
  line-height: 1.6;
  color: #232323;
  background-color: color-mix(in srgb, var(--itx-color, #613583) 12%, #b8b8b8);
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--itx-color, #613583) 14%, #808080) 0%,
    color-mix(in srgb, var(--itx-color, #613583) 10%, #d6d6d6) 100%);
  border-radius: 0.9em;
  border-top: 2px solid color-mix(in srgb, var(--itx-color, #613583) 18%, #404040);
  border-bottom: 2px solid color-mix(in srgb, var(--itx-color, #613583) 6%, #fafafa);
  border-left: 1px solid color-mix(in srgb, var(--itx-color, #613583) 16%, #666666);
  border-right: 1px solid color-mix(in srgb, var(--itx-color, #613583) 16%, #666666);
  box-shadow:
    inset 0 8px 16px rgba(0, 0, 0, 0.5),
    inset 0 -4px 8px rgba(255, 255, 255, 0.6);
  max-width: calc(100vw - 2em);
}

.entravaux-footer .coord strong {
  color: #111111;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.entravaux-footer .coord a {
  /* REGLE DE DESIGN (MARTIN 17/09/2026) : la plaque du pied est TEINTEE CLAIRE,
     l'ecriture doit donc etre FONCEE. var(--itx-accent,#4a2a6a) mesurait 4.38:1
     (sous AA) ; cette teinte, tiree de la couleur de l'utilisateur, donne 7.16:1. */
  color: color-mix(in srgb, var(--itx-color, #613583) 55%, #1a1025);
  text-decoration: none;
  padding: 0.1em 0.4em;
  border-radius: 0.35em;
  transition: background 0.15s ease, color 0.15s ease;
  font-weight: 500;
}

.entravaux-footer .coord a:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.entravaux-footer .coord .sep {
  padding: 0 .4em;
  opacity: .45;
  color: #232323;
}

/* Ligne de liens secondaires */
.entravaux-footer .coord .coord-liens {
  font-size: .82em;
  /* PIEGE CONTRASTE (17/09/2026) : `opacity: .78` fondait AUSSI la couleur du
     texte dans le fond -> les liens secondaires tombaient a 4.38:1 en clair.
     L'attenuation se fait desormais par la teinte seule (>= 7:1), jamais par
     l'opacite du conteneur. */
  opacity: 1;
  margin-top: .1em;
}

/* ===== Lien retour, flottant au-dessus du pied de page ===== */
body.page_entravaux .retour {
  position: fixed;
  left: 1.5em;
  bottom: calc(var(--itx-footer-h) + var(--itx-tranche) + 1em);
  z-index: 25;
  margin: 0;
  background: none;
  border: 0;
  padding: 0;
}

body.page_entravaux .retour a {
  color: #232323;
  text-decoration: none;
  font-size: 0.9em;
  padding: 0.25em 0.7em;
  border-radius: 0.4em;
  background-color: color-mix(in srgb, var(--itx-color, #613583) 12%, #b8b8b8);
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--itx-color, #613583) 14%, #a8a8a8) 0%,
    color-mix(in srgb, var(--itx-color, #613583) 10%, #c2c2c2) 100%);
  border-top: 2px solid color-mix(in srgb, var(--itx-color, #613583) 18%, #4d4d4d);
  border-bottom: 2px solid color-mix(in srgb, var(--itx-color, #613583) 5%, #f5f5f5);
  border-left: 1px solid color-mix(in srgb, var(--itx-color, #613583) 15%, #737373);
  border-right: 1px solid color-mix(in srgb, var(--itx-color, #613583) 15%, #737373);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 -2px 4px rgba(255, 255, 255, 0.55);
  transition: background 0.15s ease, color 0.15s ease;
}

body.page_entravaux .retour a:hover {
  color: #fff;
  background: var(--itx-color, #613583);
  border-color: var(--itx-color, #613583);
}

/* ============================================================
   ESPACE PRIVÉ SPIP (administration)
   ============================================================ */

/* ---------- Barre supérieure (bando_haut) : sombre ---------- */
#bando_haut {
  background: linear-gradient(180deg, var(--itx-barre) 0%, var(--itx-barre-2) 100%);
  border-bottom: 2px solid color-mix(in srgb, var(--itx-color, #613583) 20%, #16161a);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
#bando_haut a,
#bando_haut .bando-identite,
#bando_haut .bando-liens-rapides a {
  color: rgba(255, 255, 255, 0.85);
}
#bando_haut a:hover { color: #fff; }

/* ---------- Barre d'identité (bando_identite) : sombre ---------- */
#bando_identite {
  background: linear-gradient(180deg, var(--itx-barre) 0%, var(--itx-barre-2) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--itx-color, #613583) 20%, #16161a);
}
#bando_identite a,
#bando_identite .deroulant__lien,
#bando_identite .bando-id,
#bando_identite .formulaire_recherche,
#bando_identite .formulaire_recherche input,
#bando_identite .formulaire_recherche label {
  color: rgba(255, 255, 255, 0.85);
}
#bando_identite a:hover { color: #fff; }
#bando_identite .formulaire_recherche input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}
#bando_identite .formulaire_recherche input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Barre de navigation principale (bando_navigation) : sombre ---------- */
#bando_navigation {
  background: linear-gradient(180deg, var(--itx-barre) 0%, var(--itx-barre-2) 100%);
  border-bottom: 2px solid color-mix(in srgb, var(--itx-color, #613583) 20%, #16161a);
}
#bando_navigation a,
#bando_navigation .on a,
#bando_navigation .item a {
  color: rgba(255, 255, 255, 0.85);
}
#bando_navigation a:hover { color: #fff; }
#bando_navigation .on,
#bando_navigation .item.on {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.4em;
}

/* ---------- Colonne latérale (navigation) : cartes grises 3D ---------- */
#navigation .box,
#extra .box {
  background-color: color-mix(in srgb, var(--itx-color, #613583) 12%, #b8b8b8);
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--itx-color, #613583) 14%, #a8a8a8) 0%,
    color-mix(in srgb, var(--itx-color, #613583) 10%, #c2c2c2) 100%);
  border-radius: 0.9em;
  border-top: 2px solid color-mix(in srgb, var(--itx-color, #613583) 18%, #4d4d4d);
  border-bottom: 2px solid color-mix(in srgb, var(--itx-color, #613583) 5%, #f5f5f5);
  border-left: 1px solid color-mix(in srgb, var(--itx-color, #613583) 15%, #737373);
  border-right: 1px solid color-mix(in srgb, var(--itx-color, #613583) 15%, #737373);
  box-shadow:
    inset 0 8px 16px rgba(0, 0, 0, 0.35),
    inset 0 -4px 8px rgba(255, 255, 255, 0.55);
}
#navigation .box a,
#extra .box a { color: #2d2d2d; }
#navigation .box a:hover,
#extra .box a:hover { color: #000; }
#navigation .box__header,
#extra .box__header { color: #232323; }

/* ---------- Contenu central : carte grise 3D ---------- */
#contenu {
  background-color: color-mix(in srgb, var(--itx-color, #613583) 12%, #b8b8b8);
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--itx-color, #613583) 14%, #a8a8a8) 0%,
    color-mix(in srgb, var(--itx-color, #613583) 10%, #c2c2c2) 100%);
  border-radius: 0.9em;
  border-top: 2px solid color-mix(in srgb, var(--itx-color, #613583) 18%, #4d4d4d);
  border-bottom: 2px solid color-mix(in srgb, var(--itx-color, #613583) 5%, #f5f5f5);
  border-left: 1px solid color-mix(in srgb, var(--itx-color, #613583) 15%, #737373);
  border-right: 1px solid color-mix(in srgb, var(--itx-color, #613583) 15%, #737373);
  box-shadow:
    inset 0 8px 16px rgba(0, 0, 0, 0.35),
    inset 0 -4px 8px rgba(255, 255, 255, 0.55);
}

/* ---------- Pied de page : sombre ---------- */
#pied {
  background: linear-gradient(180deg, var(--itx-barre) 0%, var(--itx-barre-2) 100%);
  border-top: 2px solid color-mix(in srgb, var(--itx-color, #613583) 20%, #16161a);
  color: rgba(255, 255, 255, 0.7);
}
#pied a { color: rgba(255, 255, 255, 0.8); }
#pied a:hover { color: #fff; }

/* ============================================================
   PAGES PUBLIQUES RÉELLES (sommaire, articles, rubriques)
   Même en-tête/pied que « En travaux » : les squelettes
   inclure/header.html + inclure/footer.html du plugin injectent
   les classes .entravaux-topbar / .itx-tranche-* / .itx-logo /
   .entravaux-footer (déjà stylées globalement ci-dessus).
   ============================================================ */

/* Le body public doit laisser la place aux barres fixes (comme entravaux) */
body:not(.page_entravaux) {
	padding-top: calc(var(--itx-header-h) - 5px);
	padding-bottom: var(--itx-footer-h);
}

/* Étendre la page en pleine largeur (annule le centrage SPIP) */
.page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

/* Nav : barre sombre pleine largeur */
.nav {
	background: linear-gradient(180deg, var(--itx-barre) 0%, var(--itx-barre-2) 100%);
	border-bottom: 2px solid #16161a;
}
.nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.nav .nav-item a {
	display: block;
	padding: 0.6em 1.2em;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-weight: 500;
	background: transparent;
	border-radius: 0;
}
.nav .nav-item a:hover,
.nav .nav-item.on a {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

/* Main : pleine largeur, cartes grises 3D */
.main {
	width: 100%;
	max-width: 60em;
	margin: 1.5em auto;
	padding: 0 1em;
	box-sizing: border-box;
}
.main .wrapper {
	float: none;
	width: 100%;
}
.main .content,
.main .aside {
	background-color: var(--itx-light-bg, #e6ddf0);
	background-image: linear-gradient(180deg, var(--itx-light-bg-2, #d8cce8) 0%, var(--itx-light-bg, #e6ddf0) 100%);
	border-radius: 0.9em;
	border-top: 2px solid rgba(0,0,0,0.22);
	border-bottom: 2px solid rgba(255,255,255,0.5);
	border-left: 1px solid rgba(0,0,0,0.14);
	border-right: 1px solid rgba(0,0,0,0.14);
	box-shadow:
		inset 0 8px 16px rgba(0, 0, 0, 0.18),
		inset 0 -4px 8px rgba(255, 255, 255, 0.55);
	padding: 1.5em;
	color: #1a0a2e;
	box-sizing: border-box;
}
.main .content { width: 100%; }
.main .aside {
	float: none;
	width: 100%;
	margin-top: 1em;
}
/* L'aside de la page d'accueil ne contient que le formulaire de recherche
   (déjà masqué) → bloc gris vide inutile. On le masque entièrement. */
.main .aside:empty,
.main .aside:has(.formulaire_recherche:only-child) {
	display: none;
}
.main .content a,
.main .aside a {
  color: var(--itx-color, #613583);
  text-decoration: none;
  padding: 0.1em 0.35em;
  border-radius: 0.4em;
  transition: background 0.15s ease, color 0.15s ease;
}
.main .content a:hover,
.main .aside a:hover {
  color: #fff;
  background: var(--itx-color, #613583);
}
.main .content h1, .main .content h2, .main .content h3,
.main .aside h2, .main .aside h3 { color: #232323; }

/* ============================================================
   MODE CLAIR (☀) : fonds clairs TEINTÉS de la couleur choisie,
   barres claires teintées, écriture sombre.
   ============================================================ */
html[data-itx-light] body {
  background: radial-gradient(circle, var(--itx-light-bg) 20%, var(--itx-light-bg-2) 100%);
  background-color: var(--itx-light-bg-2);
}

/* Barres haut/bas : claires, teintées de la couleur choisie */
html[data-itx-light] .entravaux-topbar,
html[data-itx-light] .entravaux-footer {
  background: linear-gradient(180deg, var(--itx-light-barre) 0%, var(--itx-light-barre-2) 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.18);
}
html[data-itx-light] .entravaux-footer {
  border-bottom: 0;
  border-top: 2px solid rgba(0, 0, 0, 0.18);
}

/* Tranches : teintées en mode clair */
html[data-itx-light] .itx-tranche-haut,
html[data-itx-light] .itx-tranche-bas {
  background: linear-gradient(180deg, var(--itx-light-barre-2) 0%, var(--itx-light-barre) 30%, var(--itx-light-accent) 100%);
}

/* Logo badge + slogan : teintés */
html[data-itx-light] .itx-logo,
html[data-itx-light] .itx-slogan {
  background-color: var(--itx-light-bg);
  background-image: linear-gradient(180deg, var(--itx-light-barre) 0%, var(--itx-light-bg) 100%);
}

body.page_entravaux .entravaux-bloc {
  background-color: var(--itx-light-bg);
  background-image: linear-gradient(180deg, var(--itx-light-bg-2) 0%, var(--itx-light-bg) 100%);
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 -3px 6px rgba(255, 255, 255, 0.7);
}

body.page_entravaux .entravaux-bloc .corps p,
body.page_entravaux .entravaux-bloc .corps div {
  color: #1c1c1c;
}

html[data-itx-light] .entravaux-footer .coord {
  background-color: var(--itx-light-bg);
  background-image: linear-gradient(180deg, var(--itx-light-barre) 0%, var(--itx-light-bg) 100%);
  border-top: 2px solid rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    inset 0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 -4px 8px rgba(255, 255, 255, 0.6);
  color: rgba(0, 0, 0, 0.85);
}
html[data-itx-light] .entravaux-footer .coord strong { color: #000; }
html[data-itx-light] .entravaux-footer .coord a { color: color-mix(in srgb, var(--itx-color, #613583) 55%, #1a1025); }
html[data-itx-light] .entravaux-footer .coord a:hover { background: rgba(0,0,0,0.1); color: #000; }
html[data-itx-light] .entravaux-footer .coord .sep { color: #000; }

/* Le panneau de personnalisation reste sombre (surface de contrôle) :
   il est lisible sur fond clair comme sur fond sombre. */

/* MOBILE (<= 768px) — RÉÉCRIT après MESURE à 390x844.
   DÉFAUTS constatés avant : le champ de recherche et le slogan tombaient TOUS
   DEUX à top: calc((--itx-header-h - 2.4em)/2) = 66px → ils se CHEVAUCHAIENT
   (le slogan disparaissait sous la recherche) ; le bouton « >> » recouvrait le
   texte du champ (input coupé) ; la carte était énorme et vide.
   Corrigé : on EMPILE recherche → logo → slogan → badge, comme dans l'espace
   privé, avec une hauteur d'en-tête qui les contient tous. */
@media (max-width: 768px) {
  :root {
    /* 12.6rem = 202px : loger recherche + logo + slogan + badge marché. */
    --itx-header-h: 12.6rem;
    --itx-footer-h: 4.2rem;
    --itx-tranche: 8px;
    --itx-logo-h: 3.2rem;
    /* Positions empilées explicites, en rem (indépendantes de la taille du texte). */
    --itx-recherche-top: 0.5rem;
    /* 4.3rem = 68.8px : la recherche finit à 64px (mesuré) → marge de 5px,
       sinon le logo chevauchait la recherche de 8px. */
    --itx-logo-top: 4.3rem;
    --itx-slogan-top: 7.7rem;
    --itx-badge-top: 10.2rem;
  }
  .itx-logo { height: var(--itx-logo-h, 3.2rem); top: var(--itx-logo-top, 3.5rem); }
  .itx-slogan { font-size: 0.72em; padding: 0.2em 0.9em; }

  /* Recherche : EN HAUT, pleine largeur utile, champ et bouton CÔTE À CÔTE.
     Le bouton « >> » était en `position: absolute` (CSS SPIP natif) → il
     recouvrait le texte. On le remet dans le flux. */
  .itx-recherche {
    top: var(--itx-recherche-top);
    left: 0.6em;
    right: 0.6em;
    width: auto;
  }
  .itx-recherche .formulaire_recherche { width: 100%; gap: 0.35em; }
  .itx-recherche .formulaire_recherche input.text {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    padding-left: 0.8em;
  }
  .itx-recherche .formulaire_recherche input.text::placeholder { text-align: left; }
  .itx-recherche .formulaire_recherche input.submit {
    position: static !important;
    flex: 0 0 auto;
    padding: 0 0.7em;
  }
  .itx-marche-topbar-indicator { left: 50%; transform: translateX(-50%); font-size: 0.7em; }
  .itx-settings-btn { width: 2.2em; height: 2.2em; }
  body.page_entravaux .entravaux-bloc {
    width: 100%;
    max-width: 30em;
    min-height: 0;
  }
  body.page_entravaux .entravaux-bloc header { padding: 1em 1.2em; }
  body.page_entravaux .entravaux-bloc .corps { padding: 1em 1.2em; }
  /* Le panneau de couleurs tient dans la largeur mobile */
  .itx-panel {
    width: calc(100vw - 2.4em);
    max-width: 19em;
    right: 1.2em;
  }
}

/* ============================================================
   Marché de Foix — badge public (espace public connecté)
   ============================================================ */

.itx-marche-topbar-indicator {
	position: fixed;
	top: var(--itx-badge-top, 7.45rem);  /* rem → sous le slogan sans chevauchement */
	left: 50%;
	transform: translateX(-50%);
	margin-top: 0;
	z-index: 2002;
	display: flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.2em 0.75em 0.2em 0.55em;
	font-size: 0.78em;
	font-weight: 600;
	color: #fff;
	background: #2e7d32;
	border-radius: 2em;
	box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 0 2px rgba(46,125,50,0.4);
	animation: itx-marche-pulse 2.4s ease infinite;
	pointer-events: none;
}
.itx-marche-topbar-indicator[hidden] { display: none; }

/* ===== Badge "éteint" — marché inactif ===== */
.itx-marche-topbar-indicator.itx-marche-off {
	background: rgba(220, 220, 225, 0.8);
	color: rgba(30, 30, 40, 1);
	box-shadow: none;
	animation: none;
	font-style: italic;
	pointer-events: none;
}
.itx-marche-topbar-indicator.itx-marche-off svg {
	opacity: 0.5;
}

/* ===== Badge cliquable (toggle depuis la topbar) ===== */
.itx-marche-topbar-indicator.itx-marche-clickable {
	pointer-events: auto;
	cursor: pointer;
}
.itx-marche-topbar-indicator.itx-marche-clickable:hover {
	filter: brightness(1.15);
	box-shadow:
		0 2px 8px rgba(0,0,0,0.4),
		0 0 0 3px rgba(255,255,255,0.2);
}
.itx-marche-topbar-indicator.itx-marche-off.itx-marche-clickable {
	pointer-events: auto;
	cursor: pointer;
	font-style: normal;
}
.itx-marche-topbar-indicator.itx-marche-off.itx-marche-clickable:hover {
	background: rgba(100, 100, 115, 0.75);
	color: rgba(240, 240, 245, 0.9);
}
.itx-marche-topbar-indicator.itx-marche-off.itx-marche-clickable svg {
	opacity: 0.7;
}
@keyframes itx-marche-pulse {
	0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 0 2px rgba(46,125,50,0.4); }
	50%       { box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 0 5px rgba(46,125,50,0.2); }
}

/* ============================================================
   Messages d'erreur SPIP : style rouge
   ============================================================ */
body.page_login .reponse_formulaire_erreur,
body.page_login .erreur_message,
body.page_login .avis_erreur_cookie,
.formulaire_spip .reponse_formulaire_erreur,
.formulaire_spip .erreur_message {
  background-color: #fff5f5 !important;
  border: 2px solid #e53e3e !important;
  border-radius: 0.75em !important;
  color: #c53030 !important;
  font-weight: 700 !important;
  padding: 1em 1.5em !important;
  margin-bottom: 1em !important;
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.15) !important;
}

body.page_login .reponse_formulaire_erreur p,
body.page_login .erreur_message p,
body.page_login .avis_erreur_cookie p,
.formulaire_spip .reponse_formulaire_erreur p,
.formulaire_spip .erreur_message p {
  color: #c53030 !important;
  font-size: 0.95em;
}

body.page_login .reponse_formulaire_erreur::before,
body.page_login .erreur_message::before,
body.page_login .avis_erreur_cookie::before {
  content: "⚠";
  margin-right: 0.5em;
  color: #e53e3e;
  font-size: 1.1em;
}

/* ============================================================
   Voyant Marché de Foix - côté logo sur la page login
   ============================================================ */
.itx-marche-voyant {
  position: fixed;
  top: 0.5em;
  left: calc(50% + 2.2em);
  z-index: 201;
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.6em;
  font-size: 0.75em;
  font-weight: 600;
  border-radius: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.itx-marche-voyant.actif {
  background: #2e7d32;
  color: #fff;
  border: 2px solid #1b5e20;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.4);
}

.itx-marche-voyant.inactif {
  background: #9e9e9e;
  color: #fff;
  border: 2px solid #757575;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.itx-marche-voyant .itx-marche-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.itx-marche-voyant.actif .itx-marche-dot {
  background: #66bb6a;
  box-shadow: 0 0 6px #66bb6a;
  animation: itx-marche-pulse-dot 2s ease infinite;
}

.itx-marche-voyant.inactif .itx-marche-dot {
  background: #757575;
}

@keyframes itx-marche-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ============================================================
   Page Marché de Foix - voyant agrandi
   ============================================================ */
.itx-marche-page {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 202;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 2em 3em;
  min-width: 20em;
  border-radius: 1.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.itx-marche-page.actif {
  background: #2e7d32;
  color: #fff;
  border: 3px solid #1b5e20;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.5);
}

.itx-marche-page.inactif {
  background: #9e9e9e;
  color: #fff;
  border: 3px solid #757575;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.itx-marche-page .itx-marche-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.itx-marche-page.actif .itx-marche-dot {
  background: #66bb6a;
  box-shadow: 0 0 10px #66bb6a;
  animation: itx-marche-pulse-dot 2s ease infinite;
}

.itx-marche-page.inactif .itx-marche-dot {
  background: #757575;
}

.itx-marche-page .itx-marche-label {
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.itx-marche-page .itx-marche-sublabel {
  font-size: 0.85em;
  opacity: 0.85;
}

/* ============================================================
   Suppression de l'effet "enfoncé" sur les liens
   Quand on clique sur un lien, il ne doit pas apparaître
   "enfoncé" (changement visuel de fond ou outline)
   ============================================================ */

a:active {
  background-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
  outline-color: transparent !important;
}

a:focus {
  outline: none !important;
  outline-color: transparent !important;
  box-shadow: none !important;
}

a:focus-visible {
  outline: none !important;
  outline-color: transparent !important;
  box-shadow: none !important;
}

/* Empêcher le tap-highlight sur mobile */
html {
  -webkit-tap-highlight-color: transparent !important;
}

/* Empêcher la sélection de texte sur les liens au clic */
a::selection {
  background-color: transparent !important;
}

/* --- MOBILE (<= 768px) : champ de recherche complet ---
   MESURÉ à 390px : le champ `input.text` ne faisait que 122px de large (sur
   374px disponibles) parce que `.itx-recherche .formulaire_recherche` était en
   `display:flex` SANS contrainte de largeur, et le bouton « >> » prenait le
   reste. Résultat : texte tronqué. On force le champ à occuper l'espace
   disponible, le bouton gardant sa taille. --- */
@media (max-width: 768px) {
  .itx-recherche .formulaire_recherche input.text {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .itx-recherche .formulaire_recherche input.submit {
    flex: 0 0 auto !important;
  }
}

/* --- Le champ de recherche paraissait VIDE : le libellé SPIP est dans un
   `label` masqué (1x1px, clip) et l'input n'a pas d'attribut placeholder.
   Ajouté ici pour que le champ s'explique de lui-même (accessibilité).
   On le pose en CSS via ::before ? Non : un placeholder ne peut venir que de
   l'attribut. On injecte donc l'attribut par le JS du plugin… mais pour les
   pages sans JS, on affiche le libellé du label juste au-dessus, lisible. */
@media (max-width: 768px) {
  .itx-recherche .formulaire_recherche label {
    position: static !important;
    width: auto !important; height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.75);
    margin-right: 0.3em;
    white-space: nowrap;
  }
}

/* --- Chaîne du formulaire de recherche : MESURÉ à 390px, le `form` et son
   `div.editer-groupe` ne faisaient que 157px alors que le conteneur en fait
   372 : le champ restait donc à 122px et le texte était tronqué.
   Structure réelle : .itx-recherche(372) > .formulaire_recherche(flex) >
   FORM(157) > div.editer-groupe(157) > input.text(122) + input.submit(35).
   On force CHAQUE niveau intermédiaire à occuper toute la largeur et à
   aligner ses enfants en ligne. --- */
.itx-recherche .formulaire_recherche > form,
.itx-recherche .formulaire_recherche form > div,
.itx-recherche .formulaire_recherche .editer-groupe {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
.itx-recherche .formulaire_recherche input.text {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* --- Carte vide géante sur mobile (MESURÉ à 390px) ---
   `.content` faisait 350px de haut pour un contenu réel de 23px (juste le
   chapô « Espace de développement Iteractif. »). La cause est une règle du
   CSS NATIF de SPIP : `.content { min-height: 350px }` (feuille spip.css),
   pas notre thème. Sur mobile, ce vide pousse le pied de page très loin.
   On neutralise ce min-height uniquement sur petit écran, et on garde la
   carte ajustée à son contenu. --- */
@media (max-width: 768px) {
  .main .content,
  .main .aside,
  .main .wrapper {
    min-height: 0 !important;
  }
  .main {
    margin: 0.8em auto;
  }
}
