/* =========================================================
   CORRECTIFS RESPONSIVE MOBILE / iOS SAFARI
   À conserver après tous les CSS existants
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

section,
#menus,
.nom,
.containerMobile {
  max-width: 100%;
  overflow-x: clip;
}

@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }

  section#home {
    background-attachment: scroll !important;
  }
}

@media screen and (max-width: 834px) {
  section {
    height: auto;
    min-height: auto;
  }

  section#home {
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    background-attachment: scroll !important;
    background-position: center center !important;
  }

  .flou_haut {
    height: calc(82px + env(safe-area-inset-top, 0px)) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .hamburger-menu {
    top: calc(1.5rem + env(safe-area-inset-top, 0px)) !important;
  }

  .logo {
    width: clamp(150px, 46vw, 280px) !important;
    top: calc(1.2rem + env(safe-area-inset-top, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    filter: drop-shadow(0 10px 12px rgba(0,0,0,0.55));
  }

  .boutons {
    position: fixed !important;
    top: calc(1.4rem + env(safe-area-inset-top, 0px)) !important;
    right: max(1.2rem, env(safe-area-inset-right, 1.2rem)) !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .logoFr,
  .logoEn {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    display: block;
  }

  .logoLoc {
    width: auto !important;
    height: 32px !important;
    margin: 0 !important;
    display: block;
  }

  .reservation {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    width: min(86vw, 260px) !important;
    height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 1rem !important;
    font-size: 1.9rem !important;
    z-index: 40 !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .reservation:active {
    transform: translateX(-50%) scale(0.96) !important;
  }

  .bandeau {
    display: none !important;
  }

  .nom {
    width: 100% !important;
    margin: 2rem auto !important;
    padding: 2rem 1rem 0 !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nom img {
    width: min(58vw, 220px) !important;
    height: auto !important;
  }

  .nom h1 {
    width: 100% !important;
    padding: 1.2rem 0 0 !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }

  .nom h1 span {
    display: inline !important;
    font-size: clamp(2rem, 6vw, 3rem) !important;
    line-height: 1.25 !important;
  }

  #menus {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: auto !important;
    padding: 1rem 0 2rem !important;
  }

  .containerRight {
    width: 100% !important;
    margin: 0 auto 1rem !important;
    padding: 0 1rem !important;
  }

  .descriptifMenu {
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    align-items: center !important;
    text-align: center !important;
  }

  .descriptifMenu h2 {
    font-size: clamp(5rem, 16vw, 7.5rem) !important;
    line-height: 1 !important;
  }

  .descriptifMenu h4 {
    font-size: clamp(1.7rem, 4.8vw, 2.2rem) !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  .containerMobile {
    display: flex !important;
    width: min(100%, 680px) !important;
    height: auto !important;
    min-height: auto !important;
    margin: 1rem auto 0 !important;
    padding: 0 1rem !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .blocMobile {
    width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    filter: drop-shadow(0 12px 12px rgba(0,0,0,0.55));
    transition: min-height 0.35s ease, height 0.35s ease, filter 0.25s ease !important;
  }

  .blocMobile.active {
    height: auto !important;
    min-height: clamp(285px, 58svh, 430px) !important;
    flex: 0 0 auto !important;
  }

  .bloc-hautMobile {
    width: 100% !important;
    min-height: 76px !important;
    height: auto !important;
    padding: 0.7rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  .titre-sectionMobile {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: clamp(1.45rem, 4.4vw, 2rem) !important;
    line-height: 1.15 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .prixMobile {
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: clamp(1.8rem, 5vw, 2.2rem) !important;
    line-height: 1 !important;
  }

  .blocMobile .ligne {
    flex: 0 1 22% !important;
    min-width: 28px !important;
    max-width: 90px !important;
    margin: 0 !important;
  }

  .blocMobile:not(.active) .contenuMobile {
    display: none !important;
  }

  .contenuMobile {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 1rem !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
  }

  .active > .contenuMobile {
    display: flex !important;
    min-height: calc(clamp(285px, 58svh, 430px) - 76px) !important;
    margin-top: 0 !important;
    padding: 1rem 1.25rem 1.25rem !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
  }

  .active > .contenuMobile > .infos > .buttonMobile {
    margin: 0 !important;
  }

  .infos .buttonMobile,
  .infos .button,
  .containerButton .button {
    min-width: 150px !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    text-decoration: none !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .rgpd {
    position: absolute;
    right: 0.8rem;
    bottom: 0.6rem;
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    text-align: right !important;
  }

  section#a_propos {
    width: 100% !important;
    padding: 3.5rem 0 !important;
    flex-direction: column-reverse !important;
  }

  .containerRightAbout,
  .containerLeft {
    width: min(100%, 680px) !important;
    margin: 0 auto !important;
    padding: 0 1.6rem !important;
  }

  .containerRightAbout h2 {
    font-size: clamp(5rem, 15vw, 7.5rem) !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .containerRightAbout p,
  .descriptionChef p {
    font-size: clamp(1.55rem, 4.2vw, 1.85rem) !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  .imagetopMobile img,
  .imagetop img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
  }

  .read-more-button {
    align-self: center !important;
    margin: 2rem auto 0 !important;
    width: min(220px, 80vw) !important;
    min-height: 46px !important;
    position: static !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  #brigade {
    padding: 3.5rem 0 !important;
  }

  .presentationChef {
    width: min(100%, 680px) !important;
    padding: 0 1.6rem !important;
    margin: 0 auto !important;
  }

  .descriptionChef {
    width: 100% !important;
  }

  .descriptionChef h3 {
    font-size: clamp(2.2rem, 5.6vw, 3rem) !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  .titreBrigade {
    padding: 0 1.6rem !important;
  }

  .titreBrigade h2 {
    font-size: clamp(3rem, 8vw, 4rem) !important;
    line-height: 1.15 !important;
  }

  .titreBrigade span {
    font-size: clamp(5rem, 14vw, 7.5rem) !important;
    display: block;
  }

  #galerie {
    min-height: auto !important;
    height: auto !important;
    flex-direction: column !important;
  }

  .containerLeftGalerie,
  .containerRightGalerie {
    width: 100% !important;
    min-height: 48svh !important;
    height: auto !important;
    padding: 2rem 1rem !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .imgleft,
  .imgRight {
    width: min(100%, 620px) !important;
    height: 42svh !important;
    min-height: 300px !important;
  }

  .imgleft h2 {
    font-size: clamp(4.2rem, 12vw, 7rem) !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere !important;
  }

  #galerieButton {
    justify-content: center !important;
    margin: 0 !important;
  }

  footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .containerHautFooter,
  .containerBasFooter {
    width: 100% !important;
    padding: 0 1.6rem !important;
  }

  .adresse,
  .contactContainer,
  .horaire,
  .reseaux {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .adresse p,
  .contact p,
  .horaire p,
  .mail {
    text-align: center !important;
    font-size: clamp(1.7rem, 4.5vw, 2.2rem) !important;
    overflow-wrap: anywhere !important;
  }
}

@media screen and (max-width: 390px) {
  .logo {
    width: clamp(120px, 38vw, 170px) !important;
  }

  .boutons {
    gap: 0.25rem !important;
    right: max(0.8rem, env(safe-area-inset-right, 0.8rem)) !important;
  }

  .logoFr,
  .logoEn {
    width: 28px !important;
    height: 28px !important;
  }

  .logoLoc {
    height: 28px !important;
  }

  .titre-sectionMobile {
    font-size: 1.35rem !important;
  }

  .blocMobile .ligne {
    display: none !important;
  }

  .reservation {
    width: min(84vw, 220px) !important;
    font-size: 1.65rem !important;
  }

  .imgleft,
  .imgRight {
    min-height: 260px !important;
  }
}

@media screen and (max-width: 361px) {
  #menus {
    width: 100% !important;
  }

  section#home {
    height: 100svh !important;
    min-height: 100svh !important;
  }

  .containerMobile {
    padding: 0 0.75rem !important;
  }

  .bloc-hautMobile {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }
}
