/* Gestion by Belentia, DA v3.3 : styles de la page « tarifs », repris tels quels de la maquette tarifs.html (24/09/2026). */
/* ------------------------------------------------------------------
     v3 — harmonisation avec le nouvel accueil : coins 16 px, titres Sora
     plus grands, barre de navigation collante et légèrement floutée,
     strip « Les outils Belentia » en bas de page.
     ------------------------------------------------------------------ */
  :root { --radius: 16px; --accent-6: color-mix(in srgb, var(--accent) 6%, #FFF); }
  @supports not (color: color-mix(in srgb, #000 6%, #fff)) { :root { --accent-6: #F2FAF6; } }

  body { font-size: 18px; }
  .h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.028em; text-wrap: balance; }
  .h2 { font-size: 36px; line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }

  .nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .84);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
            backdrop-filter: saturate(180%) blur(12px);
  }

  .tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
  .tools a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 56px;
    padding: 10px var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), transform var(--t) var(--ease);
  }
  .tools a:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
  .tools a[aria-current="page"] { border-color: var(--accent); color: var(--ink); }
  .tools__mark {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    background: #F2F3F5;
    color: var(--accent);
  }
  .tools__mark svg { width: 17px; height: 17px; }

  @media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 720px) {
    body { font-size: 17px; }
    .h1 { font-size: 34px; }
    .h2 { font-size: 27px; }
    .tools { grid-template-columns: minmax(0, 1fr); }
  }


  /* ------------------------------------------------------------------
     v3 affinée : émeraude réservée au bouton principal, au mot du H1 et
     aux chiffres clés ; gris neutre ailleurs, aucune ombre.
     Réglages communs : ../_assets/gestion/affine.css (chargée en dernier).
     ------------------------------------------------------------------
     Couleur de l'outil : émeraude. Accent = #059669 (eyebrow, liens,
     icônes, un mot du H1, BOUTONS PRIMAIRES).
     v2 : l'émeraude n'est plus assombrie sur les boutons pleins, et le
     bouton secondaire quitte l'encre sombre pour un contour émeraude —
     aucun bouton noir ni gris foncé sur la page.
     ------------------------------------------------------------------ */
  :root { --accent: #059669; }


  /* ------------------------------------------------------------------
     Emplacements d'images (v2) — bloc neutre aux dimensions finales
     ------------------------------------------------------------------ */
  .slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: var(--space-3);
    text-align: center;
    background: #EEF0F4;
    border: 1px dashed #C9CDD6;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
  }
  /* Variante « couverture de carte » : le pointillé recouvre le bord de la carte. */
  .slot--cover {
    margin: -1px -1px 0;
    border-radius: 0;
    aspect-ratio: 1672 / 941;
  }

  /* Liste repliée des emplacements et de leurs prompts. */
  .slots { border-top: 1px solid var(--line); padding-top: var(--space-3); }
  .slots > summary {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    min-height: 44px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
  }
  .slots > summary::-webkit-details-marker { display: none; }
  .slots > summary:hover { color: var(--ink); }
  .slots > summary svg { flex: 0 0 16px; transition: transform var(--t) var(--ease); }
  .slots[open] > summary svg { transform: rotate(180deg); }
  .slots__item { border-top: 1px solid var(--line); padding-block: var(--space-3); }
  .slots__item:first-of-type { margin-top: var(--space-2); }
  .slots__id {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
  }
  .slots__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
  .slots__prompt {
    margin-top: var(--space-2);
    padding: var(--space-2);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
  }

  /* ------------------------------------------------------------------
     Tarifs — hero court, deux offres, comparatif, FAQ
     ------------------------------------------------------------------ */
  .hero { padding-block: var(--section-y) var(--space-8); }
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: center;
  }
  .hero__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    font-size: 14px;
    color: var(--muted);
  }
  .hero__facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
  .hero__facts li:not(:last-child)::after {
    content: "";
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
  }
  .hero .slot { aspect-ratio: 3 / 2; }
  .figure { margin: 0; }
  .figure figcaption { margin-top: var(--space-2); font-size: 14px; color: var(--muted); }
  /* v3.3 : la nature morte est recentrée (v32.css) ; sa légende la suit. */
  .hero .figure figcaption { text-align: center; }
  /* Boucle 3 : affiche de l'ambiance en en-tête, cadrée en 4:3 sur la table
     et le saladier qu'on se passe (le feuillage flou de gauche sort du cadre). */
  .hero .head-visual--ambiance { aspect-ratio: 4 / 3; border-radius: 24px; background: #174F14; }
  .hero .head-visual--ambiance img { object-position: 72% 50%; }
  @media (max-width: 900px) { .hero .head-visual--ambiance { aspect-ratio: 3 / 2; } }   /* une colonne : moins haut */

  /* ------------------------------------------------------------------
     Tableau d'exemple (section « Week-end entre amis »)
     ------------------------------------------------------------------ */
  .example {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--canvas);
    overflow: hidden;
  }
  .example__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-3);
    border-bottom: 1px solid var(--line);
  }
  .example__title { font-family: var(--font-title); font-weight: 700; font-size: 17px; color: var(--ink); }
  .example table { width: 100%; border-collapse: collapse; }
  .example th,
  .example td {
    padding: 12px var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .example thead th {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--soft);
  }
  .example tbody th {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--ink);
  }
  .example .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .example tfoot th,
  .example tfoot td {
    border-bottom: 0;
    font-weight: 700;
    color: var(--ink);
    background: var(--soft);
  }
  .example__banner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 14px var(--space-3);
    border-top: 1px solid var(--line);
    background: var(--canvas);
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
  }
  .example__banner svg { flex: 0 0 20px; color: var(--accent); }


  /* Tarifs */
  .plans { align-items: stretch; }
  .plan { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
  .plan--featured { border: 1px solid var(--accent); background: var(--accent-5); }
  .plan--featured .plan__price { font-size: 44px; }
  .plan__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
  .plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.1;
    color: var(--ink);
  }
  .plan__unit { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--muted); }
  .plan .btn { margin-top: auto; }
  /* Boucle 3 : mesure de lecture (150 caractères par ligne à 1440 auparavant). */
  .plans-note { max-width: 72ch; margin-top: var(--space-3); font-size: 15px; color: var(--muted); }

  /* Pleine largeur, alignée sur les deux cartes d’offre au-dessus. */
  .example--compare { max-width: none; }
  .example--compare td.num, .example--compare th.num { text-align: right; }

  @media (max-width: 900px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  }
  @media (max-width: 720px) {
    .plan--featured .plan__price { font-size: 38px; }
    .hero { padding-block: var(--space-6) var(--space-5); }
    .hero__facts { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hero__facts li:not(:last-child)::after { display: none; }
    .example th, .example td { padding: 10px var(--space-2); font-size: 15px; }
    .example__head { padding: var(--space-2); }
    .plan { padding: var(--space-3); }

    /* Le comparatif passe en lignes empilées : trois colonnes ne tiennent pas
       dans 358 px sans couper la colonne Groupe+. */
    .example--compare table,
    .example--compare tbody,
    .example--compare tr,
    .example--compare th,
    .example--compare td { display: block; width: auto; }
    .example--compare thead { display: none; }
    .example--compare tbody tr {
      padding: var(--space-2);
      border-bottom: 1px solid var(--line);
    }
    .example--compare tbody tr:last-child { border-bottom: 0; }
    .example--compare tbody th {
      padding: 0 0 6px;
      border: 0;
      font-size: 16px;
      font-weight: 700;
      color: var(--ink);
    }
    .example--compare tbody td {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: var(--space-2);
      padding: 3px 0;
      border: 0;
      text-align: right;
    }
    .example--compare tbody td::before {
      content: attr(data-label);
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
      text-align: left;
    }
  }

  /* 24/09 5 h : sous 720 px, l'en-tête se compacte pour que la carte Gratuit
     (0 €) apparaisse dans le premier écran : la photo d'ambiance (déjà sur
     l'accueil) et les puces (redite du chapeau) ne s'affichent qu'au-dessus. */
  @media (max-width: 720px) {
    .tarifs-hero__visual, .tarifs-hero__facts { display: none; }
  }

  /* 24/09 5 h : annotations de maquette (emplacements, prompts) hors page ; le détail reste dans *.meta.json et prompts.json. */
  [data-maquette] { display: none !important; }
