/* Version mobile simplifiée de la page d'accueil (chargée par index.html seulement).
   Ne s'applique qu'aux écrans de téléphone : sur ordinateur, rien ne change.
   .m-court = texte court affiché sur téléphone ; .m-long = texte complet (ordinateur, Google). */

.m-deplier, .m-cas, .m-court { display: none !important; }

@media (max-width: 599px) {
  .m-court { display: block !important; }
  .om-garantie.m-court { display: grid !important; justify-items: start; }
  .m-long { display: none !important; }
  .tri-tete > .m-court { margin-top: 14px; color: var(--texte-doux); }
  .m-deplier { display: inline-flex !important; }
  .m-cas { display: grid !important; }

  /* Accroche : titre, promesse, bouton. Rien d'autre */
  .accroche-sous, .accroche .lien-secondaire { display: none; }
  .accroche .actions { margin-top: 22px; }

  /* Problème : sans la transition vers la méthode */
  .probleme .suite-main { display: none; }

  /* Tom : photo à côté du titre, une phrase, les contacts */
  .tom-corps { grid-template-columns: 104px minmax(0, 1fr); gap: 8px 18px; align-items: center; }
  .tom-photo { max-width: 104px !important; padding: 5px 5px 6px; grid-row: 1; }
  .tom-photo figcaption, .signature-tom { display: none; }
  .tom-texte { display: contents; }
  .tom-texte h2 { grid-column: 2; grid-row: 1; font-size: 1.9rem; }
  .tom-texte > .m-court, .tom-contacts { grid-column: 1 / -1; }
  .tom-texte > .m-court { margin-top: 14px !important; }
  .tom-contacts { margin-top: 10px; }

  /* Questions : 3 questions, les autres à la demande */
  .fiches-faq > .faq:nth-child(2), .fiches-faq > .faq:nth-child(4),
  .fiches-faq > .faq:nth-child(5), .fiches-faq > .faq:nth-child(7) { display: none; }
  .fiches-faq > .faq:nth-child(n+8) { display: none; }
  .fiches-faq.m-ouvert > .faq { display: block; }
  .faq summary { padding: 14px 16px; font-size: 1.0625rem; }
}

@media (max-width: 599px) {

  /* Respiration : sections moins hautes */
  .probleme, .methode, .tri, .resultats, .offre, .garanties, .tom, .questions-section, .appel { padding-top: 48px; padding-bottom: 48px; }
  .journal, .rubrique { display: none; }

  /* Boutons « déplier » */
  .m-deplier {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0;
    background: none; border: 0; font: inherit; font-weight: 600; color: var(--texte); text-align: left;
    text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 4px; cursor: pointer;
  }
  .m-deplier::after { content: "+"; color: var(--violet); }
  .m-deplier[aria-expanded="true"]::after { content: "−"; }
  .m-deplier--nuit { color: var(--nuit-texte); }

  /* 1. Accroche : promesse, phrase, bouton. L'agenda garde une page */
  .note-main { display: none; }
  .agenda-page--droite { display: none; }
  /* le carnet est déjà rempli : pas de courriers qui arrivent, rendez-vous écrits d'office */
  .scene-agenda .pile, .scene-agenda .annotation--pile { display: none !important; }
  .scene-agenda .rdv .ligne-heure, .scene-agenda .rdv .ligne-texte { clip-path: none !important; transition: none !important; }
  .scene-agenda { margin-top: 0; padding-top: 28px; }
  .notes { min-height: 0; }

  /* 2. Problème : le titre et la question qui compte */
  .probleme-texte > p:first-of-type, .probleme .aparte, .probleme .contrat, .probleme .conclusion { display: none; }

  /* 3. Méthode : les 5 étapes, en titres seulement */
  .methode .plan, .methode-tete > p, .question > p, .en-pratique, .compteur { display: none; }
  .methode-corps { gap: 0; }
  .questions { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--filet); }
  .question { min-height: 0 !important; padding: 14px 0 !important; opacity: 1 !important; border-bottom: 1px solid var(--filet); }
  .question h3 { font-size: 1.0625rem; line-height: 1.3; }

  /* 4. Tri : le titre suffit, sans l'animation */
  .scene-tri { display: none; }

  /* 5. Résultats : deux boutons vers les cas clients */
  .dossiers, .resultats-tete > p { display: none; }
  .m-cas { display: grid; gap: 12px; margin-top: 22px; }
  .m-cas-bouton {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; background: #FFFFFF; border: 1px solid var(--filet); border-radius: 4px;
    color: var(--texte); text-decoration: none; box-shadow: 0 14px 28px -22px rgba(10, 10, 10, 0.35);
  }
  .m-cas-bouton span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .m-cas-bouton b { font-weight: 600; }
  .m-cas-bouton small { color: var(--texte-doux); font-size: 0.875rem; }
  .m-cas-bouton i { font-style: normal; font-size: 1.25rem; color: var(--violet); }

  /* 6. Offre : nom, pour qui, garantie. Le détail se déplie */
  .ordre-mission .om-lignes, .ordre-mission .om-rythme, .offre .calcul { display: none; }
  .ordre-mission.m-ouvert .om-lignes { display: grid; }
  .ordre-mission.m-ouvert .om-rythme { display: block; }
  .offres-duo { gap: 16px; }

  /* 7. Garanties : le titre, puis les 6 assurances en titres */
  .garanties .calendrier, .garantie-texte > p:first-child, .assurance-objet, .assurance p { display: none; }
  .garantie-qualifie { display: none; font-size: 0.9375rem; }
  .garantie-qualifie.m-ouvert { display: block; }
  .garantie-corps { margin-top: 0; }
  .assurances { gap: 0 !important; row-gap: 0 !important; margin-top: 8px; }
  .assurance { padding: 12px 0; border-top: 1px solid rgba(242, 242, 240, 0.14); }
  .assurance h3 { margin-top: 0; font-size: 1.0625rem; }

  /* 8. Tom : photo plus petite, texte plus court */
  .tom-photo { max-width: 200px; }
  .tom-texte > p:not(.rubrique):not(.signature-tom) { font-size: 1rem; }

  /* 10. Dernier appel : bouton, puis formulaire fermé */
  .appel-zone { display: none; }
  .bordereau { display: none; }
  .bordereau.m-ouvert { display: grid; margin-top: 16px; }
  .m-deplier--form { color: var(--nuit-texte); margin-top: 28px; }
}
