/* ===================================================
   Style principal du site — Numérologie & Tarot
   Palette : violet nuit / or / crème
   =================================================== */

:root {
  --violet-nuit: #241b3a;
  --violet: #4b3b6b;
  --or: #c9a15a;
  --or-clair: #e6c988;
  --creme: #f7f2e9;
  --texte: #2c2438;
  /* Tokens du design system Jallqaruna (mêmes valeurs qu'avant, désormais nommées) */
  --texte-doux: #6b5b78;
  --creme-entete: #f8efe5;
  --creme-art: #f9f7eb;
  --bordure: #ccc;
  --bordure-douce: #e6dfd3;
  --erreur: #a12b2b;
  --or-filet: rgba(201, 161, 90, 0.35);
  --violet-voile: rgba(36, 27, 58, 0.55);
  --radius: 14px;
  --ombre: 0 8px 24px rgba(36, 27, 58, 0.15);
  /* Gabarit : la colonne de contenu et la colonne centrale de la page
     d'accueil partagent ces deux valeurs — elles ne peuvent plus diverger. */
  --contenu-max: 900px;
  --contenu-pad: 1.5rem;
  --hauteur-entete: 6rem;   /* hauteur approximative de l'en-tête collant */
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--creme);
  color: var(--texte);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--violet-nuit);
  letter-spacing: 0.5px;
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--or); }

img { max-width: 100%; display: block; }

/* --- Header / Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--creme-entete);
  color: var(--texte);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--or-filet);
  box-shadow: var(--ombre);
  transition: padding 0.2s ease;
}

/* Dès que la page défile, l'en-tête se compacte pour rendre de la hauteur. */
header.compacte { padding-top: 0.25rem; padding-bottom: 0.25rem; }
header.compacte .logo img { height: 46px; }

.logo {
  display: block;
  flex-shrink: 0;
}

.logo img {
  height: 88px;
  width: auto;
  display: block;
  transition: height 0.2s ease;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

/* --- Sélecteur de langue --- */
.lang-switch {
  display: flex;
  gap: 0.3rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--or);
  color: var(--violet-nuit);
  font: inherit;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover { background: var(--or-clair); }

.lang-btn.active {
  background: var(--or);
  color: var(--violet-nuit);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: var(--violet);
  font-size: 0.95rem;
  font-weight: bold;
}

nav a:hover { color: var(--or); }

/* --- Bandeau d'accueil : image, texte, image sur une seule ligne --- */
/* --- Accueil : grille de page à 3 colonnes ---
   La colonne centrale a exactement la largeur de <main> (même variable),
   donc l'encadré violet et les blocs du contenu sont alignés au pixel.
   Les deux colonnes latérales tapissent toute la hauteur de la page : leur
   visuel est collant (sticky), il descend donc avec le défilement et occupe
   les vides sur les côtés au lieu de disparaître après l'en-tête. */
.page-grille {
  display: grid;
  /* Colonnes proportionnelles (20 / 60 / 20) plafonnées à la largeur de
     contenu : en zoomant, la largeur en pixels CSS diminue partout de la
     même façon, donc les visuels latéraux restent à l'échelle du reste au
     lieu d'être écrasés par une colonne centrale figée. */
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, min(var(--contenu-max), 60%))
    minmax(0, 1fr);
  align-items: stretch;
}

.page-centre { min-width: 0; }

/* Chaque panneau latéral reprend le crème de son image : aucun cadre ne se
   détache du fond de page. */
.page-cote-logo { background: var(--creme-entete); }
.page-cote-art  { background: var(--creme-art); }

.page-cote-interieur {
  position: sticky;
  top: var(--hauteur-entete);
  padding: 1.5rem;
}

/* Hauteur libre (pas de height: 100%) : l'image garde ses proportions et
   suit la largeur de sa colonne, donc elle grandit et rétrécit avec le zoom
   du navigateur sans jamais être rognée ni déformée. */
.page-cote-interieur img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--hauteur-entete) - 3rem);
  object-fit: contain;
  margin: 0 auto;
}

.hero-bande-texte {
  background: linear-gradient(160deg, var(--violet-nuit), var(--violet));
  color: var(--creme);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  /* Même boîte que le contenu de <main> (largeur max moins ses deux
     paddings) : les bords du violet tombent exactement sur ceux de la
     citation et des blocs en dessous, à toute largeur de fenêtre. */
  width: calc(100% - 2 * var(--contenu-pad));
  max-width: calc(var(--contenu-max) - 2 * var(--contenu-pad));
  margin: 1.5rem auto 0;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}

.hero-bande-texte h1 {
  color: var(--or-clair);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

/* --- Citation --- */
.citation {
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.75rem;
  background: white;
  border-left: 4px solid var(--or);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--violet-nuit);
}

.btn {
  display: inline-block;
  background: var(--or);
  color: var(--violet-nuit);
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--or-clair);
  transform: translateY(-2px);
}

/* Téléchargement PDF (contenu déjà payé) : même bouton, en version discrète
   pour ne pas rivaliser visuellement avec les appels à l'achat. */
.pdf-descarga {
  margin-top: 1.25rem;
}

.btn-pdf {
  background: transparent;
  color: var(--violet-nuit);
  border: 2px solid var(--or);
}

.btn-pdf:hover {
  background: var(--or);
  color: var(--violet-nuit);
  transform: translateY(-2px);
}

/* --- Offres payantes --- */
.offre {
  background: white;
  border-radius: var(--radius);
  border-left: 4px solid var(--or);
  box-shadow: var(--ombre);
  padding: 1.5rem 1.75rem;
}

.offre .btn {
  margin-top: 0.5rem;
}

.offre .btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.offre-note,
.offre-erreur {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.offre-erreur {
  color: var(--erreur);
}

/* --- Calculateur : onglets et cartes de résultat --- */
.onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--or);
}

.onglet {
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 0.6rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  color: inherit;
}

.onglet:hover { color: var(--or); }

.onglet.actif {
  background: white;
  border-color: var(--or);
  font-weight: bold;
  margin-bottom: -1px;
}

.carte-nombre {
  background: white;
  border-radius: var(--radius);
  border-left: 4px solid var(--or);
  box-shadow: var(--ombre);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}

.carte-nombre h4 { margin: 0 0 0.4rem; }

.carte-nombre-chiffre {
  color: var(--or);
  font-size: 1.4rem;
}

.carte-nombre-sous,
.carte-nombre-vide {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

.carte-nombre-titre { font-weight: bold; margin-bottom: 0.3rem; }

.carte-nombre p:last-child { margin-bottom: 0; }

/* Ligne de clôture d'une carte détaillée (Numérologie personnelle) : une
   phrase courte et mémorable, mise en avant sans être une nouvelle rubrique. */
.carte-fil-conducteur {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--or-clair);
  font-style: italic;
  font-weight: 600;
}

.calc-invite {
  padding: 1rem 1.25rem;
  background: var(--creme);
  border: 1px dashed var(--or);
  border-radius: var(--radius);
  font-style: italic;
}

.volet-titre { margin: 1.75rem 0 0.75rem; }

/* --- Numérologie personnelle : blocs années / mois / combinaison / jours --- */
.prev-bloc { margin-bottom: 1.5rem; }

.prev-intro {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
  margin: 0.2rem 0 0.7rem;
}

.prev-liste {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prev-ligne {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--bordure-douce);
}

.prev-ligne-label { font-weight: bold; min-width: 9rem; }
.prev-ligne-nombre { color: var(--or); font-weight: bold; }
.prev-ligne-texte { flex: 1; min-width: 0; opacity: 0.85; font-size: 0.92rem; }

.prev-encours { border-color: var(--or); background: var(--creme); }

.prev-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  background: var(--or);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  vertical-align: middle;
}

.prev-badge-motcle { background: var(--violet); }

.prev-jours-selecteur { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.prev-jours-selecteur label { font-weight: bold; }
.prev-jours-selecteur select {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--bordure);
  font-family: inherit;
  font-size: 1rem;
}

.prev-jours-grille {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin: 1rem 0;
  max-width: 480px;
}

.prev-jour-case {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--bordure-douce);
  background: white;
  cursor: pointer;
  font-family: inherit;
}

.prev-jour-vide { visibility: hidden; border: none; background: none; cursor: default; }
.prev-jour-numero { font-size: 0.75rem; opacity: 0.7; }
.prev-jour-perso { font-weight: bold; color: var(--or); }
.prev-jour-aujourdhui { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet) inset; }
.prev-jour-choisi { background: var(--creme); border-color: var(--or); }

.grille-energie {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.35rem;
  margin: 1rem 0;
  max-width: 420px;
}

.case-energie {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--or);
  border-radius: 6px;
  padding: 0.35rem 0;
}

.case-chiffre { font-size: 0.75rem; opacity: 0.7; }
.case-compte { font-weight: bold; }

.energie-libelle { font-weight: bold; margin: 0.9rem 0 0.3rem; }

.lecture-chiffres li { margin-bottom: 0.6rem; }

/* Plan d'expression : 4 domaines × 3 modes. Défile horizontalement sur
   téléphone plutôt que d'écraser les colonnes. */
.table-plans-cadre { overflow-x: auto; margin: 0.8rem 0 1rem; }
.table-plans { border-collapse: collapse; font-size: 0.9rem; min-width: 100%; }
.table-plans th,
.table-plans td { border: 1px solid var(--or-clair); padding: 0.35rem 0.55rem; text-align: center; }
.table-plans tbody th { text-align: left; font-weight: normal; }

.chance-combinaison {
  font-size: 1.3rem;
  color: var(--or);
  font-weight: bold;
  letter-spacing: 0.05em;
}

.outil #calc-usage,
.outil #calc-date,
#volet-autres input[type="text"] {
  max-width: 400px;
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--bordure);
  font-family: inherit;
}

/* Prénom(s) / nom(s) de naissance côte à côte, même largeur totale que
   les champs en dessous (nom d'usage, date) pour un bloc bien aligné. */
.calc-fila {
  display: flex;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0.5rem auto 1rem;
}

.outil .calc-fila input[type="text"],
.outil .calc-fila input[type="date"],
#volet-autres .calc-fila input[type="text"],
#volet-autres .calc-fila input[type="date"] {
  flex: 1;
  min-width: 0;
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--bordure);
  font-family: inherit;
}

.volet { text-align: left; }

#volet-autres > p,
#volet-autres > .btn { text-align: center; }
#volet-autres > p:first-child { text-align: left; }

.theme-sert {
  font-size: 0.9rem;
  margin: 0.2rem 0 0.7rem;
  padding: 0.5rem 0.75rem;
  background: var(--creme);
  border-radius: 8px;
}

.profond-liste {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1.25rem;
}

.profond-liste li { margin-bottom: 0.45rem; }

/* --- Carte d'étude : les 6 catégories du Thème complet --- */
/* La liste de l'onglet verrouillé devient une liste de catégories, chacune
   portant son nom, sa définition et ses thèmes : même découpage que le
   panneau payé, pour qu'on retrouve la même carte avant et après l'achat. */
.profond-liste .profond-categorie-bloc {
  list-style: none;
  margin: 0 0 1.1rem;
}

.profond-liste .profond-categorie-bloc > ul {
  padding-left: 1.2rem;
  margin: 0.35rem 0 0;
}

.profond-categorie-nom {
  font-weight: bold;
  color: var(--violet);
  margin: 0;
}

.profond-categorie-def {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
  margin: 0.15rem 0 0;
}

/* Dans le panneau payé, le nom de catégorie doit dominer les titres de
   thèmes qu'elle contient (eux aussi des h4) : d'où le filet doré. */
.profond-categorie {
  border-bottom: 2px solid var(--or-clair);
  padding-bottom: 0.3rem;
  margin-top: 2.25rem;
  font-size: 1.15rem;
}

/* Hiérarchie de lecture à trois niveaux (essentiel / approfondissement /
   complémentaire) : le niveau 1 doit dominer visuellement, le niveau 3
   rester discret, sans jamais devenir illisible. */
.profond-categorie-niveau1 {
  font-size: 1.35rem;
  color: var(--violet-nuit);
  border-bottom-width: 3px;
  border-bottom-color: var(--or);
}

.profond-categorie-niveau3 {
  font-size: 1.02rem;
  opacity: 0.85;
}

.profond-intro {
  background: var(--creme);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
}

.profond-intro h3 { margin-top: 0; }

/* Synthèse personnelle : mise en avant nette (niveau 1) en clôture du thème,
   avec ses sous-titres (forces / apprentissages / tension / ...) plus
   discrets que les titres de catégorie pour ne pas rivaliser avec eux. */
.profond-sintesis {
  border: 2px solid var(--or);
  background: var(--creme);
}

.profond-sintesis h4 { font-size: 1.3rem; color: var(--violet-nuit); }

.profond-sintesis h5 {
  margin: 1.1rem 0 0.25rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--or);
}

.profond-sintesis-pregunta {
  font-style: italic;
}

.profond-gratuit {
  font-size: 0.9rem;
  opacity: 0.75;
  font-style: italic;
}

#volet-profond-verrou > .btn,
#volet-prev-verrou > .btn { display: table; margin: 0 auto; }

#autres-resultats { margin-top: 1.5rem; }

/* --- Sections génériques --- */
main {
  max-width: var(--contenu-max);
  margin: 0 auto;
  padding: 3rem var(--contenu-pad);
}

section { margin-bottom: 3rem; }

/* --- Blocs "usages" de la page d'accueil --- */
.lecture {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  background: var(--creme);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--or-filet);
  border-left: 4px solid var(--or);
  margin-top: 1.5rem;
}

/* Largeur fixe, hauteur étirée sur toute la carte (align-items: stretch
   ci-dessus) : l'image remplit toujours l'espace disponible, quelle que
   soit la longueur du texte à côté — jamais de bande vide en dessous. */
.lecture-img {
  flex-shrink: 0;
  width: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}

.lecture-texte { flex: 1; min-width: 0; }

.lecture h3 { margin-top: 0; }

/* --- Signification des nombres de base : liste + galerie --- */
.nombres-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.nombres-liste { flex: 3; min-width: 0; }

.ligne-nombre {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--or-filet);
}

.ligne-nombre:last-child { border-bottom: none; }

.ligne-nombre h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--violet-nuit);
}

.ligne-nombre p { margin: 0; }

.nombres-galerie {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 90px;
}

.nombres-galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}

@media (max-width: 700px) {
  .nombres-section { flex-direction: column; }
  .nombres-galerie {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
  }
  .nombres-galerie img { flex: 0 0 45%; aspect-ratio: 1 / 1; }
}

.lecture-commune {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--creme);
  border: 1px dashed var(--or);
  border-radius: var(--radius);
  font-style: italic;
}

/* --- Listes "à quoi ça sert" (atouts) : simples lignes, pas de cadres --- */
.atouts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.atouts li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--or-filet);
}

.atouts li:last-child { border-bottom: none; }

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.carte {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--ombre);
  border-top: 4px solid var(--or);
}

.carte h3 { margin-top: 0; }

/* --- Formulaires / Outils interactifs --- */
.outil {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--ombre);
  text-align: center;
}

.outil input[type="date"],
.outil input[type="text"],
.outil input[type="email"] {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--bordure);
  font-size: 1rem;
  margin: 0.5rem 0 1rem;
  width: 100%;
  max-width: 280px;
}

.resultat {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--creme);
  border-radius: var(--radius);
  border: 1px dashed var(--or);
  display: none;
}

.resultat.visible { display: block; }

.resultat .chiffre {
  font-size: 3rem;
  color: var(--violet-nuit);
  font-weight: bold;
}

/* --- Carte de Tarot tirée --- */
.tarot-tirage {
  text-align: center;
}

.tarot-carte {
  display: inline-block;
  background: var(--violet-nuit);
  color: var(--or-clair);
  border: 2px solid var(--or);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  min-width: 220px;
  max-width: 460px;
  margin-top: 1.5rem;
}

.tarot-carte h3 { color: var(--or-clair); margin-top: 0; }
.tarot-carte p { margin-bottom: 0; }
.tarot-carte .chiffre { color: var(--or-clair); }

/* --- Écran d'entrée à 3 options (page Tarot) --- */
.options-entree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.option-carte {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--ombre);
  border-top: 4px solid var(--or);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  border-left: none; border-right: none; border-bottom: none;
}

.option-carte:hover { transform: translateY(-2px); }
.option-carte h3 { margin-top: 0; color: var(--violet-nuit); }
.option-carte p { margin-bottom: 0; font-size: 0.95rem; }

.tarot-flux { text-align: center; }
.tarot-flux textarea {
  width: 100%;
  max-width: 500px;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--bordure);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.lien-retour {
  background: none;
  border: none;
  color: var(--violet);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  display: inline-block;
}
.lien-retour:hover { color: var(--or); }

/* Éventail de dos de cartes (option "nombre du jour") : purement
   décoratif, le clic ouvre la lecture mais ne détermine rien. */
.eventail-dos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.dos-carte {
  width: 70px;
  height: 110px;
  border-radius: 8px;
  border: 2px solid var(--or);
  background: linear-gradient(160deg, var(--violet-nuit), var(--violet));
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}

.dos-carte::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--or-clair);
  font-size: 1.4rem;
}

.dos-carte:hover { transform: translateY(-4px); }
.dos-carte.choisie { border-color: var(--or-clair); transform: translateY(-6px); }

.categories-tirage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* Proposition de lecture calculée à partir des mots-clés de la question
   (option 2, avant confirmation) : même habillage que .carte-nombre. */
.tirage-proposition {
  background: white;
  border-radius: var(--radius);
  border-left: 4px solid var(--or);
  box-shadow: var(--ombre);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem auto;
  max-width: 560px;
  text-align: left;
}

.tirage-proposition h3 { margin-top: 0; }

.tirage-proposition .tirage-commande { margin-top: 1rem; justify-content: flex-start; }

/* Ce que le moteur a reconnu dans la question (sujet · intention · situation). */
.proposition-lecture {
  margin: -0.3rem 0 0.8rem;
  font-size: 0.92rem;
  color: var(--texte-doux);
}

.proposition-lecture strong { color: var(--violet); }

.proposition-positions {
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}

.proposition-alternatives { margin-top: 1rem; }
.proposition-alternatives p { font-weight: bold; margin-bottom: 0.5rem; }

/* --- Lecture complète : tirages à plusieurs lames --- */
.tirage-commande {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tirage-commande label { font-weight: bold; }

.tirage-commande select {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--bordure);
  font-family: inherit;
  font-size: 1rem;
  max-width: 100%;
}

.tirage-titre { margin-top: 0; }

.tirage-note {
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Vue d'ensemble : toutes les lames du tirage d'un seul coup d'œil. */
.tirage-tableau {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 112px));
  justify-content: center;
  gap: 0.9rem;
  margin: 1.25rem 0 2rem;
}

.tirage-lame { margin: 0; }

/* Les photos n'ont pas toutes le même cadrage : un rapport fixe et
   object-fit: contain gardent la grille régulière sans rien rogner. */
.tirage-lame-img {
  width: 100%;
  aspect-ratio: 5 / 8;
  object-fit: contain;
  border-radius: 6px;
}

.tirage-lame figcaption {
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 0.4rem;
  text-align: center;
}

.tirage-lame-num {
  color: var(--or);
  font-weight: bold;
}

.tirage-positions {
  list-style: none;
  counter-reset: lame;
  margin: 1.5rem 0 0;
  padding: 0;
  text-align: left;
}

.tirage-position {
  counter-increment: lame;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: white;
  border-radius: var(--radius);
  border-left: 4px solid var(--or);
  box-shadow: var(--ombre);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}

.tirage-position .tirage-texte::before {
  content: counter(lame);
  display: inline-block;
  min-width: 1.6rem;
  margin-right: 0.5rem;
  color: var(--or);
  font-weight: bold;
  font-size: 1.2rem;
}

.tirage-img {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 5 / 8;
  object-fit: contain;
  border-radius: 8px;
}

.tirage-texte { flex: 1; min-width: 0; }

.tirage-texte h4 {
  display: inline;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--violet-nuit);
  margin: 0;
}

.tirage-carte-nom { color: var(--violet); }

.tirage-role {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
  margin: 0.3rem 0 0.6rem;
}

.tirage-texte p:last-child { margin-bottom: 0; }

.tirage-synthese {
  background: var(--violet-nuit);
  color: var(--creme);
  border: 2px solid var(--or);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
}

.tirage-synthese h4 {
  margin: 0 0 0.6rem;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--or-clair);
}

.tirage-synthese p:last-child { margin-bottom: 0; }

/* Lecture croisée : ce que deux lames se disent l'une à l'autre. */
.tirage-croisements { margin-top: 1.5rem; text-align: left; }

.tirage-croisements > h4 {
  margin: 0 0 0.75rem;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

.tirage-croisement {
  background: white;
  border-radius: var(--radius);
  border-left: 4px solid var(--violet);
  box-shadow: var(--ombre);
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.75rem;
}

.tirage-croisement p:last-child { margin-bottom: 0; }

.tirage-croisement-positions {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.tirage-croisement-signe { color: var(--or); }

/* Vue d'ensemble : forme du trio + indice de cohérence globale. */
.tirage-ensemble {
  background: var(--creme);
  border-radius: var(--radius);
  border: 1px solid var(--or-clair);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  text-align: left;
}

.tirage-ensemble h4 { margin: 0 0 0.5rem; }
.tirage-ensemble p:last-child { margin-bottom: 0; }

.tirage-achat { display: table; margin: 1.5rem auto 0; }

.tirage-achat-erreur {
  display: table;
  margin: 0.75rem auto 0;
  color: var(--erreur);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .tirage-position { flex-direction: column; align-items: center; }
  .tirage-img { width: 140px; }
}

/* --- Tarifs / consultations (page Contact) --- */
.tarifs {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--ombre);
  border-left: 4px solid var(--or);
}

.tarifs h2 { margin-top: 0; }

.tarifs h3 {
  margin-bottom: 0.4rem;
  color: var(--violet);
}

.tarifs ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.tarifs li { margin-bottom: 0.35rem; }

.tarifs-cta {
  margin-bottom: 0;
  font-style: italic;
}

/* --- Page À propos : blocs photo / texte en alternance --- */
.bio-bloc {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Un bloc sur deux inverse l'ordre : la photo passe à droite. */
.bio-bloc.inverse { flex-direction: row-reverse; }

.bio-bloc-photo {
  flex: 0 0 40%;
  margin: 0;
  min-width: 0;
}

/* La colonne peut empiler plusieurs photos. */
.bio-bloc-photo figure { margin: 0; }
.bio-bloc-photo figure + figure { margin-top: 1.25rem; }

.bio-bloc-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}

/* Photo prise à la verticale : le cadrage 4/3 lui couperait l'essentiel. */
.bio-bloc-photo .photo-portrait img { aspect-ratio: 3 / 4; }

.bio-bloc-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--violet);
  text-align: center;
}

.bio-bloc-texte { flex: 1; min-width: 0; }

.bio-bloc-texte h2 { margin-top: 0; }

.bio-bloc-texte p:last-child { margin-bottom: 0; }

/* Citation resserrée : dans une colonne étroite, le gabarit pleine page est trop lourd. */
.bio-bloc-texte .citation {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  font-size: 1rem;
}

.chemin-etapes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.5rem;
  margin: 2rem 0;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(160deg, var(--violet-nuit), var(--violet));
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}

.chemin-etapes .etape {
  background: var(--or);
  color: var(--violet-nuit);
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.chemin-etapes .fleche {
  color: var(--or-clair);
  font-size: 1.2rem;
  line-height: 1;
}

.bio-bienvenue {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--or-filet);
}

.bio-bienvenue strong {
  display: block;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--violet-nuit);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.bio-bienvenue em {
  color: var(--violet);
  font-style: italic;
}

/* --- Footer --- */
footer {
  background: var(--violet-nuit);
  color: var(--creme);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

footer a { color: var(--or-clair); }

/* --- Responsive --- */
@media (max-width: 700px) {
  header {
    padding: 0.75rem 1rem;
    justify-content: center;
    text-align: center;
  }
  .header-right { align-items: center; }
  nav ul { justify-content: center; gap: 1rem; }
  .logo img { height: 56px; }
  /* Plus de place pour deux colonnes : la photo passe au-dessus du texte,
     dans les deux sens d'alternance. */
  .bio-bloc,
  .bio-bloc.inverse {
    flex-direction: column;
    gap: 1.25rem;
  }
  .bio-bloc-photo { flex: none; width: 100%; }
  .chemin-etapes { flex-direction: column; }
  .chemin-etapes .fleche { transform: rotate(90deg); }
}

/* Sous ~1100 px (ou à fort zoom, ce qui revient au même en pixels CSS), les
   colonnes latérales n'ont plus la place d'exister : on empile logo, texte
   puis illustration, et les visuels reprennent toute la largeur. */
@media (max-width: 1000px) {
  .page-grille { display: block; }
  .page-cote-interieur {
    position: static;
    padding: 1rem;
    text-align: center;
  }
  .page-cote-interieur img { max-height: 320px; width: auto; max-width: 100%; }
  .hero-bande-texte { margin-top: 1rem; }
}

@media (max-width: 640px) {
  .lecture { flex-direction: column; }
  .lecture-img { width: 100%; height: 220px; }
}

@media (max-width: 600px) {
  .hero-bande-texte { padding: 2rem 1.25rem; }
}

/* --- Option 1 : carte du jour (3 dos, une lame retournée) --- */
.jour-consigne {
  text-align: center;
  font-style: italic;
  margin-bottom: 0;
}

.dos-carte.ecartee {
  opacity: 0.35;
  transform: none;
}

.dos-carte:disabled { cursor: default; }
.dos-carte:disabled:hover { transform: none; }
.dos-carte.choisie:disabled:hover { transform: translateY(-6px); }

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

.jour-lame-figure {
  margin: 0 auto;
  max-width: 200px;
}

.jour-lame-img {
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--or);
  box-shadow: var(--ombre);
  animation: lame-revelee 0.45s ease;
}

@keyframes lame-revelee {
  from { opacity: 0; transform: rotateY(90deg) scale(0.9); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .jour-lame-img { animation: none; }
}

.jour-lame-nom {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--violet-nuit);
  font-weight: bold;
  margin-top: 0.75rem;
}

.jour-lame-texte {
  max-width: 34rem;
  margin: 0.75rem auto 0;
}

#jour-resultat { text-align: center; }

.jour-avertissement {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
  margin: 1.25rem auto 0.75rem;
  max-width: 32rem;
}


/* ---------- Autres nombres : choix de la thématique à acheter ----------
   Chaque thématique se vend à l'unité : le verrou présente les quatre, avec
   leur définition, et marque celles qui sont déjà payées. */
.autres-choix {
  display: grid;
  gap: 0.6rem;
  margin: 0.75rem 0 1.25rem;
}

.autres-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(75, 59, 107, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.autres-option:hover { border-color: var(--or); }

.autres-option input {
  margin-top: 0.25rem;
  accent-color: var(--violet);
  flex: none;
}

.autres-option-corps {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.autres-option-titre {
  font-weight: 600;
  color: var(--violet-nuit);
}

.autres-option-sert {
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.8;
}

.autres-option.payee {
  cursor: default;
  opacity: 0.6;
  border-style: dashed;
}

.autres-option.payee:hover { border-color: rgba(75, 59, 107, 0.25); }

/* --- Champ email des paiements routés vers l'application ---
   Inséré par js/config-app.js, et uniquement lorsque le paiement passe
   réellement par l'app (Jallqaruna_APP.pagos). Invisible sur le site tel qu'il
   fonctionne aujourd'hui : les fonctions Netlify ne demandent pas d'email. */
.app-email {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1rem 0 0.75rem;
  max-width: 24rem;
}

.app-email label {
  font-size: 0.95rem;
  opacity: 0.85;
}

.app-email input {
  width: 100%;
}

.app-email-erreur {
  font-size: 0.9rem;
  color: var(--erreur);
}

/* --- Tableau natal : la grille 3×3 des chiffres de la date de naissance --- */
/* Neuf cases fixes, lues en trois lignes (mental / âme / physique). Une case
   vide garde sa place : c'est l'absence qui fait l'information. */
.natal-carte { margin-bottom: 1rem; }

.natal-definition { font-style: italic; }

.natal-principes {
  margin: 0.6rem 0 1.2rem;
  padding-left: 1.2rem;
  font-size: 0.92rem;
}

.natal-principes li { margin-bottom: 0.3rem; }

.natal-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  max-width: 340px;
  margin: 0 auto 0.75rem;
  background: var(--or-clair);
  border: 2px solid var(--or);
  border-radius: var(--radius);
  overflow: hidden;
}

.natal-case {
  background: white;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}

.natal-chiffres {
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--violet);
  letter-spacing: 0.06em;
  word-break: break-all;
  text-align: center;
  line-height: 1.15;
}

.natal-case-vide { background: var(--creme); }

/* Le chiffre manquant reste lisible en filigrane : on voit QUELLE case est
   vide, sans la confondre avec une case remplie. */
.natal-vide-marque {
  font-size: 1.1rem;
  color: var(--or);
  opacity: 0.45;
}

.natal-plans { list-style: none; padding: 0; margin: 1.25rem 0 0; }

.natal-plan {
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--or-clair);
  margin-bottom: 0.7rem;
}

/* Dominant : le plan qui pèse le plus. Discret : le moins peuplé.
   Vide : aucune cifre. Milieu (pas de classe dédiée) : présent sans être
   ni l'un ni l'autre — reste sur le style de base, sobre à dessein. */
.natal-plan-dominant { border-left-color: var(--or); background: var(--creme); }
.natal-plan-discret { border-left-style: dashed; }
.natal-plan-vide { opacity: 0.75; }

.natal-plan-titre { margin: 0; font-weight: bold; }
.natal-plan-moi { font-weight: normal; font-style: italic; }

.natal-plan-total {
  font-size: 0.8rem;
  color: var(--violet);
  white-space: nowrap;
}

.natal-plan-attributs { margin: 0.15rem 0 0.4rem; font-size: 0.9rem; opacity: 0.8; }

.natal-conclusion { margin-top: 1.25rem; }

@media (max-width: 480px) {
  .natal-grille { max-width: 100%; }
  .natal-case { min-height: 62px; }
}

/* --- Flèches de la personnalité : mêmes chiffres que le tableau natal,
   lus cette fois par alignement de trois cases (ligne / colonne / diagonale
   entièrement remplie ou entièrement vide). --- */
.fleches-carte { margin-bottom: 1rem; }

.fleches-liste { display: flex; flex-direction: column; gap: 0.9rem; margin: 0 0 1rem; }

.fleche-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.6rem;
  border-radius: var(--radius);
  background: white;
}

.fleche-item-vide { background: var(--creme); }

.fleche-item-corps { flex: 1; min-width: 0; }
.fleche-item-corps .carte-nombre { box-shadow: none; padding: 0; border-left: none; margin-bottom: 0; }

/* Icône : neuf points fixes (la grille), un seul trait par icône reliant les
   deux extrémités de CET axe — jamais les huit flèches superposées, pour
   rester lisible même quand plusieurs sont détectées. */
.fleche-mini { width: 56px; height: 56px; flex: 0 0 56px; }
.fleche-mini-point { fill: var(--or-clair); }
.fleche-mini-point-sur { fill: var(--violet); }
.fleche-mini-trait { stroke-width: 3; fill: none; }
.fleche-mini-trait-pleine { stroke: var(--or); }
.fleche-mini-trait-vide { stroke: var(--violet); stroke-dasharray: 4 4; opacity: 0.55; }

.fleches-synthese, .fleches-cle { margin-top: 1.1rem; }
.fleches-cle ul { padding-left: 1.2rem; }
.fleches-cle li { margin-bottom: 0.4rem; }

@media (max-width: 480px) {
  .fleche-item { flex-direction: column; }
  .fleche-mini { flex-basis: auto; }
}

/* --- Consultations : calendrier de réservation (pages/consultations.html) --- */
.consult-cal-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.consult-cal-nav {
  background: none;
  border: 1px solid var(--or);
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: var(--violet);
}
.consult-cal-nav:hover { background: var(--or-clair); }

.consult-cal-grille {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.consult-cal-jsem {
  text-align: center;
  font-size: 0.75rem;
  font-weight: bold;
  opacity: 0.7;
  padding: 0.2rem 0;
}

.consult-cal-jour {
  background: white;
  border: 1px solid var(--or-clair);
  border-radius: 6px;
  min-height: 2.4rem;
  cursor: not-allowed;
  color: var(--texte);
  opacity: 0.4;
}

.consult-cal-hors { opacity: 0.2; }

.consult-cal-dispo {
  cursor: pointer;
  opacity: 1;
  border-color: var(--or);
  font-weight: bold;
}
.consult-cal-dispo:hover { background: var(--creme); }

.consult-cal-choisi { background: var(--or); color: white; }

.consult-heures-grille {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.consult-heure {
  background: white;
  border: 1px solid var(--or);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  color: var(--violet);
  font-weight: bold;
}
.consult-heure:hover { background: var(--creme); }
.consult-heure-choisie { background: var(--or); color: white; }

/* Fenêtre (modale) : commande de l'étude rédigée (nom + date de naissance
   + email), avant Stripe. */
.consult-modale-fond {
  position: fixed;
  inset: 0;
  background: var(--violet-voile);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.consult-modale {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--ombre);
}

.consult-modale input[type="text"],
.consult-modale input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--bordure);
  font-family: inherit;
  font-size: 1rem;
}

.consult-modale-fermer {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--violet);
}

/* Mention de confidentialite sous le champ de question du tarot (pages/tarot.html).
   Le pendant exact de .tarot-privacidad dans l'application : meme texte, meme
   role, meme discretion. Garantie par outils/verificar-privacidad.js cote app. */
.tarot-privacidad {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--violet);
  border-left: 2px solid var(--or-clair);
  padding-left: 0.7rem;
  text-align: left;
}


/* Lien vers le modèle de rapport, sous le bouton d'achat du Thème complet.
   Discret mais lisible : il rassure sans concurrencer l'appel à l'action. */
.offre-exemple {
  margin: 1rem 0 0;
  text-align: center;
}

.lien-exemple {
  display: inline-block;
  color: var(--violet);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lien-exemple:hover,
.lien-exemple:focus-visible {
  color: var(--violet-nuit);
}

.offre-exemple-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--texte);
  opacity: 0.75;
}


/* ==========================================================================
   Ergonomie (22/11/2026)
   ========================================================================== */

/* Accueil : un titre court, deux portes d'entrée, et la distinction
   gratuit / approfondi lisible dès le premier écran. */
.hero-contenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}
.hero-bande-texte h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.hero-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.btn-clair {
  background: transparent;
  color: var(--creme);
  border: 1px solid var(--or-clair);
}
.btn-clair:hover { background: rgba(255, 255, 255, 0.1); color: var(--creme); }
.hero-gratuit {
  margin: 0;
  font-size: 0.95rem;
  color: var(--creme);
  opacity: 0.9;
}
.intro-forte {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}
.carte p { margin: 0.25rem 0 1rem; }
.nombres-intro { margin-bottom: 1.5rem; }

/* Les ancres (#calculateur, #tarot-entree) ne doivent pas se cacher sous
   l'en-tête collant. */
section[id] { scroll-margin-top: calc(var(--hauteur-entete) + 1rem); }

/* Le bouton Menu n'existe que sur petit écran. */
.menu-toggle { display: none; }

/* Sous 1000 px les colonnes latérales s'empilent : le grand logo répétait
   celui de l'en-tête et repoussait le message d'accueil hors du premier écran. */
@media (max-width: 1000px) {
  .page-cote-logo { display: none; }
}

@media (max-width: 700px) {
  header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .header-right { display: contents; }
  .lang-switch { justify-self: end; }
  .lang-btn { min-width: 40px; min-height: 40px; font-size: 0.85rem; }
  .logo img { height: 48px; }
  header.compacte .logo img { height: 40px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--or);
    border-radius: 6px;
    background: transparent;
    color: var(--violet-nuit);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
  }
  .menu-icone,
  .menu-icone::before,
  .menu-icone::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .menu-icone::before { position: absolute; top: -6px; }
  .menu-icone::after { position: absolute; top: 6px; }
  header nav { display: none; grid-column: 1 / -1; }
  header.menu-ouvert nav { display: block; }
  header nav ul { flex-direction: column; gap: 0; justify-content: flex-start; }
  header nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0.5rem;
    border-top: 1px solid var(--or-filet);
    font-size: 1rem;
  }
  .hero-bande-texte h1 { font-size: 1.4rem; }
}

/* Très petits écrans : l'icône seule suffit, le libellé reste lu par les
   lecteurs d'écran. */
@media (max-width: 400px) {
  .menu-libelle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Liens autonomes (cartes, pied de page) : une zone de toucher d'au moins
   44 px de haut. Les liens dans une phrase gardent leur taille de texte. */
.carte a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer a {
  display: inline-block;
  padding: 0.7rem 0.25rem;
}

/* --- Accueil : identité, public, lien vers les tarifs --- */
.hero-surtitre {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--or-clair);
}
.hero-public {
  margin: 0.5rem auto 1.25rem;
  max-width: 34rem;
  color: var(--creme);
}
.hero-lien {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 0.25rem;
  color: var(--or-clair);
}

/* --- Accueil : « Qui suis-je ? » --- */
.qui-suis-je {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 1.5rem;
  margin: 2rem 0;
}
.qui-suis-je img {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}
.qui-suis-je h2 { margin-top: 0; }
.qui-suis-je a { display: inline-block; padding: 0.6rem 0; }
@media (max-width: 600px) {
  .qui-suis-je { flex-direction: column; text-align: center; }
}

/* --- Page Lectures et tarifs --- */
.offres-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.offre-carte {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border-top: 3px solid var(--or);
  box-shadow: var(--ombre);
  padding: 1.25rem;
}
.offre-carte h3 { margin-top: 0; }
.offre-carte p { flex-grow: 1; }
.offre-carte .btn { align-self: flex-start; }
.offre-carte-prix {
  flex-grow: 0 !important;
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--violet);
}
.offres-action { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.offres-action a:not(.btn) { padding: 0.6rem 0; }
.liste-choix li { margin-bottom: 0.5rem; }
.offres-note { color: var(--texte-doux); }
.calc-passerelle a { font-weight: 700; }
.offre-carte p a { display: inline-block; padding: 0.5rem 0; }
.offre-carte .btn-clair { color: var(--violet); border-color: var(--or); background: transparent; }
.offre-carte .btn-clair:hover { background: var(--creme); color: var(--violet); }
