/* ═══════════════════════════════════════════════════════════════════════
   refonte-2027.css — Habillage de l'application (chargé EN DERNIER)
   ─────────────────────────────────────────────────
   Direction : navigation bleu marine, accents or, espace de travail ivoire,
   formulaires et contenus à lire sur fond blanc.
     Bleu marine #0B1838 · Or #D8B365 · Ivoire #F7F5EF · Blanc
   Ce fichier ne contient que de la présentation : aucun calcul, aucun
   identifiant, aucune logique n'est modifié. Le retirer (une ligne dans
   index.html) rend l'ancien habillage.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --rf-navy:     #0B1838;
  --rf-navy-2:   #142546;
  --rf-or:       #D8B365;
  --rf-or-fonce: #8A5F12;   /* or lisible sur fond clair (contraste AA, y compris sur ivoire) — 2026-11-19 : était #8A5F12, 3,96:1 sur #F3EFE4 */
  --rf-ivoire:   #F7F5EF;
  --rf-trait:    #E3DED2;
  --rf-texte:    #1A1A2E;
  --rf-texte-2:  #454859;

  /* Palette de l'application remappée (les ~5000 lignes aval suivent) */
  --astro-bg:            var(--rf-ivoire);
  --astro-bg-soft:       #E3DED2;
  --astro-bg-muted:      #E3DED2;
  --astro-card:          #FFFFFF;
  --astro-card-blue:     #EFEBE0;
  --astro-border:        var(--rf-trait);
  --astro-text:          var(--rf-texte);
  --astro-text-soft:     var(--rf-texte-2);
  --astro-text-muted:    #454859;
  --astro-sidebar:       var(--rf-navy);
  --astro-footer:        var(--rf-navy);
  --astro-panel-dark:    var(--rf-navy-2);
  --astro-accent:        var(--rf-or-fonce);
  --astro-accent-hover:  #8A5F12;
  --astro-accent-soft:   #8A5F12;
  --astro-free:          #8A5F12;
  --astro-premium:       var(--rf-or-fonce);
  --radius-card:         18px;
  --radius-button:       10px;
  --shadow-soft:         0 1px 2px rgba(11,24,56,.05), 0 10px 28px rgba(11,24,56,.07);
  --shadow-panel:        0 18px 50px rgba(11,24,56,.18);

  --ivoire-fonce:        var(--rf-trait);
  --encre:               var(--rf-texte);
  --encre-clair:         var(--rf-texte-2);
  --terracotta:          var(--rf-or-fonce);
  --terracotta-fonce:    #8A5F12;
  --vert-sauge:          #1F6B45;   /* 2026-11-19 : était #5C7F6C, 4,1:1 sur ivoire */
  --semantic-favorable-bg:        rgba(92,127,108,.12);
  --semantic-favorable-bg-strong: rgba(92,127,108,.22);
  --semantic-tension-bg:          rgba(184,141,58,.12);
  --semantic-tension-bg-strong:   rgba(184,141,58,.22);

  --app-bg:      var(--rf-ivoire);
  --card-bg:     #FFFFFF;
  --border-soft: var(--rf-trait);
}

body { background: var(--rf-ivoire); color: var(--rf-texte); }

/* ─── Une seule navigation : la barre latérale ────────────────────────
   Les anciens onglets restent dans la page (la logique s'appuie sur eux)
   mais ne sont plus affichés. */
.tabs { display: none !important; }
.client-welcome { display: none !important; }

/* ─── Barre latérale ──────────────────────────────────────────────── */
.sidebar { background: var(--rf-navy); box-shadow: none; border-right: 1px solid rgba(216,179,101,.18); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.sidebar-header { padding: 1.3rem 1.1rem 1rem; border-bottom: 0; }
.sidebar-brand { text-decoration: none; gap: .7rem; border: 0; background: none; padding: 0; }
.sidebar-brand-icon { background: none; color: var(--rf-or); font-size: 2rem; width: auto; height: auto; border-radius: 0; }
.sidebar-brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: #fff; letter-spacing: .01em; }
.sidebar-brand-sub { font-size: 0.8125rem; color: var(--rf-or); letter-spacing: .02em; text-transform: none; opacity: 1; }
.sidebar-toggle { color: rgba(255,255,255,.6); }

.sidebar-nav { padding: .2rem .75rem 1rem; gap: 2px; flex: 0 0 auto; }
.sidebar-section-title { font-size: 0.75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rf-or); padding: 0 .55rem; margin: 1.1rem 0 .45rem; opacity: 1; }
.sidebar-nav .sidebar-section-title:not(:first-child) { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.1rem; }
.sidebar-link { position: relative; display: flex; align-items: center; gap: .8rem; padding: .62rem .7rem; border-radius: 8px; border: 0; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.88); text-decoration: none; background: transparent; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-link-icon { width: 22px; height: 22px; display: inline-flex; flex: 0 0 22px; color: rgba(255,255,255,.78); background: none; font-size: 0; }
.sidebar-link.is-active:not(.sidebar-link-shortcut) { background: rgba(255,255,255,.09); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--rf-or); }
.sidebar-link.is-active:not(.sidebar-link-shortcut) .sidebar-link-icon { color: var(--rf-or); }
.sidebar-link-shortcut.is-active { background: transparent; box-shadow: none; border-color: transparent; font-weight: 500; }
.sidebar-link-shortcut.is-active .sidebar-link-icon { color: rgba(255,255,255,.78); }
.sidebar-link, .sidebar-link.is-active { border: 0; }
.sidebar-label { flex: 1; min-width: 0; white-space: normal; overflow: visible; line-height: 1.25; }
.sidebar-badge { font-size: 0.8125rem; font-weight: 600; letter-spacing: .02em; text-transform: none; padding: .12rem .5rem; border-radius: 6px; }
.sidebar-badge-free { display: none; }
.sidebar-badge-premium { background: transparent; color: var(--rf-or); border: 1px solid rgba(216,179,101,.75); }

/* Encart « Votre accès » */
.sidebar-acces { margin: auto .9rem 1rem; padding: 1rem .9rem .85rem; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.03); }
.sidebar-acces .sidebar-status-card { background: none; border: 0; padding: 0 0 .8rem; gap: .7rem; align-items: center; }
.sidebar-acces-etoile { color: var(--rf-or); font-size: 1.5rem; line-height: 1; }
.sidebar-acces .sidebar-status-text strong { display: block; font-size: .95rem; font-weight: 600; color: #fff; letter-spacing: 0; text-transform: none; }
.sidebar-acces .sidebar-status-text small { display: block; font-size: .82rem; color: rgba(255,255,255,.72); line-height: 1.35; }
.sidebar-cta { display: block; text-align: center; background: transparent; color: var(--rf-or); border: 1.5px solid var(--rf-or); border-radius: 8px; padding: .55rem .8rem; font-size: .93rem; font-weight: 600; text-decoration: none; box-shadow: none; margin: 0; }
.sidebar-cta:hover { background: var(--rf-or); color: var(--rf-navy); transform: none; }
.ca-details { margin: .7rem 0 0; padding: 0; border: 0; background: none; }
.ca-details > summary { list-style: none; cursor: pointer; text-align: center; font-size: .84rem; color: rgba(255,255,255,.86); text-decoration: underline; text-underline-offset: .2em; padding: .15rem 0; }
.ca-details > summary::-webkit-details-marker { display: none; }
.ca-details > summary:hover { color: var(--rf-or); }
.ca-details[open] > summary { margin-bottom: .7rem; }
.ca-sum-premium { display: none; }
body.mode-premium .ca-sum-free { display: none; }
body.mode-premium .ca-sum-premium { display: inline; }
.ca-details .ca-label { font-size: 0.8125rem; color: rgba(255,255,255,.72); }
.ca-details .ca-input { border-radius: 8px; }
.ca-details .ca-btn-valider { background: var(--rf-or); color: var(--rf-navy); border: 0; border-radius: 8px; font-weight: 700; }
.ca-details .ca-btn-valider:hover { background: #D8B365; }
.sidebar-footer { padding: 0 1.1rem 1rem; border-top: 0; }
.sidebar-foot-mini { font-size: 0.875rem; line-height: 1.45; color: rgba(255,255,255,.5); margin: 0; }
.app-shell.sidebar-collapsed .sidebar-link { justify-content: center; padding: .62rem 0; }
.app-shell.sidebar-collapsed .sidebar-link.is-active { box-shadow: none; }

/* ─── En-tête compact ─────────────────────────────────────────────── */
.header { background: transparent; border-bottom: 0; padding: 0; }
.header-inner { display: block; max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.25rem, 2vw, 2rem); }
.app-fil { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rf-trait); font-size: .9rem; color: var(--rf-texte-2); }
.app-fil strong { color: var(--rf-texte); font-weight: 600; }
.app-fil-chemin > span { margin: 0 .3rem; opacity: .6; }
.app-retour { color: var(--rf-texte); text-decoration: none; font-weight: 500; white-space: nowrap; }
.app-retour:hover { color: var(--rf-or-fonce); text-decoration: underline; }
.title-block { padding: 1.5rem 0 .2rem; }
.title-block h1, .header h1 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--rf-navy); margin: 0 0 .35rem; }
.title-block .subtitle { font-family: var(--sans); font-style: normal; font-size: 1.02rem; color: var(--rf-texte-2); letter-spacing: 0; text-transform: none; margin: 0; }
.header-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .6rem 1rem; padding: .5rem 0 0; text-align: left; }
.header-meta .version { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #454859; }

/* ─── Espace de travail ───────────────────────────────────────────── */
.main { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); align-items: start; padding-top: 1.4rem; }
.form-panel { background: #fff; border: 1px solid var(--rf-trait); border-radius: 18px; padding: 1.5rem 1.4rem 1.4rem; box-shadow: var(--shadow-soft); }
.form-panel h2 { display: flex; align-items: center; gap: .65rem; font-size: 1.5rem; color: var(--rf-navy); padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--rf-trait); }
.form-panel h2 svg { color: var(--rf-or-fonce); flex: 0 0 auto; }
.form-panel label { font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--rf-texte); }
.form-panel input[type=text], .form-panel input[type=date], .form-panel input[type=time], .form-panel input[type=number], .form-panel select {
  min-height: 46px; padding: .55rem .8rem; font-size: 1rem; color: var(--rf-texte); background: #fff; border: 1px solid #324875; border-radius: 10px;
}
.form-panel input:focus, .form-panel select:focus { outline: 3px solid rgba(216,179,101,.55); outline-offset: 1px; border-color: var(--rf-navy); box-shadow: none; }
.form-panel input::placeholder { color: #454859; }   /* 2026-11-19 : était #9499A8, 2,85:1 */
.form-panel input[type=checkbox] { accent-color: var(--rf-navy); width: 1.1rem; height: 1.1rem; }
.hi-checkbox-label { font-weight: 500 !important; }
.hi-help[hidden] { display: none !important; }
.hi-help { background: #EFEBE0; border-left: 3px solid var(--rf-or); border-radius: 0 8px 8px 0; padding: .7rem .9rem; }
.hi-help-warning { margin: 0; font-size: 0.875rem; color: var(--rf-texte); font-style: normal; }

.options-accordion { border: 0; border-top: 1px solid var(--rf-trait); border-radius: 0; background: none; margin: 0; }
.options-accordion + .options-accordion { margin-top: 0; }
.options-accordion:last-of-type { border-bottom: 1px solid var(--rf-trait); margin-bottom: 1.1rem; }
.options-accordion > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .8rem .2rem; font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--rf-texte); letter-spacing: 0; text-transform: none; background: none; border: 0; }
.options-accordion > summary::-webkit-details-marker { display: none; }
.options-accordion > summary::before { content: "›"; display: inline-block; width: 1rem; font-size: 1.25rem; line-height: 1; color: var(--rf-or-fonce); transition: transform .2s ease; }
.options-accordion > summary::after { content: none; }
.options-accordion[open] > summary::before { transform: rotate(90deg); }
.options-accordion > summary:hover { color: var(--rf-or-fonce); }
.options-accordion .options-content { padding: 0 .2rem 1rem; }
/* Texte d'aide en police standard du site (et non Cormorant italique) */
.aide-heure .options-intro { font-family: var(--sans); font-style: normal; margin: 0; font-size: .9rem; line-height: 1.55; color: var(--rf-texte-2); }

/* Boutons */
.btn-calc, .btn-primary, button.btn-primary, .form-panel .btn-primary, .main-content button.btn-primary, .main-content button[id*="calc"]:not(.tab):not(.mode-btn) { min-height: 52px; padding: .8rem 1rem; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--rf-navy); background: linear-gradient(180deg, #E2C079 0%, #D0A858 100%); border: 1px solid #D0A858; border-radius: 10px; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 16px rgba(11,24,56,.14); }
.btn-calc:hover, .btn-primary:hover, .main-content button.btn-primary:hover, .main-content button[id*="calc"]:not(.tab):not(.mode-btn):hover { background: linear-gradient(180deg, #EBCB89 0%, #D8B365 100%); color: var(--rf-navy); }
.btn-primary:disabled, .main-content button.btn-primary:disabled, .main-content button[id*="calc"]:not(.tab):not(.mode-btn):disabled { background: #E3DED2; border-color: #E3DED2; color: #8A90A2; box-shadow: none; cursor: not-allowed; }
.form-note { text-align: center; font-size: .84rem; color: var(--rf-texte-2); margin: .7rem 0 0; }
.form-actions-secondaires { display: flex; gap: .6rem; margin-top: .9rem; }
.form-actions-secondaires > button { flex: 1; width: auto; margin: 0; min-height: 40px; padding: .45rem .6rem; font-size: .86rem; font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: 8px; }
.form-panel .btn-export-pdf { background: #fff; color: var(--rf-navy); border: 1.5px solid var(--rf-navy); }
.form-panel .btn-export-pdf:hover:not(:disabled) { background: var(--rf-navy); color: #fff; }
.form-panel .btn-export-pdf:disabled { color: #9499A8; border-color: #E3DED2; background: #fff; cursor: not-allowed; }
.btn-secondary { border-radius: 10px; border-color: #324875; color: var(--rf-texte-2); }
.btn-secondary:hover { border-color: var(--rf-navy); color: var(--rf-navy); background: transparent; }

/* ─── Panneau de résultats ────────────────────────────────────────── */
.results-panel { border-radius: 18px; border-color: var(--rf-trait); }

/* Zone d'attente (avant calcul) : marine, motif céleste discret */
.results-panel:has(> .empty-state) {
  display: flex; align-items: center; justify-content: center; position: relative; color: #E9ECF5; border-color: var(--rf-navy);
  background:
    radial-gradient(1.5px 1.5px at 14% 22%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 16%, rgba(216,179,101,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 58%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 84%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 86%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(40,62,120,.55), transparent 70%),
    var(--rf-navy);
}
.results-panel > .empty-state { padding: 2.5rem 1.5rem; color: #C9CFE0; max-width: 34rem; }
.results-panel > .empty-state .symbol { color: var(--rf-or); opacity: .9; }
.results-panel > .empty-state h3 { font-style: normal; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; color: #fff; margin: 0 0 .5rem; }
.results-panel > .empty-state p { color: #C9CFE0; font-size: 1.02rem; }
.empty-surtitre { position: absolute; top: 1.6rem; left: 1.8rem; margin: 0; font-size: .76rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rf-or) !important; }
.empty-motif { display: block; width: min(250px, 60%); height: auto; margin: 0 auto 1.6rem; color: var(--rf-or); }
.empty-vues { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.6rem 0 0; padding: 0; }
.empty-vues li { font-size: .9rem; font-weight: 600; color: #fff; border: 1px solid rgba(216,179,101,.7); border-radius: 8px; padding: .5rem 1rem; }
.empty-note { margin: 1.8rem auto 0 !important; padding-top: 1rem; max-width: 22rem; border-top: 1px solid rgba(216,179,101,.45); font-size: .84rem !important; color: #C9CFE0 !important; }

/* Accès rapide aux trois vues du thème calculé */
.vues-resultats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rf-trait); }
.vues-resultats button { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--rf-navy); background: #fff; border: 1.5px solid var(--rf-navy); border-radius: 8px; padding: .5rem 1rem; min-height: 40px; cursor: pointer; }
.vues-resultats button:hover, .vues-resultats button:focus-visible { background: var(--rf-navy); color: #fff; }
#cg-section, .resume-cinq-lignes, .charpente-accordion, .data-zone { scroll-margin-top: 1rem; }
.sidebar-brand-icon { border: 0; box-shadow: none; }

/* ─── Pied de l'application ───────────────────────────────────────── */
.site-footer { background: var(--rf-navy); }
.footer-col-title { color: var(--rf-or); }
.footer-brand-icon { background: none; color: var(--rf-or); font-size: 1.3rem; }
.site-footer a:hover { color: var(--rf-or); }

/* Textes d'accent posés sur fond sombre : or clair (l'or foncé y serait illisible) */
.hd-hero, .ha-locked-card, .hd-premium-banner, .ha-cta-block { --astro-accent: var(--rf-or); --terracotta: var(--rf-or); }

/* ─── Tablette et téléphone ───────────────────────────────────────── */
.sidebar-mobile-trigger { background: var(--rf-navy); color: var(--rf-or); border-color: var(--rf-navy); border-radius: 10px; width: 44px; height: 44px; }
@media (max-width: 1100px) {
  .main { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  /* Le formulaire précède les résultats ; le menu s'ouvre depuis le bouton */
  .main { grid-template-columns: 1fr !important; }
  .main-content { padding-top: 0; }
  .app-fil { padding-left: 3.6rem; min-height: 60px; }
  .title-block { padding-top: 1.1rem; }
  .results-panel:has(> .empty-state) { min-height: 0; }
  .empty-surtitre { position: static; margin-bottom: 1.2rem; }
  .empty-motif { width: 170px; }
}
@media (max-width: 540px) {
  .app-fil-chemin { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .form-panel { padding: 1.2rem 1rem; }
  .field-row-date-heure { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  .options-accordion > summary::before { transition: none; }
}
@media print {
  .app-fil, .form-note, .form-actions-secondaires, .vues-resultats { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Refonte 2027 — étape 2 : présentation des modules, droits d'accès
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Menu : section Apprendre, badge « Bientôt », lien actif ────── */
.sidebar-link-bientot { cursor: default; opacity: .62; }
.sidebar-link-bientot:hover { background: transparent; color: inherit; }
.sidebar-badge-bientot { background: transparent; color: #C9CFE0; border: 1px dashed rgba(174,182,203,.6); font-style: italic; }
.sidebar-link:focus-visible { outline: 2px solid var(--rf-or); outline-offset: -2px; }
.sidebar-link.is-active { box-shadow: inset 3px 0 0 var(--rf-or); }

/* ─── Bloc « avant utilisation » ──────────────────────────────────── */
.results-panel > .empty-state.empty-intro { max-width: 36rem; text-align: left; padding: 2.4rem 2rem; }
.intro-module { text-align: left; }
.intro-acces { display: inline-block; margin: 0 0 1rem !important; padding: .3rem .75rem; border: 1px solid var(--rf-or); border-radius: 999px; font-size: 0.75rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-or) !important; }
.intro-titre { font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin: 0 0 .7rem; }
.intro-texte { font-size: 1.04rem; line-height: 1.6; margin: 0 0 1.3rem; }
.intro-liste-titre { font-size: 0.75rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .5rem !important; }
.intro-benefices { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.intro-benefices li { position: relative; padding: .38rem 0 .38rem 1.6rem; line-height: 1.5; }
.intro-benefices li::before { content: "✦"; position: absolute; left: 0; top: .5rem; font-size: .78rem; }
.intro-besoin { font-size: .95rem !important; margin: 0 0 1rem !important; padding-top: 1rem; }
.intro-action { font-weight: 600; margin: 0 !important; }
.intro-action::before { content: "→ "; }

/* sur le panneau marine */
.results-panel .intro-titre { color: #fff; }
.results-panel .intro-texte, .results-panel .intro-benefices li { color: #E9ECF5; }
.results-panel .intro-liste-titre { color: var(--rf-or) !important; }
.results-panel .intro-benefices li::before { color: var(--rf-or); }
.results-panel .intro-besoin { color: #C9CFE0 !important; border-top: 1px solid rgba(216,179,101,.35); }
.results-panel .intro-action { color: var(--rf-or) !important; }

/* sur fond clair : module qui attend le thème, présentation Premium */
.locked-state.intro-module, .module-premium {
  text-align: left; max-width: 44rem; margin: 1rem auto; padding: 2.2rem 2.2rem 2rem;
  background: #fff; border: 1px solid var(--rf-trait); border-radius: 18px; box-shadow: var(--shadow-soft);
}
.locked-state .intro-titre, .module-premium .intro-titre { color: var(--rf-navy); }
.locked-state .intro-texte, .module-premium .intro-texte,
.locked-state .intro-benefices li, .module-premium .intro-benefices li { color: var(--rf-texte); }
.locked-state .intro-liste-titre, .module-premium .intro-liste-titre { color: var(--rf-or-fonce) !important; }
.locked-state .intro-benefices li::before, .module-premium .intro-benefices li::before { color: var(--rf-or-fonce); }
.locked-state .intro-besoin { color: var(--rf-texte-2) !important; border-top: 1px solid var(--rf-trait); }
.locked-state .intro-acces, .module-premium .intro-acces { color: var(--rf-or-fonce) !important; border-color: var(--rf-or-fonce); }
.locked-state .locked-state-action { margin-top: .4rem; }
.cache-attente { display: none !important; }

/* ─── Modules réservés à l'accès Premium ──────────────────────────── */
.module-premium { grid-column: 1 / -1; }
.module-premium-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1.4rem; }
.bouton-premium, .encart-premium-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.5rem;
  border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--rf-navy) !important;
  background: linear-gradient(180deg, #E2C079 0%, #D0A858 100%); border: 1px solid #D0A858;
}
.bouton-premium:hover, .encart-premium-action:hover { background: linear-gradient(180deg, #EBCB89 0%, #D8B365 100%); }
.bouton-premium:focus-visible, .encart-premium-action:focus-visible, .lien-code:focus-visible { outline: 3px solid var(--rf-or); outline-offset: 3px; }
.lien-code { background: none; border: 0; padding: .3rem 0; font: inherit; font-size: .95rem; color: var(--rf-navy); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.lien-code:hover { color: var(--rf-or-fonce); }
body.mode-free #main-transits > :not(.module-premium),
body.mode-free #main-aspects > :not(.module-premium) { display: none !important; }
body:not(.mode-free) .module-premium,
body.mode-premium .encart-premium { display: none !important; }
body.mode-free .reserve-premium { display: none !important; }

.encart-premium { margin: 1.6rem 0; padding: 1.5rem 1.6rem; background: var(--rf-ivoire); border: 1px solid var(--rf-trait); border-left: 3px solid var(--rf-or); border-radius: 10px; }
.encart-premium-titre { font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.45rem; font-weight: 600; color: var(--rf-navy); margin: 0 0 .4rem; }
.encart-premium p { color: var(--rf-texte); }
.encart-premium ul { margin: .4rem 0 1.2rem; padding-left: 1.2rem; color: var(--rf-texte); line-height: 1.6; }
.encart-premium .lien-code { margin-left: 1.2rem; }

.lien-bascule { display: inline; background: none; border: 0; padding: 0; margin-left: .2rem; font: inherit; font-weight: 600; color: var(--rf-or-fonce); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* ─── Heures planétaires : gratuit = maintenant, Premium = au choix ─ */
body.mode-free .hp-premium-seul,
body:not(.mode-free) .hp-gratuit-seul { display: none !important; }
/* Accès Découverte : seule l'heure en cours (avec un aperçu de ce qu'elle
   favorise) ; les 24 heures, les thématiques et le choix de la date sont Premium. */
body.mode-free #heures-planetaires-results .hp-results-wrapper,
body.mode-free #heures-planetaires-results .hp-passed-toggle,
body.mode-free #heures-planetaires-results .hp-section-activations { display: none !important; }
.hp-mention-premium { margin: 0 0 1.1rem; padding: .9rem 1rem; background: var(--rf-ivoire); border-radius: 10px; font-size: .95rem; line-height: 1.55; color: var(--rf-texte); }
.hp-mention-premium a { color: var(--rf-or-fonce); font-weight: 600; }
.optionnel { font-weight: 400; color: var(--rf-texte-2); font-size: .85em; }

/* ─── Heures planétaires : mise en page « maquette 2027 » ─────────────
   Palette stricte : navy #0B1838 · navy 2 #142546 · nuit #050E27 ·
   or patiné #D8B365 · or vieilli #C8A76A · ivoire #F7F5EF · ambre #C99A55.
   Plus aucune bordure épaisse à gauche dans les résultats. */
#heures-planetaires-results, #hp-choix-container {
  --hp-navy: #0B1838; --hp-navy-2: #142546; --hp-nuit: #050E27;
  --hp-or: #D8B365; --hp-or-vieilli: #C8A76A; --hp-ivoire: #F7F5EF; --hp-ambre: #C8A76A;
}
/* (Bordures gauches : voir le bloc global en fin de fichier.) */

/* En-tête : créneau en cours en grand titre, sans encadré */
#heures-planetaires-results .theme-header.hp-hero {
  background: none; border: 0; box-shadow: none; padding: .4rem 0 1.4rem; margin: 0 0 .6rem;
}
#heures-planetaires-results .hp-hero-filet { display: block; width: 48px; height: 2px; background: var(--hp-or); margin-bottom: .9rem; }
#heures-planetaires-results .hp-hero .person-name {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.05;
  color: var(--hp-navy); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; margin: 0 0 .5rem;
}
#heures-planetaires-results .hp-hero .person-data { font-size: 1.05rem; color: var(--hp-navy); margin: 0 0 .25rem; }
#heures-planetaires-results .hp-hero .signature { font-family: var(--serif); font-size: 1.15rem; color: #454859; font-style: normal; font-variant-numeric: lining-nums; }

/* Maître du jour : carte ivoire chaude, sans liseré */
#heures-planetaires-results .hp-day-master {
  background: linear-gradient(135deg, #F7F5EF 0%, #EFEBE0 100%);
  border: 1px solid #EFEBE0; border-radius: 12px; padding: 1.15rem 1.4rem; margin: 0 0 1.2rem;
}
#heures-planetaires-results .hp-day-master-title { font-size: 1.55rem; font-weight: 600; color: var(--hp-navy); margin-bottom: .35rem; }
#heures-planetaires-results .hp-day-master-title .hp-day-planet { color: var(--hp-ambre); }
#heures-planetaires-results .hp-day-master-text { font-size: .95rem; line-height: 1.6; color: var(--rf-texte); }

/* Heure en cours : carte nuit, l'information principale de la page */
#heures-planetaires-results .hp-current {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 0%, var(--hp-navy-2) 0%, var(--hp-navy) 55%, var(--hp-nuit) 100%);
  border: 0; border-radius: 18px; padding: 1.6rem 1.75rem 1.9rem; margin: 0 0 1rem;
  box-shadow: 0 14px 34px rgba(5,14,39,.22); color: var(--hp-ivoire);
}
#heures-planetaires-results .hp-current-label {
  display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .2em; color: var(--hp-or);
}
#heures-planetaires-results .hp-current-content {
  align-items: center; gap: 1.1rem; padding-bottom: 1.1rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(216,179,101,.35); max-width: 30rem;
}
#heures-planetaires-results .hp-current-symbol { font-size: 3rem; color: var(--hp-or); }
#heures-planetaires-results .hp-current-planet { font-size: 2.1rem; font-weight: 600; color: var(--hp-ivoire); line-height: 1.1; }
#heures-planetaires-results .hp-current-quality { font-family: var(--serif); font-size: 1.15rem; color: var(--hp-or); }
#heures-planetaires-results .hp-current-time { font-family: var(--sans); font-size: .9rem; color: rgba(247,245,239,.72); margin-top: .35rem; }
#heures-planetaires-results .hp-current-double { color: var(--hp-or); font-weight: 600; }
#heures-planetaires-results .hp-current-advice {
  border: 0; padding: 0; margin: 0;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.4; color: var(--hp-ivoire);
}

/* Méthode de calcul : accordéon discret */
#heures-planetaires-results .hp-methode { margin: .4rem 0 1.4rem; }
#heures-planetaires-results .hp-methode > summary {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .6rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; color: var(--hp-navy); cursor: pointer; list-style: none;
}
#heures-planetaires-results .hp-methode > summary::-webkit-details-marker { display: none; }
#heures-planetaires-results .hp-methode > summary::after {
  content: ""; width: .45rem; height: .45rem; margin-top: -.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
#heures-planetaires-results .hp-methode[open] > summary::after { transform: rotate(-135deg); margin-top: .2rem; }
#heures-planetaires-results .hp-methode > summary:hover { background: rgba(216,179,101,.12); }
#heures-planetaires-results .hp-methode > summary:focus-visible { outline: 2px solid var(--hp-or); outline-offset: 2px; }
#heures-planetaires-results .hp-methode-corps {
  margin-top: .4rem; padding: 1rem 1.2rem; background: var(--hp-ivoire); border-radius: 10px;
  font-size: .92rem; line-height: 1.65; color: var(--rf-texte);
}

/* Encart Premium en version nuit */
#main-heures-planetaires .encart-premium--nuit {
  position: relative; overflow: hidden; border: 0; border-radius: 18px; padding: 1.7rem 9rem 1.7rem 1.75rem;
  background: linear-gradient(120deg, var(--hp-navy) 0%, var(--hp-navy-2) 60%, var(--hp-nuit) 100%);
  box-shadow: 0 14px 34px rgba(5,14,39,.18);
}
#main-heures-planetaires .encart-premium--nuit .encart-premium-titre { color: var(--hp-ivoire); font-size: 1.85rem; margin-bottom: .5rem; }
#main-heures-planetaires .encart-premium--nuit p { color: rgba(247,245,239,.86); line-height: 1.6; margin: 0 0 1.1rem; }
#main-heures-planetaires .encart-premium-lune { position: absolute; right: 1.4rem; top: 50%; width: 120px; height: 120px; transform: translateY(-50%); opacity: .9; }
@media (max-width: 640px) {
  #main-heures-planetaires .encart-premium--nuit { padding-right: 1.4rem; }
  #main-heures-planetaires .encart-premium-lune { top: 1rem; right: 1rem; width: 64px; height: 64px; transform: none; opacity: .5; }
  #heures-planetaires-results .hp-current { padding: 1.3rem 1.2rem 1.5rem; }
}

/* ─── Un seul export PDF : celui de l'en-tête des résultats ────────── */
.form-panel .btn-export-pdf, .form-panel #btn-pdf { display: none !important; }
.message-pdf { margin: .6rem 0 0; font-size: .92rem; color: var(--rf-texte); }
.message-pdf a { color: var(--rf-or-fonce); font-weight: 600; }

/* ─── Erreurs sous les champs ──────────────────────────────────────── */
.champ-erreur { margin: .35rem 0 0; font-size: .9rem; font-weight: 600; color: #A32B2B; }
[aria-invalid="true"] { border-color: #A32B2B !important; }

/* ─── Fonctions en préparation : une ligne, sans bouton ────────────── */
.bientot-ligne { margin: 1.4rem 0 0; padding: 1rem 1.2rem; border: 1px dashed #E3DED2; border-radius: 10px; font-size: .95rem; line-height: 1.6; color: var(--rf-texte-2); background: transparent; }
.bientot-ligne strong { color: var(--rf-texte); }

/* ─── Aide et méthode (repliée) ────────────────────────────────────── */
.aide-methode { max-width: 60rem; margin: 2rem auto 1.5rem; padding: 0 1.5rem; font-size: .92rem; color: var(--rf-texte-2); }
.aide-methode summary { cursor: pointer; font-weight: 600; color: var(--rf-navy); padding: .6rem 0; }
.aide-methode summary:focus-visible { outline: 2px solid var(--rf-or); outline-offset: 2px; border-radius: 4px; }
.aide-methode-corps p { margin: 0 0 .7rem; line-height: 1.6; }
.aide-ethique { font-style: italic; }
.aide-ethique span { font-style: normal; white-space: nowrap; }

@media (max-width: 900px) {
  .results-panel > .empty-state.empty-intro { padding: 1.8rem 1.3rem; }
  .locked-state.intro-module, .module-premium { padding: 1.6rem 1.3rem; margin: .6rem 0; }
}

/* Thème calculé : repères techniques avec les données, travail et argent replié */
.donnees-reperes { margin: 0 0 1rem; padding: .7rem 1rem; background: var(--rf-ivoire); border-radius: 8px; font-size: .88rem; color: var(--rf-texte-2); }
.tav-repli { margin: 1.4rem 0; border: 1px solid var(--rf-trait); border-radius: 12px; background: #fff; }
.tav-repli > summary { cursor: pointer; padding: 1rem 1.3rem; font-weight: 600; color: var(--rf-navy); }
.tav-repli > summary:focus-visible { outline: 2px solid var(--rf-or); outline-offset: 2px; }
.tav-repli[open] > summary { border-bottom: 1px solid var(--rf-trait); }
.tav-repli > .tav-section { margin: 0; border: 0; box-shadow: none; }

/* Boussole du jour et carte interactive : accès Premium */
body.mode-free #hd-boussole-container { display: none !important; }
body.mode-free .cg-aide-premium,
body.mode-premium .cg-aide-gratuit { display: none; }
body.mode-free .cg-viewport { cursor: default !important; }
.cg-aide-gratuit a { color: var(--rf-or-fonce); font-weight: 600; }

/* Code d'activation oublié */
.ca-oubli { margin-top: .6rem; }
.ca-oubli > summary { cursor: pointer; font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; color: #C9CFE0; list-style: none; }
.ca-oubli > summary::-webkit-details-marker { display: none; }
.ca-oubli > summary:focus-visible { outline: 2px solid var(--rf-or); outline-offset: 2px; border-radius: 3px; }
.ca-oubli-aide { font-size: 0.875rem; line-height: 1.45; color: #C9CFE0; margin: .6rem 0; }
.ca-input-email { text-transform: none !important; }
.ca-feedback-erreur { color: #F2B8B8; }
.ca-feedback-succes { color: #BFE3CC; }

/* ─── Plus de bordures épaisses à gauche (toute l'application) ──────
   Blocs encadrés : liseré gauche aligné sur les trois autres côtés.
   Blocs à fond teinté sans cadre : plus de liseré. */
.horoscope-card,
.portrait-synthetique,
.hp-day-master,
.hp-card,
.hp-card.qualite-tres-favorable,
.hp-card.qualite-favorable,
.hp-card.qualite-vigilance,
.charpente-accordion,
.hp-themes-block,
.ha-card,
.resume-cinq-lignes { border-left: 1px solid var(--ivoire-fonce) !important; }
.theme-header,
.hd-hero,
.hd-card-warn,
.hd-card-lune,
.hd-card-perso { border-left: 1px solid var(--astro-border) !important; }
.banner-heure-inconnue { border-left: 1px solid rgba(160, 134, 84, 0.35) !important; }
.hp-card-personal { border-left: 1px solid rgba(160, 134, 84, 0.25) !important; }
.encart-premium { border-left: 1px solid var(--rf-trait) !important; }
.angulaire-item,
.bloc-angulaires,
.bloc-aspects-serres,
.bloc-configurations,
.bloc-maitre-asc,
.bloc-revenir-heure,
.bloc-sect,
.bloc-sect-planetes,
.bloc-triangle,
.charpente-intro,
.charpente-pedago,
.client-ethics,
.config-conseil,
.config-interpretation,
.domaine-conseil,
.dst-info,
.hd-lune-conseil,
.hi-help,
.hp-activation-item.hp-activation-favorable,
.hp-activation-item.hp-activation-neutre,
.hp-activation-item.hp-activation-tension,
.hp-activation-item.hp-activation-vigilance,
.hp-card-recommendation,
.interp-box,
.lecture-intro,
.lune-hp-bridge,
.lune-meteo-conseil,
.notice,
.pe-narratif,
.phrase-synthese,
.syn-temperaments-conclusion,
.themes-recents { border-left: 0 !important; }
/* Exceptions : blocs volontairement sans cadre */
#heures-planetaires-results .theme-header.hp-hero,
#main-heures-planetaires .encart-premium--nuit { border: 0 !important; }
#heures-planetaires-results .hp-day-master { border-left: 1px solid #EFEBE0 !important; }
/* Blocs de la charpente du thème : encadrés, liseré gauche identique aux autres côtés */
.charpente-bloc { border-left: 1px solid var(--border-soft) !important; }

/* ─── Formulaire de naissance en deux étapes (ui/refonte-2027.js §7) ──────
   1. Vous : prénom et date. 2. Heure et lieu : apparaît ensuite, en fondu. */
.form-etape { margin: 0 0 .4rem; }
.form-etape-titre { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; font-family: var(--sans, 'Manrope', sans-serif); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rf-or-fonce); }
.form-etape-num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--rf-navy); color: #F7F5EF; font-size: 0.8125rem; letter-spacing: 0; }
.form-etape-suite { margin: .2rem 0 0; padding: .75rem .9rem; border-radius: 10px; background: var(--rf-ivoire); font-size: .9rem; line-height: 1.5; color: var(--rf-texte-2); }
.form-etape-suite[hidden] { display: none; }
.form-etape-2 { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--rf-trait); }
.form-etape-2[hidden] { display: none; }
.form-etape-2.vient-d-apparaitre { animation: etape-apparait .45s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes etape-apparait { from { opacity: 0; transform: translateY(8px); } }
.form-etape .field-date input { width: 100%; }
.options-expert > summary { font-size: .9rem; color: var(--rf-texte-2); }
.chiron-manuel-bloc { margin: 0; }
.sr-only-app { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .form-etape-2.vient-d-apparaitre { animation: none; } }
.form-etape-2 .autocomplete-wrapper { margin-top: 1rem; }

/* ─── Heure en cours : ce qu'elle favorise / déconseille (aperçu coupé en Découverte) ─── */
#heures-planetaires-results .hp-current-detail { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid rgba(216,179,101,.3); max-width: 40rem; }
#heures-planetaires-results .hp-current-detail-titre { margin: 0 0 .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #D8B365; }
#heures-planetaires-results .hp-current-liste { margin: 0 0 .9rem; padding-left: 1.1rem; color: rgba(247,245,239,.9); font-size: .95rem; line-height: 1.55; }
#heures-planetaires-results .hp-current-liste li::marker { color: #D8B365; }
#heures-planetaires-results .hp-verrou { position: relative; margin-top: .2rem; border-radius: 12px; overflow: hidden; }
#heures-planetaires-results .hp-verrou-flou { display: grid; gap: .7rem; padding: .4rem 0 .4rem 1.1rem; filter: blur(3px); opacity: .55; }
#heures-planetaires-results .hp-verrou-ligne { display: block; height: .7rem; border-radius: 6px; background: linear-gradient(90deg, rgba(247,245,239,.55), rgba(216,179,101,.35)); }
#heures-planetaires-results .hp-verrou-action { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .7rem; padding: .6rem 0;
  background: linear-gradient(90deg, rgba(11,24,56,.92) 0%, rgba(11,24,56,.75) 60%, rgba(11,24,56,.35) 100%); }
#heures-planetaires-results .hp-verrou-action p { margin: 0; font-size: .9rem; line-height: 1.45; color: rgba(247,245,239,.85); max-width: 32rem; }
#heures-planetaires-results .hp-verrou-bouton { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .5rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none;
  color: #0B1838; background: linear-gradient(180deg, #E2C079 0%, #C8A76A 100%); border: 1px solid #C8A76A; }
#heures-planetaires-results .hp-verrou-bouton::before { content: "🔒"; font-size: .85rem; }
#heures-planetaires-results .hp-verrou-bouton:hover, #heures-planetaires-results .hp-verrou-bouton:focus-visible { background: linear-gradient(180deg, #EBCB89 0%, #D8B365 100%); color: #0B1838; }
#heures-planetaires-results .hp-verrou-bouton:focus-visible { outline: 3px solid #F7F5EF; outline-offset: 2px; }

/* ─── Carte « Votre accès » en Premium (2026-11-18) ──────────────────
   « Premium » remplace « Découvrir Premium », « Se déconnecter »
   remplace « J'ai un code d'activation ». */
.sidebar-premium-only { display: none; }
body.mode-premium span.sidebar-cta.sidebar-premium-only { display: block; cursor: default; }
body.mode-premium span.sidebar-cta.sidebar-premium-only:hover { background: transparent; color: var(--rf-or); }
body.mode-premium .ca-deconnexion { display: block; margin: .7rem auto 0; background: none; border: 0; padding: .15rem 0; font-family: var(--sans); font-size: .84rem; color: rgba(255,255,255,.86); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
body.mode-premium #ca-details { display: none; }

/* « Votre thème en cinq lignes » : items en police standard du site */
.resume-cinq-lignes .resume-list li { font-family: var(--sans); font-size: .98rem; }

/* ─── Thème natal calculé : résumé à la place du formulaire (2026-11-18) ──
   ui/refonte-2027.js §6 bis déplace .theme-header dans la colonne de gauche
   et pose .form-panel--resume ; « Modifier mes informations » la retire. */
.form-panel > .theme-header,
.form-panel > .btn-modifier-naissance { display: none; }
.form-panel.form-panel--resume > * { display: none !important; }
.form-panel.form-panel--resume > .theme-header { display: block !important; margin: 0 0 1rem; }
.form-panel.form-panel--resume > .btn-modifier-naissance { display: block !important; width: 100%; }
.form-panel > .theme-header .person-name { font-size: 1.6rem; }
