/* Fichier mobile.css dédié aux téléphones */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  body {
    font-size: 18px;
  }

  /* Header */
  header {
    padding: 14px 16px;
    gap: 12px;
    align-items: stretch;
  }

  header h1 {
    font-size: 30px;
    line-height: 1.1;
  }

  nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 16px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .profile-link {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .profile-icon {
    width: 24px;
    height: 24px;
  }

  /* Pages */
  .page {
    padding: 24px 16px;
  }

  h1, h2 {
    margin-bottom: 20px;
  }

  .page > h1 {
    font-size: 34px;
  }

  .page > h2,
  .expo h2,
  #artists h2,
  #agenda h2,
  #gallery h2,
  #profile h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  p,
  .expo p,
  .agenda-info,
  .gallery-text,
  .gallery-contact,
  .bio,
  .artist-website,
  .expo-text,
  .week,
  .legend-item,
  .form-file-label,
  .form-help,
  input,
  textarea,
  button {
    font-size: 17px;
  }

  .expo {
    margin-bottom: 42px;
  }

  .expo-block {
    width: 100%;
  }

  .expo-thumb {
    width: 82vw;
    max-width: 320px;
    height: 220px;
  }

  .expo-text {
    padding: 18px;
    line-height: 1.8;
    text-align: left;
  }

  .carousel-arrow,
  .artist-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .carousel-arrow.left,
  .artist-arrow.left {
    left: 6px;
  }

  .carousel-arrow.right,
  .artist-arrow.right {
    right: 6px;
  }

  /* Agenda */
  .reserve-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .reserve-buttons span {
    width: 100%;
    font-size: 17px;
    font-weight: 600;
  }

  .reserve-buttons button {
    min-height: 46px;
  }

  .agenda-legend {
    width: 100%;
    box-sizing: border-box;
    gap: 12px 16px;
  }

  .legend-color {
    width: 18px;
    height: 18px;
  }

  #calendar {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .monthTitle {
    font-size: 20px;
  }

  .week {
    min-height: 96px;
    padding: 16px;
  }

  .week-label {
    font-size: 17px;
  }

  .collectif-count {
    font-size: 14px;
  }

  /* Artistes : style trombinoscope lisible */
  .artist {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px;
  }

  .artist img,
  .artist-main-photo {
    width: 88px;
    height: 88px;
    min-width: 88px;
    flex: 0 0 88px;
    object-fit: cover;
    border-radius: 14px;
    margin-right: 0;
  }

  .artist-content h3 {
    font-size: 22px;
    margin: 0 0 8px 0;
  }

  .artist-works-block {
    margin-top: 12px;
  }

  .artist-work-thumb {
    width: 110px;
    height: 82px;
  }

  .artist-website a {
    word-break: break-word;
  }

  /* Galerie */
  .gallery-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-text,
  .gallery-contact,
  .gallery-map {
    padding: 16px;
  }

  .gallery-address,
  .gallery-line {
    font-size: 16px;
  }

  .gallery-map iframe {
    height: 220px;
  }

  /* Profil */
  .profile-card {
    padding: 16px;
    gap: 16px;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
    max-width: 140px;
    aspect-ratio: 1 / 1;
  }

  .profile-info {
    max-width: 100%;
  }

  .profile-actions,
  .account-switch {
    gap: 8px;
  }

  .profile-actions button,
  .profile-info button,
  .account-tab,
  button {
    min-height: 46px;
    padding: 12px 16px;
  }

  form,
  .account-form,
  #editProfileForm {
    max-width: 100%;
  }

  input,
  textarea {
    padding: 14px 15px;
  }

  textarea {
    min-height: 140px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-img {
    max-width: 96%;
    max-height: 82%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  header h1 {
    font-size: 27px;
  }

  .page > h1 {
    font-size: 30px;
  }

  .page > h2,
  .expo h2,
  #artists h2,
  #agenda h2,
  #gallery h2,
  #profile h2 {
    font-size: 25px;
  }

  .artist {
    grid-template-columns: 76px 1fr;
  }

  .artist img,
  .artist-main-photo {
    width: 76px;
    height: 76px;
    min-width: 76px;
    flex-basis: 76px;
  }

  .artist-content h3 {
    font-size: 20px;
  }

  .expo-thumb {
    width: 84vw;
    height: 200px;
  }

  .gallery-map iframe {
    height: 200px;
  }
}
