/* ============================================================
   Le café — Gràcies · Gracias · Merci
   Single page d'adieu — static, no framework
   ============================================================ */

:root {
  --cream: #f7f1e8;
  --cream-2: #efe6d6;
  --cocoa: #2e1e15;
  --cocoa-soft: #4a382b;
  --terracotta: #c87a5b;
  --terracotta-dark: #a85f43;
  --gold: #c9a96e;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --lecafe-blue: #1a72b8;

  --shadow-soft: 0 8px 32px rgba(58, 42, 34, .08);
  --shadow-card: 0 4px 24px rgba(58, 42, 34, .06), 0 1px 3px rgba(58, 42, 34, .04);
  --radius: 14px;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  'Lato', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { color: var(--cocoa); }

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

/* ============================================================
   Language switcher
   ============================================================ */
.lang-switch {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 100;
  display: flex;
  gap: 4px;
  background: rgba(247, 241, 232, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, .2);
}
.lang-switch button {
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cocoa-soft);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--cocoa); }
.lang-switch button.is-active {
  background: var(--cocoa);
  color: var(--cream);
}

/* ============================================================
   HERO — Plein écran, empilement aléatoire de photos / vidéos
   "photos jetées" : rotation -30 à +30°, position aléatoire,
   taille ~1/5 de la surface, fond noir, fond polaroid blanc
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #fff;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
}

/* Pile container : tous les drops sont ses enfants en position absolute */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/*
   Wrapper "slot" : juste un point dans le hero, qui se traduit lentement
   du centre vers son point cible (gravité dispersive ~80s).
*/
.pile-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-origin: center center;
  transform: translate(var(--tx0), var(--ty0)) scale(1);
  /* easeInCubic : démarre lent puis accélère vers les bords */
  animation: pile-drift var(--drift-dur, 10s) cubic-bezier(.32, 0, .67, 0) forwards;
  will-change: transform;
}
@keyframes pile-drift {
  from { transform: translate(var(--tx0), var(--ty0)) scale(1);    }
  to   { transform: translate(var(--tx1), var(--ty1)) scale(0.5);  }
}

/*
   Carte polaroid : centrée sur le point du slot.
   L'animation "pop" gère uniquement opacity + rotation + scale d'entrée
   (rotation toujours dans le même sens — signe et amplitude via --spin).
*/
.pile-photo {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  background: #fafaf6;
  border: 5px solid #fafaf6;
  border-bottom-width: 18px;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .55),
    0 4px 10px rgba(0, 0, 0, .45);
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(var(--rot)) scale(1);
  animation: pile-pop .7s cubic-bezier(.16, .84, .44, 1) both;
  will-change: transform, opacity;
}

@keyframes pile-pop {
  from {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--rot) + var(--spin)))
      scale(1.15);
  }
  to {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      rotate(var(--rot))
      scale(1);
  }
}

.pile-photo > img,
.pile-photo > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .pile-slot  { animation-duration: 0s; }
  .pile-photo { animation-duration: .3s; }
}

/* Voile radial sombre qui protège la lisibilité du titre, sans cacher les coins */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  animation: fadeRise 1.4s ease both;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: clamp(140px, 22vw, 260px);
  height: auto;
  margin: 0 auto 26px;
  filter:
    brightness(0) invert(1)                              /* force to white */
    drop-shadow(0 2px 6px rgba(0, 0, 0, .9))
    drop-shadow(0 2px 24px rgba(0, 0, 0, .5));
  opacity: 0.98;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 22px;
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.18em 0.32em;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, .85),
    0 4px 36px rgba(0, 0, 0, .6);
}
.hero-title .word { display: inline-block; }
.hero-title .dot {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: rgba(255, 255, 255, .96);
  margin: 0 auto;
  max-width: 640px;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, .9),
    0 2px 24px rgba(0, 0, 0, .55);
}
.hero-eyebrow {
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, .8);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: bounce 2.2s infinite;
}
.hero-scroll:hover { color: #fff; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  .hero-slide { transition: opacity .3s; }
}

/* ============================================================
   Message
   ============================================================ */
.message {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}
.message p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.55;
  color: var(--cocoa);
  margin: 0 0 18px;
}
.message p:nth-of-type(2) {
  font-style: italic;
  color: var(--cocoa-soft);
  font-size: clamp(17px, 2vw, 20px);
}

/* Google rating link */
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  background: #fff;
  border-radius: 999px;
  font-family: var(--font-sans);
  color: var(--cocoa) !important;
  text-decoration: none;
  font-size: 15px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(58, 42, 34, .04);
  transition: transform .15s ease, box-shadow .2s ease;
}
.google-rating:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(58, 42, 34, .10), 0 1px 3px rgba(58, 42, 34, .06);
}
.google-rating .stars {
  display: inline-flex;
  gap: 1px;
}
.google-rating strong {
  font-weight: 700;
  margin-left: 4px;
}
.google-rating .rating-meta {
  color: var(--cocoa-soft);
  font-size: 14px;
}

/* ============================================================
   Cards (Poc a Pots / Seatable BCN)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 40px;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(58, 42, 34, .04);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(58, 42, 34, .10), 0 1px 3px rgba(58, 42, 34, .06);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--terracotta);
}
.card-st::before { background: linear-gradient(90deg, #3a7d9e, #6ec3d8); }

/* Logo at top of card */
.card-logo {
  height: 56px;
  width: auto;
  max-width: 75%;
  margin-bottom: 22px;
  object-fit: contain;
  object-position: left center;
}
.card-logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
  height: 56px;
}
.card-logo-text .st-wave {
  font-size: 38px;
  color: #3a7d9e;
  line-height: 1;
}
.card-logo-text .st-name {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--cocoa);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card-logo-text .st-name small {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #3a7d9e;
  margin-left: 4px;
  font-weight: 700;
}

.card-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 14px;
}
.card-st .card-eyebrow { color: #3a7d9e; }

.card p {
  margin: 0 0 22px;
  color: var(--cocoa-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }

.btn-secondary {
  background: var(--cocoa);
  color: var(--cream);
}
.btn-secondary:hover { background: #1d130d; color: var(--cream); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  padding: 14px 26px;
  font-size: 16px;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-whatsapp svg { flex-shrink: 0; }

/* ============================================================
   WhatsApp section
   ============================================================ */
.whatsapp {
  text-align: center;
  padding: 40px 24px 60px;
  max-width: 640px;
  margin: 0 auto;
}
.whatsapp p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--cocoa-soft);
  margin: 0 0 22px;
}

/* ============================================================
   Signature
   ============================================================ */
.signature {
  text-align: center;
  padding: 60px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid rgba(58, 42, 34, .08);
  margin-top: 40px;
}
.signature .heart {
  display: inline-block;
  margin-bottom: 22px;
  animation: heartbeat 2.4s ease-in-out infinite;
}
.signature-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--cocoa);
  margin: 0;
  line-height: 1.5;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.08); }
  20%      { transform: scale(1); }
  30%      { transform: scale(1.08); }
  40%      { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .signature .heart { animation: none; }
}

/* ============================================================
   Footer
   ============================================================ */
.page-footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
  color: var(--cocoa-soft);
  opacity: 0.7;
}
.page-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Section reveals on load (CSS-only, no JS dependency)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .message, .cards, .whatsapp, .signature {
    animation: rise .9s ease both;
  }
  .message   { animation-delay: .1s; }
  .cards     { animation-delay: .15s; }
  .whatsapp  { animation-delay: .2s; }
  .signature { animation-delay: .25s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
