/* ============================================
   PIVERT - À propos — responsive MOBILE ONLY
   Aucune règle n'affecte le desktop (> 768px)
   ============================================ */

@media (max-width: 768px) {

  /* ── Header / hero top ── */
  .page-hero {
    padding-top: calc(var(--space-10) + 70px);
    padding-bottom: var(--space-10);
    text-align: center;
  }
  .page-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: var(--space-4);
  }
  .page-hero p {
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
  }
  .page-hero-tag {
    margin: 0 auto var(--space-4);
  }

  /* ── Sections : plus d'air vertical ── */
  main .section {
    padding-top: clamp(2.5rem, 8vw, 3.5rem) !important;
    padding-bottom: clamp(2.5rem, 8vw, 3.5rem) !important;
  }
  main .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* ── Split grids → 1 colonne ── */
  .about-split {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-8) !important;
    align-items: stretch !important;
  }

  /* Histoire : texte au-dessus, cert card en dessous */
  .about-split--histoire .reveal-left  { order: 1; }
  .about-split--histoire .reveal-right { order: 2; }

  /* Zone d'intervention : texte → cards infos → map */
  .about-split--zone .reveal-left  { order: 1; }
  .about-split--zone .reveal-right { order: 2; margin-top: var(--space-4); }

  /* ── Titres de section ── */
  .about-split h2 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: var(--space-5) !important;
    text-wrap: balance;
  }

  /* ── Paragraphes : aérer ── */
  .about-split p {
    font-size: 0.97rem !important;
    line-height: 1.85 !important;
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-5) !important;
  }

  /* ── Blocs "check" (points forts / zones) en cards propres ── */
  .about-split .reveal-left > div:last-child > div,
  .about-split .reveal-right > div:last-child > div {
    padding: 14px 16px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(47, 143, 58, 0.14) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    gap: 12px !important;
  }
  .about-split .reveal-left > div:last-child > div span,
  .about-split .reveal-right > div:last-child > div span {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  .about-split .reveal-left > div:last-child,
  .about-split .reveal-right > div:last-child {
    gap: 12px !important;
  }

  /* ── Card certifications (reveal-right histoire) ── */
  .about-split--histoire .reveal-right .card-glass {
    padding: var(--space-6) !important;
    border-radius: 16px !important;
  }
  .about-split--histoire .reveal-right .card-glass img {
    height: 60px !important;
  }

  /* ── Map : hauteur réduite + arrondis ── */
  .about-split--zone .reveal-right > div {
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }
  .about-split--zone .reveal-right iframe {
    height: 240px !important;
    display: block;
  }

  /* ── Grille 3 colonnes (valeurs / certifs) → 1 colonne ── */
  main .grid-3 {
    grid-template-columns: 1fr !important;
    gap: var(--space-5) !important;
  }
  main .grid-3 .card-glass {
    padding: var(--space-6) !important;
    border-radius: 16px !important;
  }

  /* ── CTA final ── */
  .cta-section .cta-card {
    padding: var(--space-8) var(--space-5) !important;
    border-radius: 18px !important;
  }
  .cta-section h2 {
    font-size: clamp(1.5rem, 6vw, 1.9rem) !important;
    line-height: 1.25 !important;
  }
  .cta-section p {
    font-size: 0.98rem !important;
    line-height: 1.75 !important;
  }
  .cta-section .cta-buttons {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
  }
  .cta-section .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Mise en valeur PIVERT déjà gérée par .pivert-name ── */

  /* ── Fade-in doux au scroll ── */
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal-left,
    .reveal-right {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
}

/* Scroll fluide global (safe sur desktop aussi, pas de changement visuel) */
@media (max-width: 768px) {
  html { scroll-behavior: smooth; }
}
