.inside-header {
  position: relative;
}

@media (min-width: 1001px) {
  .site-header {
    min-height: 70px;
  }

  .site-header .inside-header {
    min-height: 70px;
    padding-bottom: 8px !important;
  }
}

#site-navigation,
.main-navigation {
  position: relative;
  z-index: 300 !important;
}

.main-navigation .main-nav ul li a,
.main-navigation .main-nav ul li a *,
.main-navigation .dropdown-menu-toggle,
.main-navigation .dropdown-menu-toggle::before {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.jc-header-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  pointer-events: auto;
  position: absolute;
  right: 20px;
  top: 10px;
  z-index: 10;
}

.jc-header-actions .jc-header-lang-switch {
  float: none !important;
  order: 2;
  padding: 0 !important;
}

.jc-header-actions .jc-auth-control {
  order: 1;
}

.jc-header-actions .jc-header-lang-switch a {
  align-items: center;
  display: flex;
  min-height: 38px;
}

.inside-header > .jc-header-lang-switch {
  float: none !important;
  padding: 0 !important;
  position: absolute;
  right: 170px;
  top: 20px;
  z-index: 10;
}

.inside-header > .jc-auth-control,
.inside-header > .jc-header-lang-switch {
  pointer-events: auto;
}

.inside-header > .jc-header-lang-switch a {
  align-items: center;
  display: flex;
  min-height: 38px;
}

.jc-auth-control {
  float: none;
  margin: 0;
  position: absolute;
  right: 20px;
  top: 10px;
  z-index: 5;
}

.jc-header-actions .jc-auth-control {
  float: none;
  margin: 0;
  position: relative;
  right: auto;
  top: auto;
}

.jc-auth-open,
.jc-auth-menu-toggle {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 7px;
  line-height: 1.2;
  min-height: 38px;
  padding: 8px 12px;
}

.jc-auth-open:hover,
.jc-auth-open:focus,
.jc-auth-menu-toggle:hover,
.jc-auth-menu-toggle:focus {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.jc-auth-menu-toggle img {
  border-radius: 50%;
  display: block;
  height: 24px;
  object-fit: cover;
  width: 24px;
}

.jc-auth-menu {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  min-width: 170px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
}

/* L'attribut HTML hidden doit rester prioritaire sur les styles du thème. */
.jc-auth-menu[hidden] {
  display: none !important;
}

.jc-auth-menu a {
  color: #1f2937;
  display: block;
  font-size: 14px;
  padding: 9px 10px;
  text-decoration: none;
}

.jc-auth-menu a:hover {
  background: #f2f4f7;
}

#downloadBtn.jc-download-main,
#downloadBtnTop.jc-download-main {
  align-items: center !important;
  display: inline-flex !important;
  gap: 8px !important;
  height: auto !important;
  justify-content: center !important;
  min-height: 48px !important;
  min-width: 230px !important;
  width: auto !important;
}

#downloadBtnTop.jc-download-main {
  width: 100% !important;
}

.jc-download-icon {
  font-size: 22px;
  line-height: 1;
}

.jc-download-main.jc-saving {
  opacity: .72;
}

.jc-auth-lock {
  overflow: hidden;
}

.jc-favorite-toggle {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  justify-content: center;
  line-height: 1.2;
  min-height: 32px;
  padding: 6px 9px;
  text-align: left;
  white-space: nowrap;
}

.jc-image-meta-table .jc-favorite-toggle {
  background: #f8fafc !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #4b5563 !important;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 30px;
  padding: 5px 8px;
  width: auto;
}

.jc-vote-favorite-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  width: 100%;
}

/* Le bouton favori ne rétrécit jamais (sinon son libellé wrappait lettre par lettre) ;
   le widget votes prend le reste et passe à la ligne quand il n'y a pas assez de place. */
.jc-vote-favorite-col {
  flex: 0 0 auto;
  min-width: 0;
}

.jc-vote-actions-col {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.jc-favorite-toggle:hover,
.jc-favorite-toggle:focus {
  background: #eef2ff;
  border-color: rgba(32, 48, 122, .28);
  color: #20307a;
}

.jc-favorite-toggle.is-active {
  background: #fff7d6;
  border-color: #e6c84f;
  color: #6b5200;
}

.jc-image-meta-table .jc-favorite-toggle:hover,
.jc-image-meta-table .jc-favorite-toggle:focus {
  background: #eef2ff !important;
  color: #20307a !important;
}

.jc-image-meta-table .jc-favorite-toggle.is-active {
  background: #fff7d6 !important;
  color: #6b5200 !important;
}

.jc-favorite-toggle[disabled] {
  cursor: wait;
  opacity: .7;
}

.jc-favorite-star {
  color: #d9a300;
  font-size: 16px;
  line-height: 1;
}

.jc-auth-modal[hidden],
.jc-toast[hidden] {
  display: none !important;
}

/* === Modale d'inscription / connexion (gate) ===
   Charte : fond blanc, CTA ambre (#E8A54B) identique pour Google et e-mail,
   texte blanc 16px/600. Palette de référence dans le brief. */
.jc-auth-modal {
  --jc-amber: #E8A54B;
  --jc-amber-hover: #DD9738;
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100000;
}

.jc-auth-backdrop {
  background: rgba(15, 23, 42, .5);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.jc-auth-dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .3);
  box-sizing: border-box;
  left: 50%;
  max-width: 420px;
  padding: 24px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
}

.jc-auth-close {
  align-items: center;
  background: #f3f4f6;
  border: 0;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
}

.jc-auth-close::after { /* zone tactile 44px */
  content: "";
  position: absolute;
  inset: -6px;
}

.jc-auth-close:hover,
.jc-auth-close:focus,
.jc-auth-close:active { background: #e5e7eb !important; color: #374151 !important; }

/* --- En-tête : vignette (favoris) + titre / badge / sous-titre --- */
.jc-auth-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  padding-right: 40px; /* dégage le bouton X */
}

.jc-auth-thumb {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  flex: 0 0 72px;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.jc-auth-thumb[hidden] { display: none !important; }

.jc-auth-header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.jc-auth-dialog h2 {
  color: #1f2937;
  font-size: 22px !important;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 !important;
  text-align: left !important;
}

.jc-auth-free-badge {
  background: #e8f0e3;
  border-radius: 999px;
  color: #3B6D11;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  margin: 8px 0 0;
  padding: 5px 10px;
}

.jc-auth-lead {
  color: #6b7280 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  margin: 8px 0 0 !important;
}

/* --- Bénéfices --- */
.jc-auth-benefits {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.jc-auth-benefits li {
  align-items: flex-start;
  color: #1f2937;
  display: flex;
  font-size: 14px;
  gap: 8px;
  line-height: 1.35;
}

.jc-auth-benefits li::before {
  color: #3B6D11;
  content: "✓";
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

/* --- Boutons d'action : Google + e-mail STRICTEMENT identiques --- */
.jc-auth-actions {
  display: block;
}

.jc-btn {
  align-items: center;
  background: var(--jc-amber);
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  padding: 0 16px;
  position: relative;
  transition: background .15s ease;
  width: 100%;
}

/* États survol/focus/actif forcés : GeneratePress applique un fond gris foncé sur
   button:focus (spécificité (0,1,1)) qui battait .jc-btn (0,1,0) — d'où le bouton
   Google qui devenait noir quand openModal() lui donnait le focus. On verrouille. */
.jc-btn:hover,
.jc-btn:focus,
.jc-btn:focus-visible,
.jc-btn:active {
  background: var(--jc-amber-hover) !important;
  color: #fff !important;
}
.jc-btn:focus-visible { outline: 2px solid #8a5a12; outline-offset: 2px; }
.jc-btn[hidden] { display: none !important; }
.jc-btn__label { color: #fff; }

/* Bouton secondaire (e-mail) : blanc, bordure grise, texte foncé → hiérarchie
   visuelle claire vs le CTA primaire ambre (Google). */
.jc-btn--secondary {
  background: #fff;
  border: 1px solid #d0d5dd;
  color: #374151;
}
.jc-btn--secondary .jc-btn__label { color: #374151; }
.jc-btn--secondary:hover,
.jc-btn--secondary:focus,
.jc-btn--secondary:focus-visible,
.jc-btn--secondary:active {
  background: #f9fafb !important;
  border-color: #9ca3af;
  color: #374151 !important;
}
.jc-btn--secondary:focus-visible { outline: 2px solid #8a5a12; outline-offset: 2px; }

/* Logo Google officiel multicolore sur pastille blanche ronde 24px */
.jc-btn__gicon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.jc-btn__icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

/* Vrai bouton Google Identity Services, transparent et superposé EN FRÈRE du bouton
   custom (pas enfant) : capte le clic sans re-déclencher le handler du bouton, ce qui
   préserve le flux OAuth (credential/ID token) et le tracking à l'identique. */
.jc-google-wrap {
  position: relative;
  width: 100%;
}

.jc-google-host {
  inset: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.jc-google-host.is-ready { pointer-events: auto; }
.jc-google-host > div { height: 100%; margin: 0 auto; width: 100% !important; }
.jc-google-host iframe { width: 100% !important; }

/* --- Séparateur « ou » --- */
.jc-auth-or {
  align-items: center;
  color: #9ca3af;
  display: flex;
  gap: 12px;
  margin: 14px 0;
}

.jc-auth-or::before,
.jc-auth-or::after {
  background: #e5e7eb;
  content: "";
  flex: 1 1 auto;
  height: 1px;
}

.jc-auth-or span { font-size: 12px; }

/* --- Formulaire e-mail --- */
.jc-email-form { margin-top: 12px; }
.jc-email-form[hidden] { display: none !important; }

.jc-email-input {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-sizing: border-box;
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
  min-height: 46px;
  padding: 11px 13px;
  width: 100%;
}

.jc-email-input[hidden] { display: none !important; }
.jc-email-input:focus { border-color: var(--jc-amber); outline: none; }

.jc-email-submit {
  align-items: center;
  background: var(--jc-amber);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  position: relative;
  transition: background .15s ease;
  width: 100%;
}

.jc-email-submit:hover,
.jc-email-submit:focus,
.jc-email-submit:focus-visible,
.jc-email-submit:active { background: var(--jc-amber-hover) !important; color: #fff !important; }
.jc-email-submit:focus-visible { outline: 2px solid #8a5a12; outline-offset: 2px; }
.jc-email-submit:disabled,
.jc-btn:disabled { cursor: not-allowed; opacity: .5; }

.jc-email-links {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 10px;
}

/* Mêmes liens que le reste du site : bleu var(--jc-blue-2), sans soulignement (hover -> noir). */
.jc-email-links a { color: var(--jc-blue-2); font-size: 13px; text-decoration: none; }
.jc-email-links a:hover { color: #000; text-decoration: none; }
.jc-email-links a[hidden] { display: none !important; }

/* --- Légal --- */
.jc-auth-privacy {
  color: #9ca3af !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin: 20px 0 0 !important;
  text-align: center;
}

.jc-auth-privacy a { color: var(--jc-blue-2); text-decoration: none; }
.jc-auth-privacy a:hover { color: #000; }

.jc-auth-error {
  color: #b42318 !important;
  font-size: 13px !important;
  margin-top: 10px !important;
  text-align: center;
}

/* ===== Améliorations modale (états login/reset, a11y, feedback) ===== */

/* Label accessible visuellement masqué (le placeholder reste visible). */
.jc-sr-only {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

/* Éléments d'en-tête masquables selon l'écran (login/reset). Nécessaire car
   .jc-auth-free-badge (display:inline-block) et .jc-auth-actions (display:block)
   surchargent l'attribut [hidden] du navigateur. */
.jc-auth-free-badge[hidden],
.jc-auth-benefits[hidden],
.jc-auth-actions[hidden],
.jc-auth-or[hidden],
.jc-auth-privacy[hidden],
.jc-reset-confirm[hidden],
.jc-field-hint[hidden],
.jc-field-error[hidden],
.jc-email-switch-line[hidden] { display: none !important; }

/* Champ mot de passe + bouton œil afficher/masquer. */
.jc-input-wrap { position: relative; }
.jc-input-wrap .jc-email-input { padding-right: 46px; }

.jc-pass-toggle {
  align-items: center;
  background: none;
  border: 0;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 34px;
}
.jc-pass-toggle:hover,
.jc-pass-toggle:focus,
.jc-pass-toggle:active { background: none !important; color: #374151 !important; }
.jc-pass-toggle:focus-visible { outline: 2px solid var(--jc-amber); outline-offset: 1px; }

/* Aide persistante sous le mot de passe : grise, passe au vert quand valide. */
.jc-field-hint {
  color: #6b7280 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin: -4px 0 10px !important;
  text-align: left;
}
.jc-field-hint.is-valid { color: #3B6D11 !important; }
.jc-field-hint.is-valid::before { content: "✓ "; font-weight: 700; }

/* Logo du site à la place du titre « Join Just Color » (écran inscription générique). */
.jc-auth-logo {
  display: block;
  height: 50px;
  margin: 4px auto 6px;
  max-width: 100%;
  width: auto;
}
.jc-auth-logo[hidden],
.jc-auth-title-text[hidden] { display: none !important; }

/* Checklist mot de passe (inscription) : critères persistants, gris → vert. */
.jc-pass-checklist {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: -4px 0 10px !important;
  padding: 0 !important;
}
.jc-pass-checklist[hidden] { display: none !important; }
.jc-pass-checklist li {
  align-items: center;
  color: #6b7280;
  display: flex;
  font-size: 12px;
  gap: 7px;
  line-height: 1.35;
  margin: 0 !important;
}
.jc-pass-checklist li.is-ok { color: #3B6D11; }
.jc-pass-check {
  align-items: center;
  border: 1.5px solid #cbd0d8;
  border-radius: 50%;
  color: transparent;
  display: inline-flex;
  flex: 0 0 15px;
  font-size: 10px;
  font-weight: 700;
  height: 15px;
  justify-content: center;
  line-height: 1;
  width: 15px;
}
.jc-pass-checklist li.is-ok .jc-pass-check {
  background: #3B6D11;
  border-color: #3B6D11;
  color: #fff;
}
.jc-pass-checklist li.is-ok .jc-pass-check::before { content: "✓"; }

/* Erreurs inline sous le champ concerné (pas de vidage des champs). */
.jc-field-error {
  color: #b42318 !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  margin: -4px 0 10px !important;
  text-align: left;
}
.jc-email-input.is-error { border-color: #d92d20; }
.jc-email-input.is-error:focus { border-color: #d92d20; }

/* Spinner dans le CTA pendant la requête (évite double submit). */
.jc-spinner {
  animation: jc-spin .6s linear infinite;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  border-top-color: #fff;
  display: none;
  height: 18px;
  width: 18px;
}
.jc-email-submit.is-loading .jc-email-submit-label { display: none; }
.jc-email-submit.is-loading .jc-spinner { display: block; }
@keyframes jc-spin { to { transform: rotate(360deg); } }

/* Lien de bascule : question grise + action en lien bleu. */
.jc-email-switch-line {
  align-items: baseline;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.jc-email-switch-q { color: #6b7280; font-size: 13px; }

/* État de confirmation après envoi du lien de réinitialisation. */
.jc-reset-confirm { text-align: center; }
.jc-reset-confirm-icon { margin: 4px 0 12px; }
.jc-reset-confirm-text {
  color: #374151 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 0 0 16px !important;
}
.jc-reset-resend { margin-bottom: 12px; }
.jc-reset-resend:disabled { cursor: default; opacity: .55; }
.jc-email-back {
  color: var(--jc-blue-2);
  display: inline-block;
  font-size: 13px;
  text-decoration: none;
}
.jc-email-back:hover { color: #000; }

.jc-toast {
  align-items: center;
  background: #1f2937;
  border-radius: 6px;
  bottom: 22px;
  color: #fff;
  display: flex;
  font-size: 14px;
  gap: 12px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 11px 14px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 100001;
}

.jc-toast a {
  border-left: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-weight: 700;
  padding-left: 12px;
  text-decoration: underline;
  white-space: nowrap;
}

.jc-account-page {
  color: #111;
  font-family: Helvetica, Arial, sans-serif;
  min-height: max(720px, calc(100vh - 300px));
  padding: 44px 24px 64px !important;
}

.jc-account-layout {
  align-items: flex-start;
  display: grid;
  gap: 56px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.jc-account-sidebar {
  border-right: 0;
  padding: 6px 18px 8px 0;
  position: static;
}

.jc-account-sidebar-title {
  border-bottom: 1px solid rgba(0, 0, 0, .18);
  color: #111;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 16px;
  padding: 0 0 14px;
  text-transform: none;
}

.jc-account-nav {
  display: grid;
  gap: 0;
}

.jc-account-nav a {
  border-radius: 0;
  color: #111;
  font-size: 14px;
  font-weight: 400;
  padding: 5px 0;
  text-decoration: none;
}

.jc-account-nav a:hover,
.jc-account-nav a.is-active {
  background: transparent;
  color: #003872;
  font-weight: 700;
}

.jc-account-nav .jc-account-logout {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 6px;
  color: #333;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 38px;
  padding: 10px 12px;
}

.jc-account-nav .jc-account-logout::before {
  content: "";
  background: currentColor;
  display: inline-block;
  height: 16px;
  width: 16px;
  -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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.jc-account-nav .jc-account-logout:hover {
  background: #f7f7f7;
  border-color: rgba(0, 0, 0, .38);
  color: #111;
}

.jc-account-main {
  min-width: 0;
}

.jc-account-page h1 {
  color: #111;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 32px !important;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 38px !important;
}

.jc-creations-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.jc-creation-card {
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 10px;
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.jc-creation-preview-btn {
  background: #f7f7f7;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}

.jc-creation-card img {
  background: #f7f7f7;
  display: block;
  height: 210px;
  object-fit: contain;
  width: 100%;
}

.jc-favorite-thumb {
  background: #f7f7f7;
  display: block;
}

.jc-creation-body {
  min-width: 0;
  padding-top: 2px;
}

.jc-creation-body h2 {
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}

.jc-creation-body p {
  color: #555;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.jc-favorite-body {
  min-height: 94px;
  padding: 10px 12px 0;
}

.jc-favorite-title {
  color: #3a3a3a !important;
  display: -webkit-box;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  min-height: calc(14px * 1.3 * 3);
  overflow: hidden;
  padding: 0 !important;
  text-transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.jc-favorite-gallery {
  color: #3a3a3a;
  font-size: 14px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.jc-favorite-gallery a {
  color: var(--jc-blue-2);
  text-decoration: none;
}

.jc-favorite-gallery a:hover {
  color: #000;
  text-decoration: underline;
}

.jc-favorite-card {
  display: flex;
  flex-direction: column;
}

.jc-favorite-card .jc-creation-actions {
  margin-top: auto;
}

.jc-creation-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  justify-self: stretch;
  padding: 10px;
}

.jc-creation-actions a,
.jc-creation-actions button,
.jc-account-start {
  background: #eef2ff;
  border: 0;
  border-radius: 6px;
  color: #20307a !important;
  cursor: pointer;
  display: block;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

.jc-account-start {
  background: #003872;
  border-radius: 6px;
  color: #fff !important;
  display: inline-block;
  padding: 10px 14px;
  text-align: center;
}

.jc-creation-actions a:hover,
.jc-creation-actions button:hover {
  text-decoration: none;
}

.jc-creation-actions button {
  background: #f2f4f7;
  color: #1f2937 !important;
}

.jc-creation-actions a,
.jc-creation-actions .jc-creation-restart {
  background: #eef2ff;
  color: #20307a !important;
}

.jc-creation-actions button[data-jc-delete-creation],
.jc-creation-actions button[data-jc-delete-favorite] {
  background: rgba(180, 35, 24, .06);
  border: 1px solid rgba(180, 35, 24, .18);
  color: #912018 !important;
}

.jc-creation-actions button[data-jc-delete-creation]:hover,
.jc-creation-actions button[data-jc-delete-favorite]:hover {
  background: rgba(180, 35, 24, .1);
  border-color: rgba(180, 35, 24, .3);
  color: #912018 !important;
}

/* Chapeau de section : une phrase sous le titre pour dire ce que contient la page. */
.jc-account-intro {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
  margin: -6px 0 18px;
  max-width: 70ch;
}

/* Dépublier : retrait réversible de la galerie communautaire. Volontairement en retrait
   des actions principales, et sans le rouge réservé à la suppression définitive. */
.jc-creation-actions button[data-jc-creations-unpublish] {
  background: #fff;
  border: 1px solid #e5a44a;
  color: #8a5a10 !important;
}

.jc-creation-actions button[data-jc-creations-unpublish]:hover {
  background: #fdf3e3;
}

/* État « publiée » : ligne d'information, pas un bouton — elle ne doit pas occuper une
   cellule pleine largeur comme les actions. */
.jc-creation-actions .jc-creation-published {
  font-size: 14px;
  text-align: center;
}

.jc-creation-lightbox[hidden] {
  display: none !important;
}

.jc-creation-lightbox {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100000;
}

.jc-creation-lightbox-backdrop {
  background: rgba(0, 0, 0, .72);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.jc-creation-lightbox-dialog {
  align-items: center;
  display: flex;
  inset: 24px;
  justify-content: center;
  position: absolute;
}

.jc-creation-lightbox-img {
  background: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  display: block;
  max-height: calc(100vh - 72px);
  max-width: min(900px, calc(100vw - 48px));
  object-fit: contain;
}

.jc-creation-lightbox-close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: #111;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 40px;
  z-index: 1;
}

.jc-account-empty {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 10px;
  padding: 28px;
}

.jc-profile-card {
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 10px;
  max-width: 860px;
  overflow: hidden;
}

.jc-profile-head {
  align-items: center;
  background: #fff;
  display: flex;
  gap: 14px;
  padding: 24px;
}

.jc-profile-head img {
  border-radius: 50%;
  display: block;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.jc-profile-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.jc-profile-head span {
  color: #667085;
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.jc-profile-list {
  margin: 0;
}

.jc-profile-list div {
  border-top: 1px solid rgba(0, 0, 0, .08);
  display: grid;
  gap: 16px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 18px 24px;
}

.jc-profile-list dt {
  color: #667085;
  font-weight: 700;
}

.jc-profile-list dd {
  margin: 0;
}

.jc-profile-list small {
  color: #667085;
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

@media (max-width: 1000px) {
  .jc-account-page {
    padding: 28px 16px 48px !important;
  }
  .jc-account-layout {
    gap: 28px;
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .jc-creation-card img {
    height: 190px;
  }
  .jc-header-actions {
    right: 12px;
    top: 8px;
  }
  .inside-header > .jc-header-lang-switch {
    right: 64px;
    top: 8px;
  }
  .jc-auth-control {
    right: 12px;
    top: 8px;
  }
  .jc-auth-open,
  .jc-auth-menu-toggle {
    min-height: 34px;
    padding: 7px 10px;
  }
}

@media (max-width: 800px) {
  .jc-account-layout {
    grid-template-columns: 1fr;
  }
  .jc-account-sidebar {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding: 0 0 14px;
  }
  .jc-account-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .jc-profile-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .jc-auth-dialog {
    max-height: 90vh;
    max-width: 420px;
    overflow-y: auto;
    padding: 20px;
    width: 92vw;
  }
  .jc-auth-close {
    right: 12px;
    top: 12px;
  }
  .jc-auth-header {
    padding-right: 36px;
  }
  .jc-auth-dialog h2 {
    font-size: 20px !important;
  }
  .jc-account-page h1 {
    font-size: 28px !important;
    margin-bottom: 24px !important;
  }
  .jc-creation-card img {
    height: 220px;
  }
  .jc-account-nav a {
    padding-right: 14px;
  }
  .jc-header-actions {
    justify-content: flex-end;
    position: absolute;
    right: 12px;
    top: 8px;
    width: auto;
  }
  .inside-header > .jc-header-lang-switch {
    right: 60px;
    top: 8px;
  }
  .jc-auth-control {
    float: none;
    margin: 0;
    right: 12px;
    top: 8px;
    text-align: right;
  }
  .jc-header-actions .jc-auth-control {
    margin: 0;
  }
  .jc-auth-open,
  .jc-auth-menu-toggle {
    font-size: 0;
    gap: 0;
    min-height: 36px;
    min-width: 36px;
    padding: 6px;
  }
  .jc-auth-open::before,
  .jc-auth-menu-toggle::before {
    content: "";
    background: currentColor;
    display: inline-block;
    height: 18px;
    width: 18px;
    -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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .jc-auth-menu-toggle img,
  .jc-auth-menu-toggle span {
    display: none;
  }
  .jc-header-actions .jc-header-lang-switch a {
    min-height: 36px;
  }
}

@media (max-width: 380px) {
  .jc-header-actions {
    gap: 10px;
    right: 8px;
  }
  .jc-auth-open,
  .jc-auth-menu-toggle {
    min-height: 34px;
    min-width: 34px;
  }
}
/* --- Historique de consultation --- */
.jc-history-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.jc-history-head h1 {
  margin: 0;
}

.jc-history-clear {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 8px;
  color: #b3261e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  white-space: nowrap;
}

.jc-history-clear:hover {
  background: #fdecea;
  border-color: #b3261e;
}

.jc-history-note {
  color: #666;
  font-size: 14px;
  margin: 0 0 18px;
}

.jc-history-bucket {
  color: #111;
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 12px;
}

.jc-history-grid + .jc-history-bucket {
  margin-top: 26px;
}

.jc-history-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.jc-history-remove {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 50%;
  color: #444;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  z-index: 2;
}

.jc-history-remove:hover {
  background: #fdecea;
  border-color: #b3261e;
  color: #b3261e;
}

.jc-history-thumb {
  background: #f7f7f7;
  display: block;
}

.jc-history-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
}

.jc-history-title {
  color: #3a3a3a !important;
  display: -webkit-box;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  text-transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jc-history-title a {
  color: inherit;
  text-decoration: none;
}

.jc-history-title a:hover {
  text-decoration: underline;
}

.jc-history-date {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}

/* Refonte 2026 : la route Mon compte reutilise les memes surfaces, rayons,
   ombres et hierarchie typographique que les autres pages du site. */
body.jc-v2 .jc-account-page {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 36px var(--jc-gutter) 64px !important;
  color: var(--jc-ink);
  font-family: var(--jc-font-body);
}

/* Cette route injecte son contenu directement dans le shell GeneratePress.
   Sans sidebar globale, la grille ne doit pas conserver sa colonne de 260 px. */
body.jc-v2.jc-account-route #content.site-content {
  grid-template-columns: minmax(0, 1fr);
}

body.jc-v2.jc-account-route #primary.content-area {
  grid-column: 1;
  width: 100%;
}

body.jc-v2 .jc-account-layout {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 34px;
}

body.jc-v2 .jc-account-sidebar {
  position: sticky;
  top: 22px;
  padding: 18px;
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-r-lg);
  background: #fff;
  box-shadow: var(--jc-shadow-card);
}

body.jc-v2 .jc-account-sidebar-title {
  margin: 0 0 10px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--jc-line);
  color: var(--jc-ink);
  font-family: var(--jc-font-head);
  font-size: 19px;
  font-weight: 800;
}

body.jc-v2 .jc-account-nav {
  gap: 3px;
}

body.jc-v2 .jc-account-nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--jc-ink);
  font-family: var(--jc-font-head);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

body.jc-v2 .jc-account-nav a:hover {
  background: var(--jc-bg-soft);
  color: var(--jc-blue-2);
}

body.jc-v2 .jc-account-nav a.is-active {
  background: var(--jc-bg-soft);
  color: var(--jc-blue-2);
  font-weight: 700;
}

body.jc-v2 .jc-account-nav .jc-account-logout {
  margin-top: 20px;
  padding: 10px 12px;
  border-color: var(--jc-line);
  background: #fff;
  color: var(--jc-muted);
  font-weight: 600;
}

body.jc-v2 .jc-account-page h1 {
  margin: 0 0 12px !important;
  color: var(--jc-ink);
  font-family: var(--jc-font-head);
  font-size: 32px !important;
  font-weight: 800;
  letter-spacing: -.02em;
}

body.jc-v2 .jc-account-intro {
  max-width: 70ch;
  margin: 0 0 24px;
  color: var(--jc-muted);
  font-size: 14px;
  line-height: 1.55;
}

body.jc-v2 .jc-creations-grid {
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

body.jc-v2 .jc-creation-card,
body.jc-v2 .jc-profile-card,
body.jc-v2 .jc-account-empty {
  overflow: hidden;
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-r-lg);
  background: #fff;
  box-shadow: var(--jc-shadow-card);
}

body.jc-v2 .jc-creation-preview-btn,
body.jc-v2 .jc-creation-card img,
body.jc-v2 .jc-favorite-thumb,
body.jc-v2 .jc-history-thumb {
  background: var(--jc-bg-soft);
}

body.jc-v2 .jc-creation-actions {
  gap: 7px;
  padding: 10px;
}

body.jc-v2 .jc-creation-actions a,
body.jc-v2 .jc-creation-actions button,
body.jc-v2 .jc-account-start {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--jc-bg-soft);
  color: var(--jc-blue-2) !important;
  font-family: var(--jc-font-head);
  font-size: 13px;
  font-weight: 650;
}

body.jc-v2 .jc-creation-actions a:hover,
body.jc-v2 .jc-creation-actions button:hover {
  background: #e2ebfb;
  color: var(--jc-blue-2) !important;
}

body.jc-v2 .jc-account-start {
  background: var(--jc-blue-2);
  color: #fff !important;
}

body.jc-v2 .jc-creation-actions .jc-creation-publish {
  border: 1px solid #e2c46d;
  background: var(--jc-accent-soft, #fff6d8);
  color: #6f5310 !important;
}

body.jc-v2 .jc-creation-actions .jc-creation-publish:hover {
  border-color: var(--jc-accent);
  background: #ffefb8;
  color: #5f4509 !important;
}

body.jc-v2 .jc-creation-actions button[data-jc-creations-unpublish] {
  border: 1px solid #e5a44a;
  background: #fff;
  color: #8a5a10 !important;
}

body.jc-v2 .jc-creation-actions button[data-jc-delete-creation],
body.jc-v2 .jc-creation-actions button[data-jc-delete-favorite] {
  border: 1px solid rgba(180, 35, 24, .18);
  background: rgba(180, 35, 24, .06);
  color: #912018 !important;
}

body.jc-v2 .jc-creation-actions button[data-jc-delete-creation]:hover,
body.jc-v2 .jc-creation-actions button[data-jc-delete-favorite]:hover {
  border-color: rgba(180, 35, 24, .3);
  background: rgba(180, 35, 24, .1);
  color: #912018 !important;
}

@media (max-width: 820px) {
  body.jc-v2 .jc-account-page {
    padding: 24px 18px 48px !important;
  }

  body.jc-v2 .jc-account-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  body.jc-v2 .jc-account-sidebar {
    position: static;
  }

  body.jc-v2 .jc-account-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.jc-v2 .jc-account-nav .jc-account-logout {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  body.jc-v2 .jc-account-nav {
    grid-template-columns: 1fr;
  }
}

/* La route compte n'a pas de sidebar globale. Le shell reste toutefois borne
   comme les autres pages : seule la colonne fantome doit disparaitre. */
body.jc-account-route #content.site-content,
body.jc-account-route #primary.content-area {
  left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.jc-account-route #content.site-content {
  display: block !important;
}

body.jc-account-route .jc-account-page {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding-left: clamp(24px, 3vw, 48px) !important;
  padding-right: clamp(24px, 3vw, 48px) !important;
}

/* Child2 utilise le conteneur commun de 1180 px du header et des galeries. */
body.jc-v2.jc-account-route #page.grid-container {
  left: auto !important;
  width: 100% !important;
  max-width: var(--jc-container, 1180px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}
