/* ============================================
   PSYCHOSOMA — Louisa Coaching
   Palette : brun #6B4226 | sienna #A0522D | or #C9A84C | crème #FDF6EC
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brun:    #6B4226;
  --sienna:  #A0522D;
  --or:      #C9A84C;
  --creme:   #FDF6EC;
  --blanc:   #FAFAF7;
  --gris:    #8a7a6a;
  --gris-clair: #e8e0d5;
  --ombre:   rgba(107, 66, 38, 0.12);
  --sidebar-w: 220px;
  --header-h: 72px;
}

html, body {
  font-family: Georgia, 'Times New Roman', serif;
  background-color: var(--creme);
  color: var(--brun);
  min-height: 100vh;
  line-height: 1.7;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 0.75rem;
}

/* ============================================
   LANDING PAGE — Nouvelle mise en page
   ============================================ */

.landing-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Panel gauche — hero */
.hero-panel {
  background: linear-gradient(160deg, var(--brun) 0%, #4a2c14 50%, var(--sienna) 100%);
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

/* Éléments décoratifs */
.deco {
  position: absolute;
  border-radius: 50%;
  background: rgba(253, 246, 236, 0.06);
  z-index: 1;
}

.deco-1 {
  width: 380px;
  height: 380px;
  top: -120px;
  right: -120px;
}

.deco-2 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  left: -80px;
}

/* Brand */
.hero-label {
  display: block;
  color: var(--or);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--creme);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero-title::before {
  content: 'ψ';
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 3.8rem;
  color: rgba(253, 246, 236, 0.45);
  line-height: 1;
  flex-shrink: 0;
}

.hero-title em {
  font-style: italic;
  color: var(--or);
  font-weight: 400;
}

.hero-claim {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 300;
  color: var(--creme);
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--creme);
  opacity: 0.75;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Features */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--or);
  opacity: 0.9;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feature-text strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--creme);
  letter-spacing: 0.02em;
}

.feature-text span {
  font-size: 0.82rem;
  color: var(--creme);
  opacity: 0.65;
  line-height: 1.5;
}

.hero-cta-block {
  margin: 1.75rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-hero-join {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--or);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.btn-hero-join:hover {
  background: #b8973f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.45);
}

.hero-cta-sub {
  font-size: 0.78rem;
  color: var(--creme);
  opacity: 0.6;
}

.hero-note {
  font-size: 0.75rem;
  color: var(--creme);
  opacity: 0.4;
  font-style: italic;
  line-height: 1.6;
  border-top: 1px solid rgba(253, 246, 236, 0.15);
  padding-top: 1.5rem;
}

/* Panel droit — formulaire */
.login-panel {
  background: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* Responsive : mobile = une seule colonne */
@media (max-width: 800px) {
  .landing-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 2.5rem 1.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-title::before {
    font-size: 2.5rem;
  }

  .hero-claim {
    font-size: 1.2rem;
  }

  .hero-features {
    gap: 1rem;
  }

  .login-panel {
    padding: 2rem 1rem;
  }
}

/* ============================================
   PAGE LOGIN — index.html
   ============================================ */

.login-page {
  min-height: 100vh;
  background: var(--creme);
}

.login-container {
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: 0 8px 40px var(--ombre);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, var(--brun) 0%, var(--sienna) 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.logo-text {
  color: var(--creme);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.3rem;
}

.logo-psychosoma {
  color: var(--or);
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  display: block;
}

/* Hint contextuel post-paiement (index.html) */
.login-hint {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--brun);
  line-height: 1.55;
}

.login-hint.hidden {
  display: none;
}

.hint-icon {
  color: var(--or);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.login-hint strong {
  color: var(--sienna);
}

.logo-tagline {
  color: var(--creme);
  opacity: 0.65;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Onglets */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--gris-clair);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: var(--gris);
  cursor: pointer;
  transition: all 0.25s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--sienna);
  background: rgba(160, 82, 45, 0.04);
}

.tab-btn.active {
  color: var(--brun);
  border-bottom-color: var(--or);
  font-weight: bold;
}

/* Formulaires */
.tab-content {
  padding: 2rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--gris);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gris-clair);
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: var(--brun);
  background: var(--blanc);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-primary {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--brun) 0%, var(--sienna) 100%);
  color: var(--creme);
  border: none;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--sienna) 0%, var(--brun) 100%);
  box-shadow: 0 4px 16px var(--ombre);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Messages */
.message {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.message.success {
  background: #f0f9f0;
  color: #2d6a2d;
  border: 1px solid #b8e0b8;
}

.message.error {
  background: #fdf0f0;
  color: #8b2020;
  border: 1px solid #f0c0c0;
}

.message.info {
  background: rgba(201, 168, 76, 0.1);
  color: var(--brun);
  border: 1px solid rgba(201, 168, 76, 0.35);
}

.message.hidden {
  display: none;
}

/* ============================================
   PAGE APP — app.html
   ============================================ */

.app-page {
  min-height: 100vh;
  background: var(--creme);
  background-image:
    radial-gradient(ellipse at 10% 30%, rgba(160, 82, 45, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 70%, rgba(201, 168, 76, 0.05) 0%, transparent 55%);
}

/* Bienvenue */
.app-welcome {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.welcome-ornament {
  display: block;
  color: var(--or);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3em;
}

.welcome-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--brun);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.welcome-title em {
  font-style: italic;
  color: var(--sienna);
}

.welcome-desc {
  font-size: 0.95rem;
  color: var(--gris);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
  font-style: italic;
}

/* Header */
.app-header {
  background: linear-gradient(135deg, var(--brun) 0%, var(--sienna) 100%);
  height: var(--header-h);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px var(--ombre);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  align-items: center;
  text-decoration: none;
}

/* ψ mark — symbole de l'âme et de la psyché */
.header-logo::before {
  content: 'ψ';
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-style: italic;
  font-weight: 300;
  color: var(--or);
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  line-height: 1;
  opacity: 0.9;
}

.header-brand {
  display: none;
}

.header-title {
  grid-column: 2;
  grid-row: 2;
  color: var(--creme);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1;
}

.header-title em {
  font-style: italic;
  color: var(--or);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-username {
  color: var(--creme);
  font-size: 0.9rem;
  opacity: 0.85;
  font-style: italic;
}

.btn-logout {
  background: rgba(253, 246, 236, 0.15);
  color: var(--creme);
  border: 1px solid rgba(253, 246, 236, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.btn-logout:hover {
  background: rgba(253, 246, 236, 0.25);
  border-color: rgba(253, 246, 236, 0.5);
}

/* Main content */
.app-main {
  margin-left: var(--sidebar-w);
  padding: 2.5rem 3rem 4rem;
  min-height: calc(100vh - var(--header-h));
}

/* Formulaire de génération */
.generation-card {
  background: var(--blanc);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px var(--ombre);
  margin-bottom: 3rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.generation-card h2 {
  color: var(--brun);
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
}

.generation-card .subtitle {
  color: var(--gris);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--brun);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gris-clair);
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: var(--brun);
  background: var(--blanc);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: vertical;
}

.form-field textarea {
  min-height: 90px;
  line-height: 1.6;
}

.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B4226' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Message d'erreur inline sous le textarea */
.input-error {
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(160, 82, 45, 0.08);
  border-left: 3px solid var(--sienna);
  border-radius: 0 6px 6px 0;
  color: var(--sienna);
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: italic;
}

.input-error.hidden {
  display: none;
}

.input-error-active {
  border-color: var(--sienna) !important;
  box-shadow: 0 0 0 2px rgba(160, 82, 45, 0.15) !important;
}

.btn-generate {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--brun) 0%, var(--sienna) 100%);
  color: var(--creme);
  border: none;
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-generate:hover:not(:disabled) {
  box-shadow: 0 6px 20px var(--ombre);
  transform: translateY(-2px);
}

.btn-generate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  text-align: center;
}

.spinner-wrap.visible {
  display: flex;
}

/* Nouveau spinner en pétales */
.spinner-petals {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 1.75rem;
}

.petal {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--or);
  top: 50%;
  left: 50%;
  transform-origin: -14px 0;
  animation: petals 1.2s linear infinite;
}

.petal:nth-child(1) { animation-delay: 0s;    transform: rotate(0deg)   translate(-50%, -50%); }
.petal:nth-child(2) { animation-delay: 0.2s;  transform: rotate(60deg)  translate(-50%, -50%); }
.petal:nth-child(3) { animation-delay: 0.4s;  transform: rotate(120deg) translate(-50%, -50%); }
.petal:nth-child(4) { animation-delay: 0.6s;  transform: rotate(180deg) translate(-50%, -50%); }
.petal:nth-child(5) { animation-delay: 0.8s;  transform: rotate(240deg) translate(-50%, -50%); }
.petal:nth-child(6) { animation-delay: 1.0s;  transform: rotate(300deg) translate(-50%, -50%); }

@keyframes petals {
  0%   { opacity: 0.15; }
  50%  { opacity: 1; }
  100% { opacity: 0.15; }
}

.spinner-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--brun);
  margin-bottom: 0.4rem;
}

.spinner-text {
  color: var(--gris);
  font-style: italic;
  font-size: 0.88rem;
}

/* Zone fiche */
.fiche-container {
  display: none;
}

.fiche-container.visible {
  display: block;
}

.fiche-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.fiche-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fiche-ai-notice {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--gris);
  opacity: 0.6;
  text-align: center;
  margin: 0 0 1.5rem;
}

.fiche-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
  opacity: 0.8;
}

.fiche-title {
  color: var(--brun);
  font-size: 1.6rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-style: italic;
}

.fiche-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fiche-actions--bottom {
  justify-content: center;
  margin: 2rem 0 1rem;
}

.btn-action {
  padding: 0.55rem 1.2rem;
  border-radius: 7px;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.btn-action.outline {
  background: transparent;
  border: 1.5px solid var(--or);
  color: var(--brun);
}

.btn-action.outline:hover {
  background: rgba(201, 168, 76, 0.1);
}

.btn-action.filled {
  background: linear-gradient(135deg, var(--or) 0%, #b8963e 100%);
  border: none;
  color: var(--blanc);
}

.btn-action.filled:hover {
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
  transform: translateY(-1px);
}

/* Sections de la fiche */
.fiche-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.fiche-section {
  background: var(--blanc);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 12px var(--ombre);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fiche-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--or);
  opacity: 0.7;
  flex-shrink: 0;
  min-width: 1.2rem;
  text-align: center;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0;
  font-style: normal;
}

.section-ouverture {
  border-left: 4px solid var(--or);
  background: linear-gradient(135deg, var(--blanc) 0%, rgba(201, 168, 76, 0.06) 100%);
}

.section-ouverture .section-body {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--brun);
  font-style: italic;
}

.section-dynamique .section-body {
  font-size: 0.97rem;
  color: #3d2810;
  line-height: 1.8;
}

.section-questions {
  background: linear-gradient(135deg, rgba(160, 82, 45, 0.04) 0%, var(--blanc) 100%);
  border-left: 4px solid var(--sienna);
}

.section-questions .question-item {
  padding: 0.5rem 0;
  color: var(--sienna);
  font-size: 0.97rem;
  font-style: italic;
  border-bottom: 1px solid var(--gris-clair);
  line-height: 1.6;
}

.section-questions .question-item:last-child {
  border-bottom: none;
}

.section-questions .question-theme {
  font-style: normal;
  font-weight: bold;
  color: var(--brun);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding-top: 0.75rem;
  padding-bottom: 0.1rem;
  border-bottom: none;
}

/* Section ancestrale */
.section-ancestral {
  background: linear-gradient(135deg, rgba(107, 66, 38, 0.04) 0%, var(--blanc) 100%);
  border-left: 4px solid var(--brun);
}

.section-ancestral .section-body {
  font-size: 0.97rem;
  color: #3d2810;
  line-height: 1.8;
  font-style: italic;
}

/* Citations dans le corps des sections */
.fiche-section .citation {
  display: block;
  text-align: center;
  font-style: italic;
  color: var(--sienna);
  font-size: 1rem;
  margin: 1.25rem 2rem;
  line-height: 1.7;
}

.section-resolution .section-body {
  font-size: 0.97rem;
  color: #3d2810;
  line-height: 1.8;
}

.section-benefices {
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.section-benefices .section-header .section-label {
  color: var(--sienna);
}

/* Grande section lecture */
.section-lecture {
  background: linear-gradient(160deg, rgba(201,168,76,0.05) 0%, var(--blanc) 60%);
  border-left: 4px solid var(--or);
}

.section-lecture .section-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--brun);
}

.section-rappel {
  background: rgba(107, 66, 38, 0.04);
  border: 1px solid var(--gris-clair);
}

.section-rappel .section-body {
  font-size: 0.88rem;
  color: var(--gris);
  font-style: italic;
  line-height: 1.7;
}

/* ============================================
   NAVIGATION MEMBRE — SIDEBAR
   ============================================ */

.app-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  background: #2a1407;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 0 1.25rem;
  z-index: 90;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem 0.8rem 1.4rem;
  font-family: Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(253, 246, 236, 0.5);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.app-nav-link:hover {
  color: var(--creme);
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(201, 168, 76, 0.35);
}

.app-nav-link.active {
  color: var(--or);
  border-left-color: var(--or);
  background: rgba(201, 168, 76, 0.1);
}

/* Lien contact en bas de sidebar */
.app-nav-contact {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.45;
  letter-spacing: 0.05em;
}

.app-nav-contact:hover {
  opacity: 0.8;
  background: transparent;
  border-left-color: transparent;
}

/* ============================================
   CITATION DU JOUR
   ============================================ */

.citation-du-jour {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sienna);
  opacity: 0.85;
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

/* ============================================
   CHIPS DE SUGGESTIONS
   ============================================ */

.chips-suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chips-label {
  font-size: 0.8rem;
  color: var(--gris);
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.chip-symptom {
  background: transparent;
  border: 1px solid var(--gris-clair);
  color: var(--brun);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-family: Georgia, serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-symptom:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--or);
  color: var(--sienna);
}

/* ============================================
   PAGES INTÉRIEURES (concepts, etc.)
   ============================================ */

.page-intro {
  margin-bottom: 2rem;
}

.page-intro-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--brun);
  margin-bottom: 0.5rem;
}

.page-intro-desc {
  font-size: 0.97rem;
  color: var(--gris);
  line-height: 1.7;
}

/* Accordéon */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 780px;
}

.accordion-item {
  background: var(--blanc);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--ombre);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: Georgia, serif;
  color: var(--brun);
  transition: background 0.2s ease;
}

.accordion-trigger:hover {
  background: rgba(201, 168, 76, 0.06);
}

.accordion-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--or);
  font-style: italic;
  min-width: 2rem;
}

.accordion-label {
  flex: 1;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.accordion-arrow {
  color: var(--or);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.5rem;
}

.accordion-item.open .accordion-body {
  max-height: 1200px;
  padding: 0 1.5rem 1.5rem;
}

.concept-citation {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sienna);
  border-left: 3px solid var(--or);
  padding-left: 1rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.concept-box {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid var(--gris-clair);
  border-radius: 8px;
  padding: 1rem;
}

.concept-box-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--sienna);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.concept-systems {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.system-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(201, 168, 76, 0.04);
  border-radius: 6px;
  border-left: 3px solid var(--gris-clair);
}

.system-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brun);
  min-width: 200px;
}

.system-theme {
  font-size: 0.85rem;
  color: var(--gris);
  line-height: 1.5;
}

/* Sidebar → top nav on tablet/mobile */
@media (max-width: 900px) {
  .app-nav {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0 1rem;
    overflow-x: auto;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    top: auto;
    left: auto;
  }

  .app-nav-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 0.9rem;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .app-nav-link:hover {
    background: transparent;
    border-left-color: transparent;
    border-bottom-color: rgba(201, 168, 76, 0.4);
  }

  .app-nav-link.active {
    border-left: none;
    border-bottom-color: var(--or);
    background: transparent;
  }

  .app-nav-contact {
    margin-top: 0;
    border-top: none;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .app-main {
    margin-left: 0;
    padding: 2rem 1.25rem 3rem;
    min-height: unset;
  }
}

@media (max-width: 600px) {
  .concept-grid { grid-template-columns: 1fr; }
  .system-row { flex-direction: column; gap: 0.25rem; }
  .system-name { min-width: unset; }
}

/* ============================================
   LOGO PAGE LOGIN
   ============================================ */

.logo-psychosoma {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  color: var(--creme);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
}

.logo-psychosoma::before {
  content: 'ψ';
  font-style: italic;
  font-weight: 300;
  font-size: 2.2rem;
  color: rgba(253, 246, 236, 0.6);
  line-height: 1;
}

.logo-psychosoma em {
  font-style: italic;
  color: var(--or);
}

/* ============================================
   MOT DE PASSE OUBLIÉ
   ============================================ */

.forgot-wrap {
  text-align: center;
  margin-top: 0.75rem;
}

.btn-forgot {
  background: none;
  border: none;
  color: var(--gris);
  font-size: 0.83rem;
  cursor: pointer;
  font-family: Georgia, serif;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  transition: color 0.2s;
}

.btn-forgot:hover {
  color: var(--sienna);
}

.reset-desc {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ============================================
   PAIEMENT — BOUTON ACHAT & PAGE MERCI
   ============================================ */

.buy-cta-block {
  text-align: center;
  margin-bottom: 1.25rem;
}

.btn-buy {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--brun) 0%, var(--sienna) 100%);
  color: var(--creme);
  border: none;
  border-radius: 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-buy:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-buy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.buy-cta-note {
  font-size: 0.78rem;
  color: var(--gris);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.buy-divider {
  text-align: center;
  position: relative;
  margin: 0 0 1.25rem;
}

.buy-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gris-clair);
}

.buy-divider span {
  position: relative;
  background: white;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  color: var(--gris);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Page merci */

.merci-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--creme-fonce);
  padding: 2rem 1.5rem;
}

.merci-inner {
  max-width: 440px;
  width: 100%;
  background: white;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(60, 30, 10, 0.08);
}

.merci-brand {
  margin-bottom: 2rem;
}

.merci-icon {
  font-size: 2rem;
  color: var(--or);
  margin-bottom: 1rem;
}

.merci-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--brun);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.merci-text {
  font-size: 0.95rem;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.merci-text-small {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.merci-btn {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.merci-note {
  font-size: 0.82rem;
  color: var(--gris);
}

.merci-link {
  color: var(--sienna);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   ACCUEIL — Tour de l'espace
   ============================================ */

.accueil-espace-wrap {
  padding: 2.5rem 2rem 1rem;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Bloc bienvenue */
.accueil-bienvenue {
  text-align: center;
  margin-bottom: 0.5rem;
}

.accueil-bienvenue-nom {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brun);
  margin-bottom: 0.35rem;
}

.accueil-bienvenue-text {
  font-size: 0.95rem;
  color: var(--gris);
  margin: 0;
}

/* Grille secondaire */
.accueil-espace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Cartes communes */
.accueil-espace-card {
  background: #fff;
  border: 1px solid var(--gris-clair);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--brun);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: block;
  position: relative;
}

.accueil-espace-card:hover {
  border-color: var(--sienna);
  box-shadow: 0 4px 16px var(--ombre);
  transform: translateY(-2px);
}

/* Carte principale */
.accueil-espace-card--primary {
  border-color: var(--sienna);
  background: linear-gradient(135deg, #fff 60%, #fdf0e8);
}

.accueil-espace-card--primary strong {
  font-size: 1.3rem !important;
}

/* Carte bonus */
.accueil-espace-card--bonus {
  border-style: dashed;
  background: #fdfaf6;
}

.accueil-bonus-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: var(--or);
  color: var(--brun);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.accueil-espace-icon {
  font-size: 1.25rem;
  color: var(--sienna);
  display: block;
  margin-bottom: 0.5rem;
}

.accueil-espace-card strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--brun);
}

.accueil-espace-card p {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .accueil-espace-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PHOTOS — ACCUEIL & CONTACT
   ============================================ */

.story-section-portrait {
  background-image: url('/images/louisa-portrait.jpg');
  background-size: cover;
  background-position: center 80%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 2.5rem 2rem !important;
}

.story-section-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(35, 16, 5, 0.82) 0%, rgba(107, 66, 38, 0.68) 100%);
  z-index: 0;
}

.story-section-portrait > * {
  position: relative;
  z-index: 1;
}

.story-section-portrait .story-section-label {
  color: var(--or) !important;
}

.story-section-portrait p,
.story-section-portrait blockquote {
  color: rgba(253, 246, 236, 0.92);
}

.story-section-portrait .story-quote {
  border-left-color: var(--or);
  color: var(--creme) !important;
}

.contact-portrait {
  text-align: center;
  margin-bottom: 1.75rem;
}

.contact-portrait-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid var(--or);
  box-shadow: 0 4px 18px var(--ombre);
  display: block;
  margin: 0 auto 0.75rem;
}

.contact-portrait-caption {
  font-style: italic;
  color: var(--gris);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   ACCUEIL — SITUATIONS & USAGE
   ============================================ */

.accueil-situations {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.accueil-situation {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.situation-icon {
  color: var(--or);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  opacity: 0.7;
}

.accueil-situation strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brun);
  display: block;
  margin-bottom: 0.3rem;
}

.accueil-situation p {
  font-size: 0.92rem;
  color: var(--gris);
  line-height: 1.7;
  margin: 0;
}

.accueil-usage {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  border-left: 2px solid var(--gris-clair);
  padding-left: 1.5rem;
}

.usage-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.usage-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--or);
  opacity: 0.6;
  flex-shrink: 0;
  line-height: 1;
  min-width: 2rem;
}

.usage-step strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brun);
  display: block;
  margin-bottom: 0.3rem;
}

.usage-step p {
  font-size: 0.92rem;
  color: var(--gris);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   PAGE ACCUEIL — HISTOIRE
   ============================================ */

.story-hero {
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.story-eyebrow {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sienna);
  margin-bottom: 0.75rem;
}

.story-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--brun);
  line-height: 1.3;
}

.story-body {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.story-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-section p {
  text-align: justify;
  hyphens: auto;
  line-height: 1.85;
}

.story-section-alt {
  background: var(--blanc);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 10px var(--ombre);
}

.story-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--or);
  margin-bottom: 0.25rem;
}

.story-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sienna);
  border-left: 3px solid var(--or);
  padding: 0.75rem 1.25rem;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.story-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.story-cta-primary {
  background: linear-gradient(135deg, var(--or) 0%, #b8963e 100%);
  color: #2a1005;
  font-weight: 600;
}

.story-cta-primary:hover {
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
  transform: translateY(-1px);
}

.story-cta-secondary {
  background: var(--blanc);
  color: var(--brun);
  border: 1.5px solid var(--gris-clair);
}

.story-cta-secondary:hover {
  border-color: var(--or);
  color: var(--sienna);
}

/* ============================================
   PAGE MODULES — GRILLE
   ============================================ */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.module-card {
  display: flex;
  gap: 1.25rem;
  background: var(--blanc);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px var(--ombre);
  text-decoration: none;
  color: var(--brun);
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
}

.module-card:hover {
  border-color: var(--or);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 66, 38, 0.15);
}

.module-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--or);
  line-height: 1;
  flex-shrink: 0;
}

.module-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.module-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brun);
}

.module-card-desc {
  font-size: 0.85rem;
  color: var(--gris);
  line-height: 1.6;
}

.module-card-cta {
  font-size: 0.8rem;
  color: var(--or);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.module-card--bonus {
  border-color: rgba(174, 139, 80, 0.3);
  background: linear-gradient(135deg, var(--blanc) 0%, rgba(253, 246, 236, 0.7) 100%);
}

.module-card--bonus .module-num {
  color: var(--or);
  font-size: 1.6rem;
}

/* ============================================
   PAGE MODULE DÉTAILLÉ
   ============================================ */

.module-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.module-back {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--gris);
  text-decoration: none;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.module-back:hover { color: var(--sienna); }

.module-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--or);
  margin-bottom: 0.5rem;
}

.module-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--brun);
  margin-bottom: 0.3rem;
}

.module-subtitle {
  font-size: 0.95rem;
  color: var(--gris);
  font-style: italic;
}

.module-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.module-section h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sienna);
  margin-bottom: 0.75rem;
}

.module-section p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #2e1a0a;
  text-align: justify;
  hyphens: auto;
}

.module-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sienna);
  border-left: 3px solid var(--or);
  padding: 0.75rem 1.5rem;
  line-height: 1.5;
}

.module-reflexion {
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  padding: 1.5rem;
}

.module-reflexion-title {
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--or);
  margin-bottom: 0.75rem;
}

.module-reflexion-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.module-reflexion-list li {
  font-size: 0.93rem;
  color: var(--brun);
  line-height: 1.6;
}

.module-exercice {
  background: var(--blanc);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px var(--ombre);
  border-left: 4px solid var(--sienna);
}

.module-exercice-title {
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sienna);
  margin-bottom: 0.75rem;
}

.module-ressources {
  border-top: 1px solid var(--gris-clair);
  padding-top: 1.5rem;
}

.module-ressources-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gris);
  margin-bottom: 0.75rem;
}

.module-ressources-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.module-ressources-list li {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.5;
}

.module-nav-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-clair);
}

.module-nav-next {
  font-size: 0.88rem;
  color: var(--sienna);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.module-nav-next:hover { color: var(--brun); }

@media (max-width: 600px) {
  .modules-grid { grid-template-columns: 1fr; }
  .story-title { font-size: 1.6rem; }
}

/* ============================================
   CONSEIL D'UTILISATION
   ============================================ */

.app-conseil {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.conseil-ornament {
  color: var(--or);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.conseil-text {
  font-size: 0.9rem;
  color: var(--brun);
  line-height: 1.6;
  margin: 0;
}

.conseil-text strong {
  color: var(--sienna);
}

/* ============================================
   BOOKING CTA
   ============================================ */

.booking-cta {
  background: linear-gradient(135deg, #3d1f0a 0%, var(--brun) 100%);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 0.5rem;
}

.booking-cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

.booking-ornament {
  display: block;
  color: var(--or);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.booking-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--creme);
  margin-bottom: 0.75rem;
}

.booking-desc {
  font-size: 0.95rem;
  color: rgba(253, 246, 236, 0.8);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.booking-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.booking-sub {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(253, 246, 236, 0.6);
  line-height: 1.75;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.booking-sub strong {
  color: rgba(253, 246, 236, 0.85);
  font-weight: 600;
}

.btn-booking {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-booking-primary {
  background: linear-gradient(135deg, var(--or) 0%, #b8963e 100%);
  color: #2a1005;
  font-weight: 600;
}

.btn-booking-primary:hover {
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.5);
  transform: translateY(-1px);
}

.btn-booking-secondary {
  background: transparent;
  color: var(--creme);
  border: 1.5px solid rgba(253, 246, 236, 0.4);
}

.btn-booking-secondary:hover {
  border-color: var(--or);
  color: var(--or);
}

/* Paragraphes dans les sections */
.fiche-section p {
  margin-bottom: 0.75rem;
}

.fiche-section p:last-child {
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .app-header {
    padding: 0 1rem;
  }

  .header-title {
    font-size: 1.1rem;
  }

  .header-username {
    display: none;
  }

  .generation-card {
    padding: 1.5rem;
  }

  .fiche-section {
    padding: 1.25rem 1.25rem;
  }

  .name-row {
    grid-template-columns: 1fr;
  }

  .login-container {
    border-radius: 12px;
  }

  .fiche-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   PAGE CONTACT
   ============================================ */

.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.contact-intro {
  margin-bottom: 2rem;
}

.contact-intro-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--brun);
  margin-bottom: 0.5rem;
}

.contact-intro-desc {
  font-size: 0.95rem;
  color: var(--gris);
  line-height: 1.7;
}

.contact-intro-desc a {
  color: var(--sienna);
  text-decoration: none;
}

.contact-intro-desc a:hover {
  text-decoration: underline;
}

.contact-form-card {
  background: var(--blanc);
  border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 4px 20px var(--ombre);
}

.contact-form-card .form-field textarea {
  min-height: 130px;
}

.contact-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.contact-success-icon {
  display: block;
  font-size: 2rem;
  color: var(--or);
  margin-bottom: 1rem;
}

.contact-success-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brun);
  margin-bottom: 0.5rem;
}

.contact-success-desc {
  font-size: 0.93rem;
  color: var(--gris);
  line-height: 1.7;
}

/* ============================================
   HISTORIQUE DES LECTURES
   ============================================ */

.history-section {
  max-width: 780px;
  margin: 0 auto 2rem;
}

.history-section.hidden {
  display: none;
}

.history-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gris-clair);
  padding: 0 0 0.5rem 0;
  margin-bottom: 0;
  cursor: pointer;
  text-align: left;
}

.history-toggle-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.history-chevron {
  font-size: 1.1rem;
  color: var(--gris);
  transition: transform 0.25s ease;
  display: inline-block;
  line-height: 1;
}

.history-toggle[aria-expanded="true"] .history-chevron {
  transform: rotate(90deg);
}

.history-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gris);
}

.history-subtitle {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  font-size: 0.72rem;
  opacity: 0.7;
}

.history-count {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: var(--or);
  font-style: italic;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.history-list--collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.history-list--open {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.75rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--blanc);
  border-radius: 8px;
  border: 1px solid var(--gris-clair);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 1rem;
}

.history-item:hover {
  border-color: var(--or);
  background: rgba(201, 168, 76, 0.06);
}

.history-symptom {
  font-size: 0.9rem;
  color: var(--brun);
  font-style: italic;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  font-size: 0.75rem;
  color: var(--gris);
  flex-shrink: 0;
  text-align: right;
}

.history-arrow {
  color: var(--or);
  font-size: 0.8rem;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Compteur et milestone */

.counter-wrap {
  margin-top: 0.4rem;
}

.counter-wrap.hidden {
  display: none;
}

.counter-text {
  font-size: 0.75rem;
  color: var(--or);
  opacity: 0.65;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* Toast milestone */

.milestone-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--brun) 0%, var(--sienna) 100%);
  color: var(--creme);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  box-shadow: 0 8px 32px rgba(107, 66, 38, 0.4);
  z-index: 1000;
  max-width: 280px;
  animation: toastIn 0.4s ease forwards;
}

.milestone-toast.hiding {
  animation: toastOut 0.4s ease forwards;
}

.milestone-mark {
  font-size: 1.1rem;
  color: var(--or);
  display: block;
  margin-bottom: 0.25rem;
}

.milestone-msg {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.4;
}

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0);   opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ============================================
   UTILITAIRES
   ============================================ */

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* ============================================
   PAGE ALIMENTS — SYMBOLIQUE BEERLANDT
   ============================================ */

/* Input texte (aliments) */
.form-field input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gris-clair);
  border-radius: 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--brun);
  background: var(--creme-pale);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.form-field input[type="text"]:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* Intro de la carte de génération */
.generation-card-intro {
  margin-bottom: 2rem;
}

.generation-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brun);
  margin-bottom: 0.5rem;
}

.generation-card-desc {
  font-size: 0.9rem;
  color: var(--gris);
  line-height: 1.65;
}

/* Sous-titre de la fiche aliment */
.fiche-aliment-meta {
  font-size: 0.85rem;
  color: var(--gris);
  font-style: italic;
  margin-top: 0.2rem;
  text-transform: capitalize;
}

/* Citations Beerlandt dans les sections */
.citation-beerlandt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brun);
  border-left: 2px solid var(--or);
  padding: 0.6rem 1.2rem;
  margin: 1.2rem 0;
  background: rgba(201, 168, 76, 0.06);
  border-radius: 0 6px 6px 0;
}

/* Points de coaching */
.coaching-point {
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 2px solid var(--gris-clair);
  color: var(--brun-clair, var(--sienna));
  font-style: italic;
}

/* ============================================
   PAGE DÉMARRER
   ============================================ */

.demarrer-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.demarrer-step {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: 12px;
  padding: 1.75rem;
}

.demarrer-step-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.demarrer-num {
  font-size: 1.4rem;
  color: var(--or);
  line-height: 1;
  flex-shrink: 0;
}

.demarrer-step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brun);
  margin: 0;
}

.demarrer-step p {
  font-size: 0.97rem;
  color: var(--brun);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.demarrer-step p:last-child {
  margin-bottom: 0;
}

.demarrer-conseil {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid var(--or);
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: var(--brun);
  line-height: 1.6;
}

.demarrer-conseil strong {
  color: var(--sienna);
}
