/* Fonkademy V6 — ajustements ergonomiques iOS / Android.
   Règles limitées aux écrans tactiles de taille tablette/téléphone.
   Les pages ordinateur, photographies et contenus restent intacts. */
@media screen and (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { overflow-x: clip; }
  .container, .fk-container, .nav-wrap { max-width: 100%; }
  .site-header .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
  .site-header .mobile-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
  }
  .mobile-nav .mobile-feature { justify-content: center; }
  .fk-gallery-heading, .fk-gallery-section, .fk-gallery-video,
  .fk-v3-inner .page-hero-inner { min-width: 0; }
  .fk-gallery-heading h1 { overflow-wrap: break-word; }
  .fk-gallery-video video { display: block; max-width: 100%; height: auto; }
  .fk-gallery-grid figure { min-width: 0; }
  .fk-gallery-grid img { max-width: 100%; }
  .review-track { -webkit-overflow-scrolling: touch; }
  .fk-hero-ribbon, .official-posters { -webkit-overflow-scrolling: touch; }
  .story-layout, .method-intro, .rental-rates { min-width: 0; }
  .rental-rates > div, .story-layout > div, .method-intro > div { min-width: 0; }
}

@media screen and (max-width: 600px) {
  /* Safari iOS déclenche sinon un zoom gênant dans les champs < 16 px. */
  input:not([type="checkbox"]):not([type="radio"]),
  select, textarea,
  .smart-form input, .smart-form select, .smart-form textarea,
  .slot-fields input, .slot-fields select,
  .schedule-switch select {
    font-size: 16px !important;
  }
  .smart-form input, .smart-form select, .smart-form textarea,
  .slot-fields input, .slot-fields select,
  .schedule-switch select { min-height: 48px; }
  button, .button, .fk-button { touch-action: manipulation; }
  .slot-row-top .delete-slot { min-width: 44px; min-height: 44px; }
  .slot-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-fields > div:first-child { grid-column: 1 / -1; }
  .rental-rates { grid-template-columns: minmax(0, 1fr); }
  .rental-rates > div { padding: 24px 18px; }
  .rental-rates dl div { flex-wrap: wrap; }
  .rental-rates dt { min-width: 0; overflow-wrap: break-word; }
  .rental-rates h3 { overflow-wrap: break-word; }
  .story-layout { grid-template-columns: minmax(0, 1fr); }
  .story-big-photo, .story-text { min-width: 0; width: 100%; }
  .story-text h2 { overflow-wrap: break-word; }
  .method-intro { grid-template-columns: minmax(0, 1fr); }

  /* Accueil : isoler nettement la signature, la légende et les commandes.
     Toujours une seule photo sur toute la couverture + dégradé CSS, et 5 s/slide. */
  .fk-v5-fullbleed .fk-hero-columns {
    height: 960px;
    min-height: 960px;
  }
  .fk-v5-fullbleed .fk-hero-story {
    min-height: 100%;
    padding-bottom: 222px;
  }
  .fk-v5-fullbleed .fk-slide-caption { bottom: 88px; }
  .fk-v5-fullbleed .fk-carousel-bar { bottom: 12px; }
  .fk-v5-fullbleed .fk-slide-timeline { bottom: 74px; }
  .fk-v5-fullbleed .fk-car-btn,
  .fk-v5-fullbleed .fk-car-pause {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;
  }
  .fk-v5-fullbleed .fk-carousel-bar { gap: 5px; }
  .fk-v5-fullbleed .fk-dots { gap: 6px; padding: 0 4px; }
  .fk-v5-fullbleed .fk-dots button { width: 10px; height: 10px; }
  .fk-v5-fullbleed .fk-dots button[aria-current="true"] { width: 19px; }
  .fk-v5-fullbleed .fk-hero-foot { min-width: 0; }
  .fk-v5-fullbleed .fk-hero-foot p { overflow-wrap: break-word; }
  .fk-v5-fullbleed .fk-slide-image:after {
    background: linear-gradient(0deg,rgba(5,17,26,.97) 0%,rgba(5,17,26,.92) 27%,rgba(5,17,26,.64) 52%,rgba(5,17,26,.17) 90%),linear-gradient(90deg,rgba(5,17,26,.16),rgba(5,17,26,.13));
  }
  .fk-v5-fullbleed .fk-hero-actions a { min-height: 48px; }

  /* Titres expressifs, mais jamais coupés sur petit écran. */
  .section-heading h2, .fk-section-head h2,
  .form-left h2, .cta-band h2,
  .fk-v3-inner .classics-method h2 {
    overflow-wrap: break-word;
  }
  .section-heading h2 { font-size: clamp(37px, 10vw, 58px); }
  .cta-band h2 { font-size: clamp(36px, 10vw, 50px); }
  .fk-category-content h3 { font-size: clamp(52px, 13vw, 70px); }
  .fk-gallery-heading h1 { font-size: clamp(39px, 10.3vw, 62px); }
}

@media screen and (max-width: 375px) {
  .fk-v5-fullbleed h1 { font-size: clamp(45px, 12vw, 52px); }
  .fk-v5-fullbleed .fk-slide-caption strong { font-size: 19px; }
  .fk-v5-fullbleed .fk-hero-columns { height: 980px; min-height: 980px; }
  .fk-v5-fullbleed .fk-hero-story { padding-bottom: 225px; }
  .fk-v5-fullbleed .fk-carousel-bar { gap: 3px; }
  .fk-v5-fullbleed .fk-dots { gap: 4px; padding: 0 1px; }
  .fk-v5-fullbleed .fk-dots button { width: 8px; height: 8px; }
  .fk-v5-fullbleed .fk-dots button[aria-current="true"] { width: 15px; }
  .fk-v3-inner .classics-method h2 { font-size: 36px; }
  .section-heading h2 { font-size: 36px; }
  .cta-band h2 { font-size: 35px; }
  .fk-section-head h2, .fk-history-copy h2 { font-size: 55px; }
  .fk-v3-inner .page-hero h1 { font-size: clamp(40px, 11vw, 50px); }
  .rental-rates h3 { font-size: 34px; }
  .story-text h2 { font-size: 48px; }
  .fk-gallery-heading h1 { font-size: 39px; }
  .teacher-trials .section-heading h2 { font-size: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  .fk-hero-ribbon, .review-track { scroll-behavior: auto; }
}
/* Très petits iPhone / Android : ne jamais élargir une page par une accroche. */
@media screen and (max-width: 375px) {
  .spec-final-cta h2 { font-size: 35px; overflow-wrap: break-word; }
  .trial-form-layout { grid-template-columns: minmax(0, 1fr); }
  .trial-form-layout > div { min-width: 0; }
  .trial-form-layout h2 { font-size: 42px; overflow-wrap: break-word; }
}

@media screen and (max-width: 600px) {
  /* Aperçu des tarifs/plannings : boutons accessibles même sur iPhone SE. */
  .fon-modal { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .fon-modal-close { width: 44px; height: 44px; min-width: 44px; }
  .fon-modal-header h2 { font-size: 23px; overflow-wrap: break-word; }
  .fon-modal-view { height: min(57dvh, 520px); }
  .fon-modal-actions .button { min-height: 48px; }
}
