@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
  --bg: #000000; /* conservé */
  --card: #0f0f0f;
  --text-on-dark: #ffffff;
  --card-text: #f5ede4;   /* crème chaude pour textes secondaires */
  --muted: #bfb1a6;       /* gris chaud */
  --accent: #cc3b2e;      /* rouge/tomate principal */
  --accent-600: rgba(204,59,46,0.52);
  --accent-100: rgba(204,59,46,0.08);
  --accent-warm: #d99a2b; /* ambre pour badges chaleureux */
  --success: #22c55e;
  --success-600: #16a34a;
  --info: #2466a0;
  --radius: 12px;
  --max-width: 1100px;
  --focus: rgba(204,59,46,0.18);
  --border: rgba(255,255,255,0.06);
}

/* reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: "Roboto", sans-serif;
  background: var(--bg);
  color:var(--text-on-dark);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* layout */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:1.5rem;
}

/* navbar */
.navbar{
  background:transparent;
  position:sticky;
  top:0;
  z-index:30;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  font-weight:800;
  color:var(--text-on-dark);
  text-decoration:none;
  font-size:1.05rem;
  letter-spacing:0.2px;
  opacity:0.95;
}

.nav-links{
  list-style:none;
  display:flex;
  gap:7px;
  align-items:center;
}

.nav-links a{
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  padding:6px 10px;
  border-radius:999px;
  transition:color .12s ease, background .12s ease;
}

.nav-links a:hover,
.nav-links a:focus{
  color:var(--text-on-dark);
  outline:none;
}

.nav-links a:focus{ 
  box-shadow: 0 0 0 5px var(--focus); 
}

/* Hero section */
.hero{
  padding:0px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  max-width: 80svw;
  margin-left: auto;
  margin-right: auto;
}

.tag_news {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
}

.tag {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 120ms ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background-color: rgba(255,255,255,0.02); /* transparent, pas de gradient */
  color: var(--text-on-dark);
}

.tag span {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  40%, 70% { transform: rotate(0); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
}

.hero h1{
  font-size:2.1rem;
  line-height:1.05;
  color:var(--text-on-dark);
  font-weight:800;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem !important;
  margin-bottom: .5rem !important;
}

.hero .slogan{
  margin-top:6px;
  font-weight:500;
  font-size: calc(2rem + 1vw);
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.hero .lead{
  font-size:1.05rem;
  color:var(--muted);
  max-width:680px;
  font-weight:600;
  margin-top:12px;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  min-width: 200px;
}

.hero_image{
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius)*2);
  margin-top: 3rem;
}

/* Actions */
.actions{
  display:flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap:12px;
  margin-top:2rem;
  margin-left: auto;
  margin-right: auto;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 24px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  border:1px solid transparent;
  transition: all .3s;
  font-size: 1.1rem;
}

.btn-primary{
  background:var(--accent);
  color: #fff;
}

.btn-primary:hover{
  background: var(--accent-600);
}

/* Modifier la section chiffres */
.chiffres {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 3rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

.chiffres .rank {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3rem;
    transition: transform 0.3s ease;
    background: transparent;
}

.chiffres .rank:hover {
    transform: translateX(10px);
}

.chiffres .left {
    flex-shrink: 0;
    width: 180px;
    position: relative;
}

.chiffres .left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: var(--border);
}

.chiffres .left h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-on-dark);
    line-height: 1;
    letter-spacing: -1px;
    white-space: nowrap;
    padding-right: 2rem;
} 

.chiffres .right {
    flex: 1;
    min-width: 0;
    display: grid;
    align-items: center;
}

.chiffres .right p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    text-align: justify;
}

.rank-text .left h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.rank-text .right p {
    color: var(--text-on-dark);
    opacity: 0.9;
}

/* Content section */
.content-section {
    margin: 8rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

.content-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 680px;
}

.content-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-on-dark);
}

.content-text {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
    text-align: justify;
    hyphens: auto;
}

/* Modifier la section explanation */
.explanation {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
    margin: 4rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

.explanation-block {
    flex: 1;
    max-width: 450px;
}

.explanation-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-on-dark);
    margin-bottom: 1.5rem;
}

.explanation-text {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
    text-align: justify;
    hyphens: auto;
}

/* Footer */
.footer {
    margin-top: 8rem;
    padding: 3rem 1rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 0 0 220px;
    min-width: 160px;
    text-align: left;
}

.footer-tagline {
    color: var(--muted);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 140px;
}

.footer-group h3 {
    color: var(--text-on-dark);
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-group a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.footer-group a:hover {
    color: var(--text-on-dark);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Tablet: stack and center content */
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand {
    flex: 0 0 auto;
    min-width: 0;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 1.25rem;
  }

  .footer-group { min-width: 140px; align-items: center; }
}

/* Mobile: grid for links, compact spacing */
@media (max-width: 520px) {
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    gap: 1rem;
    padding: 0 1rem;
  }
  .container{
    padding: 1rem;
  }
  .quick-visuals{
    padding: 0rem !important;
  }
  .footer-links {
    width: 100%;
    display: grid;
    gap: 0rem;
    justify-items: center;
    align-items: start;
    flex: 0;
  }
  .cards-track {
    padding: 0px;
  }
  .explanation{
    margin-top: 1rem;
  }
  .hero{
    padding: 0px;
  }
  .hero .lead{
    width: 100%;
  }
  .footer-group {
    align-items: center;
    min-width: 0;
    padding: 0.25rem 0;
    margin-top: 1rem;
  }

  .footer-group a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    font-size: 0.88rem;
    padding-top: 1rem;
  }
}

/* Micro polish: ensure links are easy to tap on touch devices */
.footer-group a {
  display: inline-block;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background 120ms ease, color 120ms ease;
}
.footer-group a:active,
.footer-group a:hover,
.footer-group a:focus {
  background: rgba(255,255,255,0.02);
  color: var(--text-on-dark);
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup {
    background: var(--bg);
    border-radius: var(--radius);
    width: 90%;
    max-width: 480px;
    position: relative;
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: var(--text-on-dark);
}

.popup-content {
    text-align: center;
}

.popup-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-on-dark);
    margin-bottom: 1rem;
}

.popup-content p {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.waitlist-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-on-dark);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus);
}

.waitlist-form input::placeholder {
    color: var(--muted);
}

.waitlist-form .btn {
    margin-top: 0.5rem;
    width: 100%;
}

.waitlist-form .btn i {
    margin-left: 0.5rem;
}

/* Toast notifications — moved to bottom-right and made more visible */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column-reverse; /* newest on bottom for native feeling */
    gap: 0.6rem;
    z-index: 99999;
    pointer-events: none;
    align-items: flex-end;
    max-width: calc(100% - 2rem);
    padding: 0 0.25rem;
}

/* Toast — rendu opaque et contraste renforcé */
.toast {
    pointer-events: auto;
    min-width: 260px;
    max-width: 420px;
    background: #0b0b0d; /* opaque background */
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* visible state */
.toast--visible {
    transform: translateY(0);
    opacity: 1;
}

/* variants — couleurs pleines pour meilleur contraste */
.toast--success {
    background: #16a34a; /* vert */
    border-color: rgba(0,0,0,0.12);
    color: #ffffff;
}

.toast--error {
    background: #ef4444; /* rouge */
    border-color: rgba(0,0,0,0.12);
    color: #ffffff;
}

.toast--info {
    background: #2563eb; /* bleu */
    border-color: rgba(0,0,0,0.12);
    color: #ffffff;
}

/* dismiss hint — plus visible */
.toast::after {
    content: '×';
    margin-left: 0.5rem;
    opacity: 0.9;
    font-weight: 800;
    cursor: pointer;
    color: rgba(255,255,255,0.95);
    margin-right: -0.25rem;
}

/* Trusted / logos slider */
.trusted {
  margin: 4rem auto 2rem;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.trusted-title {
  text-align: center;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-on-dark);
  font-size: 1.2rem;
}

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-track {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  animation: scroll-logos 22s linear infinite;
  will-change: transform;
}

.logo {
  flex: 0 0 auto;
  width: 120px;
  height: 56px;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity: 0.85;
  filter: grayscale(100%) contrast(0.9);
  transition: filter .2s ease, opacity .2s ease, transform .15s ease;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display:block;
}

.logo:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.03);
}

/* animation: translate track to left */
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* with duplicated content this loops smoothly */
}

/* Smooth native scroll and slight offset for sticky nav */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* ajuster si la navbar change de hauteur */
}

/* Reveal base state + in-view transition */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(.995);
  transition: opacity 520ms cubic-bezier(.16,.84,.24,1), transform 520ms cubic-bezier(.16,.84,.24,1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Subtle highlight when jumping to a section */
.section-highlight {
  box-shadow: inset 0 -36px 0 rgba(83,80,217,0.06);
  transition: box-shadow 700ms ease;
}

/* Slightly stronger hover/focus style for nav links when used */
.nav-links a:focus,
.nav-links a.active {
  color: var(--text-on-dark);
  box-shadow: 0 6px 22px rgba(83,80,217,0.08);
  border-radius: 8px;
  outline: none;
}

/* optional: make logos reveal smoother too */
.logo.reveal { transform: translateY(8px) scale(.99); opacity: 0; }
.logo.reveal.in-view { transform: translateY(0) scale(1); opacity: 0.95; }

/* Quick visual badges under hero */
.quick-visuals {
  max-width: var(--max-width);
  margin: 1.25rem auto 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.features {
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
  flex: 1 1 60%;
  min-width: 260px;
}

.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
  text-align:center;
  color:var(--text-on-dark);
  min-width:120px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.feature .icon { font-size:1.6rem; display:block; }

/* Mock suggestion card (aesthetic only) */
.mock-suggestion {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex: 0 0 320px;
  min-width:240px;
}

.mock-card {
  width: 100%;
  height: auto;
  max-width: 150px;
  padding: 12px 14px;
  border-radius: 12px;
  background-color: rgba(255,224,190,0.02); /* très subtil, sans gradient */
  border: 1px solid rgba(204,59,46,0.06);
  color: var(--text-on-dark);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.mock-card:hover { box-shadow: 0 16px 50px rgba(0,0,0,0.65); }

.mock-card .title {
  font-weight:800;
  font-size:1.05rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.open-badge {
  background-color: rgba(217,154,43,0.12); /* léger ambre */
  color: #ffd27a;
  padding:4px 8px;
  border-radius:999px;
  font-weight:700;
  font-size:0.85rem;
  border:1px solid rgba(217,154,43,0.12);
}

.mock-card .meta {
  color:var(--muted);
  font-size:0.95rem;
  margin-top:6px;
}

.muted { color:var(--muted); font-size:0.95rem; margin-top:8px; }

.chips { margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.chip {
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background-color: rgba(255,255,255,0.02); /* transparent neutre */
  color:var(--text-on-dark);
  font-weight:700;
  font-size:0.85rem;
  border:1px solid rgba(255,255,255,0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

/* variante réservation -> rouge transparent, texte blanc (pas de dégradé) */
.chip.reservation-yes {
  background-color: rgba(204,59,46,0.12); /* transparent rouge */
  color: #ffffff;
  border: 1px solid rgba(204,59,46,0.20);
  font-weight: 800;
  transition: background-color 160ms ease, transform 120ms ease;
}

.chip.reservation-yes:hover,
.chip.reservation-yes:focus {
  background-color: rgba(204,59,46,0.20);
  transform: translateY(-2px);
  outline: none;
}

/* variante "no reservation" -> neutre discret */
.chip.reservation-no {
  background-color: rgba(255,255,255,0.01);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.03);
  font-weight:700;
}

/* subtle warm tint on cards to read as food app */
.mock-card {
  background: linear-gradient(180deg, rgba(255,224,190,0.02), rgba(255,224,190,0.01));
  border: 1px solid rgba(204,59,46,0.06);
}

/* compact rating placed under meta */
.rating-inline {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  color:var(--muted);
  font-weight:700;
  font-size:0.92rem;
}

.rating-inline .stars { display:inline-flex; gap:4px; line-height:1; }
.rating-inline .reviews-small {
  color:var(--muted);
  font-size:0.88rem;
  font-weight:700;
  opacity:0.95;
}

/* Cards slider — marquee / logo-style look */
.cards-slider { margin-top: 3rem; width:100%; overflow:visible; position:relative; }
.cards-viewport {
  overflow: hidden;
  padding: 0 1rem;
  position: relative;
}

/* soft edge fades like brand carousels */
.cards-viewport::before,
.cards-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  pointer-events: none;
  z-index: 2;
}
.cards-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(0,0,0,0) 100%);
}
.cards-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(0,0,0,0) 100%);
}

/* replaced: use transform-based marquee. track hides overflow, inner will be translated */
.cards-track {
  display: flex;
  align-items: flex-start; /* <-- important : don't vertically center/stretch cards */
  overflow: hidden;
  padding: 12px 0;
  gap: 0;
  position: relative;
}

.cards-track-inner {
  display: flex;
  gap: 12px;               /* réduit l'espacement pour plus de densité sur petits écrans */
  align-items: flex-start; /* <-- ensure inner row doesn't stretch items */
  flex-shrink: 0;
  will-change: transform;
  margin-left: 1rem;
}

/* each card: responsive width using clamp pour réduire automatiquement sur petits écrans */
.card-item {
  flex: 0 0 clamp(220px, 22vw, 300px); /* min 220px, ideal 22vw, max 300px */
  width: clamp(220px, 22vw, 300px);
  min-width: 220px;
  max-width: 300px;
  height: auto;      /* laisse la hauteur dépendre du contenu */
  align-self: flex-start; /* aligne en haut pour ne pas étirer */
  box-shadow: none;
  transition: none;
}

/* Ensure card visual container adapts to its parent (.card-item) */
.mock-card {
  width: 100%;
  height: auto;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background-color: rgba(255,224,190,0.02); /* très subtil, sans gradient */
  border: 1px solid rgba(204,59,46,0.06);
  color: var(--text-on-dark);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

/* responsive breakpoints: plus compact sur tablette/desktop moyen */
@media (max-width:1200px) {
  .card-item {
    flex: 0 0 clamp(200px, 26vw, 280px);
    width: clamp(200px, 26vw, 280px);
  }
}

@media (max-width:900px) {
  .card-item {
    flex: 0 0 84%;
    width: 84%;
    max-width: 300px;
  }
}
@media (max-width:600px) {
  .chiffres .rank{
    display: grid;
  }
}
/* hide extra chips by default, reveal when expanded via JS */
.chip.hidden { display: none !important; }

.chips.expanded .chip.hidden {
  display: inline-block !important;
}

/* visual / accessibility niceties for the +X chip */
.chip.more {
  cursor: pointer;
  user-select: none;
}