/* Dolce Vita By Brunchy — feuille de styles, étapes B5-B6 (design mobile d'abord, en-tête, carrousel, effets). */

/* Polices : Aileron (CC0 1.0) et Termes DV, dérivée de TeX Gyre Termes (GUST Font License). Licences : ../fonts/licenses/ */
@font-face {
  font-family: "Aileron";
  src: url("../fonts/aileron-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aileron";
  src: url("../fonts/aileron-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Termes DV";
  src: url("../fonts/termes-dv-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #b83b24;
  --navy: #262f82;
  --blue: #3643b9;
  --yellow: #f1d681;
  --cream: #efeadd;
  --beige: #c29f81;
  --gold: #896c2f;
  --ink: #222222;
  --font-sans: "Aileron", "Helvetica Neue", Arial, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-serif: "Termes DV", "Times New Roman", Times, serif;
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: blur(18px) saturate(160%);
  --glass-shadow: 0 10px 30px rgba(38, 47, 130, 0.1), 0 1px 2px rgba(38, 47, 130, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  --radius-l: 28px;
  --radius-m: 20px;
  --pill: 999px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4rem;
  --focus: 3px solid var(--blue);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Fond rayé façon store italien : couche fixe, compatible iOS (pas de background-attachment: fixed). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='256' viewBox='0 0 64 256'%3E%3Cpath d='M5 0C9 42.7 9 85.3 5 128S1 213.3 5 256H27C31 213.3 31 170.7 27 128S23 42.7 27 0Z' fill='%23F1D681' fill-opacity='.6'/%3E%3Cpath d='M41 0C38 42.7 38 85.3 41 128S44 213.3 41 256H52C55 213.3 55 170.7 52 128S49 42.7 52 0Z' fill='%23F1D681' fill-opacity='.28'/%3E%3C/svg%3E");
  background-size: 64px 256px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  left: 50%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--pill);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -200%);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* En-tête collant : petit logo, rubriques, langue. Fond verre et logo visibles après le grand logo (main.js). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: env(safe-area-inset-top) var(--gutter) 0;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 247, 240, 0.8);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(38, 47, 130, 0.1);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: opacity 0.3s ease;
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 1280px;
  min-height: var(--header-h);
  margin: 0 auto;
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
  margin-right: auto;
  border-radius: 10px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-header__logo img {
  width: auto;
  height: 44px;
}

.js .site-header:not(.is-scrolled):not(.is-open)::before {
  opacity: 0;
}

.js .site-header:not(.is-scrolled) .site-header__logo {
  opacity: 0;
  visibility: hidden;
}

.lang-switch,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: var(--pill);
  color: var(--navy);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.js .nav-toggle {
  display: inline-flex;
}

.nav-toggle__icon {
  width: 20px;
  height: 20px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open,
.nav-toggle[aria-expanded="false"] .nav-toggle__icon--close {
  display: none;
}

/* Rubriques : panneau déroulant sur mobile et tablette (tout est visible d'un coup). */
.menu-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
}

.menu-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(38, 47, 130, 0.12);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-nav__link:hover {
  background: #fff;
}

.menu-nav__link:focus-visible {
  outline-offset: -3px;
}

.menu-nav__link[aria-current="true"] {
  background: var(--navy);
  color: #fff;
}

.menu-nav {
  order: 3;
  flex: 1 0 100%;
  min-width: 0;
  padding: 0.5rem 0;
}

html:not(.js) .site-header__bar {
  flex-wrap: wrap;
}

html:not(.js) .menu-nav__list {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
}

html:not(.js) .menu-nav__list li {
  flex: 0 0 auto;
}

.js .menu-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(100%, 560px);
  max-height: calc(100vh - var(--header-h) - 2rem);
  padding: 0.75rem;
  border-radius: var(--radius-l);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.js .site-header .menu-nav {
  background: rgba(250, 247, 240, 0.9);
}

.js .site-header.is-open .menu-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Accueil */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 2rem;
  text-align: center;
}

.brand__logo {
  width: clamp(190px, 56vw, 300px);
}

.emblem {
  width: min(64vw, 340px);
  filter: drop-shadow(0 14px 24px rgba(38, 47, 130, 0.16));
}

.tagline {
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0.5rem;
  border-radius: var(--radius-l);
}

/* Photo du haut affichée en entier, sans recadrage. */
.hero__img {
  width: 100%;
  border-radius: calc(var(--radius-l) - 0.5rem);
}

/* Menu */
.menu {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 2rem;
}

.menu__title,
.menu-section__title,
.gallery__title,
.reviews__title,
.info__title {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  color: var(--red);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.menu__title,
.gallery__title,
.reviews__title,
.info__title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
}

.menu-section {
  margin-bottom: 1.25rem;
  padding: 1.5rem clamp(1.125rem, 5vw, 2.25rem) 1.25rem;
  border-radius: var(--radius-l);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.menu-section__title {
  margin-bottom: 1rem;
  font-size: clamp(1.375rem, 6vw, 2rem);
}

.menu-section__note {
  margin: -0.25rem 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  text-align: center;
}

.menu-item {
  padding: 0.875rem 0;
  border-top: 1px solid rgba(194, 159, 129, 0.45);
}

.menu-item:first-child {
  border-top: 0;
}

.menu-item__line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.menu-item__line::after {
  content: "";
  order: 1;
  flex: 1 1 1rem;
  min-width: 1rem;
  border-bottom: 2px dotted rgba(194, 159, 129, 0.8);
}

.menu-item__name {
  flex: 0 1 auto;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-item__price {
  color: var(--gold);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.menu-item__line .menu-item__price {
  order: 2;
}

.menu-item__desc,
.menu-item__extra {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.menu-item__extra {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 0.5rem;
  font-style: italic;
}

.menu-item__extra .menu-item__price {
  font-style: normal;
}

.menu__note {
  margin: 0.5rem 0 0;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

/* Galerie */
.gallery,
.reviews,
.info {
  margin-top: clamp(3rem, 10vw, 5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Galerie en carrousel : glisser au doigt, flèches (main.js), aimantation photo par photo. */
.gallery__list {
  display: flex;
  gap: 0.75rem;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0.25rem var(--gutter) 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery__list::-webkit-scrollbar {
  display: none;
}

.gallery__list:focus-visible {
  outline-offset: -3px;
}

.gallery__item {
  flex: 0 0 min(82%, 380px);
  scroll-snap-align: start;
}

.carousel__controls {
  display: none;
  justify-content: center;
  gap: 0.75rem;
}

.js .carousel__controls {
  display: flex;
}

.carousel__btn,
.to-top {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
}

.carousel__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.carousel__icon,
.to-top__icon {
  width: 22px;
  height: 22px;
}

.gallery__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: 0 10px 24px rgba(38, 47, 130, 0.14);
  user-select: none;
}

/* Avis */
.reviews__list {
  display: grid;
  gap: 1rem;
}

.review {
  padding: 1.5rem;
  border-radius: var(--radius-l);
}

.review__figure {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.review__quote::before {
  content: "\201C";
  display: block;
  height: 2.25rem;
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
}

.review__meta {
  margin-top: auto;
  color: var(--navy);
  font-size: 0.875rem;
}

.review__author {
  font-weight: 700;
}

/* Infos pratiques */
.info {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 2rem clamp(1.25rem, 5vw, 2.5rem);
  border-radius: var(--radius-l);
}

.info__list {
  display: grid;
  gap: 1.25rem;
}

.info__row dt {
  margin-bottom: 0.125rem;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info__row dd a {
  font-weight: 700;
}

.info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  flex: 1 1 14rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: var(--red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(184, 59, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button--ghost {
  color: var(--navy);
}

.button:hover {
  transform: translateY(-1px);
}

/* Pied de page */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem var(--gutter) calc(6.5rem + env(safe-area-inset-bottom));
  color: var(--navy);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer__credit {
  margin-top: 0.375rem;
}

.site-footer__credit a {
  color: inherit;
}

/* Bouton d'appel flottant */
.call-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0.875rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--pill);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(184, 59, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.call-fab__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bouton haut de page, au-dessus du bouton d'appel ; apparaît après un écran (main.js). */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.25rem);
  z-index: 30;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.js .to-top:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
}

/* Effet au défilement : apparition douce des blocs (main.js), désactivé si mouvement réduit. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Liquid Glass : verre dépoli, reflet en haut, ombre douce (placé après les composants pour primer). */
.lang-switch,
.nav-toggle,
.js .menu-nav,
.menu-section,
.review,
.info,
.button--ghost,
.carousel__btn,
.to-top,
.hero {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lang-switch,
  .nav-toggle,
  .js .menu-nav,
  .menu-section,
  .review,
  .info,
  .button--ghost,
  .carousel__btn,
  .to-top,
  .hero {
    background: var(--glass-bg-strong);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lang-switch,
  .nav-toggle,
  .js .menu-nav,
  .menu-section,
  .review,
  .info,
  .button--ghost,
  .carousel__btn,
  .to-top,
  .hero {
    background: #fbf8f1;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Tablette et ordinateur */
@media (min-width: 768px) {
  .reviews__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3rem;
  }

  main > * {
    grid-column: 1 / -1;
  }

  .intro {
    grid-column: 1;
    align-self: center;
    padding: 0;
  }

  .hero {
    grid-column: 2;
    margin-top: 1rem;
  }

  .intro {
    gap: 1.25rem;
  }
}

/* Grand écran : rubriques affichées en ligne dans l'en-tête. */
@media (min-width: 1360px) {
  .js .nav-toggle {
    display: none;
  }

  .menu-nav,
  .js .menu-nav {
    position: static;
    order: 0;
    flex: 0 1 auto;
    width: auto;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .menu-nav__list,
  html:not(.js) .menu-nav__list {
    flex-wrap: nowrap;
    gap: 0.125rem;
    padding: 0.25rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--pill);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
  }

  .menu-nav__link {
    padding-inline: 0.7rem;
    border: 0;
    background: none;
    font-size: 0.75rem;
  }
}

/* Contraste élevé (Windows) */
@media (forced-colors: active) {
  .lang-switch,
  .nav-toggle,
  .menu-nav__list,
  .menu-section,
  .review,
  .info,
  .button,
  .carousel__btn,
  .to-top,
  .call-fab {
    border: 1px solid CanvasText;
  }
}

/* Impression */
@media print {
  body::before,
  .site-header,
  .carousel__controls,
  .to-top,
  .call-fab,
  .skip-link {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .menu-section,
  .review,
  .info,
  .hero {
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    break-inside: avoid;
  }
}

/* Étape B7 — chute de citrons à l'arrivée (main.js) : une fois par visite, moins de 5 s, derrière le contenu. */
.lemon-rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.lemon {
  position: absolute;
  top: -120px;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.7, 0.95);
  animation-fill-mode: both;
  will-change: transform;
}

@keyframes lemon-fall-left {
  to {
    transform: translate3d(-48px, calc(100vh + 240px), 0) rotate(-220deg);
  }
}

@keyframes lemon-fall-right {
  to {
    transform: translate3d(48px, calc(100vh + 240px), 0) rotate(220deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lemon-rain {
    display: none;
  }
}

@media print {
  .lemon-rain {
    display: none;
  }
}
