/*@import 'tailwindcss';*/

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

/* ==========================================================================
   Rebalancio Landing - Minimal Premium CSS (no Tailwind)
   ========================================================================== */

/* ----- Base ----- */
:root{
  --bg: #ffffff;
  --text: #0f172a;      /* slate-900 */
  --muted: #475569;     /* slate-600 */
  --border: #e2e8f0;    /* slate-200 */
  --soft: #f8fafc;      /* slate-50 */
  --primary: #1d4ed8;   /* blue-700 */
  --primary-hover: #1e40af; /* blue-800 */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

img { max-width: 100%; display: block; }

.container{
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Header ----- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-img{
  height: 30px;
  width: auto;
}

.nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover{
  color: var(--text);
  background: var(--soft);
}

.btn-link{
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

/* ----- Main sections ----- */
section{
  padding: 64px 0;
}

.section-title{
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
}

/* ----- Hero ----- */
.hero{
  padding: 72px 0;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-title{
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
}

.hero-subtitle{
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px 0;
  max-width: 52ch;
}

.hero-cta{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.hero-note{
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.hero-visual{
  display: flex;
  justify-content: flex-end;
}

.hero-placeholder{
  width: 100%;
  min-height: 240px;
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.hero-mockup {
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

/* ----- Buttons ----- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--primary);
  color: white;
}
.btn-primary:hover{
  background: var(--primary-hover);
}

.btn-secondary{
  background: white;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover{
  background: var(--soft);
}

.btn-full{ width: 100%; }

/* ----- Steps ----- */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step{
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: white;
}

.step-title{
  margin: 0 0 8px 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.step-text{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ----- Features ----- */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature{
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: white;
}

.feature-title{
  margin: 0 0 8px 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.feature-text{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ----- Pricing ----- */
.pricing{
  background: var(--soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.pricing::before{
  content:"";
  position:absolute;
  left:-180px;
  bottom:-220px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle,
    rgba(29,78,216,.10),
    rgba(255,255,255,0) 60%
  );
  pointer-events:none;
}

.pricing-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.price-card{
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.price-title{
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
}

.price-amount{
  font-size: 34px;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 14px 0;
}

.price-list{
  margin: 0 0 16px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.price-list li{ margin: 6px 0; }

.pricing-note{
  margin: 18px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ----- FAQ ----- */
.faq-list{
  display: grid;
  gap: 10px;
}

.faq-item{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  padding: 0;
  overflow: hidden;
}

.faq-question{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.faq-question::-webkit-details-marker{ display: none; }

.faq-answer{
  padding: 0 16px 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.faq-answer p{ margin: 0; }

.faq-cta{
  margin-top: 22px;
}

/* ----- Footer ----- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* ----- Stats ----- */
.stats{
  padding: 24px 0 64px 0;
}

.stats-inner{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-title{
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  letter-spacing: -0.01em;
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stats-card{
  border: 1px solid var(--border);
  background: white;
  border-radius: 18px;
  padding: 16px 18px;
}

.stats-number{
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 4px 0;
}

.stats-caption{
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px){
  .stats-grid{
    grid-template-columns: 1fr;
  }
}


/* ----- Responsive ----- */

@media (max-width: 900px){
  .hero-inner{
    grid-template-columns: 1fr;
  }
  .hero-visual{
    justify-content: flex-start;
  }
  .hero-title{
    font-size: 36px;
  }
  .steps{
    grid-template-columns: 1fr;
  }
  .feature-grid{
    grid-template-columns: 1fr;
  }
  .pricing-grid{
    grid-template-columns: 1fr;
  }
}

/* ----- Pricing (3 cards) ----- */
.pricing-grid-3{
  grid-template-columns: repeat(3, 1fr);
}

.price-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  width: fit-content;
}

.price-card-highlight{
  border-color: rgba(29, 78, 216, 0.25);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

@media (max-width: 900px){
  .pricing-grid-3{
    grid-template-columns: 1fr;
  }
}

.hero--glow {
  position: relative;
  overflow: hidden;
}

.hero--glow::before{
  content:"";
  position:absolute;
  inset:-200px -200px auto -200px;
  height: 520px;
  background: radial-gradient(closest-side,
    rgba(29,78,216,.18),
    rgba(29,78,216,.06),
    rgba(255,255,255,0)
  );
  filter: blur(10px);
  pointer-events: none;
}

.hero--glow::after{
  content:"";
  position:absolute;
  right:-240px;
  top:-220px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle,
    rgba(29,78,216,.14),
    rgba(255,255,255,0) 60%
  );
  pointer-events:none;
}

.section-plain { background: var(--bg); }

.section-tint {
  background: linear-gradient(180deg, rgba(29,78,216,.06), rgba(255,255,255,0));
}

.section-tint-2 {
  background: linear-gradient(180deg, rgba(15,23,42,.04), rgba(255,255,255,0));
}


/* ----- Forms ----- */

.label{display:block;font-size:14px;margin-bottom:6px;color:#1e293b;}
.input{
  width:100%;
  padding:10px 12px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#fff;
  color:#1e293b;
}
.input:focus{
  outline:none;
  border-color:#94a3b8;
  box-shadow:0 0 0 3px rgba(148,163,184,.25);
}
.error{margin-top:8px;color:#b91c1c;font-size:13px;}

.btn-danger{
  background:#dc2626;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:10px 14px;
  cursor:pointer;
}
.btn-danger:hover{filter:brightness(0.98);}


 .rb-input-group{
  display:flex;
  align-items:stretch;
  width:100%;
}

.rb-input-group__field{
  flex:1;
  min-width:0;
}

.rb-input-group__field input{
  width:100%;
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}

.rb-input-group__addon{
  display:flex;
  align-items:center;
  padding:0 12px;
  border:1px solid rgba(0,0,0,.12);
  border-left:0;
  border-top-right-radius:12px;
  border-bottom-right-radius:12px;
  background: rgba(0,0,0,.03);
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
  color: rgba(0,0,0,.65);
  user-select:none;
}

.rb-input-group:focus-within .rb-input-group__addon{
  border-color: rgba(59,130,246,.55);
}


/* ----- Modal ----- */

.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.modal-container{
  width: min(560px, 100%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-body{
  padding: 24px;
}

.modal-title{
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-text{
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ===== Auth pages (login/register/forgot) scoped to #loginauth ===== */

#loginauth{
  --brand: #1d4ed8;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;

  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(29,78,216,0.10), transparent 55%),
    radial-gradient(900px 500px at 85% 20%, rgba(29,78,216,0.08), transparent 55%),
    var(--bg);

  min-height: calc(100vh - 160px); /* ajuste si besoin */
  display: flex;
  align-items: center;
  padding: 48px 16px;
}

#loginauth .auth-container{
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

#loginauth .auth-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

#loginauth .auth-header{
  margin-bottom: 18px;
}

#loginauth .auth-title{
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

#loginauth .auth-subtitle{
  margin: 10px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Spacing between form groups (label + input + error) */
#loginauth .auth-field{
  margin-bottom: 18px;
}

/* Inputs */
#loginauth .auth-input{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;

  /* focus animation (doux) */
  transition:
    border-color .20s ease,
    box-shadow .25s ease,
    transform .18s ease;
}

#loginauth .auth-input::placeholder{
  color: #94a3b8;
}

/* Focus plus doux + mini "lift" */
#loginauth .auth-input:focus{
  border-color: rgba(29,78,216,0.55);
  box-shadow: 0 0 0 6px rgba(29,78,216,0.10);
  transform: translateY(-1px);
}

/* Row: remember + forgot */
#loginauth .auth-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#loginauth .remember{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

#loginauth .remember input{
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

/* Links */
#loginauth .auth-link{
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

#loginauth .auth-link:hover{
  text-decoration: underline;
}

/* Button (upgrade x-primary-button without breaking it) */
#loginauth .btn-primary{
  width: 100%;
  margin-top: 8px;                 /* petite marge haute */
  cursor: pointer;                  /* main au hover */

  border-radius: 12px !important;
  background: var(--brand) !important;
  border: 1px solid rgba(29,78,216,0.25) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 12px 14px !important;

  box-shadow: 0 10px 18px rgba(29,78,216,0.18);
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
}

#loginauth .btn-primary:hover{
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(29,78,216,0.22);
}

#loginauth .btn-primary:active{
  transform: translateY(0px);
  box-shadow: 0 10px 18px rgba(29,78,216,0.18);
}

/* Errors + footer */
#loginauth .auth-error{
  color: #b91c1c;
  font-size: 13px;
}

#loginauth .auth-footer-text{
  margin: 14px 0 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Status (forgot password success message) */
#loginauth .auth-status{
  border: 1px solid var(--line);
  background: rgba(29,78,216,0.06);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

/* Mobile */
@media (max-width: 520px){
  #loginauth .auth-card{ padding: 22px; border-radius: 16px; }
  #loginauth .auth-title{ font-size: 22px; }
  #loginauth .auth-row{ flex-direction: column; align-items: flex-start; }
}

/* ===== Profile page scoped to #profilepage ===== */

#profilepage{
  --brand: #1d4ed8;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;

  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(29,78,216,0.08), transparent 55%),
    radial-gradient(900px 500px at 85% 20%, rgba(29,78,216,0.06), transparent 55%),
    var(--bg);
  padding: 42px 16px;
}

#profilepage .profile-container{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

#profilepage .profile-header{
  margin-bottom: 18px;
}

#profilepage .profile-title{
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

#profilepage .profile-subtitle{
  margin: 10px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#profilepage .profile-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}

#profilepage .profile-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#profilepage .card-header{
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
}

#profilepage .card-title{
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  font-weight: 800;
}

#profilepage .card-subtitle{
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--muted);
}

#profilepage .card-body{
  padding: 18px 20px;
}

/* La card danger prend toute la largeur */
#profilepage .profile-card.danger{
  grid-column: 1 / -1;
  border-color: rgba(185, 28, 28, 0.25);
}

#profilepage .profile-card.danger .card-header{
  background: rgba(185, 28, 28, 0.06);
}

/* Mobile */
@media (max-width: 860px){
  #profilepage .profile-grid{
    grid-template-columns: 1fr;
  }
  #profilepage .profile-card.danger{
    grid-column: auto;
  }
}



#profilepage{
  --brand: #1d4ed8;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;

  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(29,78,216,0.08), transparent 55%),
    radial-gradient(900px 500px at 85% 20%, rgba(29,78,216,0.06), transparent 55%),
    var(--bg);
  padding: 42px 16px;
}

#profilepage .profile-container{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

#profilepage .profile-header{
  margin-bottom: 18px;
}

#profilepage .profile-title{
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

#profilepage .profile-subtitle{
  margin: 10px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#profilepage .profile-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}

#profilepage .profile-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#profilepage .card-header{
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
}

#profilepage .card-title{
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  font-weight: 800;
}

#profilepage .card-subtitle{
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--muted);
}

#profilepage .card-body{
  padding: 18px 20px;
}

/* Danger card full width */
#profilepage .profile-card.danger{
  grid-column: 1 / -1;
  border-color: rgba(185, 28, 28, 0.25);
}

#profilepage .profile-card.danger .card-header{
  background: rgba(185, 28, 28, 0.06);
}

/* ----- Harmonisation des forms Breeze ----- */

/* Champs: respirer un peu (les partials ont space-y-6, on n’écrase pas, on ajoute juste du confort) */
#profilepage form > div{
  margin-bottom: 14px;
}

/* Labels (x-input-label rend un <label>) */
#profilepage label{
  color: var(--ink);
  font-weight: 700;
}

/* Inputs : focus doux comme login */
#profilepage input[type="text"],
#profilepage input[type="email"],
#profilepage input[type="password"]{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .20s ease, box-shadow .25s ease, transform .18s ease;
}

#profilepage input::placeholder{
  color: #94a3b8;
}

#profilepage input:focus{
  border-color: rgba(29,78,216,0.55);
  box-shadow: 0 0 0 6px rgba(29,78,216,0.10);
  transform: translateY(-1px);
}

/* Boutons : pointer partout */
#profilepage button{
  cursor: pointer;
}

/* "Saved" */
#profilepage p.text-sm.text-gray-600{
  color: var(--muted) !important;
}

/* Lien/bouton "Resend verification" (dans le texte) */
#profilepage button.underline{
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
}

#profilepage button.underline:hover{
  text-decoration: underline;
}

/* Message succès verification-link-sent : le rendre plus “badge” */
#profilepage p.text-green-600{
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(29,78,216,0.06);
  color: var(--ink) !important;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
}

/* Modal delete: input + spacing */
#profilepage [role="dialog"] form.p-6{
  border-radius: 16px;
}

#profilepage [role="dialog"] input{
  border-radius: 12px;
}

/* Ajustement du margin-left tailwind ms-3 dans la modal */
#profilepage [role="dialog"] .ms-3{
  margin-left: 10px !important;
}


/* Scroll doux vers les ancres */
#profilepage{
  scroll-behavior: smooth;
}


/* Cards mêmes hauteurs (Infos + Mot de passe) */
#profilepage .profile-grid{
  align-items: stretch; /* important */
}

#profilepage .profile-card{
  display: flex;         /* header + body en colonne */
  flex-direction: column;
  height: 100%;
}

#profilepage .card-body{
  flex: 1;               /* le body prend la hauteur restante */
}

/* Boutons “Enregistrer” (x-primary-button) : ils sont blancs chez toi -> on les force en primary */
#profilepage .profile-card .btn-primary,
#profilepage .profile-card button[type="submit"]{
  cursor: pointer;
}

/* Cible “safe” pour x-primary-button: souvent rendu en <button> avec classes de base.
   On upgrade les boutons dans les forms de la page profil sans toucher au reste du site. */
#profilepage form button{
  border-radius: 12px !important;
}

/* Si le bouton primaire Breeze est blanc, cette règle le rend bleu */
#profilepage form button:not(.bg-red-600):not(.bg-gray-200){
  background: var(--brand) !important;
  border: 1px solid rgba(29,78,216,0.25) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 12px 14px !important;
  box-shadow: 0 10px 18px rgba(29,78,216,0.18);
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
}

#profilepage form button:not(.bg-red-600):not(.bg-gray-200):hover{
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(29,78,216,0.22);
}

#profilepage form button:not(.bg-red-600):not(.bg-gray-200):active{
  transform: translateY(0px);
  box-shadow: 0 10px 18px rgba(29,78,216,0.18);
}

/* Mobile */
@media (max-width: 860px){
  #profilepage .profile-grid{
    grid-template-columns: 1fr;
  }
  #profilepage .profile-card.danger{
    grid-column: auto;
  }
}
/* --- MENU DASHBOARD --- */
    
.user-menu {
  position: relative; /* ancre le dropdown */
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  /*right: 0;*/

  width: 240px;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;

  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  padding: 8px;

  z-index: 2000;
}

/* Petite flèche (notch) comme sur le wireframe */
.user-menu__dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;

  width: 14px;
  height: 14px;

  background: #fff;
  border-left: 1px solid #e3e7ee;
  border-top: 1px solid #e3e7ee;

  transform: rotate(45deg);
}

        
        /* Conteneur menu */
.user-menu {
  position: relative; /* ancre le dropdown */
}

/* Bouton utilisateur (pill) */
/* Trigger = conteneur segmenté */
.user-menu__trigger{
  display: inline-flex;
  align-items: stretch;       /* important pour segmenter */
  padding: 0;
  height: 44px;

  background: #fff;
  border: 1px solid #d7dde7;
  border-radius: 10px;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 1px 0 rgba(16,24,40,.02);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Hover global (léger) */
.user-menu__trigger:hover{
  background: #fbfcfe;
  border-color: #cfd6e1;
  box-shadow: 0 6px 18px rgba(16,24,40,.06);
}

/* Partie gauche (avatar + nom) */
.user-menu__main{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 0 12px;
  min-width: 140px;           /* optionnel */
}

/* Avatar rond gris comme wireframe */
.user-menu__avatar{
  width: 30px;
  height: 30px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #d9d9dc;
  color: #3d3d3f;

  font-weight: 700;
  font-size: 13px;
}

/* Nom */
.user-menu__name{
  font-size: 14px;
  font-weight: 600;
  color: #2b2f36;
  white-space: nowrap;
}

/* Partie droite (caret) séparée */
.user-menu__caret{
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-left: 1px solid #d7dde7;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;

  background: #f7f8fa;        /* léger gris comme sur le wireframe */
  color: #6b7280;
  font-size: 14px;
}

/* Hover sur le caret un tout petit peu plus marqué */
.user-menu__trigger:hover .user-menu__caret{
  background: #f1f3f6;
}

/* Items dropdown */
.user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  padding: 10px 12px;

  border-radius: 10px;
  text-decoration: none;

  color: #2b2f36;
  font-weight: 500;
  font-size: 14px;

  background: transparent;
  border: 0;
  cursor: pointer;
}

.user-menu__item:hover {
  background: #f4f6f9;
}

.user-menu__separator {
  height: 1px;
  background: #eef1f6;
  margin: 6px 4px;
}

/* Variante "danger" (Déconnexion) */
.user-menu__item--danger {
  color: #d33b3b;
}

.user-menu__item--danger:hover {
  background: #fff2f2;
}
        
        [x-cloak] { display: none !important; }
        
        .user-menu__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* --- PORTFOLIOS --- */
/* Section header */
.pf-section__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 6px 0 10px;
}

.pf-section__title{
  margin:0;
  font-size:20px;
  font-weight:700;
  color:#2b2f36;
}

/* Bouton gris (comme wireframe) */
.pf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:38px;
  padding:0 14px;

  border:1px solid #cfd6e1;
  border-radius:6px;
  background:#7b7f86;       /* gris bouton wireframe */
  color:#fff;
  font-weight:600;
  font-size:14px;
  text-decoration:none;

  box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
  transition: filter .15s ease;
}
.pf-btn:hover{ filter: brightness(1.03); }

/* Liste */
.pf-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Carte */
/*.pf-card{
  display:flex;
  align-items:stretch;
  gap:14px;

  padding:14px 14px;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:4px; 
  text-decoration:none;
  color:inherit;

  transition: box-shadow .15s ease, border-color .15s ease;
}*/



.pf-card{
  position:relative;
  display:flex;
  align-items:stretch;
  gap:14px;
  padding:14px;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:4px;
}

/* lien invisible qui couvre toute la carte */
.pf-card__overlay{
  position:absolute;
  inset:0;
  z-index:10;
  border-radius:4px;
}

/* contenu au-dessus du lien */
/*#dashboard .pf-card > *:not(.pf-card__overlay){
  position:relative;
  z-index:2;
}*/

/* zone droite de la card */
#dashboard .pf-card__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  position: relative; /* ancre le dropdown */
  z-index: 30;
}


#dashboard .pf-card:hover{
  border-color:#cfd6e1;
  box-shadow: 0 6px 18px rgba(16,24,40,.08);
}

/* Icone gauche */
.pf-card__icon{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;

  color:#7b808a;
  flex:0 0 auto;
  margin-top:2px;
}
.pf-card__icon svg{
  width:26px;
  height:26px;
  display:block;
}

/* Body */
.pf-card__body{
  flex:1 1 auto;
  min-width:0;
}

/* Ligne du haut */
.pf-card__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.pf-card__name{
  font-size:18px;
  font-weight:700;
  color:#2b2f36;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.pf-card__stats{
  display:flex;
  align-items:baseline;
  gap:18px;
  flex:0 0 auto;
}

.pf-card__value{
  font-size:18px;
  font-weight:700;
  color:#2b2f36;
}

.pf-card__perf{
  font-size:18px;
  font-weight:700;
  color:#5f8a66; /* vert perf wireframe */
}

/* Chevron */
.pf-card__chev{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  color:#7b808a;
  font-size:34px;
  line-height:1;
  flex:0 0 auto;
}

/* Barre allocation */
.pf-card__bar{
  height:8px;
  background:#d7d9dd;
  border-radius:2px;
  overflow:hidden;
  display:flex;
  margin: 6px 0 10px;
}

.pf-bar__seg{
  display:block;
  height:100%;
  background:#8a8f98; /* segment A */
}
.pf-bar__seg--b{ background:#b7b9be; } /* segment B */
.pf-bar__seg--c{ background:#d2a86b; } /* segment C (or) */

/* Légende allocations */
.pf-card__legend{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  font-size:15px;
  color:#2b2f36;
}

.pf-legend__item{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.pf-legend__dot{
  width:12px;
  height:12px;
  border-radius:2px;
  background:#8a8f98;
  display:inline-block;
}
.pf-legend__dot--b{ background:#b7b9be; }
.pf-legend__dot--c{ background:#d2a86b; }

/* Bandeau upsell */
.pf-upsell{
  margin-top:12px;
  padding:12px 14px;
  text-align:center;

  background:#efeff1;
  border:1px solid #d9dde3;
  border-radius:2px;

  color:#3c3f45;
  font-style:italic;
}

/* bouton "..." */
#dashboard .pf-kebab{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border:1px solid #d9dde3;
  border-radius:4px;
  background:#f7f8fa;
  color:#5b616b;

  cursor:pointer;
  line-height:1;
}

#dashboard .pf-kebab:hover{ background:#eef1f6; }


/* dropdown actions */
#dashboard .pf-actions{
  position:absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;

  background:#fff;
  border:1px solid #d9dde3;
  border-radius:6px;
  box-shadow: 0 10px 22px rgba(16,24,40,.12);
  padding:6px;

  z-index: 2000;
}

#dashboard .pf-actions__item{
  display:flex;
  align-items:center;
  gap:10px;

  width:100%;
  padding:10px 10px;

  border-radius:6px;
  background:transparent;
  border:0;

  text-decoration:none;
  color:#2b2f36;
  font-weight:600;
  font-size:14px;

  cursor:pointer;
}

#dashboard .pf-actions__item:hover{ background:#f4f6f9; }

#dashboard .pf-actions__sep{
  height:1px;
  background:#eef1f6;
  margin:6px 4px;
}

#dashboard.pf-actions__item--danger{
  color:#e5484d;
}

#dashboard .pf-actions__item--danger:hover{
  background:#fff1f1;
}

/* important: éviter flash si tu utilises x-cloak */
[x-cloak]{ display:none !important; }


/* =========================================================
   Page / Breadcrumb / Header
   ========================================================= */

.rb-page{
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.rb-breadcrumb{
  font-size: 13px;
  color:#6b7280;
  margin: 6px 0 10px;
}
.rb-breadcrumb a{
  color:#6b7280;
  text-decoration:none;
}

.rb-breadcrumb a:hover{
  text-decoration:underline;
}

.rb-breadcrumb span{
  font-size: 15px;
    font-weight: 700;
}

.rb-page__header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin: 4px 0 14px;
}

.rb-page__title{
  margin:0;
  font-size: 24px;
  font-weight: 600;
  color:#2b2f36;
}

/* =========================================================
   Tabs (sous-menu)
   ========================================================= */

.rb-tabs{
  display:flex;
  gap:22px;
  padding: 10px 0 12px;
  border-bottom: 1px solid #d9dde3;
  margin-bottom: 14px;
}

.rb-tab{
  position: relative;
  font-size: 14px;
  color:#6b7280;
  text-decoration:none;
  padding: 6px 0;
}

.rb-tab--active{
  color:#2b2f36;
  font-weight:700;
}

.rb-tab--active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-13px;
  height:2px;
  background:#2b2f36;
}

.rb-table-wrap{
  overflow: visible; /* au lieu de hidden/auto */
}



/* =========================================================
   Card (bloc)
   ========================================================= */

.rb-card{
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:4px;
  overflow:hidden;
}

.rb-card__body{
  padding: 16px;
}

.rb-card__footer{
  padding: 14px 16px;
  border-top:1px solid #d9dde3;
  background:#fafbfc;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

/* =========================================================
   Form
   ========================================================= */

.rb-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.rb-form__group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.rb-label{
  font-size:14px;
  font-weight:500;
  color:#2b2f36;
}

.rb-help{
  font-size:13px;
  color:#6b7280;
}

.rb-input,
.rb-select{
  width:100%;
  height: 40px;
  padding: 0 12px;

  border:1px solid #cfd6e1;
  border-radius:4px;
  background:#fff;

  font-size:14px;
  color:#2b2f36;
}

.rb-input:focus,
.rb-select:focus{
  outline:none;
  border-color:#9aa3b2;
  box-shadow: 0 0 0 3px rgba(154,163,178,.20);
}

.rb-error{
  font-size:13px;
  color:#c0262d;
}

/* Input group (suffix %) */
.rb-input-group{
  display:flex;
  align-items:stretch;
}

.rb-input-group .rb-input{
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}

.rb-input-suffix{
  display:inline-flex;
  align-items:center;
  padding: 0 12px;
  border:1px solid #cfd6e1;
  border-left:0;
  border-top-right-radius:4px;
  border-bottom-right-radius:4px;
  background:#f4f5f7;
  font-weight:700;
  color:#5b616b;
}

/* Color row (swatch + input) */
.rb-color-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.rb-color-swatch{
  width: 34px;
  height: 34px;
  border-radius:4px;
  border:1px solid rgba(0,0,0,.12);
  background:#8a8f98;
  flex:0 0 auto;
}


/* Table */
.rb-table{
  width:100%;
  border-collapse: collapse;
  table-layout: auto;
}


.rb-table thead th{
  text-align:left;
  font-size: 13px;
  font-weight: 700;
  color:#5b616b;
  padding: 14px 14px;
  /*background:#f4f5f7;*/
  border-bottom:1px solid #d9dde3;
}

.rb-table tbody td{
  padding: 14px 14px;
  border-bottom:1px solid #e7e9ee;
  vertical-align: middle;
  color:#2b2f36;
  font-size:14px;
}

.rb-table tbody tr:last-child td{
  border-bottom:none;
}


/* Colonne "Couleur" */
.rb-color-cell{
  display:flex;
  align-items:center;
  gap:10px;
}

.rb-color-dot{
  width:16px;
  height:16px;
  border-radius: 2px;
  background:#8a8f98;
  flex:0 0 auto;
  border:1px solid rgba(0,0,0,.08);
}

.rb-color-name{
  font-weight: 600;
  color:#2b2f36;
}

/* Petits blocs gris (wireframe pills) */
.rb-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 64px;
  height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}

.rb-pill {
  background: transparent;
  color: #9ca3af;
  border: none;
}

.rb-pill--light{
  background:#d7d9dd;
}

.rb-pill--delta {
  background: #e5e7eb;
  color: #374151;
}

/* Surpondération (positif) */
.rb-pill--delta.is-positive {
  background: #dcfce7;
  color: #166534;
}

/* Sous-pondération (négatif) */
.rb-pill--delta.is-negative {
  background: #fee2e2;
  color: #991b1b;
}

/* Actions */
/* =========================
   TABLE - Colonne Actions plus petite
   ========================= */


.rb-th-actions{ text-align:right; }

.rb-actions{
  text-align:right;
  white-space: nowrap;
}


/* bouton "…" plus compact */
.rb-menu__trigger{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sur mobile : encore plus compact */
@media (max-width: 720px){
  .rb-table th.rb-th-actions,
  .rb-table td.rb-actions{
    width: 44px;
    max-width: 44px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .rb-menu__trigger{
    width: 30px;
    height: 30px;
  }
}


.rb-icon-btn{
  width: 28px;
  height: 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border:1px solid #d9dde3;
  border-radius: 4px;
  background:#f7f8fa;

  cursor:pointer;
  margin-left: 8px;

  font-size: 14px;
  color:#5b616b;
}

.rb-icon-btn:hover{
  background:#eef1f6;
}

/* Footer + gros bouton */
.rb-card__footer{
  padding: 16px;
  border-top:1px solid #d9dde3;
  background:#fafbfc;
  display:flex;
  justify-content:right;
}

.rb-big-btn{
  width: 360px;
  max-width: 100%;
  height: 42px;

  border:1px solid #cfd6e1;
  border-radius: 4px;

  background:#7b7f86;
  color:#fff;
  font-weight: 700;
  font-size: 14px;

  cursor:pointer;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
}

.rb-big-btn:hover{
  filter: brightness(1.03);
}

/* Responsive: table lisible */
@media (max-width: 720px){
  .rb-page{ padding: 14px 12px 22px; }
  .rb-tabs{ gap:14px; }
  .rb-pill{ min-width: 54px; }
}

/* Bouton principal Ajouter */
.rb-btn-add{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  max-width:100%;
  height: 44px;

  background:#7b7f86;       /* gris wireframe */
  color:#ffffff;

  border:1px solid #6f747a;
  border-radius:4px;

  font-size:14px;
  font-weight:700;
  letter-spacing:.2px;

  text-decoration:none;
  cursor:pointer;

  box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
  transition: all .15s ease;
}

/* Hover */
.rb-btn-add:hover{
  background:#6f747a;
  transform: translateY(-1px);
}

/* Active */
.rb-btn-add:active{
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.15);
}


/* =========================
   Bouton primaire ADD
   ========================= */

.btn-primary-add{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  /*height:42px;*/
  padding:10px 18px;

  background:#111827;   /* même gris que "Créer un portefeuille" */
  color:#ffffff;

  /*border:1px solid #6f747a;*/
  border-radius:10px;

  font-size:14px;
  font-weight:600;
  /*letter-spacing:.2px;*/

  text-decoration:none;
  cursor:pointer;

  /*box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);*/
  transition: all .2s ease;
}

.btn-primary-add:hover{
  background: #1f2937;

}

.btn-primary-add:active{
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.15);
}

/* Taille large (footer card) */
.btn-primary--block{
  width:360px;
  max-width:100%;
}

/* =========================================================
   Buttons (harmonisés)
   ========================================================= */

/* =========================
   Bouton Recherche (filtre)
   ========================= */

#dashboard .rb-btn-search{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 40px;
  padding: 0 14px;

  background:#f3f4f6;
  color:#374151;

  border:1px solid #e5e7eb;
  border-radius:10px;

  font-size:14px;
  font-weight:500;

  cursor:pointer;
  transition: all .15s ease;
}

#dashboard .rb-btn-search:hover{
  background:#e5e7eb;
  color:#111827;
}

#dashboard .rb-btn-search:active{
  transform: translateY(1px);
}


/* =========================
   Bouton Réinitialiser
   ========================= */

#dashboard .rb-btn-reset{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height:40px;
  padding:0 14px;

  background:transparent;
  color:#6b7280;

  border:1px solid transparent;
  border-radius:10px;

  font-size:14px;
  font-weight:500;

  cursor:pointer;
  transition: all .15s ease;
}

#dashboard .rb-btn-reset:hover{
  background:#f3f4f6;
  color:#111827;
}

#dashboard .btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 40px;
  padding: 0 16px;

  background:#7b7f86;
  color:#fff;

  border:1px solid #6f747a;
  border-radius:4px;

  font-size:14px;
  font-weight:500;
  text-decoration:none;
  cursor:pointer;

  box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
  transition: all .15s ease;
}
#dashboard .btn-primary:hover{ background:#6f747a; transform: translateY(-1px); }
#dashboard .btn-primary:active{ transform: translateY(0); box-shadow: inset 0 2px 4px rgba(0,0,0,.15); }

#dashboard .btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 40px;
  padding: 0 16px;

  background:#f7f8fa;
  color:#2b2f36;

  border:1px solid #cfd6e1;
  border-radius:4px;

  font-size:14px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
}
#dashboard .btn-secondary:hover{ background:#eef1f6; }

#dashboard .btn-danger{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 40px;
  padding: 0 16px;

  background:#fff;
  color:#b42318;

  border:1px solid #f1b2b2;
  border-radius:4px;

  font-size:14px;
  font-weight:500;
  text-decoration:none;
  cursor:pointer;
}
#dashboard .btn-danger:hover{ background:#fff1f1; }


/* =========================
   Bouton retour
   ========================= */

#dashboard .rb-back{
  margin-bottom: 10px;
}

#dashboard .rb-back a{
  display:inline-flex;
  align-items:center;
  gap:6px;

  font-size:14px;
  font-weight:500;

  color:#6b7280;
  text-decoration:none;
  transition: all .15s ease;
}

#dashboard .rb-back a:hover{
  color:#2b2f36;
  transform: translateX(-2px);
}

#dashboard .rb-back__icon{
  font-size:16px;
  font-weight:900;
}

/* =========================
   Color picker (Catégories)
   ========================= */

#dashboard .rb-color-picker{
  display:flex;
  align-items:center;
  gap:10px;
}

#dashboard .rb-color-swatch-btn{
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border:1px solid rgba(0,0,0,.12);
  cursor:pointer;
  flex: 0 0 auto;
  background:#8a8f98;
}

#dashboard .rb-color-swatch-btn:hover{
  filter: brightness(1.03);
}

#dashboard .rb-color-input{
  max-width: 240px;
}

/* input color natif caché mais utilisable via click() */
#dashboard .rb-color-native{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}


#dashboard .material-symbols-outlined{
  font-size:20px;
  line-height:1;
}


/* bouton icône */

/* IMPORTANT: dans une table, rb-actions est un <td> -> on le remet en "table-cell" */
#dashboard .rb-table td.rb-actions{
  display: table-cell;
  text-align: right;
  white-space: nowrap;
}


#dashboard .rb-icon-btn{
  width:36px;
  height:36px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:none;
  border:none;
  background:#ffffff;
  color:#6b7280;

  cursor:pointer;
  transition:all .15s ease;
}

#dashboard .rb-icon-btn:hover{
  background:#f3f4f6;
  color:#111827;
}

#dashboard .rb-icon-btn--danger{
  color:#b91c1c;
}

#dashboard .rb-icon-btn--danger:hover{
  background:#fee2e2;
}

#dashboard .rb-actions{
  display:flex;
  align-items:center;
}


/* =========================
   ALERT SYSTEM
   ========================= */

#dashboard .rb-alert{
  display:flex;
  align-items:flex-start;
  gap:12px;

  padding:14px 16px;

  border-radius:6px;
  border:1px solid;

  font-size:14px;
  line-height:1.4;

  margin-bottom:16px;
}

/* Icône */
#dashboard .rb-alert__icon{
  font-size:18px;
  line-height:1;
  margin-top:2px;
}

/* Texte */
#dashboard .rb-alert__content{
  flex:1;
}

/* Bouton close */
#dashboard .rb-alert__close{
  background:none;
  border:0;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  opacity:.6;
}
#dashboard .rb-alert__close:hover{
  opacity:1;
}


/* =========================
   FORM FEEDBACK SYSTEM
   ========================= */

/* Message d'erreur sous un champ */
#dashboard .form-error {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;

  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;

  padding: 8px 10px;
  display: inline-block;
}

/* Variante si tu veux que ça prenne toute la largeur */
#dashboard .form-error--block {
  display: block;
  width: 100%;
}

/* Champ en erreur */
#dashboard .form-input.error,
#dashboard .input.error,
#dashboard .rb-input.error,
#dashboard .rb-select.error,
textarea.error,
select.error,
input.error {
  border-color: #f04438 !important;
  background: #fff6f5;
}

#dashboard .form-input.error:focus,
#dashboard .input.error:focus,
#dashboard .rb-input.error:focus,
#dashboard .rb-select.error:focus,
#dashboard textarea.error:focus,
#dashboard select.error:focus,
#dashboard input.error:focus {
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
  border-color: #f04438 !important;
}

/* Message global formulaire */
#dashboard .rb-form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
}

#dashboard .rb-form-alert ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

#dashboard .rb-form-alert li {
  margin: 4px 0;
}

/* Danger */
#dashboard .rb-form-alert--danger {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

/* Success */
#dashboard .rb-form-alert--success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

/* Warning */
#dashboard .rb-form-alert--warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: #b54708;
}

/* Info */
#dashboard .rb-form-alert--info {
  background: #eff8ff;
  border-color: #b2ddff;
  color: #175cd3;
}

/* =========================
   Variantes
   ========================= */

/* SUCCESS */
#dashboard .rb-alert--success{
  background:#f0fdf4;
  border-color:#bbf7d0;
  color:#166534;
}

/* DANGER */
#dashboard .rb-alert--danger{
  background:#fef2f2;
  border-color:#fecaca;
  color:#991b1b;
}

/* WARNING */
#dashboard .rb-alert--warning{
  background:#fffbeb;
  border-color:#fde68a;
  color:#92400e;
}

/* INFO */
#dashboard .rb-alert--info{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1e40af;
}




/* ===============================
   BLOG REBALANCIO
   =============================== */

#blog {
  background: #ffffff;
  color: #111111;
  padding: 60px 0;
}

#blog .rb-container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
#blog .rb-blog-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

#blog .rb-blog-header p {
  margin: 12px 0 0;
  color: #666;
}

/* Grid */
#blog .rb-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1000px) {
  #blog .rb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #blog .rb-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
#blog .rb-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: all .2s ease;
}

#blog .rb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

#blog .rb-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

#blog .rb-card-body {
  padding: 18px;
}

#blog .rb-meta {
  font-size: 12px;
  color: #888;
}

#blog .rb-card-title {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.4;
}

#blog .rb-card-excerpt {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#blog .rb-read {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 600;
}

/* Article page */
#blog .rb-article {
  width: min(760px, calc(100% - 40px));
}

#blog .rb-back {
  display: inline-block;
  margin-bottom: 15px;
  color: #666;
  text-decoration: none;
}

#blog .rb-back:hover {
  text-decoration: underline;
}

#blog .rb-article-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
}

#blog .rb-hero {
  width: 100%;
  border-radius: 18px;
  margin-top: 20px;
}

#blog .rb-content {
  margin-top: 25px;
  font-size: 16px;
  line-height: 1.8;
}

#blog .rb-content h2 {
  margin-top: 30px;
}

#blog .rb-content img {
  max-width: 100%;
  border-radius: 14px;
}

#blog .rb-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

#blog .rb-cat {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #e5e7eb;
}

#blog .rb-cat.is-active {
  font-weight: 600;
}

#blog .rb-tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  margin-bottom: 8px;
}


/* Alpine */
[x-cloak] { display: none !important; }

/* Spacing helpers */
.rb-mb-14 { margin-bottom: 14px; }
.rb-mt-6 { margin-top: 6px; }
.rb-mt-8 { margin-top: 8px; }
.rb-mt-10 { margin-top: 10px; }
.rb-mt-12 { margin-top: 12px; }
.rb-mt-16 { margin-top: 16px; }
.rb-mt-18 { margin-top: 18px; }
.rb-mt--6 { margin-top: -6px; }

.rb-p-0 { padding: 0 !important; }

/* Card form padding */
.rb-form-card { padding: 16px; }

/* Rows / layout */
.rb-row { display: flex; }
.rb-row--gap-10 { gap: 10px; }
.rb-row--gap-14 { gap: 14px; }
.rb-row--wrap { flex-wrap: wrap; }
.rb-row--top { align-items: flex-start; }

.rb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.rb-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.rb-gap-10 { gap: 10px; }
.rb-gap-12 { gap: 12px; }



.rb-width-40 { width:40%;}
.rb-width-18 { width:18%;}


/* Actions row */
.rb-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Radio label (generic) */
.rb-radio {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Hints */
.rb-hint {
  font-size: 12px;
  opacity: 0.7;
}
.rb-hint--success { color: #0a7a1f; opacity: 1; }
.rb-hint--danger  { color: #b00020; opacity: 1; }


/* Help box */
.rb-helpbox {
  margin-top: 12px;
  font-size: 12px;
}

/* Inline button inside text */
.rb-btn-inline {
  padding: 4px 8px;
  font-size: 12px;
  margin-left: 6px;
}

.rb-btn-inline#bt-converter {
    padding: 0;
    background-color:#FFF;
    border:0px;
    cursor: pointer;
    margin: 0;
    text-decoration: underline;
}


.rb-alert--warning #bt-converter{
  background:#fffbeb;
  color:#92400e;
}

.rb-btn-inline#bt-converter:hover {
    text-decoration: none;
}

/* Modal (generic) */
.rb-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rb-modal--top { z-index: 120; } /* helper if you want variants later */

.rb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.rb-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.rb-modal__header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rb-modal__title { font-weight: 700; }

.rb-modal__close {
  border: 0;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.rb-modal__body { padding: 16px 18px; }

.rb-modal__footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Debug box */
.rb-debug {
  margin-top: 16px;
  padding: 12px;
  background: #111;
  color: #0f0;
  font-size: 11px;
  border-radius: 8px;
  max-height: 220px;
  overflow: auto;
}
.rb-debug__title {
  font-weight: 700;
  margin-bottom: 6px;
}


/* --- Bouton CTA --- */
.rb-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:12px;
  font-weight:600;
  text-decoration:none;
  border:1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.rb-btn__icon{
  width:22px;
  height:22px;
 /*display:inline-flex;*/
  align-items:center;
  justify-content:center;
}

.rb-btn--primary{
  background:#111827;
  color:#fff;
}

.rb-btn--primary:hover{
  background:#1f2937;
  transform: translateY(-1px);
}

/* --- Card wrapper : garder coins sans couper dropdown --- */
.rb-card--table{
  overflow: visible !important;
}

.rb-card__inner{
  overflow:hidden;
  border-radius:16px;
}

/* --- Summary --- */
.rb-card--summary{
  border: 1px solid #e8e8e8;
  border-radius:16px;
  background:#fff;
  margin-bottom:16px;
}

.rb-summary{
  display:flex;
  gap:24px;
  padding:16px;
  align-items:stretch;
}

.rb-summary__left,
.rb-summary__right{
  flex:1;
}

.rb-summary__title{
  font-weight:700;
  color:#111827;
  margin-bottom:8px;
}

.rb-summary__label{
  color:#6b7280;
  font-weight:600;
  margin-right:8px;
}

.rb-summary__meter{
  display:flex;
  align-items:center;
  gap:12px;
}

.rb-summary__value{
  font-weight:700;
  color:#111827;
  min-width:44px;
  text-align:right;
}

.rb-meter{
  flex:1;
  height:10px;
  border-radius:999px;
  background:#eef2f7;
  overflow:hidden;
  border:1px solid #e5e7eb;
}

.rb-meter__bar{
  height:100%;
  border-radius:999px;
  background:#111827;
}

/* --- Table UX (optionnel mais rend plus premium) --- */
.rb-table td{
  padding:18px 16px;
}

.rb-table tbody tr:hover{
  background:#f9fafb;
}

/* --- Actuel % : progress + pill --- */
.rb-current{
  display:flex;
  align-items:center;
  gap:10px;
}

.rb-progress{
  width:120px;
  height:10px;
  border-radius:999px;
  background:#eef2f7;
  overflow:hidden;
  border:1px solid #e5e7eb;
}

.rb-progress__fill{
  height:100%;
  border-radius:999px;
  background:#9ca3af; /* neutre */
}

/* --- Delta pills --- */
.rb-pill--delta{
  font-weight:600;
  background: transparent;
  color:#6b7280;
  border:1px solid #d1d5db;
}

/* Surpondération */
.rb-pill--delta.is-positive{
  background:#dcfce7;
  border-color:#bbf7d0;
  color:#166534;
}

/* Sous-pondération */
.rb-pill--delta.is-negative{
  background:#fee2e2;
  border-color:#fecaca;
  color:#991b1b;
}

/* --- Menu actions "..." --- */
.rb-actions{ white-space: nowrap; }

.rb-menu{ display:inline-block; }

.rb-menu__trigger{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid transparent;
  background:transparent;
  color:#6b7280;
  font-weight:800;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}



.rb-menu__trigger:focus{ outline:none; }
.rb-menu__trigger:focus-visible{
  outline:3px solid rgba(59,130,246,.35);
  outline-offset:2px;
}

/* Panel en fixed : jamais coupé par overflow */
.rb-menu__panel--fixed{
  position:fixed;
  min-width:180px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.10);
  padding:6px;
  z-index:99999;
}

.rb-menu__item{
  display:block;
  width:100%;
  text-align:left;
  padding:10px 10px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  color:#111827;
  background:transparent;
  border:none;
  cursor:pointer;
  text-decoration:none;
  transition: background .15s ease;
}

.rb-menu__item:hover{ background:#f3f4f6; }

.rb-menu__item--danger{
  color:#b91c1c;
}

.rb-menu__item--danger:hover{
  background:#fee2e2;
}


/* ======================================================================
   DASHBOARD PREMIUM (résumé + table catégories)
   ====================================================================== */

/* Header alignement (titre + bouton) */
#dashboard .rb-page__header{
  align-items:center;
}

/* Card header optionnel (si tu l’ajoutes plus tard) */

#dashboard .rb-summary--compact{
  display:flex;
  gap:24px;
  align-items:center;
}

#dashboard .rb-card__header{
  padding: 14px 14px;
  /*background:#f4f5f7;*/
  border-bottom:1px solid #d9dde3;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

#dashboard .rb-card__title{
  font-size: 16px;
  font-weight: 600;
  color:#2b2f36;
}

/* Résumé */
#dashboard .rb-card--summary{
  border:1px solid #d9dde3;
  border-radius:4px;
  overflow:hidden;
  background:#fff;
  margin-bottom:14px;
}

#dashboard .rb-summary{
  display:flex;
  gap:24px;
  padding:16px;
  align-items:center;
}

#dashboard .rb-summary__left,
#dashboard .rb-summary__right{
  flex:1;
}

#dashboard .rb-summary__title{
  font-weight:800;
  color:#2b2f36;
  margin-bottom:8px;
}

#dashboard .rb-summary__label{
  font-size: 13px;
  font-weight: 700;
  color:#5b616b;
  margin-bottom: 6px;
}

#dashboard .rb-summary__big{
  font-size: 18px;
  font-weight: 800;
  color:#2b2f36;
}


#dashboard .rb-summary__meter{
  display:flex;
  align-items:center;
  gap:12px;
}


#dashboard .rb-summary__value{
  min-width: 48px;
  text-align:right;
  font-weight: 800;
  color:#2b2f36;
}

#dashboard .rb-meter{
  flex:1;
  height:10px;
  border-radius:999px;
  background:#eef2f7;
  overflow:hidden;
  border:1px solid #e5e7eb;
}

#dashboard .rb-meter__bar{
  height:100%;
  border-radius:999px;
  
}

/* Table: coins sans couper menus */
#dashboard .rb-card--table{
  overflow: visible !important;
}

#dashboard .rb-card__inner{
  overflow:hidden;
  border-radius:4px;
}

/* Actuel % : barre */
#dashboard .rb-current{
  display:flex;
  align-items:center;
  gap:10px;
}

#dashboard .rb-progress{
  width:120px;
  height:10px;
  border-radius:999px;
  background:#eef2f7;
  overflow:hidden;
  border:1px solid #e5e7eb;
}

#dashboard .rb-progress__fill{
  height:100%;
  border-radius:999px;
  
}

/* Delta neutre en outline (moins “gros gris”) */
#dashboard .rb-pill--delta{
  background: transparent;
  color:#6b7280;
  border:1px solid #d1d5db;
  font-weight:700;
}

#dashboard .rb-pill--delta.is-positive{
  background:#dcfce7;
  border-color:#bbf7d0;
  color:#166534;
}

#dashboard .rb-pill--delta.is-negative{
  background:#fee2e2;
  border-color:#fecaca;
  color:#991b1b;
}

/* Hover table */
#dashboard .rb-table tbody tr:hover{
  background:#f9fafb;
}

/* Responsive résumé */
@media (max-width: 720px){
  #dashboard .rb-summary{
    flex-direction: column;
    align-items: stretch;
  }
  #dashboard .rb-progress{ width: 92px; }
}

.landing-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 24px;
}

.landing-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.landing-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.landing-footer__logo-wrap {
  margin-bottom: 14px;
}

.landing-footer__logo {
  display: block;
  height: 34px;
  width: auto;
}

.landing-footer__tagline {
  margin: 0;
  max-width: 280px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.landing-footer__title {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.landing-footer__link {
  display: block;
  margin-bottom: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.landing-footer__link:hover {
  color: #ffffff;
}

.landing-footer__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.landing-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-footer__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
}

.landing-footer__cta-secondary {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.landing-footer__cta-secondary:hover {
  color: #ffffff;
}

.landing-footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.landing-footer__disclaimer {
  margin: 0;
  max-width: 760px;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.6;
}

.landing-footer__copy {
  color: #64748b;
  font-size: 0.84rem;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .landing-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .landing-footer__cta-wrap {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .landing-footer {
    padding: 42px 0 20px;
  }

  .landing-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-footer__cta-wrap {
    grid-column: auto;
  }

  .landing-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----- Highlight premium section ----- */

.highlight {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  color: white;
  overflow: hidden;
}

/* halo lumineux subtil */
.highlight::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29,78,216,0.25), transparent 70%);
  filter: blur(40px);
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.20), transparent 70%);
  filter: blur(40px);
}

.highlight-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.highlight-title {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.highlight-text {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}

/* cartes */
.highlight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.highlight-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.highlight-card-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.highlight-card-text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* responsive */
@media (max-width: 900px) {
  .highlight-cards {
    grid-template-columns: 1fr;
  }
}
.hero-mockup {
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
}


/* ===== Rebalancing page ===== */

.rb-rebalance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.rb-rebalance-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.rb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.rb-kpi-card,
.rb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.rb-kpi-card {
    padding: 24px 26px;
}

.rb-kpi-card span {
    display: block;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 10px;
}

.rb-kpi-card strong {
    color: #111827;
    font-size: 24px;
    line-height: 1;
}

.rb-kpi-card .rb-text-success { color: #10b981 !important; display: inline-block;font-size: 24px;}
.rb-kpi-card .rb-text-danger { color: #ef4444 !important; display: inline-block;font-size: 24px;}

.rb-chart-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
}

.rb-chart-box h3,
.rb-options-card h3,
.rb-allocation-card h3,
.rb-reco-card h3 {
    margin: 0 0 24px;
    color: #111827;
    font-size: 18px;
}

.rb-donut {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.rb-donut::after {
    content: "";
    position: absolute;
    inset: 44px;
    background: #fff;
    border-radius: 50%;
}

.rb-legend {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
    font-size: 13px;
}

.rb-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rb-legend i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.rb-options-card,
.rb-allocation-card,
.rb-reco-card {
    padding: 24px;
}

.rb-label {
    display: block;
    margin: 18px 0 8px;
    color: #9ca3af;
    font-size: 13px;
    text-transform: uppercase;
}

.rb-input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
}

.rb-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
}

.rb-segmented button {
    border: 0;
    background: #fff;
    padding: 12px 10px;
    cursor: pointer;
    color: #6b7280;
    font-weight: 600;
}

.rb-segmented button.active {
    background: #2f8fc4;
    color: #fff;
}

.rb-option-line {
    display: flex;
    gap: 10px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.rb-option-line label {
    color: #111827;
    font-weight: 600;
}

.rb-option-line small {
    display: block;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 3px;
}

.rb-btn-primary {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2f8fc4, #156082);
    color: #fff;
    padding: 14px 18px;
    font-weight: 800;
    cursor: pointer;
}

.rb-btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.rb-btn-full {
    width: 100%;
    margin-top: 22px;
}

.rb-allocation-row {
    display: grid;
    grid-template-columns: 130px minmax(220px, 1fr) 70px 70px 80px;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
}

.rb-allocation-name {
    font-weight: 800;
    color: #111827;
}

.rb-progress-bg {
    height: 28px;
    background: #e5e7eb;
    border-radius: 7px;
    position: relative;
    overflow: visible;
}

.rb-progress-fill {
    height: 100%;
    border-radius: 7px;
}

.rb-progress-target {
    position: absolute;
    top: -8px;
    width: 4px;
    height: 44px;
    background: #111827;
    border-radius: 99px;
}

.rb-progress-target::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -5px;
    width: 14px;
    height: 14px;
    background: #111827;
    transform: rotate(45deg);
    border-radius: 2px;
}

.rb-drift-badge {
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    text-align: center;
    font-size: 13px;
}

.rb-drift-badge--positive {
    background: #fee2e2;
    color: #ef4444;
}

.rb-drift-badge--negative {
    background: #dcfce7;
    color: #16a34a;
}

.rb-reco-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rb-reco-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rb-switch-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
}

.rb-switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #2f8fc4;
    position: relative;
}

.rb-switch::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    right: 3px;
    top: 3px;
}

.rb-btn-light {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #2f8fc4;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 800;
}

.rb-reco-table-head,
.rb-reco-line {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr 1.2fr 1fr;
    gap: 20px;
    align-items: center;
}

.rb-reco-table-head {
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    padding: 14px 0;
}

.rb-reco-line {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 18px 0;
}

.rb-pill {
    display: inline-flex;
    width: fit-content;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.rb-pill--buy {
    background: #dff8ef;
    color: #10b981;
}

.rb-pill--sell {
    background: #fee2e2;
    color: #ef4444;
}

.rb-empty-reco {
    padding: 24px;
    color: #64748b;
    text-align: center;
}

.rb-apply-zone {
    margin-top: 22px;
    text-align: right;
}

.rb-apply-zone small {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .rb-rebalance-grid {
        grid-template-columns: 1fr;
    }

    .rb-kpi-grid,
    .rb-chart-card {
        grid-template-columns: 1fr;
    }

    .rb-allocation-row,
    .rb-reco-table-head,
    .rb-reco-line {
        grid-template-columns: 1fr;
    }
}

.rb-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* BUY = vert */
.rb-pill.rb-pill--buy {
    background: #dcfce7;
    color: #16a34a;
}

/* SELL = rouge */
.rb-pill.rb-pill--sell {
    background: #fee2e2;
    color: #dc2626;
}

.rb-helper-box {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
}

.rb-helper-box strong {
    display: block;
    margin-top: 4px;
}

.rb-contribution-summary {
    margin-top: 18px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border: 1px solid #bfdbfe;
    text-align: center;
}

.rb-contribution-summary__label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 8px;
}

.rb-contribution-summary__amount {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    color: #0f172a;
}

.rb-contribution-summary__sub {
    margin-top: 6px;
    color: #475569;
    font-size: 13px;
}

.rb-contribution-summary__total {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
}
