/* ==========================================================
   FATABAR DIGITAL — responsive.css
   Le mobile est le style de base (style.css).
   Ici : uniquement les élargissements, du plus petit au plus grand.
   ========================================================== */

/* ---------- Très petits écrans (≤ 359px, ex. 320px) ---------- */
@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .logo__text strong { font-size: 1rem; }
  .hero__actions .btn { width: 100%; }
  .stats__grid { gap: 2rem .75rem; }
}

/* ---------- ≥ 480px ---------- */
@media (min-width: 480px) {
  :root { --gutter: 1.5rem; }
  .form__row { grid-template-columns: 1fr 1fr; }
}

/* ---------- ≥ 768px (tablette) ---------- */
@media (min-width: 768px) {
  :root { --gutter: 2.5rem; --header-h: 80px; }

  .hero { padding-bottom: 7rem; }
  .hero__shape { right: -6%; top: 12%; width: 56vw; opacity: .75; }
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; }
  .hero__scroll { bottom: 2.5rem; }

  .services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-inline: 0; padding: 0; overflow: visible; }
  .service-card.is-current:not(.service-card--cta) { border-color: var(--c-line); }
  .service-card.is-current::before { opacity: 0; }
  .service-card.is-current:hover { border-color: rgba(22, 196, 160, .5); }
  .service-card.is-current:hover::before { opacity: 1; }
  .swipe-hint { display: none; }
  /* Carte « Un besoin particulier ? » sur 2 colonnes : la grille reste complète */
  .service-card--cta { grid-column: span var(--span2, 2); }
  .service-card { padding: 2rem; min-height: 300px; }

  .digital__row { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1.6fr); align-items: center; gap: 1.5rem; padding-block: 2rem; }
  .digital__before { font-size: .95rem; }
  .digital__arrow { width: 72px; }

  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3.5rem 2rem; margin-inline: 0; padding: 0; overflow: visible; }
  /* Décalage vertical d'une colonne sur deux : grille asymétrique */
  .projects__grid .project:nth-child(even) { margin-top: 4rem; }

  .section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; }
  .section__head--split .section__lead { max-width: 24rem; margin-top: 0; }
  .section__head--center { margin-inline: auto; text-align: center; }
  .section__head--center .eyebrow { justify-content: center; }
  .section__head--center .section__lead { margin-inline: auto; }

  .testimonial { flex-basis: calc(70% - .5rem); padding: 2.5rem; min-height: 340px; }
  .carousel__controls { margin-top: 0; }

  .form { padding: 2.5rem; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { padding-bottom: 2rem; padding-right: 5.5rem; }
  .whatsapp { right: 1.5rem; bottom: 1.5rem; width: 60px; height: 60px; }
}

/* ---------- ≥ 1024px (desktop) ---------- */
@media (min-width: 1024px) {
  /* Navigation horizontale : le menu plein écran devient une barre */
  .burger, .nav__cta, .nav__foot { display: none; }
  .header__tools { gap: .75rem; }
  .header.is-hidden { transform: none; }
  .header__cta { display: inline-flex; }
  .nav {
    position: static; flex-direction: row; padding: 0; background: none; overflow: visible;
    clip-path: none; visibility: visible; transition: none;
  }
  .nav__list { display: flex; gap: clamp(.9rem, 1.8vw, 2rem); }
  .nav__link {
    position: relative; padding: .5rem 0;
    font-family: var(--font-text); font-size: .92rem; font-weight: 500; letter-spacing: 0;
    opacity: 1; transform: none; transition: color .3s;
  }
  .nav__link::before { content: none; }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--c-accent); transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

  .hero__shape { right: 2%; top: 10%; width: 44vw; }
  .hero__lead { font-size: 1.15rem; }

  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .service-card--cta { grid-column: span var(--span3, 2); }
  .service-card:hover { translate: 0 -6px; }

  .digital__inner, .process__inner, .why__inner {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start;
  }
  .digital__head, .process__head, .why__head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
  .digital__inner .section__title, .process__inner .section__title, .why__inner .section__title { font-size: clamp(2.5rem, 4.4vw, 4.25rem); }

  .timeline { padding-left: 3.5rem; }
  .timeline__step::before { left: -3.5rem; }
  .timeline__list { gap: 5rem; }

  .why__item { grid-template-columns: 4rem 1fr; padding-block: 1.75rem; }
  .why__item:hover { padding-left: 1rem; }

  .projects__grid { grid-template-columns: repeat(3, 1fr); }
  .projects__grid .project:nth-child(even) { margin-top: 0; }
  .projects__grid .project:nth-child(3n + 2) { margin-top: 5rem; }

  .pricing__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 1.5rem; }
  .plan { padding: 2.5rem 2rem; }
  .plan--featured { transform: translateY(-1.25rem); padding-block: 3.25rem; }

  .testimonial { flex-basis: calc(50% - .5rem); }

  .contact__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; }
}

/* ---------- Curseur personnalisé : souris précise uniquement ---------- */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .cursor {
    position: fixed; left: 0; top: 0; z-index: 900;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    display: grid; place-items: center;
    border-radius: 50%; background: var(--c-accent);
    pointer-events: none; opacity: 0;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease),
                background-color .3s, border-radius .35s, opacity .3s;
  }
  .cursor.is-visible { opacity: 1; }
  .cursor.is-link {
    width: 46px; height: 46px; margin: -23px 0 0 -23px;
    background: rgba(22, 196, 160, .18); border: 1px solid var(--c-accent);
  }
  .cursor.is-project {
    width: 84px; height: 84px; margin: -42px 0 0 -42px;
    border-radius: 22px; background: var(--c-accent);
  }
  .cursor__label {
    font-family: var(--font-title); font-size: .78rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary);
    opacity: 0; transition: opacity .2s;
  }
  .cursor.is-project .cursor__label { opacity: 1; }
}

/* ---------- ≥ 1440px ---------- */
@media (min-width: 1440px) {
  :root { --gutter: 4rem; }
  .hero__shape { width: 40vw; max-width: 680px; }
  .service-card { padding: 2.5rem; min-height: 340px; }
}

/* ---------- ≥ 1920px ---------- */
@media (min-width: 1920px) {
  :root { --container: 1560px; }
  body { font-size: 1.0625rem; }
  .hero__title { font-size: 8.5rem; }
  .hero__shape { max-width: 780px; right: 6%; }
}

/* ---------- Écrans peu hauts (mobile en paysage) ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2rem); }
  .nav { justify-content: flex-start; }
  .nav__link { font-size: 1.4rem; }
}
