/* ============================================
   DEL! — Responsive Stylesheet
   Breakpoints: 480px, 768px, 1024px, 1440px
   ============================================ */

/* ---- Extra large screens (1440px+) ---- */
@media (min-width: 1440px) {
  :root {
    --container-max: 1360px;
    --container-padding: 40px;
  }

  .hero__mascot-wrapper {
    width: 100%;
  }

  .services__grid {
    max-width: 1000px;
    gap: 40px;
  }

  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ---- iPad Pro range (1024px to 1366px) ---- */
@media (max-width: 1366px) and (min-width: 1025px) {
  /* Moins de blanc autour de la mascotte : cartes resserrees */
  .hero-player,
  .hero-schedule {
    width: 244px;
    padding: 16px;
  }

  .services__grid {
    max-width: 920px;
    gap: 32px;
  }

  .contact__inner {
    gap: 60px;
  }
}

/* ---- Desktop / Large tablets (1024px and below) ---- */
@media (max-width: 1024px) {
  :root {
    --container-padding: 32px;
    --nav-height: 72px;
  }

  .hero__mascot-wrapper {
    width: 100%;
  }

  /* Meme disposition qu'en desktop — une carte de chaque cote de la mascotte,
     a la meme hauteur — mais mise a l'echelle de la marge laterale disponible.
     Tout est fluide (vw) pour eviter un palier brutal a chaque breakpoint. */
  .hero-player,
  .hero-schedule {
    width: clamp(112px, 30vw, 260px);
    padding: clamp(8px, 1.8vw, 16px);
    border-radius: clamp(8px, 1.4vw, 14px);
  }

  .hero-player {
    left: clamp(8px, 2.5vw, 24px);
  }

  .hero-schedule {
    right: clamp(8px, 2.5vw, 24px);
  }

  .hero-player__disc {
    width: clamp(22px, 4.2vw, 40px);
    height: clamp(22px, 4.2vw, 40px);
  }

  .hero-player__head {
    gap: clamp(6px, 1.3vw, 12px);
    margin-bottom: clamp(8px, 1.7vw, 16px);
  }

  .hero-player__wave {
    height: clamp(20px, 4.2vw, 40px);
    margin-bottom: clamp(7px, 1.5vw, 14px);
  }

  .hero-player__track,
  .hero-schedule__state {
    font-size: clamp(9px, 2.4vw, 14px);
  }

  .hero-player__artist,
  .hero-player__time,
  .hero-schedule__note,
  .hero-schedule__days li,
  .hero-schedule__resume li {
    font-size: clamp(8px, 2.1vw, 12px);
  }

  .hero-schedule__head {
    padding-bottom: clamp(7px, 1.5vw, 14px);
    margin-bottom: clamp(6px, 1.4vw, 12px);
  }

  .hero-schedule__days {
    gap: clamp(3px, 0.8vw, 6px);
  }

  .services__grid {
    max-width: 800px;
    gap: 24px;
  }

  .service-card {
    padding: 40px 32px;
  }

  .service-card__price-value {
    font-size: 40px;
  }

  .contact__inner {
    gap: 48px;
  }

  .projects__grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
  }
}

/* ---- Tablets (768px and below) ---- */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --nav-height: 64px;
  }

  /* Nav */
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Mobile header auth icons (messages + avatar) */
  .nav__mobile-auth {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .nav__mobile-msg {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    transition: color 0.3s;
  }
  .nav__mobile-msg:hover {
    color: var(--red);
  }
  .nav__mobile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
  }

  .nav__logo {
    font-size: 24px;
  }

  /* Hero */
  .hero__content {
    padding-top: calc(var(--nav-height) + 20px);
  }

  /* Sous cette largeur, "Mercredi 08:00 – 20:00" ne tient plus sur une
     ligne de la carte : les 7 jours cedent la place au resume. */
  .hero-schedule__days {
    display: none;
  }

  .hero-schedule__resume {
    display: flex;
  }

  .hero-schedule__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  /* Rien ne doit passer a la ligne dans une carte de ~130px */
  .hero-schedule__resume li,
  .hero-schedule__note,
  .hero-player__artist {
    gap: 6px;
    white-space: nowrap;
  }

  .hero__mascot-wrapper {
    width: 100%;
  }

  .hero__scroll-indicator {
    bottom: 24px;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 48px;
  }

  /* Services */
  .services {
    padding: 80px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .service-card {
    padding: 40px 32px;
  }

  .service-card__price-value {
    font-size: 44px;
  }

  /* Projects */
  .projects {
    padding: 80px 0;
  }

  .projects__filters {
    gap: 8px;
    margin-bottom: 36px;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 12px;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Finder Promo */
  .finder-promo__content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .finder-promo__badge {
    right: 16px;
    top: -14px;
    font-size: 14px;
    padding: 8px 20px;
  }

  /* Contact */
  .contact {
    padding: 80px 0;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "about"
      "photo"
      "info";
    gap: 48px;
  }

  .contact__about .section-header {
    text-align: center;
  }

  .contact__about .section-header__line {
    margin: 24px auto 0;
  }

  .contact__text {
    text-align: center;
    max-width: 100%;
  }

  .contact__info {
    align-items: center;
    text-align: center;
    padding-top: 0;
  }

  .contact__social-links {
    justify-content: center;
  }

  .contact__photo {
    margin: 0 auto;
    max-width: min(480px, calc(100% - 18px));
  }

  /* Footer — plus epais et aere sur mobile */
  .footer {
    position: relative;
    padding: 44px 0 36px;
    background: var(--dark);
  }

  .footer__inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .footer__left,
  .footer__center {
    flex: unset;
  }

  .footer__center {
    order: -1;
  }

  .footer__logo {
    font-size: 24px;
  }

  /* Instagram masque sur mobile (garde sur desktop) */
  .footer__right {
    display: none;
  }

  /* Custom cursor hidden on touch */
  .cursor {
    display: none;
  }
}

/* ---- Small phones (480px and below) ---- */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  /* Hero */
  .hero__mascot-wrapper {
    width: 100%;
    margin-bottom: 0;
  }

  .hero__subtitle {
    letter-spacing: 0.1em;
  }

  /* Cartes du hero : la marge laterale se reduit encore, on degraisse.
     Les tailles restent pilotees par les clamp() du bloc 1024px. */
  .hero-player__head {
    margin-bottom: 6px;
  }

  .hero-player__wave {
    gap: 2px;
  }

  /* Moins de barres : a cette largeur elles deviennent des traits illisibles */
  .hero-player__wave span:nth-child(n + 13) {
    display: none;
  }

  .hero-player__time {
    margin-top: 5px;
  }

  /* Services */
  .services {
    padding: 60px 0;
  }

  .service-card {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .service-card__icon {
    width: 48px;
    height: 48px;
  }

  .service-card__title {
    font-size: 24px;
  }

  .service-card__price-value {
    font-size: 40px;
  }

  .service-card__description {
    font-size: 14px;
  }

  .service-card__cta {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Projects */
  .projects {
    padding: 60px 0;
  }

  .projects__filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 11px;
  }

  .projects__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .project-info {
    padding: 14px;
  }

  .project-badge {
    font-size: 9px;
    padding: 3px 8px;
  }

  .project-title {
    font-size: 15px;
  }

  .project-artist {
    font-size: 12px;
  }

  .platform-link {
    width: 36px;
    height: 36px;
  }

  .platform-link svg {
    width: 16px;
    height: 16px;
  }

  /* Finder Promo */
  .finder-promo {
    padding: 20px 0;
  }

  .finder-promo__badge {
    right: 12px;
    top: -12px;
    font-size: 12px;
    padding: 6px 16px;
  }

  .finder-promo__description {
    font-size: 13px;
  }

  .finder-promo__cta {
    padding: 10px 24px;
    font-size: 13px;
  }

  /* Contact */
  .contact {
    padding: 60px 0;
  }

  .contact__text {
    font-size: 15px;
  }

  .magnetic-btn {
    padding: 18px 40px;
  }

  .magnetic-btn__text {
    font-size: 14px;
  }

  .contact__social-link {
    width: 42px;
    height: 42px;
  }

  /* Mobile menu */
  .mobile-menu__link {
    font-size: clamp(28px, 8vw, 40px);
  }
}

/* ---- Ultra small phones (360px and below) ---- */
@media (max-width: 360px) {
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__mascot-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .service-card__price-value {
    font-size: 36px;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__scroll-arrow {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .project-card[data-scroll] {
    opacity: 1;
    transform: none;
  }
}

/* ---- Hover media query (touch devices) ---- */
@media (hover: none) {
  .cursor {
    display: none !important;
  }

  .project-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
  }

  .platform-link {
    opacity: 1;
    transform: translateY(0);
  }

  .service-card:hover {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }
}
