/*
 * creperie.css — sections propres à la page Crêperie (page-creperie.php).
 * Regroupe : Bannière, Heures d'ouverture, Essence & histoire, Le Menu,
 * Une table vous attend. La navigation et le footer sont dans global.css.
 * Toutes les positions de décors sont reprises à l'identique de crepe.html.
 */

/* La bannière de page (.page-banner-*) est partagée avec la page Produits :
   elle vit désormais dans global.css. */

/* ===== HEURES D'OUVERTURE ===== */


.hours-section {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(2.5rem, 4.5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  background-color: var(--color-base);
}
.hours-card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 30rem;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 1.6vw, 1.1rem);
  text-align: center;
  color: var(--color-ink);
}
.hours-eyebrow {
  margin: 0;
  color: rgba(17, 47, 31, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hours-card-title {
  margin: 0 0 clamp(0.5rem, 1.5vw, 0.75rem);
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
}
.hours-grid {
  display: flex;
  width: 100%;
  flex-direction: column;
}
.hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(0.85rem, 1.8vw, 1.15rem) 0;
  border-top: 1px solid rgba(17, 47, 31, 0.14);
}
.hours-row:last-child {
  border-bottom: 1px solid rgba(17, 47, 31, 0.14);
}
.hours-day {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
}
.hours-time {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.hours-card-period {
  margin: clamp(0.5rem, 1.5vw, 0.85rem) 0 0;
  color: rgba(17, 47, 31, 0.55);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .hours-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Décor fleur qui déborde du bord droit de l'écran, à hauteur de la carte
   "Heures d'ouverture" (miroir horizontal du décor fleur de la section
   Crêperie sur accueil.html). Masqué en mobile/tablette. */
.fleur-decor-hours {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0;
  z-index: 20;
  pointer-events: none;
}
@media (min-width: 850px) {
  .fleur-decor-hours { display: block; }
}
.fleur-decor-hours-img {
  position: absolute;
  right: 0;
  top: 50%;
  width: clamp(40rem, 15vw, 40rem);
  height: clamp(40rem, 15vw, 40rem);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  transform: translate(45%, -50%) scaleX(-1) rotate(35deg);
}
@media (min-width: 850px) and (max-width: 1049.98px) {
  .fleur-decor-hours-img {
    width: 22rem;
    height: 22rem;
    transform: translate(48%, -50%) scaleX(-1) rotate(35deg);
  }
}

/* ===== ESSENCE + 10 ANS D'HISTOIRE ===== */


.essence-section {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 4vw, 3rem);
  background-color: var(--color-base);
}
.essence-decor-crepe {
  position: absolute;
  top: -6rem;
  left: -8rem;
  z-index: 0;
  width: clamp(26rem, 44vw, 40rem);
  height: clamp(26rem, 44vw, 40rem);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(12deg);
  pointer-events: none;
  user-select: none;
  display: none;
}
.essence-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1400px);
  margin-inline: auto;
}
.essence-copy {
  display: flex;
  width: min(100%, 46rem);
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.essence-heading {
  position: relative;
  display: inline-block;
}
.essence-title {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(3.25rem, 7vw, 5.5rem);
  line-height: 0.92;
  text-wrap: balance;
}
.essence-text {
  max-width: 34rem;
  margin: 0;
  color: rgba(17, 47, 31, 0.78);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  text-wrap: pretty;
}
.essence-history {
  max-width: 34rem;
  margin: 0;
  color: rgba(17, 47, 31, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 300;
  line-height: 1.65;
  text-wrap: pretty;
}
@media (min-width: 1050px) {
  .essence-decor-crepe { display: block; }
}

.essence-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  width: min(100%, 1400px);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.essence-feature {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(0.25rem, 0.35vw, 0.375rem) clamp(0.25rem, 0.35vw, 0.375rem) 0;
  background-color: var(--color-cream);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
}
.essence-feature-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.essence-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.essence-feature h3 {
  margin: 0;
  padding: 0.85rem 0.5rem 1rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}
@media (min-width: 768px) {
  .essence-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== LE MENU ===== */


.menu-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  background-color: var(--color-base);
}
.menu-decor-table {
  position: absolute;
  bottom: clamp(-15rem, -22vw, -11rem);
  left: -4rem;
  z-index: 0;
  width: clamp(24rem, 40vw, 36rem);
  height: clamp(24rem, 40vw, 36rem);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(-10deg);
  pointer-events: none;
  user-select: none;
  display: none;
}
@media (min-width: 800px) {
  .menu-decor-table { display: block; }
}
.menu-decor-tarte {
  position: absolute;
  top: -3rem;
  right: 4rem;
  z-index: 0;
  width: clamp(19rem, 30vw, 25rem);
  height: clamp(19rem, 30vw, 25rem);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(10deg);
  pointer-events: none;
  user-select: none;
  display: none;
}
@media (min-width: 800px) {
  .menu-decor-tarte { display: block; }
}
.menu-header {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 1400px);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.menu-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 0.95;
}
.menu-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 1400px);
  margin-inline: auto;
  overflow: hidden;
}
.menu-visual-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.menu-visual-frame {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 26rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}
@media (min-width: 800px) {
  .menu-visual-track {
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
  .menu-visual-frame { max-width: 22rem; }
}
@media (max-width: 799px) {
  .menu-visual {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .menu-visual::-webkit-scrollbar { display: none; }
  .menu-visual-track {
    justify-content: flex-start;
    gap: 1rem;
    padding-inline: 1.5rem;
  }
  .menu-visual-frame {
    flex-basis: 78vw;
    max-width: 20rem;
    scroll-snap-align: center;
  }
}
.menu-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .menu-visual-frame:hover img { transform: scale(1.015); }
}
.menu-visual-frame:focus-visible img { transform: scale(1.015); }
.menu-visual-frame:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}
.menu-lightbox {
  width: min(92vw, 40rem);
  max-width: 92vw;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  background: transparent;
  border: 0;
}
.menu-lightbox::backdrop {
  background: rgb(17 47 31 / 90%);
}
.menu-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 10px;
}
.menu-lightbox-close {
  position: fixed;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  background: var(--color-base);
  color: var(--color-ink);
  border: 0;
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.menu-lightbox-close:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
.menu-action {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 1400px);
  margin: clamp(2rem, 4vw, 2.5rem) auto 0;
  justify-content: center;
}

/* ===== UNE TABLE VOUS ATTEND ===== */


.reserve-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-ink);
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  text-decoration: none;
}
.reserve-phone svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  color: var(--color-accent);
}
.gallery-section {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 4vw, 3rem);
  background-color: var(--color-base);
}
.gallery-header {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 46rem);
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}
.gallery-title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-title);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.9;
  text-wrap: balance;
}
.gallery-text {
  max-width: 34rem;
  margin: 0;
  color: rgba(17, 47, 31, 0.78);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.65;
  text-wrap: pretty;
}
.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.gallery-grid-viewport {
  width: 100%;
  margin-top: clamp(4rem, 6vw, 6rem);
  overflow: hidden;
}
.gallery-grid-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: clamp(1rem, 2vw, 2rem);
  padding-inline: max(1.5rem, calc((100vw - 1400px) / 2 + 3rem));
}
.gallery-item {
  box-sizing: border-box;
  margin: 0;
  flex: 0 0 clamp(18rem, 34vw, 32rem);
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  .gallery-grid-viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-grid-viewport::-webkit-scrollbar { display: none; }
  .gallery-grid-track { gap: 1rem; padding-inline: 1.5rem; }
  .gallery-item { flex-basis: 78vw; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid-viewport { overflow-x: auto; }
  .gallery-grid-track { transform: none !important; }
}
