/* Café Françoise — styles partagés */

:root {
  --creme: #f5eee2;
  --orange: #d94405;
  --brun: #3b2418;
  --blanc: #ffffff;
  --filet: 1.5px solid var(--brun);
  --titre: 'Lilita One', sans-serif;
  --texte: 'Literata', Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--brun);
  font-family: var(--texte);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brun); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Titres ---------- */
.h-section {
  margin: 0;
  font: 400 clamp(38px, 6.5vw, 68px)/.95 var(--titre);
  color: var(--brun);
  text-transform: uppercase;
}
.h-bloc {
  margin: 0;
  font: 400 clamp(34px, 5vw, 54px)/1 var(--titre);
  color: var(--brun);
  text-transform: uppercase;
}

/* ---------- Boutons ---------- */
.btn {
  font: 400 20px var(--titre);
  letter-spacing: .02em;
  color: var(--creme);
  background: var(--orange);
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--brun); color: var(--creme); }

.btn--brun { background: var(--brun); font-size: 18px; padding: 13px 24px; }
.btn--brun:hover { background: var(--orange); }

.btn--contour {
  font-size: 18px;
  color: var(--brun);
  background: none;
  border: var(--filet);
  padding: 9px 18px;
  min-height: 44px;
}
.btn--contour:hover { background: none; color: var(--brun); }

/* ---------- Header (page mentions) ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--creme);
}
.header img { height: 40px; display: block; }
.header > a:first-child { padding: 2px 0; }

/* ---------- 01 Ouverture ---------- */
.hero {
  padding: 72px 20px 88px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px 64px;
  align-items: center;
}
.hero__texte { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { margin: 0; width: 100%; max-width: 560px; }
.hero h1 img { display: block; width: 100%; height: auto; }
.hero__accroche {
  margin: 32px 0 0;
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.5;
  max-width: 26em;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hero__actions p { margin: 0; font-size: 16px; line-height: 1.45; }
.hero__actions strong { font-weight: 700; }
.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- 02 Histoire ---------- */
.histoire {
  padding: 48px 20px 96px;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 56px 72px;
  align-items: center;
}
.polaroid-wrap { position: relative; max-width: 420px; width: 100%; justify-self: center; }
.polaroid {
  aspect-ratio: 4/5;
  width: 100%;
  transform: rotate(-2.5deg);
  background: var(--blanc);
  padding: 12px 12px 44px;
  box-shadow: 0 1px 2px rgba(59, 36, 24, .12);
}
.polaroid__photo {
  width: 100%;
  height: 100%;
  background: #e4ddd2;
  overflow: hidden;
}
.polaroid__photo picture { height: 100%; }
.polaroid__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.polaroid-wrap .mamie {
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 150px;
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.histoire__texte { max-width: 560px; }
.histoire__texte p { margin: 16px 0 0; font-size: 19px; line-height: 1.6; }
.histoire__texte p:first-of-type { margin-top: 24px; }

/* ---------- 03 La carte ---------- */
.carte { padding: 0 0 96px; }
.carte__intro {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
}
.carte__intro .h-section { max-width: 9em; }
.carte__intro p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 26em; }

.carrousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px 20px 8px max(20px, calc((100vw - 1120px) / 2));
  scroll-padding-left: max(20px, calc((100vw - 1120px) / 2));
  scrollbar-width: none;
}
.carrousel::-webkit-scrollbar { display: none; }
.carrousel::after { content: ''; flex: 0 0 12px; }

.plat { flex: 0 0 min(78vw, 330px); scroll-snap-align: start; }
.plat:nth-child(2) { margin-top: 56px; }
.plat:nth-child(3) { margin-top: 72px; }
.plat:nth-child(4) { margin-top: 24px; }
.plat img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
.plat__titre { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: baseline; }
.plat h3 { margin: 0; font: 400 26px/1 var(--titre); text-transform: uppercase; }
.plat__prix { font-size: 17px; white-space: nowrap; }
.plat p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }
.plat p.plat__qui { margin-top: 12px; }

.carte__cta {
  max-width: 1160px;
  margin: 32px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

/* ---------- 04 Instagram ---------- */
.insta { padding: 0 0 96px; max-width: 1160px; margin: 0 auto; }
.insta__intro {
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 40px;
}
.insta__pseudo {
  font: 400 clamp(40px, 8vw, 92px)/1 var(--titre);
  color: var(--orange);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.insta__intro p { margin: 0 0 8px; font-size: 18px; line-height: 1.55; max-width: 24em; }
.insta__grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 28px;
  padding: 0 clamp(0px, 1.5vw, 20px);
}
.insta__grille a { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; }
.insta__grille picture { height: 100%; }
.insta__grille img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.insta__grille a:hover img { opacity: .85; }
.insta__reel {
  position: absolute;
  top: 8px;
  right: 9px;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 0 6px rgba(0, 0, 0, .5);
}

/* ---------- 05 Avis ---------- */
.avis { padding: 0 20px 96px; max-width: 1160px; margin: 0 auto; }
.avis__intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; }
.avis__note { font-size: 18px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.etoiles { position: relative; display: inline-block; letter-spacing: 2px; color: rgba(59, 36, 24, .2); }
.etoiles span {
  position: absolute;
  left: 0;
  top: 0;
  width: 90%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--orange);
}
.avis__liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px 40px;
  margin-top: 36px;
}
.avis__liste figure { margin: 0; border-top: var(--filet); padding-top: 18px; }
.avis__liste blockquote { margin: 0; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.avis__liste figcaption { margin-top: 12px; font-size: 15px; }

.presse {
  margin: 80px 0 0 clamp(0px, 12vw, 200px);
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.presse blockquote {
  margin: 0;
  font: 400 clamp(30px, 4.6vw, 48px)/1.1 var(--titre);
  color: var(--orange);
  text-transform: uppercase;
  text-wrap: balance;
}
.presse figcaption { margin-top: 18px; font-size: 18px; line-height: 1.55; max-width: 32em; text-wrap: pretty; }
.presse__lecteur {
  margin-top: 24px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: var(--filet);
  background: var(--blanc);
}
.presse__lecteur iframe { display: block; border: 0; width: 100%; height: 144px; }

/* ---------- 06 Services ---------- */
.services { padding: 0 20px 112px; max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; }
.service {
  border-top: var(--filet);
  padding: 28px 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.service:last-child { border-bottom: var(--filet); }
.service__texte { flex: 1 1 320px; max-width: 560px; }
.service__texte p { margin: 14px 0 0; font-size: 18px; line-height: 1.55; }
.service__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 18px; }
.service__lien { display: inline-block; margin-top: 14px; font-size: 18px; font-weight: 700; }
.service picture { width: 100%; border-radius: 3px; overflow: hidden; }
.service picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service__img--privat { flex: 0 1 380px; max-width: 380px; aspect-ratio: 3/2; }
.service__img--traiteur { flex: 0 1 220px; max-width: 220px; aspect-ratio: 1/1; }
.service__img--cadeau { flex: 0 1 300px; max-width: 300px; aspect-ratio: 4/5; margin-top: -8px; }

.montants { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.montants button {
  font: 500 17px var(--texte);
  min-height: 44px;
  min-width: 64px;
  padding: 0 16px;
  border-radius: 999px;
  border: var(--filet);
  cursor: pointer;
  background: transparent;
  color: var(--brun);
}
.montants button[aria-pressed="true"] { background: var(--brun); color: var(--creme); }
.cadeau__acheter { margin-top: 16px; white-space: pre; }

/* ---------- 07 Pied de page ---------- */
.footer { background: var(--brun); color: var(--creme); padding: 56px 20px 110px; }
.footer a { color: var(--creme); }
.footer a:hover { color: var(--orange); }
.footer__inner { max-width: 1160px; margin: 0 auto; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 36px 48px;
}
.footer__col { font-size: 17px; line-height: 1.6; }
.footer__col p { margin: 14px 0 0; }
.footer__col p:first-child { margin-top: 0; }
.footer__col a { overflow-wrap: anywhere; }
.footer__reseaux { display: flex; gap: 18px; flex-wrap: wrap; }
.horaires { margin: 0; padding: 0; list-style: none; }
.horaires li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 300px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(245, 238, 226, .25);
}
.horaires li.today { font-weight: 700; }
.footer__logo { display: block; width: 100%; height: auto; max-width: 300px; margin: 40px 0 0; }
.footer__map { min-height: 440px; border-radius: 3px; overflow: hidden; }
.footer__map iframe { border: 0; width: 100%; height: 100%; min-height: 440px; display: block; }
.footer__bas { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; font-size: 15px; }
.lien-bouton {
  font: inherit;
  color: var(--creme);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.lien-bouton:hover { color: var(--orange); }

/* ---------- Bandeau cookies ---------- */
.cookies {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  justify-content: center;
}
.cookies[hidden] { display: none; }
.cookies__carte {
  width: 100%;
  max-width: 560px;
  background: var(--creme);
  color: var(--brun);
  border: var(--filet);
  border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow: 0 8px 28px rgba(59, 36, 24, .18);
}
.cookies__titre { margin: 0; font: 400 22px/1 var(--titre); text-transform: uppercase; color: var(--orange); }
.cookies__texte { margin: 10px 0 0; font-size: 16px; line-height: 1.5; }
.cookies__choix { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookies__choix button {
  flex: 1 1 140px;
  font: 400 18px var(--titre);
  letter-spacing: .02em;
  border-radius: 999px;
  min-height: 48px;
  cursor: pointer;
  border: 1.5px solid var(--orange);
  color: var(--creme);
  background: var(--orange);
}
.cookies__choix button:hover { background: var(--brun); border-color: var(--brun); }
.cookies__choix .cookies__refuser { color: var(--brun); background: transparent; border-color: var(--brun); }
.cookies__choix .cookies__refuser:hover { background: var(--brun); color: var(--creme); }

/* ---------- Barre de réservation fixe ---------- */
.barre {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.barre[hidden] { display: flex; opacity: 0; transform: translateY(16px); visibility: hidden; }
.barre__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  background: var(--brun);
  color: var(--creme);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  font-size: 15px;
  box-shadow: 0 6px 24px rgba(59, 36, 24, .22), 0 0 0 1px rgba(245, 238, 226, .22);
}
.barre .btn { font-size: 17px; padding: 0 20px; min-height: 44px; }
.barre .btn:hover { background: var(--orange); }

/* ---------- Mentions légales ---------- */
.mentions { max-width: 760px; margin: 0 auto; padding: 48px 20px 112px; }
.mentions h1 {
  margin: 0;
  font: 400 clamp(48px, 10vw, 96px)/.92 var(--titre);
  color: var(--orange);
  text-transform: uppercase;
}
.mentions section { margin-top: 48px; border-top: var(--filet); padding-top: 24px; }
.mentions section:first-of-type { margin-top: 56px; }
.mentions h2 { margin: 0; font: 400 clamp(28px, 4vw, 38px)/1 var(--titre); text-transform: uppercase; }
.mentions p { margin: 14px 0 0; font-size: 18px; line-height: 1.65; }
.mentions h2 + p { margin-top: 16px; }
.mentions dl {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 8px 24px;
  font-size: 17px;
  line-height: 1.5;
}
.mentions dt { font-weight: 700; }
.mentions dd { margin: 0; }
.mentions dd a { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .mentions dl { grid-template-columns: 1fr; gap: 0; }
  .mentions dd { margin-bottom: 10px; }
}
.mentions .maj { margin-top: 56px; font-size: 15px; }
.footer--page { padding: 32px 20px; }
.footer--page .footer__inner {
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
  justify-content: space-between;
}

/* ---------- Optimisations téléphone ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
a, button { -webkit-tap-highlight-color: rgba(217, 68, 5, .15); }

.barre, .cookies { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 700px) {
  /* Rythme vertical resserré */
  .hero { padding: 40px 20px 56px; gap: 32px; }
  .histoire { padding: 16px 20px 72px; gap: 64px; }
  .carte, .insta { padding-bottom: 72px; }
  .avis { padding-bottom: 72px; }
  .services { padding-bottom: 72px; }
  .footer { padding-top: 48px; }

  /* Illustration « mamie » : rentrée dans l'écran */
  .polaroid-wrap { max-width: 340px; }
  .polaroid-wrap .mamie { right: -6px; bottom: -34px; width: 120px; }

  /* Carrousel : décalages verticaux atténués */
  .carrousel { padding-top: 28px; gap: 16px; }
  .plat:nth-child(2) { margin-top: 28px; }
  .plat:nth-child(3) { margin-top: 40px; }
  .plat:nth-child(4) { margin-top: 12px; }
  .plat h3 { font-size: 24px; }

  /* Citation France Inter centrée */
  .presse { margin: 64px auto 0; }

  /* Services : photo sous le texte, pleine largeur */
  .service { padding: 24px 0 32px; }
  .service > picture { flex-basis: 100%; max-width: 100%; margin-top: 4px; }
  .service__img--privat { aspect-ratio: 3/2; }
  .service__img--traiteur { aspect-ratio: 3/2; }
  .service__img--cadeau { aspect-ratio: 4/3; margin-top: 4px; }

  /* Zones tactiles d'au moins 44px */
  .avis__note, .service__lien { min-height: 44px; align-items: center; }
  .service__lien { display: inline-flex; margin-top: 6px; }
  .footer__col a, .footer__bas a, .lien-bouton { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__col p { margin-top: 6px; }
  .footer__reseaux { gap: 0 24px; }
  .horaires li { max-width: none; padding: 8px 0; }
  .footer__logo { max-width: 220px; margin-top: 32px; }
  .footer__map, .footer__map iframe { min-height: 300px; }
  .footer__bas { margin-top: 24px; gap: 0 20px; align-items: center; }
  .footer--page a, .mentions dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer--page .footer__inner { align-items: center; }
}
