/* ============================================================
   RESPONSIVE — Mobile first breakpoints
   1024px → tablet landscape
    768px → tablet portrait / large mobile
    480px → small mobile
   ============================================================ */

/* ---- 1024px ---- */
@media (max-width: 1024px) {
  :root { --section-v-pad: 4rem; }

  .hero__grid {
    grid-template-columns: 1fr 340px;
    gap: 3rem;
  }

  .proof__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
  }
}

/* ---- 768px ---- */
@media (max-width: 768px) {
  :root {
    --section-v-pad: 3.5rem;
    --nav-height: 64px;
  }

  /* Nav */
  .nav__links {
    display: none;
    position: fixed;
    inset-block-start: var(--nav-height);
    inset-inline: 0;
    background: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
  }

  .nav__links.is-open { display: flex; }

  .nav__links li a {
    display: block;
    padding: .875rem 1.5rem;
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--clr-border);
  }

  .nav__links li:last-child a { border-bottom: none; }

  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .lang-toggle { gap: 1px; }
  .lang-toggle__btn { padding: .2rem .5rem; }

  /* Section headers */
  .section-title { font-size: var(--fs-2xl); }

  /* Hero */
  .hero {
    padding-block: calc(var(--nav-height) + 3rem) 3.5rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__visual { order: -1; }

  .hero__photo-wrap {
    max-width: 280px;
    margin-inline: auto;
  }

  .hero__badge {
    left: auto;
    right: 0;
  }

  .hero__title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero__subtitle { max-width: 100%; }
  .hero__stats { gap: 1.5rem; }

  /* Problems */
  .problems__grid { grid-template-columns: 1fr; }

  /* Solution */
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps::before { display: none; }
  .step { text-align: left; }
  .step__number { margin: 0 0 1rem; }

  /* Proof */
  .proof__grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials__grid { grid-template-columns: 1fr; }

  /* Cases */
  .cases__grid { grid-template-columns: 1fr; }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__photo-wrap {
    max-width: 240px;
    margin-inline: auto;
  }

  .about__photo { aspect-ratio: 1; }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ---- 480px ---- */
@media (max-width: 480px) {
  :root { --section-v-pad: 3rem; }

  .container { padding-inline: 1rem; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { text-align: center; justify-content: center; }

  .hero__stats { flex-direction: column; gap: 1rem; }

  .proof__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .proof__cert {
    flex-direction: column;
    text-align: center;
    gap: .625rem;
  }

  .form { padding: 1.5rem; }

  .form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .form__footer .btn { text-align: center; justify-content: center; }

  .stack__row { gap: .5rem; }
}

/* ---- Audit utility classes ---- */
@media (max-width: 768px) {
  .layout-2col,
  .layout-2col--md { grid-template-columns: 1fr; gap: 2rem; }
  .proof__grid--3col { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
}

@media (max-width: 480px) {
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .btn { text-align: center; justify-content: center; }
  .proof__grid--3col { grid-template-columns: 1fr; }
}

/* ---- Portfolio ---- */
@media (max-width: 768px) {
  .patterns__grid { grid-template-columns: 1fr; }
  .portfolio-hero__stats { gap: 1.75rem; }
  .portfolio-cta__actions { flex-direction: column; align-items: stretch; }
  .portfolio-cta__actions .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .portfolio-hero__stats { gap: 1.25rem; }
}

/* ---- Focus visible (accessibilité) ---- */
:focus-visible {
  outline: 3px solid var(--clr-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
