/* ============================================================
   RESPONSIVE — SEI
   Breakpoints :
     1024px  Tablette large (2 colonnes, padding réduit)
      768px  Mobile (1 colonne, nav hamburger, layouts empilés)
      480px  Petit mobile (typo plus petite)
============================================================ */


/* ============================================================
   ── TABLETTE (≤ 1024px)
============================================================ */
@media (max-width: 1024px) {

  :root {
    --side-padding:  32px;
    --section-pad-v: 64px;
  }

  /* Typographie */
  .hero-title       { font-size: 54px; }
  .section-title    { font-size: 44px; }
  .faq-left-title   { font-size: 44px; }
  .contact-left-title { font-size: 44px; }
  .wabi-sabi-title  { font-size: 54px; letter-spacing: -1px; }
  .testimonial-title { font-size: 44px; }
  .testimonial-band  { padding: 40px 40px; }

  /* Content block : image flexible */
  .hero-pattern-wrap { flex: none; }

  /* Footer : masquer la déco à tablette */
  .footer-deco { display: none; }

  /* Cards : 2 colonnes + carte extra visible (2×2) */
  .cards-row              { grid-template-columns: repeat(2, 1fr); }
  .training-card--extra   { display: flex; }
  .training-card--panel-first { display: none; }
  .method-cards   { grid-template-columns: repeat(2, 1fr); }
  .method-cards .method-card:last-child { grid-column: 1 / -1; }
  .wabi-sabi-cards { grid-template-columns: repeat(2, 1fr); }

  /* Méthode blocks : réduire le gap */
  .methode-block            { gap: 48px; }
  .methode-block--reversed  { gap: 48px; }
  .methode-image            { width: 44%; }

  /* Instructeur : réduire la photo */
  .instructor-photo {
    width: 360px;
    flex-shrink: 0;
  }

  /* FAQ : réduire la colonne gauche */
  .faq-left { width: 320px; }
}


/* ============================================================
   ── MOBILE (≤ 768px)
============================================================ */
.mobile-br { display: none; }

@media (max-width: 768px) {

  .mobile-br { display: block; }

  .page-bg-deco { display: none; }

  :root {
    --side-padding:  20px;
    --section-pad-v: 48px;
    --card-gap:      16px;
  }

  body { overflow-x: hidden; }

  /* ── Navigation hamburger ──────────────────────────────── */
  .header {
    height: auto;
    min-height: 64px;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
    position: relative;
  }

  .nav { position: static; }

  .logo img { height: 36px; }

  /* Afficher le bouton hamburger */
  .nav-toggle { display: flex; }

  /* Masquer les liens par défaut */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid var(--gray);
    box-shadow: 0 8px 24px rgba(2, 11, 28, 0.08);
    z-index: 100;
  }

  /* Afficher les liens quand le menu est ouvert */
  .nav-links.open { display: flex; }

  .nav-link {
    display: inline-block;
    padding: 12px 0;
    margin: 0 var(--side-padding);
    width: auto;
    font-size: 18px;
  }

  .btn-contact {
    margin: 8px 0 0 var(--side-padding);
    width: fit-content;
  }

  /* ── Hero ──────────────────────────────────────────────── */
  .hero { gap: 32px; }
  .hero-title { font-size: 40px; letter-spacing: -0.8px; line-height: 1; max-width: 100%; }

  /* ── Content block : image + motif empilés ─────────────── */
  .content-block-inner {
    flex-direction: column;
    height: auto;
  }

  .content-image {
    width: 100%;
    height: 240px;
    flex: none;
  }

  .content-image img {
    object-position: center center;
  }

  .hero-pattern-wrap { display: none; }

  /* ── Titres de section ─────────────────────────────────── */
  .section-title    { font-size: 32px; }
  .faq-left-title     { font-size: 32px; }
  .contact-left-title { font-size: 32px; }
  .wabi-sabi-title  { font-size: 40px; letter-spacing: -0.8px; }
  .testimonial-title { font-size: 36px; white-space: normal; }

  /* ── Formations ────────────────────────────────────────── */
  .formations-section { padding-top: 8px; }

  .formations-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .tabs { width: fit-content; flex-direction: column; margin-inline: auto; }
  .tab  { text-align: center; font-size: 14px; padding: 10px 12px; }

  .filter-tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  /* Cards : 1 colonne */
  .cards-row       { grid-template-columns: 1fr; }
  .method-cards    { grid-template-columns: 1fr; }
  .wabi-sabi-cards { grid-template-columns: 1fr; }

  .card-title          { font-size: 28px; }
  .method-card-title   { font-size: 28px; min-height: unset; }
  .wabi-sabi-card-title { font-size: 28px; }
  .method-card         { min-height: unset; gap: 12px; }
  .method-card-icon    { width: 112px; }
  .wabi-sabi-card      { min-height: unset; }

  /* Cards compactes sur mobile */
  .card-header  { height: 120px; }
  .card-body    { padding: 16px 14px; gap: 12px; }
  .card-tags    { display: none; }
  .card-details { display: none; }
  .card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── Témoignages ───────────────────────────────────────── */
  .testimonial-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 32px 48px;
  }

  .testimonial-deco { display: none; }

  .testimonial-content { width: 100%; }

  /* ── Méthode SEI ───────────────────────────────────────── */
  .methode-bg-deco { display: block; }

  .methode-inner { gap: 40px; }

  .methode-block {
    flex-direction: column;
    gap: 32px;
    min-height: unset;
  }

  .methode-block--reversed {
    flex-direction: column;
    gap: 32px;
  }

  .methode-image {
    width: 100%;
    min-width: unset;
    height: 240px;
  }

  .methode-block-title { font-size: 28px; }

  /* Cartes formateurs : empilées */
  .instructor-card,
  .instructor-card--reversed {
    flex-direction: column;
    min-height: unset;
  }

  .instructor-photo {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-large) var(--radius-large) 0 0 !important;
  }

  .instructor-info-card {
    width: 100%;
    height: auto;
    min-height: unset;
    border-radius: 0 0 var(--radius-large) var(--radius-large) !important;
    padding: 24px 20px;
  }

  .instructor-name { font-size: 28px; }
  .instructor-role { font-size: 18px; }

  /* ── Notre méthode ─────────────────────────────────────── */
  .notre-methode-bg-deco { display: block; }


  /* ── FAQ ───────────────────────────────────────────────── */
  .faq-section { padding: 48px var(--side-padding); margin-top: 0; }

  .faq-inner {
    flex-direction: column;
    gap: 32px;
  }

  .faq-left {
    width: 100%;
    padding-top: 0;
  }

  .faq-question { font-size: 18px; }
  .faq-answer   { max-width: 100%; }

  /* ── Wabi-Sabi ─────────────────────────────────────────── */
  .wabi-sabi-bg-deco { display: none; }

  /* ── Contact ───────────────────────────────────────────── */
  .contact-section { padding: 0; }

  .contact-card {
    flex-direction: column;
    gap: 40px;
    padding: 48px 32px;
    border-radius: 0;
  }

  .contact-left {
    width: 100%;
  }

  .contact-right {
    width: 100%;
  }

  .contact-form {
    align-items: stretch;
    width: 100%;
  }

  /* ── Sticky CTA : toast mobile ─────────────────────────── */
  .sticky-cta {
    left: auto;
    right: 20px;
    bottom: 16px;
    width: fit-content;
    border-radius: 12px;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .sticky-cta.sticky-cta--visible {
    transform: translateY(0);
  }

  .sticky-cta.sticky-cta--dismissed {
    transform: translateY(calc(100% + 24px));
    transition: transform 0.3s ease;
  }

  /* ── Footer ─────────────────────────────────────────────── */
  .footer-section {
    margin-top: 0;
    width: 100%;
    margin-left: 0;
    border-radius: 0;
    padding: 48px var(--side-padding) 40px;
    min-height: unset;
  }

  .footer-deco { display: none; }

  .footer-content {
    width: 100%;
    margin-left: 0;
    gap: 40px;
  }

  .footer-nav-link { font-size: 32px; }

  .footer-legal {
    gap: 16px;
    font-size: 12px;
    margin-top: 40px;
  }
}


/* ============================================================
   ── PETIT MOBILE (≤ 480px)
============================================================ */
@media (max-width: 480px) {

  :root {
    --side-padding:  16px;
    --section-pad-v: 36px;
  }

  /* Typographie */
  .hero-title       { font-size: 32px; }
  .section-title    { font-size: 28px; }
  .faq-left-title     { font-size: 28px; }
  .contact-left-title { font-size: 28px; }
  .wabi-sabi-title  { font-size: 32px; }
  .card-title       { font-size: 24px; }
  .methode-block-title   { font-size: 24px; }
  .method-card-title     { font-size: 24px; }
  .wabi-sabi-card-title  { font-size: 24px; }
  .testimonial-title     { font-size: 28px; }
  .testimonial-quote     { font-size: 17px; }

  /* Hero links : côte à côte */
  .hero-links { flex-direction: row; gap: 16px; flex-wrap: wrap; align-items: center; }

  /* Instructor header : empilé */
  .instructor-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .social-links { flex-wrap: wrap; }

  /* Card header petit mobile */
  .card-header { height: 80px; }
}
