/* =========================================================
   Chez Tata — bistrot de quartier
   ---------------------------------------------------------
   FONTS — fichiers réels dans assets/fonts/ (woff2, compressés) :
     • Borough Grotesk Regular   → titres
     • Mistral                   → script
     • HW Animo (R500/600/700/800) → labels, mappés sur font-weight
     • Archivo (Google)          → corps de texte
   ========================================================= */

@font-face {
  font-family: "Borough Grotesk";
  src: url("assets/fonts/BoroughGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Mistral";
  src: url("assets/fonts/MISTRAL.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "HW Animo";
  src: url("assets/fonts/HWAnimoTRIAL-R500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "HW Animo";
  src: url("assets/fonts/HWAnimoTRIAL-R600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "HW Animo";
  src: url("assets/fonts/HWAnimoTRIAL-R700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* palette */
  --blue:        #80cee9;
  --blue-tile:   #70c7e6;
  --teal:        #0083b3;
  --cream:       #f4efc9;
  --yellow:      #f2f2a1;
  --yellow-soft: #f3edc2;
  --red:         #fe1103;
  --navy:        #0c1638;
  --navy-2:      #19284b;
  --cyan-shadow: #33b5d9;

  /* type — la vraie police d'abord (via @font-face local/fichier),
     puis une Google Font solide en secours pour les machines qui ne l'ont pas. */
  --font-script:  "Mistral", "Caveat", cursive;
  --font-display: "Borough Grotesk", "Anton", system-ui, sans-serif;
  --font-label:   "HW Animo", "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, sans-serif;

  --maxw: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--blue);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; }

/* paper grain — rendu via ::before plutôt qu'un <div> :
   un pseudo-élément n'est pas un nœud du DOM, donc il n'est pas
   retenu comme élément LCP (le LCP retombe sur le titre = texte).
   Rendu strictement identique (inset:0, même blend, même empilement). */
.hero::before,
.story::before,
.infos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/paper.webp");
  background-size: 158px 158px;
  background-position: top left;
  mix-blend-mode: color-burn;
  pointer-events: none;
  z-index: 0;
}

/* ---------- shared buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  color: var(--yellow);
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
/* zone de hover fixe : un peu plus grande que le bouton. Au hover, on lui
   applique le transform INVERSE du bouton pour qu'elle reste exactement à sa
   place pendant que le bouton se soulève → la souris ne sort jamais de la zone,
   donc plus de flicker hover/dehover. */
.btn::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }   /* effet pancarte */
.btn:hover::after { transform: rotate(1deg) translateY(2px); }   /* annule le transform du bouton */
.btn--red  { background: var(--red); box-shadow: 0 4px 0 rgba(12,22,56,.25); }
.btn--navy { background: var(--navy); box-shadow: 0 4px 0 rgba(12,22,56,.25); }
/* hover : on inverse texte / fond */
.btn--red:hover   { background: var(--yellow); color: var(--red); }
.btn--navy:hover  { background: var(--yellow); color: var(--navy); }
.btn--cream:hover { background: var(--navy);   color: #f1eab9; }
.btn--cream {
  background: #f1eab9;
  color: var(--navy);
  box-shadow: 0 4px 0 rgba(12,22,56,.25);   /* même ombre que le CTA */
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 26px;          /* = .btn__pre du CTA → même hauteur de texte */
  letter-spacing: 1.8px;
}
.btn__pre {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 2.2px;
}
.btn__script {
  font-family: var(--font-script);
  font-size: 34px;
  line-height: 26px;        /* cale la hauteur de ligne sur le texte du secondary (26px desktop) */
}

/* hero buttons — single centered CTA on desktop, stacked pair on mobile */
.hero__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.hero__menu-btn { display: inline-flex; }

.tag {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 2.4px;
  color: var(--navy);
  margin: 0;
  text-transform: uppercase;
}

/* =========================================================
   LOGO (bead strips + word)
   ========================================================= */
.logo {
  position: relative;
  display: block;
  width: 384px;
  height: 42px;
}
.logo__beads { position: absolute; top: 0; height: 42px; width: 182px; }
.logo__beads--left  { left: 0; }
.logo__beads--right { left: 202px; }
.logo__word {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 159px;
  height: 26px;
  z-index: 1;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--blue);
  height: 90dvh;
  min-height: fit-content;
  padding: 60px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 140px;
  overflow: hidden;
}

.header { display: flex; justify-content: center; width: 100%; }

.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 90px;
  line-height: 76px;
  letter-spacing: -5.4px;
  text-shadow: 3px 6px 0 var(--navy-2);
}
.hero__address {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 2.4px;
  color: var(--navy);
  text-transform: uppercase;
}

/* ---- hero decorations ---- */
.deco { position: absolute; z-index: 2; }

.deco-note {
  left: 23px; top: 234px;
  width: 180px; height: 105px;
  transform: rotate(-12.92deg);
  filter: drop-shadow(0 2px 1px rgba(25,40,75,.3));
  display: grid; place-items: center;
}
.deco-note__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.deco-note__text {
  position: relative;
  font-family: var(--font-script);
  font-size: 32px;
  color: var(--navy);
}

.deco-de {
  left: -90px; top: 92px;
  width: 216px; height: 216px;
}
.deco-de__svg { display: block; width: 100%; height: 100%; }
.deco-de__text {
  font-family: var(--font-label);
  font-weight: 500;
  text-transform: uppercase;
}

.deco-stars {
  right: 62px; top: 198px;
  width: 144px; height: auto;
  aspect-ratio: 148 / 123;
}
.deco-stars__svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---- scratch ticket ---- */
.ticket {
  position: absolute;
  right: 40px; top: 615px;
  z-index: 2;
  transform: rotate(8deg);
}
.ticket__card {
  position: relative;
  width: 315px; height: 314px;
  background: var(--blue-tile);
  background-image: url("assets/paper2.webp");
  background-size: 235px 235px;
  background-blend-mode: multiply;
  box-shadow: 0 0 0 6px #fff, 0 14px 24px rgba(12,22,56,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
}
.ticket__event {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 2.52px;
  color: var(--navy);
  text-transform: uppercase;
}
.ticket__title {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 42px;
  color: var(--red);
  margin-top: 22px;
}
.ticket__scratch {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  width: 240px; height: 76px;
  background: var(--teal);
  border: 3px solid rgba(12,22,56,.2);
  border-radius: 2px;
  display: grid; place-items: center;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 31px;
  color: var(--yellow-soft);
}
.ticket__arrow {
  position: absolute;
  right: -6px; bottom: -28px;
  width: 70px;
  transform: rotate(-82deg);
}

/* =========================================================
   MARQUEE BANDEAU
   ========================================================= */
.bandeau {
  background: var(--navy);
  color: var(--yellow-soft);
  overflow: hidden;
  padding: 18px 0;
}
.bandeau__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}
.bandeau__item { display: inline-flex; align-items: center; gap: 40px; }
.bandeau__small {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.bandeau__big {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 60px;
  letter-spacing: -2.4px;
  text-shadow: 3px 3px 0 var(--cyan-shadow);
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bandeau__track { animation: none; }
}

/* =========================================================
   STORY (Chez tata)
   ========================================================= */
.story {
  position: relative;
  background: var(--cream);
  padding: 120px 20px 180px;
  overflow: hidden;
}
.story__inner {
  position: relative;
  z-index: 1;
  max-width: 1078px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* polaroid stack */
.polas {
  position: relative;
  flex: 0 0 420px;
  height: 550px;
}
.pola {
  position: absolute;
  top: 50%; left: 50%;
  margin: 0;
  width: 316px;
  background: #fff;
  padding: 16px 16px 60px;
  box-shadow: 0 14px 30px rgba(12,22,56,.22);
}
.pola img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.pola--1 { transform: translate(-50%,-50%) rotate(-4deg);  z-index: 4; }
.pola--2 { transform: translate(-58%,-54%) rotate(8deg);   z-index: 3; }
.pola--3 { transform: translate(-46%,-48%) rotate(-1deg);  z-index: 2; }
.pola--4 { transform: translate(-52%,-44%) rotate(-9deg);  z-index: 1; }

.story__text {
  flex: 0 0 550px;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.story__script {
  margin: 0;
  font-family: var(--font-script);
  font-size: 64px;
  color: var(--navy);
}
.story__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 80px;
  line-height: 62px;
  letter-spacing: -6.4px;
  color: var(--navy);
}
.story__body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: var(--navy);
  max-width: 480px;
}
.story__body p { margin: 0 0 20px; }
.story__body p:last-child { margin-bottom: 0; }
.story__text .btn { align-self: flex-start; }

/* blue picket fence at bottom of cream section */
.picket {
  position: absolute;
  left: 0; bottom: -88px;
  width: 100%;
  height: 160px;
  z-index: 1;
  background-image: repeating-linear-gradient(
    to right,
    var(--blue) 0, var(--blue) 8px,
    transparent 8px, transparent 24px
  );
}

/* =========================================================
   INFOS
   ========================================================= */
.infos {
  position: relative;
  background: var(--blue);
  padding: 100px 20px;
  overflow: hidden;
}
.infos__inner {
  position: relative;
  z-index: 1;
  max-width: 1148px;
  margin: 0 auto;
  display: flex;
  gap: 100px;
  flex-wrap: wrap;
}
.info { flex: 1 1 280px; }
.info__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 40px;
  letter-spacing: -2.4px;
  color: var(--yellow);
  text-shadow: 2px 4px 0 var(--navy);
}
.info__lines {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 2.2px;
  line-height: 1.4;
  color: var(--navy);
  text-transform: uppercase;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy);
  color: var(--yellow-soft);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.footer__row {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__cta { display: flex; gap: 16px; }
.pill {
  position: relative;
  background: var(--yellow);
  color: var(--red);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 1000px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform .15s ease;
}
.pill::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  transition: transform .15s ease;
}
.pill:hover { transform: translateY(-2px) rotate(-2deg); background: var(--red); color: var(--yellow); }
.pill:hover::after { transform: rotate(2deg) translateY(2px); }   /* annule le transform de la pill */
.footer__address {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 2.4px;
  color: #fff;
  text-transform: uppercase;
}

/* Liens dans les infos (adresse, contact) : héritent du texte, soulignés au survol */
.map-link,
.info__lines a {
  color: inherit;
  text-decoration: none;
  transition: text-decoration-color 0.15s ease;
}
.map-link:hover,
.map-link:focus-visible,
.info__lines a:hover,
.info__lines a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hero__title { font-size: 64px; line-height: 56px; }
  .story__inner { flex-direction: column; }
  .story__text { flex-basis: auto; align-items: center; text-align: center; }
  .story__text .btn { align-self: center; }
  .story__body { text-align: left; }
  .story__title { font-size: 60px; line-height: 50px; }
  .polas { margin: 0 auto; }
}

/* ---------- MOBILE (maquette 420px) ---------- */
@media (max-width: 640px) {
  /* ---- hero ---- */
  .hero { padding: 60px 20px 160px; gap: 110px; }
  .logo { transform: scale(.8); }

  .hero__inner { align-items: stretch; gap: 40px; }
  .hero__intro { gap: 24px; }
  .hero__title { font-size: 42px; line-height: 38px; letter-spacing: -2.52px; }
  .hero__title br { display: none; }            /* laisse le titre couler */
  .hero__address { width: 100%; }

  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn__pre { font-size: 18px; letter-spacing: 2.6px; }
  .hero__actions .btn__script { font-size: 26px; line-height: 18px; }   /* cale sur le secondary (18px mobile) */
  .hero__menu-btn { font-size: 18px; }                                  /* secondary = .btn__pre mobile → même hauteur */

  /* décorations réduites + repositionnées */
  .deco-de   { left: -40px; top: 72px; width: 108px; height: 108px; }
  .deco-note { left: 4px; top: 138px; width: 90px; height: 52px; }
  .deco-note__text { font-size: 16px; }
  .deco-stars { right: -1px; top: 126px; width: 90px; }
  .ticket { right: -28px; top: 560px; transform: scale(.6) rotate(8deg); transform-origin: top right; }

  /* ---- bandeau ---- */
  .bandeau__track { gap: 24px; }
  .bandeau__item { gap: 16px; }
  .bandeau__big { font-size: 44px; letter-spacing: -1.76px; }
  .bandeau__small { font-size: 16px; letter-spacing: 1.6px; }

  /* ---- story ---- */
  .story { padding: 64px 20px 128px; gap: 64px; }
  .story__inner { flex-direction: column; align-items: flex-start; gap: 64px; }
  .story__text { flex-basis: auto; align-items: flex-start; text-align: left; gap: 24px; }
  .story__text .btn { align-self: flex-start; }
  .story__script { font-size: 64px; }
  .story__title { font-size: 50px; line-height: 52px; letter-spacing: -3.5px; }
  .story__body { font-size: 18px; max-width: none; }
  .polas { flex-basis: auto; margin: 0 auto; transform: scale(.84); transform-origin: top center; }

  /* ---- infos ---- */
  .infos { padding: 80px 20px; }
  .infos__inner { flex-direction: column; gap: 64px; align-items: flex-start; }
  .info { flex: none; width: 100%; }
  .info__title { font-size: 40px; }

  /* ---- footer ---- */
  .footer { padding: 60px 20px; }
  .footer__row { flex-direction: column; gap: 40px; }
}
  
