/* ============================================================
   ATELIERS COLBERT — main.css
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* === VARIABLES === */
:root {
  --navy:         #172554;
  --blue:         #60a5fa;
  --blue-dark:    #3b82f6;
  --blue-darker:  #2563eb;

  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;
  --gray-400:  #9ca3af;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --gray-950:  #030712;
  --white:     #ffffff;

  --error-bg:   #fecaca;
  --error-text: #dc2626;
  --ok-bg:      #bbf7d0;
  --ok-text:    #16a34a;

  --font: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius-sm:   0.125rem;
  --radius-md:   0.5rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  --shadow:    0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-2xl:0 25px 50px -12px rgb(0 0 0 / .25);

  --transition: 200ms ease;
}

/* === BASE === */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { line-height: 1.2; }

/* === PAGE LAYOUT === */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-content { flex: 1; }

/* === NAVIGATION === */
.site-header {
  font-weight: 600;
  position: relative;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-300);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo img { width: 3.5rem; }

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a { transition: color var(--transition); }
.nav-links a:hover { color: var(--blue-dark); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
@media (min-width: 1024px) { .hamburger { display: none; } }

.hamburger img { width: 2rem; }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-300);
  background: var(--white);
  position: absolute;
  width: 100%;
  z-index: 50;
}
.mobile-menu.open { display: flex; }

.mobile-menu nav {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-300);
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Nav buttons — hidden at various breakpoints */
.nav-btn-register { display: none; }
@media (min-width: 1024px) { .nav-btn-register { display: inline-flex; } }

.nav-btn-login,
.nav-btn-logout { display: none; }
@media (min-width: 768px) { .nav-btn-login, .nav-btn-logout { display: inline-flex; } }

/* === FOOTER === */
.site-footer {
  background: var(--gray-50);
  padding: 2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .footer-nav {
    flex-direction: row;
    justify-content: space-evenly;
  }
}

.footer-section h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-top: 0.25rem; }
.footer-section a:hover { text-decoration: underline; }

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-300);
}
.footer-bottom p { font-size: 0.75rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-ghost:hover { border-color: var(--gray-700); }

.btn-outline-dark {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-900);
}
.btn-outline-dark:hover {
  background: var(--gray-900);
  color: var(--white);
}

.btn-lg { font-size: 1.25rem; padding: 0.625rem 1.5rem; }

/* === FORMS === */
.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  width: 100%;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
}

textarea.form-input {
  resize: none;
}

.form-select {
  padding: 0.5rem 0.75rem;
  border: none;
  border-bottom: 1px solid var(--gray-400);
  font-size: 1.25rem;
  background: transparent;
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--blue); }

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.form-checkbox-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}
.form-checkbox-row label { cursor: pointer; color: var(--gray-600); }
.form-checkbox-row label.required { color: var(--gray-900); }

.form-link {
  color: var(--blue);
  font-weight: 600;
}
.form-link:hover { text-decoration: underline; }

.form-hint { font-size: 0.875rem; color: var(--gray-400); font-weight: 300; }

/* === ALERTS === */
.alert {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.alert-error   { background: var(--error-bg); color: var(--error-text); }
.alert-success { background: var(--ok-bg);    color: var(--ok-text); }
.alert-warning { background: #fff7ed;         color: #9a3412; }
.alert-info    { background: #eff6ff;         color: #1e40af; }
.alert ul { list-style: disc; padding-left: 1.25rem; }

/* Bannière instructions de virement */
.payment-pending-banner { align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem; }
.payment-pending-banner__title { font-size: 1rem; }
.payment-pending-banner p { margin: 0; font-size: 0.9rem; }
.payment-pending-banner__details {
  width: 100%;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.payment-detail-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.payment-detail-row--reference { margin-top: 0.25rem; padding-top: 0.5rem; border-top: 1px solid rgba(154,52,18,0.2); }
.payment-detail-label { color: #6b4c3b; }
.payment-detail-value--reference { font-size: 1rem; letter-spacing: 0.05em; color: #9a3412; }
.payment-pending-banner__note { font-size: 0.8rem; opacity: 0.8; }
.payment-schedule-pending {
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  font-size: 0.9rem;
  text-align: center;
}

/* === AUTH PAGES === */
.auth-page {
  min-height: 100vh;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.auth-card__header { align-self: flex-start; }
.auth-card__logo { width: 5rem; }
@media (min-width: 640px) { .auth-card__logo { width: 7rem; } }

.auth-card__title {
  font-size: 1.875rem;
  font-weight: 600;
  text-align: center;
}
@media (min-width: 640px) { .auth-card__title { font-size: 2.25rem; } }

.auth-card__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.auth-card__footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-card__submit { display: flex; justify-content: center; }
.auth-card__alt { font-weight: 600; color: var(--blue); }
.auth-card__alt a:hover { text-decoration: underline; }

.auth-card__status {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.auth-card__forgot {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}
.auth-card__forgot:hover { text-decoration: underline; }

/* === SECTION TITLES === */
.section-title {
  font-weight: 400;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  text-align: center;
}
@media (min-width: 640px) { .section-title { margin-bottom: 4rem; } }

.section-title--bold {
  font-weight: 600;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* === CARD COMPONENT === */
.card {
  max-width: 600px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}
@media (min-width: 768px) { .card { max-width: 350px; } }
@media (min-width: 1024px) { .card { max-width: 480px; } }
@media (min-width: 1280px) { .card { max-width: 20rem; } }

.card-img { width: 100%; }
.card-body { padding: 0.5rem; }
.card-title {
  font-size: 1.25rem;
  padding: 1rem 0;
  text-align: center;
}
.card-text { font-weight: 300; }
.card-text a { color: var(--blue); text-decoration: underline; }

/* === HOME PAGE === */
.hero-dark {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr;
  padding: 5rem 1rem;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .hero-dark {
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem;
  }
}

.hero-dark__text {
  display: flex;
  align-items: center;
}

.hero-dark__title {
  font-size: 3rem;
  font-weight: 400;
  color: var(--white);
  text-align: center;
}
@media (min-width: 768px) { .hero-dark__title { font-size: 4.5rem; } }

.hero-dark__image {
  display: none;
  justify-content: flex-end;
  align-items: flex-end;
  padding-top: 2.5rem;
}
@media (min-width: 1024px) { .hero-dark__image { display: flex; } }

.ambition-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 0;
}

.ambition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 0 0.5rem;
}
@media (min-width: 768px)  { .ambition-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .ambition-grid { grid-template-columns: repeat(4, 1fr); } }

.home-cta {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1rem;
  margin-top: 4rem;
}
@media (min-width: 1024px) { .home-cta { grid-template-columns: 1fr 1fr; } }

.home-cta__heading {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
}

.home-cta__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.home-cta__text {
  color: var(--white);
  font-size: 1.25rem;
  text-align: center;
}

/* === NOTRE PROPOSITION PAGE === */
.slider {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}
.slider__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 500ms;
}
.slider__text {
  position: absolute;
  z-index: 10;
  left: 0;
  top: 33%;
  padding: 0 1.5rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.argumentaire {
  margin: 3rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.arg-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 1s, transform 1s;
}
.arg-block.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 1024px) {
  .arg-block { flex-direction: row; }
  .arg-block--reverse { flex-direction: row-reverse; }
}

.arg-block__img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
@media (min-width: 1024px) {
  .arg-block__img { width: 450px; flex-shrink: 0; }
}

.arg-block__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 1024px) { .arg-block__content { width: 40%; } }

.arg-block__title {
  font-size: 2.25rem;
  font-weight: 600;
}
.arg-block__text { text-align: justify; }
.arg-block__list {
  list-style: disc;
  padding-left: 2rem;
}

.action-section {
  padding: 5rem 2rem;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .action-grid { grid-template-columns: repeat(3, 1fr); gap: 7rem; }
}

.action-card {
  height: 450px;
  max-width: 400px;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition);
  text-decoration: none;
}
.action-card:hover { transform: scale(1.05); }

.action-card__title {
  font-size: 2.25rem;
  color: var(--white);
  font-weight: 600;
  background: var(--gray-950);
  padding: 0.5rem;
  text-shadow: 0 2px 8px rgb(0 0 0 / .5);
}

.proposition-cta {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.proposition-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75);
}
.proposition-cta__content {
  position: relative;
  z-index: 10;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.proposition-cta__title {
  font-size: 3rem;
  font-weight: 700;
}
.proposition-cta__text {
  font-size: 1.125rem;
  color: #e5e7eb;
  max-width: 600px;
}
@media (min-width: 768px) { .proposition-cta__text { font-size: 1.25rem; } }

/* === CONTACT PAGE === */
.contact-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}
@media (min-width: 1280px) { .contact-page { max-width: 1200px; } }

.contact-page h1 {
  font-size: 2.25rem;
  font-weight: 600;
  text-align: center;
  padding: 2rem 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 2rem;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
@media (min-width: 1024px) {
  .contact-form__row { flex-direction: row; gap: 2.5rem; }
  .contact-form__row .form-group { width: 50%; }
}

/* === LEGAL PAGES === */
.legal-page {
  margin: 2rem;
}
.legal-page h1 {
  font-size: 1.25rem;
  font-weight: 700;
}
.legal-page h2 {
  font-weight: 600;
  margin-top: 1.5rem;
}
.legal-page h3 {
  font-weight: 600;
  margin-top: 0.75rem;
}
.legal-page p {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}
.legal-page ul,
.legal-page ol {
  margin-top: 0.25rem;
  padding-left: 2.5rem;
}
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page a { font-weight: 600; }
.legal-page a:hover { text-decoration: underline; }
.legal-page section { margin-top: 1.5rem; }

/* === BOND LIST PAGE === */
.bond-list-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.bond-list__header {
  text-align: center;
  margin-bottom: 3rem;
}
.bond-list__header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.bond-list__header p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.bond-list__empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray-600);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bond-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .bond-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 2rem; /* espace entre groupes de cartes */
  }
}
@media (min-width: 1400px) {
  .bond-grid { grid-template-columns: repeat(3, 1fr); }
}

.bond-card {
  /* Mobile : colonnes flex */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.bond-card:hover { box-shadow: var(--shadow-lg); }
.bond-card--private { border-color: var(--blue); }

/* Multi-colonnes : subgrid — aligne header/stats/desc/footer entre les cartes */
@media (min-width: 768px) {
  .bond-card {
    display: grid;
    grid-row: span 4;       /* 4 sections : header, stats, description, footer */
    grid-template-rows: subgrid;
    row-gap: 1.25rem;       /* espace entre sections, indépendant du row-gap parent */
  }
}

.bond-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bond-card__private-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

.bond-card__name {
  font-size: 1.25rem;
  font-weight: 700;
}

.bond-card__highlight {
  display: flex;
  justify-content: space-between;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1rem 1rem;
}

.bond-card__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.bond-card__stat--center { align-items: center; text-align: center; }
.bond-card__stat--right  { align-items: flex-end; text-align: right; }

.bond-card__stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
}
.bond-card__stat-value--rate {
  color: var(--blue-darker);
}

.bond-card__stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}

.bond-card__description {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}

.bond-card__footer {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* === DASHBOARD PAGE === */
.dashboard-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.dashboard__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.dashboard__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 1rem;
  color: var(--gray-600);
  text-align: center;
}

.subscription-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .subscription-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .subscription-list { grid-template-columns: repeat(3, 1fr); }
}

.subscription-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}
.subscription-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.subscription-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.subscription-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.subscription-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.subscription-card__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--gray-600);
}
.subscription-card__row strong { color: var(--gray-900); }

.subscription-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: auto;
}

/* Badge statut souscription */
.subscription-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.subscription-badge--pay { background: #fed7aa; color: #9a3412; }
.subscription-badge--act { background: #bbf7d0; color: #15803d; }
.subscription-badge--mat { background: #fef08a; color: #92400e; }
.subscription-badge--clo { background: var(--gray-200); color: var(--gray-600); }

/* === SUBSCRIPTION DETAIL PAGE === */
.subscription-detail-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.subscription-detail__back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.subscription-detail__back:hover { text-decoration: underline; }

.subscription-detail__title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.subscription-detail__title-row h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.subscription-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* Capital chart */
.capital-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
}

.capital-chart__toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-md);
}

.capital-chart__toggle::-webkit-details-marker { display: none; }

.capital-chart__toggle::after {
  content: '▸';
  font-size: 1rem;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.capital-chart[open] > .capital-chart__toggle::after {
  transform: rotate(90deg);
}

.capital-chart__hint {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 0 1.25rem;
}

.capital-chart__wrapper {
  padding: 1rem 1.25rem 1.5rem;
}

@media (max-width: 640px) {
  .capital-chart__wrapper {
    padding: 0.75rem;
  }
}

/* Payment schedule */
.payment-schedule {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-schedule h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.payment-schedule__hint {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.payment-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.payment-table th {
  background: var(--gray-50);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.payment-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.payment-row:last-child td { border-bottom: none; }

.payment-row--rei { background: #f0fdf4; }
.payment-row--pai { background: var(--gray-50); color: var(--gray-500); }

/* Reinvest toggle button */
.reinvest-toggle {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}

.reinvest-toggle--on {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}
.reinvest-toggle--on:hover {
  background: #bfdbfe;
}

.reinvest-toggle--off {
  background: #fef9c3;
  color: #92400e;
  border-color: #fde68a;
}
.reinvest-toggle--off:hover {
  background: #fef08a;
}

/* Reinvest label (non-éditable) */
.reinvest-label {
  font-size: 0.8rem;
  font-weight: 600;
}
.reinvest-label--on { color: #15803d; }
.reinvest-label--off { color: #92400e; }

/* Payment status badge */
.payment-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.payment-status--pen { background: #dbeafe; color: #1d4ed8; }
.payment-status--rei { background: #bbf7d0; color: #15803d; }
.payment-status--pai { background: var(--gray-200); color: var(--gray-600); }

/* === SUBSCRIBE CONFIRM PAGE === */
.subscribe-confirm-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.subscribe-confirm__header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.subscribe-confirm__header h1 span { color: var(--blue-darker); }
.subscribe-confirm__header p { color: var(--gray-600); }

.subscribe-confirm__summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.subscribe-confirm__description {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.subscribe-confirm__projection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.subscribe-confirm__projection h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.subscribe-confirm__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.subscribe-confirm__form h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.subscribe-confirm__checkbox {
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.subscribe-confirm__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === IN PRODUCTION PAGE === */
.in-production {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  background: var(--gray-50);
  padding: 4rem 2rem;
}
.in-production__inner { text-align: center; }
.in-production h1 {
  font-size: 1.5rem;
  font-weight: 600;
}
.in-production p {
  margin-top: 1rem;
  color: var(--gray-600);
}

/* === ACCOUNT DASHBOARD PAGE === */
.account-dashboard-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.account-dashboard__title {
  font-size: 1.75rem;
  font-weight: 700;
}

.account-dashboard__subtitle {
  margin-top: 0.375rem;
  color: var(--gray-600);
}

.account-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .account-menu-grid { grid-template-columns: repeat(2, 1fr); }
}

.account-menu-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}
.account-menu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.account-menu-card__icon { color: var(--blue-dark); }

.account-menu-card__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.account-menu-card__desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  flex: 1;
}

.account-menu-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark);
  padding-top: 0.5rem;
}

.account-dashboard__logout {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

/* === ACCOUNT SETTINGS PAGE === */
.account-settings-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.account-settings__back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}
.account-settings__back:hover { text-decoration: underline; }

.account-settings__title {
  font-size: 1.75rem;
  font-weight: 700;
}

.account-settings__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.kyc-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.kyc-badge--inc { background: #fee2e2; color: #b91c1c; }
.kyc-badge--sub { background: #dbeafe; color: #1d4ed8; }
.kyc-badge--rej { background: #fecaca; color: #991b1b; }
.kyc-badge--app { background: #bbf7d0; color: #15803d; }

.kyc-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.settings-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.settings-section__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-section__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .settings-section__row { grid-template-columns: repeat(2, 1fr); }
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.settings-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.settings-field .form-input:disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
}

.settings-section__actions {
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}
