/* =========================================
 root (Variables globales, on ne touche pas)
 ========================================= */

:root {
  --color-primary: #0a528e;
  --color-accent: #e59b2c;
  --color-title: #346899;
  --font-main: "Montserrat", sans-serif;
}

/* =========================================
 HOME
 ========================================= */

.page-home {
  font-family: var(--font-main);
  background-color: #f5f7fa;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.page-home .home-container {
  position: relative;
  z-index: 1;
  background: #ffffff;
  max-width: 900px;
  width: 100%;
  padding: 4vh 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.page-home .home-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background-image: url("assets/decors1.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

.page-home .home-header {
  margin-bottom: 4vh;
}

.page-home .main-title {
  color: var(--color-title);
  font-size: clamp(2.5em, 6vh, 4em);
  font-weight: 500;
  margin: 0 auto 1vh auto;
  line-height: 1.1;
  width: fit-content;
}

.page-home .main-title span {
  display: block;
  text-align: justify;
  text-align-last: justify;
}

.page-home #first-line {
  font-weight: 500;
}

.page-home #first-line::first-letter {
  color: var(--color-accent);
  font-weight: 700;
}

.page-home #second-line {
  font-weight: 700;
}

.page-home .subtitle {
  color: var(--color-accent);
  font-size: clamp(1em, 2vh, 1.3em);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1vh;
}

.page-home .welcome-section {
  margin-bottom: 4vh;
  padding: 0 5%;
}

.page-home .welcome-section h2 {
  color: var(--color-primary);
  font-size: clamp(1.4em, 3vh, 1.8em);
  margin: 0 0 1.5vh 0;
}

.page-home .welcome-text {
  color: var(--color-primary);
  font-size: clamp(0.95em, 2vh, 1.05em);
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.page-home .navigation-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 5vh;
  flex-wrap: wrap;
}

.page-home .btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 2vh 30px;
  border-radius: 10px;
  transition:
    transform 0.2s,
    background-color 0.2s;
  min-width: 240px;
  box-sizing: border-box;
}

.page-home .btn:active {
  transform: scale(0.98);
}

.page-home .btn-title {
  font-size: clamp(1.1em, 2.5vh, 1.3em);
  font-weight: 700;
  margin-bottom: 4px;
}

.page-home .btn-subtitle {
  font-size: clamp(0.75em, 1.5vh, 0.85em);
  font-weight: 300;
}

.page-home .btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.page-home .btn-secondary {
  background-color: white;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.page-home .info-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(10, 82, 142, 0.15);
  padding-top: 3vh;
  text-align: left;
  flex-wrap: wrap;
}

.page-home .info-block {
  flex: 1;
  min-width: 240px;
  color: var(--color-primary);
}

.page-home .info-block h3 {
  color: var(--color-primary);
  font-size: clamp(1em, 2.2vh, 1.1em);
  margin: 0 0 1vh 0;
  text-transform: uppercase;
}

.page-home .info-block h3::first-letter {
  color: var(--color-accent);
}

.page-home .info-block p {
  font-weight: 400;
  margin: 0 0 5px 0;
}

.page-home address {
  font-style: normal;
  text-decoration: none;
}

.page-home address a {
  text-decoration: none;
  color: inherit;
}

.page-home .address {
  text-decoration: none;
  color: var(--color-primary);
}

.page-home .phone-number {
  font-weight: 700 !important;
  margin-top: 1vh !important;
  font-size: 1.1em;
}

.page-home .hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home .hours-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95em;
  border-bottom: 1px dotted rgba(10, 82, 142, 0.2);
}

.page-home .hours-note {
  color: var(--color-primary);
  line-height: 1.5;
  margin: 1.5vh 0 0;
}

/* --- RESPONSIVE TABLETTE ET MOBILE (Retour au scroll classique) --- */
@media (max-width: 768px) {
  .page-home {
    align-items: flex-start;
  }
  .page-home .home-container {
    padding: 40px 20px;
  }
  .page-home .home-header {
    margin-bottom: 40px;
  }
  .page-home .main-title {
    font-size: 3em;
    margin-bottom: 10px;
  }
  .page-home .subtitle {
    font-size: 1.2em;
    margin-top: 10px;
  }
  .page-home .welcome-section {
    margin-bottom: 40px;
  }
  .page-home .welcome-section h2 {
    margin-bottom: 15px;
    font-size: 1.6em;
  }
  .page-home .welcome-text {
    font-size: 1em;
  }
  .page-home .navigation-section {
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
  }
  .page-home .btn {
    width: 100%;
    max-width: 320px;
    padding: 18px 20px;
  }
  .page-home .btn-title {
    font-size: 1.3em;
  }
  .page-home .info-section {
    padding-top: 30px;
  }
}

/* OPTIMISATION JUSQU'À 400PX ET MOINS */
@media (max-width: 430px) {
  .page-home {
    padding: 10px;
  }
  .page-home .home-container {
    padding: 30px 15px;
    border-radius: 10px;
  }
  .page-home .main-title {
    font-size: 2.1em;
  }
  .page-home .subtitle {
    font-size: 1em;
    letter-spacing: 1px;
  }
  .page-home .welcome-section {
    padding: 0 2%;
    margin-bottom: 30px;
  }
  .page-home .welcome-section h2 {
    font-size: 1.4em;
  }
  .page-home .welcome-text {
    font-size: 0.95em;
  }
  .page-home .btn {
    padding: 15px;
  }
  .page-home .btn-title {
    font-size: 1.15em;
  }
  .page-home .info-section {
    flex-direction: column;
    gap: 25px;
    padding-top: 25px;
  }
  .page-home .info-block {
    min-width: 100%;
  }
  .page-home .hours-list li {
    font-size: 0.85em;
  }
}

/* =========================================
 BOISSONS
 ========================================= */

.page-boissons .menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-boissons {
  font-family: var(--font-main);
  background-color: #fff;
  line-height: 1;
  padding: 20px;
  margin: auto;
}

.page-boissons .gold::first-letter {
  color: var(--color-accent);
}

.page-boissons .ou {
  font-style: italic;
}

.page-boissons .menu-container {
  position: relative;
  margin: 0 auto;
  background: white;
  padding: 40px;
  max-width: 1300px;
  column-count: 3;
  column-gap: 40px;
}

.page-boissons .menu-header {
  position: relative;
  z-index: 1;
  margin-bottom: 25px;
  text-align: left;
  container-type: inline-size;
  width: 100%;
}

.page-boissons .menu-header a {
  text-decoration: none;
}

.page-boissons .menu-section {
  position: relative;
  margin-bottom: 35px;
  break-inside: avoid;
  z-index: 1;
}

.page-boissons h1 {
  position: relative;
  z-index: 1;
  width: 95%;
  margin: 0;
  color: var(--color-title);
  font-size: 13cqi;
  font-weight: 500;
}

.page-boissons #first-illustration-crepe {
  position: absolute;
  width: 30cqi;
  left: -17cqi;
  top: -10cqi;
  z-index: -1;
  pointer-events: none;
}

.page-boissons .menu-title span {
  display: block;
  text-align: justify;
  text-align-last: justify;
}

.page-boissons #first-line {
  font-weight: 500;
}

.page-boissons #first-line::first-letter {
  color: var(--color-accent);
  font-weight: 700;
}

.page-boissons #second-line {
  font-weight: 700;
}

.page-boissons h2 {
  color: var(--color-accent);
  text-align: left;
  font-size: 8cqi;
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 0;
  text-transform: uppercase;
}

.page-boissons .first-illustration-decors {
  position: relative;
  left: -75px;
  top: -50px;
  width: 125%;
  transform: scaleX(-1);
  margin-bottom: -50px;
  z-index: -1;
}

.page-boissons h3 {
  font-size: 1.4em;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0;
  z-index: 1;
  font-weight: 600;
}

.page-boissons h4 {
  color: var(--color-primary);
  display: flex;
  align-items: baseline;
  font-size: 1em;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 0;
}

.page-boissons h4 span {
  margin-left: auto;
  letter-spacing: 2px;
  font-weight: 600;
}

.page-boissons h4 span .slash {
  font-weight: 300;
}

.page-boissons .menu-item {
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0px;
  margin-top: 8px;
}

.page-boissons .menu-item-name {
  font-weight: 500;
  flex: 1;
  font-size: 0.95em;
}

.page-boissons .menu-item-price {
  font-size: 0.95em;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 15px;
  letter-spacing: 1px;
  min-width: 60px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.page-boissons .menu-item-maison {
  font-weight: 300;
}

.page-boissons .desc-inline {
  color: var(--color-primary);
  font-weight: 300;
  font-size: 0.85em;
  margin-top: 0;
}

.page-boissons .desc-block {
  font-weight: 300;
  color: var(--color-primary);
  display: block;
  font-size: 0.85em;
  margin-top: 2px;
  margin-bottom: 10px;
  padding-right: 2rem;
}

.page-boissons .illustration-cidre {
  position: absolute;
  width: 25%;
  right: 0;
  bottom: -75px;
}

.page-boissons .italic {
  font-style: italic;
}

@media (max-width: 1000px) {
  .page-boissons .menu-container {
    column-count: 2;
  }
  .page-boissons .menu-header {
    margin-left: 0;
  }
  .page-boissons .first-illustration-decors {
    width: 110%;
  }
}

@media (max-width: 700px) {
  .page-boissons .menu-container {
    column-count: 1;
  }
  .page-boissons #first-illustration-crepe {
    width: 100px;
    left: -60px;
    top: -30px;
  }
  .page-boissons .menu-header {
    margin-left: 20px;
    margin-bottom: 50px;
  }
  .page-boissons h1 {
    font-size: 3em;
    width: fit-content;
  }
  .page-boissons h2 {
    font-size: 2em;
    width: 100%;
    text-align: left;
    text-align-last: left;
    margin-top: 0;
  }
  .page-boissons .first-illustration-decors {
    position: absolute;
    right: -20px;
    left: auto;
    top: -60px;
    width: 250px;
    transform: scaleX(1);
  }
  .page-boissons .illustration-cidre {
    width: 15%;
    right: 0;
    bottom: -60px;
  }
}

@media (max-width: 600px) {
  .page-boissons {
    padding: 12px 8px;
    font-size: 93%;
  }
  .page-boissons .menu-header {
    margin-left: 0;
  }
  .page-boissons .menu-item-name .desc-inline {
    margin-left: 0;
    margin-top: 4px;
    line-height: 1.1;
  }
  .page-boissons .desc-block {
    padding-right: 0;
    margin-bottom: 12px;
  }
  .page-boissons #first-illustration-crepe {
    width: 80px;
    left: -45px;
    top: -25px;
  }
  .page-boissons .first-illustration-decors {
    width: 230px;
    transform: scaleX(1);
  }
}

@media (max-width: 440px) {
  .page-boissons .menu-container {
    padding-left: 25px;
    padding-right: 25px;
  }
  .page-boissons h1 {
    font-size: 2.5em;
  }
  .page-boissons h2 {
    font-size: 1.7em;
  }
  .page-boissons #first-illustration-crepe {
    width: 60px;
    left: -35px;
    top: -15px;
  }
  .page-boissons .first-illustration-decors {
    width: 200px;
    transform: scaleX(1);
  }
}

/* =========================================
 La Carte
 ========================================= */

.page-carte .mt-10 {
  margin-top: 10px !important;
}
.page-carte .mt-12 {
  margin-top: 12px !important;
}
.page-carte .mt-15 {
  margin-top: 15px !important;
}
.page-carte .mt-20 {
  margin-top: 20px !important;
}
.page-carte .text-left {
  text-align: left;
}

.page-carte .menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-carte {
  font-family: var(--font-main);
  background-color: #fff;
  line-height: 1;
  padding: 20px;
  margin-bottom: 80px;
}

.page-carte .gold {
  display: inline-block;
}

.page-carte .gold::first-letter {
  color: var(--color-accent);
}

.page-carte .ou {
  font-weight: 300;
  font-style: italic;
}

.page-carte .menu-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  display: block;
}

.page-carte .menu-header {
  position: relative;
  z-index: 1;
  margin-left: 60px;
}

.page-carte .menu-header a {
  text-decoration: none;
}

.page-carte #first-illustration-crepe {
  width: 140px;
  position: absolute;
  left: -80px;
  top: -45px;
  z-index: 0;
}

.page-carte h1 {
  position: relative;
  z-index: 1;
  width: fit-content;
  color: var(--color-title);
  font-size: 4em;
  font-weight: 500;
  margin-bottom: 0;
}

.page-carte .menu-title span {
  display: block;
  text-align: justify;
  text-align-last: justify;
}

.page-carte #first-line {
  font-weight: 500;
}

.page-carte #first-line::first-letter {
  color: var(--color-accent);
  font-weight: 700;
}

.page-carte #second-line {
  font-weight: 700;
}

.page-carte h2 {
  color: var(--color-accent);
  text-align: left;
  font-size: 3.2em;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-carte #first-illustration-decors {
  width: 65%;
  position: absolute;
  right: 10px;
  top: 190px;
  z-index: 0;
}

.page-carte h3 {
  font-size: 1.5em;
  color: var(--color-primary);
  padding-bottom: 5px;
  margin-top: 35px;
  margin-bottom: 20px;
}

.page-carte .menu-container > .menu-section:first-of-type h3 {
  margin-top: 50px;
}
.page-carte h4 {
  color: var(--color-primary);
  font-size: 1.1em;
  margin-top: 25px;
  margin-bottom: 5px;
  font-weight: 600;
}
.page-carte .description {
  font-weight: 300;
  font-size: 0.7em;
}
.page-carte .menu-item {
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3px;
}
.page-carte .menu-item-name {
  font-weight: 400;
}
.page-carte .menu-item-price {
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 15px;
  letter-spacing: 1px;
  width: 85px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.page-carte .desc-inline {
  color: var(--color-primary);
  font-weight: 300;
  font-size: 0.9em;
  margin-left: 5px;
}
.page-carte .desc-block {
  font-weight: 300;
  color: var(--color-primary);
  display: block;
  font-size: 0.9em;
  margin-top: 2px;
  margin-bottom: 5px;
}
.page-carte .note {
  color: var(--color-primary);
  font-size: 1.3em;
  text-align: center;
  font-style: italic;
  margin-top: 20px;
  font-weight: 300;
  text-decoration: underline;
  line-height: 1.5;
}
.page-carte .coupe-alcoolisees {
  margin-right: 220px;
}
.page-carte .footer-notes {
  margin-top: 30px;
  margin-right: 220px;
  text-align: left;
  display: block;
}
.page-carte .footer-notes > p:last-child {
  margin-right: 210px;
}
.page-carte .footer-notes-description {
  margin-top: 5px;
  color: var(--color-primary);
  font-weight: 400;
  font-size: 0.9em;
  line-height: 1.5;
  font-style: italic;
}
.page-carte .footer-notes-item {
  font-size: 1.1em;
  font-weight: 400;
  color: var(--color-accent);
}
.page-carte .child-menu-box {
  position: relative;
  border: 3px solid var(--color-accent);
  border-radius: 30px;
  padding: 10px 20px;
  margin-top: 30px;
  margin-left: 70px;
  margin-bottom: 80px;
  text-align: left;
  display: block;
}
.page-carte .child-menu-box h3 {
  border: none;
  margin-top: 0;
  margin-bottom: 15px;
  padding: 0 10px;
  font-family: "Cloud Candy", sans-serif;
  font-size: 2.2em;
  color: var(--color-title);
  font-weight: normal;
}
.page-carte .child-menu-box ul.menu-list {
  padding: 0 10px;
}
.page-carte .child-menu-list {
  color: var(--color-primary);
  list-style: none;
  padding: 0 10px;
  margin-top: 15px;
  margin-bottom: 0;
}
.page-carte .svg-bg-wrapper {
  background-color: white;
  position: absolute;
  height: 110px;
  width: 30px;
  bottom: 10px;
  left: -20px;
}
.page-carte .kid-logo {
  position: absolute;
  height: 130px;
  left: -30px;
  bottom: 5px;
}
.page-carte #kid-menu-1,
.page-carte #kid-menu-2 {
  font-weight: 600;
}
.page-carte #second-illustration-decors {
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 450px;
  z-index: 0;
}
.page-carte .second-menu-header {
  position: relative;
}
.page-carte .second-menu-header h3 {
  position: relative;
  z-index: 1;
}
.page-carte #second-illustration-crepe {
  position: absolute;
  width: 110px;
  left: 280px;
  top: -30px;
  z-index: 0;
}

/* === MEDIA QUERIES === */
@media (max-width: 840px) {
  .page-carte #second-illustration-decors {
    width: 260px;
    right: 30px;
  }
  .page-carte .coupe-alcoolisees {
    margin-right: 0px;
  }
  .page-carte .footer-notes {
    margin-right: 140px;
  }
  .page-carte .footer-notes > p:last-child {
    margin-right: 120px;
  }
}

@media (max-width: 670px) {
  .page-carte .menu-header {
    margin-left: 60px;
  }
  .page-carte #first-illustration-crepe {
    width: 120px;
    left: -70px;
    top: -45px;
  }
  .page-carte h1 {
    font-size: 3em;
  }
  .page-carte h2 {
    font-size: 2.2em;
  }
  .page-carte #first-illustration-decors {
    top: 160px;
  }
  .page-carte .footer-notes {
    margin-right: 130px;
  }
  .page-carte .footer-notes > p:last-child {
    margin-right: 80px;
  }
}

@media (max-width: 600px) {
  .page-carte {
    padding: 12px 8px;
    font-size: 93%;
  }
  .page-carte .menu-container {
    padding: 20px 10px;
  }
  .page-carte .child-menu-box {
    padding: 14px 8px;
  }
  .page-carte .child-menu-box h3,
  .page-carte .child-menu-box ul.menu-list,
  .page-carte .child-menu-list {
    padding-left: 4px;
    padding-right: 4px;
  }
  .page-carte .menu-item {
    margin-top: 10px;
  }
  .page-carte .menu-item-name {
    flex: 1;
    min-width: 0;
  }
  .page-carte .menu-item-name .desc-inline {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    line-height: 1.1;
  }
  .page-carte .desc-block {
    margin-bottom: 10px;
    padding-right: 5rem;
    box-sizing: border-box;
  }
  .page-carte .child-menu-list li {
    margin-bottom: 8px;
  }
  .page-carte .child-menu-list li:last-child {
    margin-bottom: 0;
  }
  .page-carte #first-illustration-decors {
    top: 135px;
  }
  .page-carte .footer-notes {
    margin-right: 170px;
  }
  .page-carte .footer-notes > p:last-child {
    margin-right: 100px;
  }
  .page-carte #second-illustration-decors {
    right: 0px;
  }
  .page-carte .svg-bg-wrapper {
    bottom: 10px;
    left: -20px;
  }
  .page-carte .kid-logo {
    height: 130px;
    left: -45px;
    bottom: 5px;
  }
  .page-carte #second-illustration-crepe {
    width: 80px;
    left: 270px;
    top: -20px;
  }
}

@media (max-width: 490px) {
  .page-carte .footer-notes {
    margin-right: 0;
  }
  .page-carte .footer-notes-description {
    margin-right: 120px;
  }
  .page-carte .footer-notes > p:last-child {
    margin-right: 140px;
  }
  .page-carte #second-illustration-decors {
    bottom: -60px;
  }
  .page-carte .kid-logo {
    height: 70px;
    left: -15px;
  }
  .page-carte .child-menu-box {
    margin-left: 20px;
  }
  .page-carte .svg-bg-wrapper {
    height: 65px;
  }
}

@media (max-width: 440px) {
  .page-carte .menu-header {
    margin-left: 25px;
  }
  .page-carte #first-illustration-crepe {
    width: 80px;
    left: -45px;
    top: -25px;
    z-index: 0;
  }
  .page-carte h1 {
    z-index: 1;
    font-size: 2.5em;
  }
  .page-carte h2 {
    font-size: 1.7em;
  }
  .page-carte #first-illustration-decors {
    top: 120px;
    right: 5px;
  }
  .page-carte #second-illustration-crepe {
    width: 60px;
    left: 275px;
    top: -20px;
  }
}
