/* Brand themes for the Premium Car and TER.OI cards.
   Layout comes from carte.css; this file only recolours it. */

/* ---------- Premium Car : dégradé nuit → or, vagues ---------- */
body.theme-premium {
  --text: #2C2140;
  --muted: #7A6488;
  --blue-600: #8A5A28;
  --blue-700: #4A2E68;
  --ink: #241838;
  --ice: #F6D78A;
  color: #FBF6EC;
  background:
    radial-gradient(70% 36% at 88% 0%, rgba(255, 206, 120, 0.55), transparent 58%),
    radial-gradient(48% 42% at 0% 22%, rgba(120, 70, 210, 0.42), transparent 62%),
    linear-gradient(168deg, #241644 0%, #5A2E86 30%, #A45A86 62%, #E7B07A 100%);
}
.theme-premium :focus-visible { outline-color: #F6D78A; }
.theme-premium .card__glow {
  top: 28px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.62), transparent 64%);
}
.theme-premium .card__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 46% at 50% 18%, #000 12%, transparent 74%);
}
.theme-premium .card__wave { top: 250px; height: 190px; fill: rgba(255, 255, 255, 0.16); }
.theme-premium .card__wave--b { top: 430px; height: 220px; fill: rgba(255, 214, 150, 0.2); }
.theme-premium .card__wave--c { top: auto; bottom: -20px; height: 160px; fill: rgba(255, 255, 255, 0.28); }
.theme-premium .card__top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  min-height: 48px;
}
.theme-premium .card__logo {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(268px, 70%);
  height: auto;
  margin-top: 8px;
}
.theme-premium .card__share {
  grid-column: 2;
  grid-row: 1;
  background: linear-gradient(160deg, #F8E7B0, #D7B15A);
  color: #3A2E18;
}
.theme-premium .profile__avatar {
  background: linear-gradient(145deg, #F8E7B4, #E0BE68 48%, #A8843A);
}
.theme-premium .profile__avatar span {
  background: radial-gradient(circle at 35% 28%, #5C5278, #322C4A 72%);
  color: #F6E4AE;
}
.theme-premium .profile__role span { color: #F0D48A; }
.theme-premium .quick a:hover,
.theme-premium .quick a:active {
  background: #F4D98A;
  color: #3A2E18;
}
.theme-premium .btn-save {
  background: linear-gradient(180deg, #F6E2A4, #E2BA5C 46%, #C9963E);
  color: #2C2416;
  box-shadow: 0 18px 40px -16px rgba(40, 28, 10, 0.5);
}
.theme-premium .btn-save:hover { background: #2C2416; color: #F6E3A6; }
.theme-premium .row { box-shadow: 0 16px 34px -22px rgba(36, 16, 48, 0.55); }
.theme-premium .credit { color: rgba(58, 33, 72, 0.72); }
.theme-premium .credit a { color: #2A1844; }
.theme-premium .row__ico { background: #F8F1DE; color: #8A5A28; }
.theme-premium .row__ico--wa { background: #E3F8EC; color: #13A35A; }

@media (min-width: 560px) {
  body.theme-premium {
    background:
      radial-gradient(42% 36% at 100% 0%, rgba(255, 206, 120, 0.35), transparent 60%),
      linear-gradient(165deg, #3A2068 0%, #8A4E86 48%, #E8C08A 100%);
  }
  body.theme-premium .card {
    background:
      radial-gradient(80% 38% at 90% 0%, rgba(255, 214, 140, 0.42), transparent 58%),
      radial-gradient(46% 40% at 0% 70%, rgba(90, 40, 150, 0.28), transparent 62%),
      linear-gradient(175deg, #2A184C 0%, #643890 40%, #C46E80 78%, #F0C992 100%);
    box-shadow:
      0 40px 100px -30px rgba(36, 16, 64, 0.45),
      inset 0 0 0 1px rgba(255, 226, 170, 0.32);
  }
}

/* ---------- TER.OI : blanc, orange, bleu ---------- */
body.theme-teroi {
  --text: #1A1C1F;
  --muted: #66707A;
  --blue-600: #2E86C8;
  --blue-700: #E06A22;
  --ink: #1A1C1F;
  --ice: #3B92D6;
  color: #1A1C1F;
  background:
    radial-gradient(48% 30% at 100% 0%, rgba(240, 120, 42, 0.18), transparent 62%),
    radial-gradient(46% 28% at 0% 6%, rgba(54, 148, 216, 0.18), transparent 64%),
    linear-gradient(180deg, #FFFFFF 0%, #F2F5F8 100%);
}
.theme-teroi :focus-visible { outline-color: #2E86C8; }
.theme-teroi .card__glow {
  top: 30px;
  background: radial-gradient(circle, rgba(54, 148, 216, 0.16), transparent 68%);
}
.theme-teroi .card__wave { display: none; }
.theme-teroi .card__top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  min-height: 48px;
}
.theme-teroi .card__logo {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(250px, 68%);
  height: auto;
  margin-top: 6px;
}
.theme-teroi .card__share {
  grid-column: 2;
  grid-row: 1;
  background: #1A1C1F;
  color: #fff;
}
.theme-teroi .profile__avatar {
  background: conic-gradient(from 200deg, #F0782A, #3B92D6, #F0782A);
}
.theme-teroi .profile__avatar span {
  background: #fff;
  color: #1A1C1F;
}
.theme-teroi .profile__role { color: #5C6570; }
.theme-teroi .profile__role span { color: #E86A22; }
.theme-teroi .quick a {
  background: #fff;
  border-color: #E3E8EE;
  color: #1A1C1F;
  box-shadow: 0 10px 24px -16px rgba(20, 28, 40, 0.55);
}
.theme-teroi .quick a:hover,
.theme-teroi .quick a:active {
  background: #F0782A;
  border-color: #F0782A;
  color: #fff;
}
.theme-teroi .btn-save {
  background: #F0782A;
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(180, 70, 20, 0.55);
}
.theme-teroi .btn-save:hover { background: #1A1C1F; color: #fff; }
.theme-teroi .block h2 { color: #1A1C1F; }
.theme-teroi .row {
  border: 1px solid #E6EBF1;
  box-shadow: 0 12px 28px -20px rgba(20, 28, 40, 0.5);
}
.theme-teroi .row__ico { background: #E7F3FC; color: #2E86C8; }
.theme-teroi .row__ico--mail { background: #FFF1E6; color: #E06A22; }
.theme-teroi .row__ico--wa { background: #E3F8EC; color: #13A35A; }
.theme-teroi .credit { color: #7A848E; }
.theme-teroi .credit a { color: #1A1C1F; }

@media (min-width: 560px) {
  body.theme-teroi .card {
    background: #fff;
    box-shadow:
      0 36px 90px -32px rgba(20, 28, 40, 0.28),
      inset 0 0 0 1px #E6EBF1;
  }
}
