/* ==========================================================================
   PAGE « Trouver sa sensibilité » (maquette client « trouver-votre-sensibilite »)

   Ne porte QUE les blocs propres à cette page. Le reste vient d'ailleurs et
   n'est pas redupliqué :

     - agent.css   : reset, body, palette de marque en :root
     - guide.css   : le hero, la mise en page à deux colonnes, le sommaire
                     collant, le sommaire mobile plat, la typographie du
                     contenu, les figures et le bloc « Pour aller plus loin »
     - outil-edpi.css : le calculateur, composant partagé

   Charger cette feuille APRÈS guide.css : quelques règles de titres y sont
   resserrées (cartes, questions, étapes), où la marge par défaut du contenu
   serait trop généreuse.
   ========================================================================== */

  /* Couleurs sémantiques de la maquette (réussite, information, alerte).
     Scopées comme les couleurs de rôles de guide.css : elles n'entrent pas
     dans le :root de la charte, qui ne connaît que la marque. */
  .layout {
    --ok: #4cc9b0;
    --ok-dark: #38a892;
    --info: #5c8ee6;
    --warn: #e6b44d;
  }

  /* Chapeau : un cran au-dessus du corps de texte. */
  .content .intro-p { font-size: 0.98rem; }

  /* ===== ENCADRÉS ===== */
  .callout { position: relative; margin: 24px 0; padding: 20px 24px 20px 22px; border-radius: 14px;
    border-left: 4px solid var(--coral); background: var(--coral-light); }
  .callout p { margin: 0; font-size: 0.9rem; color: #8a4d5c; line-height: 1.75; }
  .callout p strong { color: #6f3644; }
  .callout .co-title { display: flex; align-items: center; gap: 9px; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px; color: var(--coral-dark); margin-bottom: 8px; }
  .callout.info { border-left-color: var(--info); background: #eaf1fc; }
  .callout.info p { color: #3d5a80; }
  .callout.info .co-title { color: #3f6fc4; }
  .callout.warn { border-left-color: var(--warn); background: #fdf6e3; }
  .callout.warn p { color: #7d5c17; }
  .callout.warn .co-title { color: #9d7118; }

  /* ===== FORMULE EN EXERGUE ===== */
  .formula { margin: 24px 0; padding: 26px; border-radius: 16px; text-align: center;
    background: linear-gradient(135deg, #0e0a14, #241832); position: relative; overflow: hidden; }
  .formula::after { content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 78% 50%, rgba(232,99,126,0.2) 0%, transparent 62%);
    pointer-events: none; }
  .formula .f-txt { position: relative; z-index: 2; font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem; color: white; letter-spacing: 2px; }
  .formula .f-txt em { color: var(--coral); font-style: normal; }

  /* ===== TABLEAUX ===== */
  /* Légende AU-DESSUS du cadre, jamais dans une caption : traitement arbitré
     le 30/07 sur les tableaux du carrefour. Cette page n'en a aucune pour
     l'instant, le motif est là pour que les deux guides restent identiques.
     Le bandeau sombre est le premier élément du cadre, d'où le border-top
     retiré. */
  .table-note { margin: 22px 0 0; text-align: left; font-size: 0.76rem;
    color: var(--text-light); font-style: italic; }
  .table-note + .table-wrap { margin-top: 10px; }
  .table-wrap { border: 1px solid #ececec; border-top: 0; border-radius: 16px; overflow: hidden;
    background: var(--white); margin: 22px 0; }
  .table-wrap table { width: 100%; border-collapse: collapse; }
  /* Intitulés de colonnes au calibrage du carrefour : à 0,72 rem et 55 % de
     blanc ils se lisaient mal sur le bleu nuit. */
  .table-wrap thead th { background: var(--dark); color: rgba(255,255,255,0.85);
    font-family: 'Bebas Neue', sans-serif; font-size: 0.95rem; letter-spacing: 1.6px;
    text-transform: uppercase; text-align: left; padding: 13px 20px; font-weight: 400; }
  .table-wrap thead th:first-child { color: rgba(255,255,255,0.95); }
  .table-wrap tbody tr { border-top: 1px solid #f2f2f2; transition: background 0.2s; }
  .table-wrap tbody tr:hover { background: #fdf7f8; }
  .table-wrap th[scope="row"] { text-align: left; padding: 13px 20px; font-size: 0.84rem;
    font-weight: 700; color: var(--dark); white-space: nowrap; }
  .table-wrap td { padding: 13px 20px; font-size: 0.82rem; color: var(--text-light); }
  .table-wrap td.num { font-family: 'Bebas Neue', sans-serif; font-size: 0.98rem;
    letter-spacing: 0.5px; color: var(--dark); }
  .table-wrap td.hi { color: var(--coral-dark); font-weight: 700; }
  .lvl { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 9px; vertical-align: 1px; }

  /* ===== MÉTHODE EN ÉTAPES ===== */
  .steps { position: relative; margin-top: 22px; padding-left: 42px; }
  .steps::before { content: ''; position: absolute; left: 15px; top: 14px; bottom: 14px;
    width: 2px; background: #ececec; }
  .step { position: relative; margin-bottom: 22px; }
  .step:last-child { margin-bottom: 0; }
  .step::before { content: attr(data-n); position: absolute; left: -42px; top: 0; width: 32px; height: 32px;
    border-radius: 10px; background: var(--coral); color: white; font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
    letter-spacing: 0.5px; box-shadow: 0 0 0 4px var(--bg); }
  .content .step h3 { margin: 4px 0 10px; }
  .step p { margin-bottom: 12px; }
  .step p:last-child { margin-bottom: 0; }

  /* ===== COMPARATIF ===== */
  .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
  .cbox { border-radius: 14px; padding: 20px 22px; border: 1px solid #ececec; background: var(--white); }
  .cbox.pro { border-color: rgba(76,201,176,0.35); background: #f7fdfb; }
  .cbox.con { border-color: rgba(232,99,126,0.28); background: #fffafb; }
  .cbox .cb-title { display: flex; align-items: center; gap: 9px; font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px; }
  .cbox.pro .cb-title { color: var(--ok-dark); }
  .cbox.con .cb-title { color: var(--coral-dark); }
  .cbox ul { list-style: none; display: grid; gap: 9px; }
  .cbox li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem;
    color: var(--text-light); line-height: 1.65; }
  .cbox li::before { flex-shrink: 0; font-size: 0.8rem; line-height: 1.6; }
  .cbox.pro li::before { content: '✓'; color: var(--ok-dark); font-weight: 700; }
  .cbox.con li::before { content: '✕'; color: var(--coral-dark); font-weight: 700; }

  /* ===== CARTES (erreurs à éviter, facteurs personnels) ===== */
  .cards { display: grid; gap: 14px; margin-top: 20px; }
  .card { background: var(--white); border: 1px solid #ececec; border-radius: 14px; padding: 20px 22px;
    position: relative; overflow: hidden; transition: transform 0.22s, box-shadow 0.22s; }
  .card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--coral); }
  .card.f::before { background: var(--info); }
  .card:hover { transform: translateX(3px); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
  .content .card h3 { margin: 0 0 7px; font-size: 0.92rem; }
  .card p { margin: 0; font-size: 0.86rem; line-height: 1.75; }
  .card p + p { margin-top: 8px; }

  /* ===== FAQ =====
     Décision client : les six réponses sont VISIBLES, en clair, sans
     accordéon et sans JavaScript. Le balisage FAQPage est posé à part, dans
     la vue, et reste compatible avec des réponses affichées. */
  .faq { display: grid; gap: 14px; margin-top: 20px; }
  .qa { background: var(--white); border: 1px solid #ececec; border-radius: 14px; padding: 22px 24px;
    transition: box-shadow 0.22s; }
  .qa:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
  .content .qa h3 { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 10px;
    font-size: 0.95rem; line-height: 1.4; }
  .content .qa h3::before { content: '?'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
    background: var(--coral-light); color: var(--coral-dark); font-size: 0.82rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; }
  .qa p { margin: 0; font-size: 0.88rem; line-height: 1.85; }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .compare { grid-template-columns: 1fr; }
    .steps { padding-left: 36px; }
    .step::before { left: -36px; width: 28px; height: 28px; font-size: 0.85rem; }

    /* Repli des tableaux : l'en-tête sort du flux (mais reste lisible par les
       technologies d'assistance) et chaque cellule reprend son intitulé. */
    .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .table-wrap tbody tr { display: block; padding: 14px 18px; }
    .table-wrap th[scope="row"] { display: block; padding: 0 0 8px; white-space: normal; }
    .table-wrap td { display: block; padding: 3px 0; }
    .table-wrap td::before { content: attr(data-label) " : "; font-weight: 700; color: #bbb;
      font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; }
  }
