/* === Cérémonie + Charte — Palette Azur & Rose magnifique (Mélanie + Maha) v3 2026-06-14 === */

/* === OVERLAY de fond : nuit bleue profonde au lieu de marron === */
.giri-charter-gate, .giri-charter-view {
  background: radial-gradient(ellipse at 30% 20%, rgba(38, 56, 96, 0.94) 0%, rgba(16, 22, 44, 0.98) 60%, rgba(8, 12, 28, 1) 100%) !important;
  backdrop-filter: blur(10px) saturate(120%);
}
.giri-charter-gate.sacred {
  background: radial-gradient(ellipse at 70% 30%, rgba(252, 228, 236, 0.10) 0%, rgba(38, 56, 96, 0.96) 30%, rgba(12, 18, 36, 0.99) 80%) !important;
}

/* === ORBE qui respire : passe du doré au rose-azur tendre === */
.giri-charter-orb {
  background: radial-gradient(circle at 35% 35%, #fff8e8 0%, #f5c36a 25%, #e0b063 50%, #b8892f 75%, transparent 100%) !important;
  box-shadow:
    0 0 80px rgba(248, 187, 208, 0.55),
    0 0 160px rgba(179, 157, 219, 0.30),
    0 0 240px rgba(135, 206, 250, 0.18) !important;
}
.giri-charter-breath-text {
  color: #f5c36a !important;
  text-shadow:
    0 0 24px rgba(248, 187, 208, 0.5),
    0 0 48px rgba(179, 157, 219, 0.3) !important;
  font-style: italic;
}

/* === CARTE DE LA CHARTE (Serment) : fond nuit bleue glacée, ÉLARGIE pour lisibilité === */
.giri-charter-card.serment {
  background: linear-gradient(180deg, rgba(22, 30, 56, 0.98) 0%, rgba(14, 20, 40, 0.99) 100%) !important;
  border: 1px solid rgba(248, 187, 208, 0.30) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(248, 187, 208, 0.10) inset,
    0 0 80px rgba(179, 157, 219, 0.15) !important;
  border-radius: 22px !important;
  max-width: 640px !important;
  width: 94vw !important;
  padding: 40px 38px !important;
}
.giri-charter-card.serment::before {
  background: linear-gradient(90deg, transparent, rgba(252, 228, 236, 0.6), rgba(179, 157, 219, 0.9), rgba(252, 228, 236, 0.6), transparent) !important;
  height: 2px !important;
}

/* Titre charte — GROSSI v4 */
.giri-charter-card.serment .giri-charter-head h2 {
  color: #f5c36a !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  font-size: 2.1rem !important;
}
.giri-charter-card.serment .giri-charter-icon {
  color: #f5c36a !important;
  filter: drop-shadow(0 0 12px rgba(248, 187, 208, 0.55)) !important;
  font-size: 2.2rem !important;
}
.giri-charter-card.serment .giri-charter-head {
  border-bottom: 1px solid rgba(248, 187, 208, 0.20) !important;
  padding-bottom: 18px !important;
  margin-bottom: 22px !important;
}
.giri-charter-ver {
  color: rgba(252, 228, 236, 0.55) !important;
  font-size: 0.85rem !important;
}

/* Préambule — GROSSI v6 (était trop petit en italique) */
.giri-charter-card.serment .giri-charter-preamble {
  color: #f0e8f5 !important;
  font-style: italic !important;
  font-size: 1.55rem !important;
  line-height: 1.6 !important;
  opacity: 1 !important;
  margin-bottom: 30px !important;
  font-weight: 400 !important;
}

/* Cards de principes — GROSSI v4 */
.giri-charter-card.serment .giri-charter-list li {
  background: linear-gradient(135deg, rgba(248, 187, 208, 0.06), rgba(179, 157, 219, 0.04)) !important;
  border-left: 3px solid rgba(248, 187, 208, 0.55) !important;
  border-radius: 10px !important;
  padding: 1.15rem 1.3rem !important;
  margin: 0.85rem 0 !important;
  gap: 18px !important;
  transition: background .3s ease, border-color .3s ease;
}
.giri-charter-card.serment .giri-charter-list li:hover {
  background: linear-gradient(135deg, rgba(248, 187, 208, 0.10), rgba(179, 157, 219, 0.07)) !important;
  border-left-color: rgba(252, 228, 236, 0.8) !important;
}
.giri-charter-card.serment .giri-charter-list li strong {
  color: #f5c36a !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: 4px;
}
.giri-charter-card.serment .giri-charter-list li span {
  color: #e0d8e8 !important;
  font-size: 1.1rem !important;
  line-height: 1.55 !important;
}
.giri-charter-pic {
  filter: drop-shadow(0 0 6px rgba(248, 187, 208, 0.4));
  font-size: 1.85rem !important;
}

/* Footer — GROSSI v4 */
.giri-charter-card.serment .giri-charter-foot {
  color: #d4ccdf !important;
  font-style: italic !important;
  background: rgba(248, 187, 208, 0.06) !important;
  border-radius: 12px !important;
  padding: 18px 22px !important;
  text-align: left !important;
  font-size: 1.08rem !important;
  line-height: 1.55 !important;
  margin-top: 26px !important;
}

/* Zone intention — GROSSI v4 */
.giri-charter-intention {
  background: linear-gradient(135deg, rgba(248, 187, 208, 0.07), rgba(135, 206, 250, 0.04)) !important;
  border: 1px solid rgba(248, 187, 208, 0.22) !important;
  border-radius: 12px !important;
  padding: 1.4rem 1.3rem !important;
  margin-top: 1.8rem !important;
}
.giri-charter-intention label {
  color: #f5e0eb !important;
  font-style: italic;
  font-size: 1.2rem !important;
  margin-bottom: 0.85rem !important;
}
.giri-charter-intention input {
  background: rgba(14, 18, 32, 0.6) !important;
  border: 1px solid rgba(248, 187, 208, 0.28) !important;
  color: #f5c36a !important;
  border-radius: 8px !important;
  font-size: 1.12rem !important;
  padding: 0.85rem 1rem !important;
}
.giri-charter-intention input:focus {
  border-color: rgba(252, 228, 236, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(248, 187, 208, 0.18) !important;
}
.giri-charter-intention input::placeholder {
  color: rgba(248, 187, 208, 0.45) !important;
  font-size: 1.05rem !important;
}

/* Checkbox + label — GROSSI v4 */
.giri-charter-check {
  color: #f0e3c8 !important;
  font-size: 1.18rem !important;
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.5 !important;
  padding: 4px 0;
}
.giri-charter-check input {
  accent-color: #d4a853 !important;
  width: 18px; height: 18px;
  cursor: pointer;
}

/* === BOUTON "Je rejoins l'espace" : rose-azur gradient lumineux === */
.giri-charter-accept {
  padding: 14px 36px !important;
  background: linear-gradient(135deg, #d4a853 0%, #b8892f 50%, #8a6a2a 100%) !important;
  color: #1a1230 !important;
  border: none !important;
  border-radius: 14px !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  box-shadow:
    0 8px 24px rgba(244, 143, 177, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
.giri-charter-accept:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06);
  box-shadow:
    0 12px 32px rgba(244, 143, 177, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
}
.giri-charter-accept:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.4);
}

/* === Carte de matriculation (Bienvenue parmi nous) === */
.giri-matric-overlay {
  background: radial-gradient(ellipse at center, rgba(38, 56, 96, 0.94) 0%, rgba(16, 22, 44, 0.98) 70%) !important;
}
.giri-matric-card {
  background: linear-gradient(180deg, #fff8e8 0%, #f5c36a 60%, #e0b063 100%) !important;
  color: #4a2c50 !important;
  border: 2px solid rgba(248, 187, 208, 0.6) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(248, 187, 208, 0.35),
    inset 0 0 30px rgba(255, 255, 255, 0.4) !important;
  border-radius: 22px !important;
  max-width: 500px !important;
}
.giri-matric-title {
  color: #3a2c1c !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 2rem !important;
  font-weight: 600 !important;
}
.giri-matric-lead {
  color: #6a4a72 !important;
  font-style: italic !important;
}
.giri-matric-msg {
  color: #4a3a55 !important;
}
.giri-matric-msg strong {
  color: #3a2c1c !important;
}
.giri-matric-xp {
  background: linear-gradient(90deg, #d4a853, #b8892f, #8a6a2a) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(244, 143, 177, 0.35) !important;
}
.giri-matric-cta {
  padding: 14px 36px !important;
  background: linear-gradient(135deg, #d4a853 0%, #b8892f 50%, #8a6a2a 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  box-shadow:
    0 8px 24px rgba(244, 143, 177, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
  transition: all .25s ease !important;
}
.giri-matric-cta:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.05);
  box-shadow:
    0 12px 32px rgba(244, 143, 177, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset !important;
}

/* === Cérémonie du sceau (success) — NOUVEAU DESIGN v7 fleur de cerisier === */
.giri-charter-sceau {
  background: radial-gradient(ellipse at center, rgba(252, 228, 236, 0.15) 0%, rgba(22, 30, 56, 0.95) 70%) !important;
}

/* Carte centrale avec fleur de cerisier qui s'ouvre */
.giri-sceau-card {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 40px 32px;
  animation: sceauCardFadeIn 0.6s ease both;
}
@keyframes sceauCardFadeIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

/* Fleur SVG v9 — élégante avec courbes Bézier naturelles */
.giri-sceau-svg {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  animation: sceauFlowerBloom 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  filter: drop-shadow(0 6px 24px rgba(244, 143, 177, 0.45)) drop-shadow(0 12px 40px rgba(244, 143, 177, 0.25));
}
.giri-sceau-svg .gsf-petals {
  animation: sceauPetalsRotate 18s linear infinite;
  transform-origin: center;
}
@keyframes sceauPetalsRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.giri-sceau-svg .gsf-core {
  animation: sceauCorePulseSVG 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes sceauCorePulseSVG {
  0%, 100% { r: 16; opacity: 1; }
  50% { r: 18; opacity: 0.92; }
}
/* L'ancienne fleur CSS est cachée (au cas où elle apparaît) */
.giri-sceau-flower {
  display: none !important;
}
/* Bloc legacy compat (ne s'affiche plus mais on garde la classe stylée au cas où) */
.giri-sceau-flower-legacy {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
  animation: sceauFlowerBloom 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes sceauFlowerBloom {
  0% { transform: scale(0) rotate(-40deg); opacity: 0; }
  60% { transform: scale(1.1) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Centre doré pulsant */
.giri-sceau-flower .gsf-c {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e1, #f5d76e 50%, #d4a843 100%);
  box-shadow:
    0 0 30px rgba(245, 215, 110, 0.8),
    0 0 60px rgba(245, 215, 110, 0.4);
  z-index: 2;
  animation: sceauCorePulse 2s ease-in-out infinite;
}
@keyframes sceauCorePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(245, 215, 110, 0.8), 0 0 60px rgba(245, 215, 110, 0.4); }
  50% { box-shadow: 0 0 45px rgba(245, 215, 110, 1), 0 0 90px rgba(245, 215, 110, 0.6); }
}

/* 5 pétales disposés en fleur */
.giri-sceau-flower .gsf-p {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: radial-gradient(circle at 30% 30%, #fff8e8 0%, #f5c36a 40%, #d4a853 100%);
  border-radius: 64px 8px 64px 8px;
  box-shadow:
    0 4px 18px rgba(244, 143, 177, 0.35),
    inset 0 0 12px rgba(255, 255, 255, 0.4);
  transform-origin: center bottom;
}
.giri-sceau-flower .gsf-p1 { transform: rotate(0deg) translateY(-38px); }
.giri-sceau-flower .gsf-p2 { transform: rotate(72deg) translateY(-38px); }
.giri-sceau-flower .gsf-p3 { transform: rotate(144deg) translateY(-38px); }
.giri-sceau-flower .gsf-p4 { transform: rotate(216deg) translateY(-38px); }
.giri-sceau-flower .gsf-p5 { transform: rotate(288deg) translateY(-38px); }

/* Texte principal */
.giri-sceau-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 2.4rem !important;
  font-weight: 500 !important;
  color: #f5c36a !important;
  margin: 0 0 12px !important;
  text-shadow: 0 0 30px rgba(248, 187, 208, 0.6);
  animation: sceauTextRise 1s ease 0.5s both;
}
.giri-sceau-sub {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 1.25rem !important;
  color: #f0e0e8 !important;
  margin: 0 !important;
  opacity: 0.92;
  animation: sceauTextRise 1s ease 0.85s both;
}
@keyframes sceauTextRise {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Pétales qui jaillissent en burst */
.sakura-burst {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.sakura-burst-petal {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  background: radial-gradient(circle at 30% 30%, #fff8e8 0%, #e0b063 60%, #d4a853 100%);
  border-radius: 16px 3px 16px 3px;
  opacity: 0;
  animation: sakuraBurst 2.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.sakura-burst-petal.sbp-0 { animation-delay: 0.2s; --dx: 240px; --dy: -180px; --rot: 540deg; }
.sakura-burst-petal.sbp-1 { animation-delay: 0.3s; --dx: -220px; --dy: -200px; --rot: -480deg; }
.sakura-burst-petal.sbp-2 { animation-delay: 0.25s; --dx: 280px; --dy: 100px; --rot: 360deg; }
.sakura-burst-petal.sbp-3 { animation-delay: 0.35s; --dx: -280px; --dy: 80px; --rot: -420deg; }
.sakura-burst-petal.sbp-4 { animation-delay: 0.4s; --dx: 180px; --dy: 240px; --rot: 600deg; }
.sakura-burst-petal.sbp-5 { animation-delay: 0.45s; --dx: -180px; --dy: 220px; --rot: -540deg; }
.sakura-burst-petal.sbp-6 { animation-delay: 0.5s; --dx: 60px; --dy: -260px; --rot: 480deg; }
.sakura-burst-petal.sbp-7 { animation-delay: 0.55s; --dx: -60px; --dy: 260px; --rot: -360deg; }

@keyframes sakuraBurst {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.4); }
  15% { opacity: 1; transform: translate(calc(var(--dx, 100px) * 0.3), calc(var(--dy, 0) * 0.3)) rotate(calc(var(--rot, 360deg) * 0.3)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 100px), var(--dy, 0)) rotate(var(--rot, 360deg)) scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .sakura-burst-petal, .giri-sceau-flower, .giri-sceau-flower .gsf-c { animation: none; }
  .giri-sceau-flower { opacity: 1; transform: none; }
}

/* === Boutons de la charte vue libre === */
.giri-charter-view .giri-charter-card {
  background: linear-gradient(180deg, rgba(22, 30, 56, 0.98), rgba(14, 20, 40, 0.99)) !important;
  border: 1px solid rgba(248, 187, 208, 0.25) !important;
  color: #e8e0f0 !important;
}
.giri-charter-view .giri-charter-head h2 { color: #f5c36a !important; }
.giri-charter-view .giri-charter-preamble { color: #d8d0e4 !important; }
.giri-charter-view .giri-charter-list strong { color: #f5c36a !important; }
.giri-charter-view .giri-charter-list span { color: #cdbf9c !important; }
.giri-charter-view .giri-charter-foot { color: #cdbf9c !important; background: rgba(248, 187, 208, 0.06) !important; }
.giri-charter-view .giri-charter-list li {
  border-bottom: 1px solid rgba(248, 187, 208, 0.12) !important;
}

/* === Quelques étoiles scintillantes en arrière-plan (subtile) === */
.giri-charter-gate.sacred::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(252, 228, 236, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 28% 42%, rgba(179, 157, 219, 0.7), transparent),
    radial-gradient(2px 2px at 52% 12%, rgba(248, 187, 208, 0.8), transparent),
    radial-gradient(1px 1px at 68% 65%, rgba(252, 228, 236, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 78% 25%, rgba(179, 157, 219, 0.8), transparent),
    radial-gradient(2px 2px at 89% 58%, rgba(248, 187, 208, 0.7), transparent),
    radial-gradient(1px 1px at 38% 78%, rgba(252, 228, 236, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 58% 88%, rgba(179, 157, 219, 0.7), transparent);
  pointer-events: none;
  animation: stardustTwinkle 6s ease-in-out infinite;
}
@keyframes stardustTwinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* === Animation shake checkbox === */
@keyframes sermentShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* === PASTILLE BÊTA TEST minuscule en haut à droite discrète === */
.giri-beta-banner {
  position: fixed;
  top: 8px;
  right: 12px;
  background: linear-gradient(135deg, rgba(28, 22, 48, 0.92) 0%, rgba(40, 30, 62, 0.92) 100%);
  color: rgba(252, 228, 236, 0.85);
  padding: 8px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 22px;
  z-index: 99998;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(244, 143, 177, 0.25) inset;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
  opacity: 0.78;
  transition: opacity .25s ease, transform .25s ease;
}
.giri-beta-banner:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.giri-beta-banner .gbb-icon {
  display: inline-block;
  filter: drop-shadow(0 1px 2px rgba(244, 143, 177, 0.4));
  font-size: 0.85rem;
}
.giri-beta-banner .gbb-label {
  color: rgba(248, 187, 208, 0.85);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.62rem;
}
.giri-beta-banner .gbb-bug-link {
  color: rgba(252, 228, 236, 0.95);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s ease;
}
.giri-beta-banner .gbb-bug-link:hover {
  color: #f5c36a;
  text-shadow: 0 0 6px rgba(244, 143, 177, 0.5);
}
.giri-beta-banner .gbb-sep {
  margin: 0 4px;
  opacity: 0.4;
  font-size: 0.65rem;
}
.giri-beta-banner .gbb-digital {
  color: rgba(252, 228, 236, 0.55);
  font-size: 0.65rem;
  font-style: italic;
}
.giri-beta-banner .gbb-digital a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(252, 228, 236, 0.3);
}
.giri-beta-banner .gbb-digital a:hover {
  color: rgba(248, 187, 208, 0.95);
  border-bottom-color: rgba(248, 187, 208, 0.7);
}
@media (max-width: 640px) {
  .giri-beta-banner {
    bottom: 70px;
    left: 8px;
    font-size: 0.65rem;
    padding: 6px 10px;
  }
  .giri-beta-banner .gbb-label { font-size: 0.55rem; }
  .giri-beta-banner .gbb-digital { display: none; }
}

/* === Mobile === */
@media (max-width: 640px) {
  .giri-charter-card { padding: 28px 22px !important; }
  .giri-charter-card.serment .giri-charter-head h2 { font-size: 1.65rem !important; }
  .giri-charter-card.serment .giri-charter-preamble { font-size: 1.12rem !important; }
  .giri-charter-card.serment .giri-charter-list li strong { font-size: 1.15rem !important; }
  .giri-charter-card.serment .giri-charter-list li span { font-size: 1rem !important; }
  .giri-charter-card.serment .giri-charter-foot { font-size: 0.98rem !important; }
  .giri-charter-check { font-size: 1.05rem !important; }
  .giri-matric-card { padding: 32px 22px !important; }
  .giri-matric-title { font-size: 1.65rem !important; }
}

/* === FIX BARRE MESSAGE invisible sur thèmes féminins clairs/foncés === */
/* Thème ROSE : fond rose poudré sur fond rose = invisible. Forcer surface plus marquée */
html[data-theme="rose"] .msg-input-wrap {
  background: linear-gradient(180deg, rgba(40, 26, 31, 0.95), rgba(50, 33, 40, 0.98)) !important;
  border-top: 1px solid rgba(232, 168, 192, 0.30) !important;
}
html[data-theme="rose"] .msg-input-box {
  background: rgba(245, 230, 236, 0.10) !important;
  border: 1.5px solid rgba(232, 168, 192, 0.35) !important;
  border-radius: 14px !important;
}
html[data-theme="rose"] .msg-input-box textarea,
html[data-theme="rose"] .msg-input-wrap textarea {
  background: rgba(245, 230, 236, 0.08) !important;
  color: #f5e6ec !important;
  border: none !important;
}
html[data-theme="rose"] .msg-input-box textarea::placeholder,
html[data-theme="rose"] .msg-input-wrap textarea::placeholder {
  color: rgba(212, 184, 194, 0.65) !important;
  font-style: italic;
}

/* Thème BLEU DOUX : barre lisible */
html[data-theme="bleu-doux"] .msg-input-wrap {
  background: linear-gradient(180deg, rgba(22, 36, 58, 0.95), rgba(30, 48, 72, 0.98)) !important;
  border-top: 1px solid rgba(138, 184, 216, 0.28) !important;
}
html[data-theme="bleu-doux"] .msg-input-box {
  background: rgba(232, 241, 248, 0.08) !important;
  border: 1.5px solid rgba(138, 184, 216, 0.32) !important;
  border-radius: 14px !important;
}
html[data-theme="bleu-doux"] .msg-input-box textarea,
html[data-theme="bleu-doux"] .msg-input-wrap textarea {
  background: rgba(232, 241, 248, 0.06) !important;
  color: #e8f1f8 !important;
  border: none !important;
}
html[data-theme="bleu-doux"] .msg-input-box textarea::placeholder {
  color: rgba(168, 192, 212, 0.65) !important;
  font-style: italic;
}

/* Thème LAVANDE : barre lisible */
html[data-theme="lavande"] .msg-input-wrap {
  background: linear-gradient(180deg, rgba(31, 26, 44, 0.95), rgba(40, 33, 56, 0.98)) !important;
  border-top: 1px solid rgba(184, 160, 212, 0.28) !important;
}
html[data-theme="lavande"] .msg-input-box {
  background: rgba(236, 228, 245, 0.08) !important;
  border: 1.5px solid rgba(184, 160, 212, 0.32) !important;
  border-radius: 14px !important;
}
html[data-theme="lavande"] .msg-input-box textarea,
html[data-theme="lavande"] .msg-input-wrap textarea {
  background: rgba(236, 228, 245, 0.06) !important;
  color: #f0e3c8 !important;
  border: none !important;
}
html[data-theme="lavande"] .msg-input-box textarea::placeholder {
  color: rgba(196, 184, 212, 0.65) !important;
  font-style: italic;
}

/* Thème DORÉ CLAIR (ivoire) : barre crème → besoin de contraste plus marqué */
html[data-theme="dore"] .msg-input-wrap {
  background: linear-gradient(180deg, rgba(247, 241, 230, 0.96), rgba(240, 232, 216, 0.98)) !important;
  border-top: 1px solid rgba(201, 152, 95, 0.35) !important;
}
html[data-theme="dore"] .msg-input-box {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1.5px solid rgba(201, 152, 95, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(201, 152, 95, 0.10) !important;
}
html[data-theme="dore"] .msg-input-box textarea,
html[data-theme="dore"] .msg-input-wrap textarea {
  background: rgba(255, 255, 255, 0.0) !important;
  color: #3a2c1c !important;
  border: none !important;
  font-weight: 500 !important;
}
html[data-theme="dore"] .msg-input-box textarea::placeholder,
html[data-theme="dore"] .msg-input-wrap textarea::placeholder {
  color: rgba(122, 90, 40, 0.55) !important;
  font-style: italic;
  font-weight: 400 !important;
}

/* Boutons + (add) / emoji / send / mic — fond + contour visibles sur tous thèmes féminins */
html[data-theme="rose"] .msg-input-wrap button,
html[data-theme="bleu-doux"] .msg-input-wrap button,
html[data-theme="lavande"] .msg-input-wrap button {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--t) !important;
}
html[data-theme="dore"] .msg-input-wrap button {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(201, 152, 95, 0.35) !important;
  color: #3a2c1c !important;
}
html[data-theme="dore"] .msg-input-wrap button:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(201, 152, 95, 0.6) !important;
}

/* === FIX FOCUS INPUT MESSAGE — rectangle jaune-orange moche → doux rose-azur === */
/* Override du focus doré agressif sur tous les thèmes pour rester cohérent */
.msg-input-box textarea:focus,
.msg-input-box textarea:focus-visible {
  outline: none !important;
  border-color: rgba(248, 187, 208, 0.45) !important;
  box-shadow:
    0 0 0 3px rgba(248, 187, 208, 0.15),
    0 0 20px rgba(179, 157, 219, 0.10) !important;
}
/* Sur thèmes Mélanie féminins (doré/bleu doux/rose/lavande) → focus assorti à l'accent du thème */
html[data-theme="rose"] .msg-input-box textarea:focus,
html[data-theme="rose"] .msg-input-box textarea:focus-visible {
  border-color: rgba(232, 168, 192, 0.55) !important;
  box-shadow:
    0 0 0 3px rgba(232, 168, 192, 0.20),
    0 0 22px rgba(216, 150, 168, 0.14) !important;
}
html[data-theme="bleu-doux"] .msg-input-box textarea:focus,
html[data-theme="bleu-doux"] .msg-input-box textarea:focus-visible {
  border-color: rgba(138, 184, 216, 0.55) !important;
  box-shadow:
    0 0 0 3px rgba(138, 184, 216, 0.20),
    0 0 22px rgba(184, 156, 212, 0.12) !important;
}
html[data-theme="lavande"] .msg-input-box textarea:focus,
html[data-theme="lavande"] .msg-input-box textarea:focus-visible {
  border-color: rgba(184, 160, 212, 0.55) !important;
  box-shadow:
    0 0 0 3px rgba(184, 160, 212, 0.20),
    0 0 22px rgba(224, 184, 240, 0.12) !important;
}
html[data-theme="dore"] .msg-input-box textarea:focus,
html[data-theme="dore"] .msg-input-box textarea:focus-visible {
  border-color: rgba(201, 152, 95, 0.50) !important;
  box-shadow:
    0 0 0 3px rgba(201, 152, 95, 0.18),
    0 0 22px rgba(232, 200, 150, 0.12) !important;
}
/* Désactiver tout outline natif du navigateur sur les inputs/textareas dans la communauté */
.msg-input-box input:focus,
.msg-input-box input:focus-visible,
.msg-input-wrap textarea:focus,
.msg-input-wrap textarea:focus-visible {
  outline: none !important;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .giri-charter-gate.sacred::after { animation: none; }
}
