/* ==========================================================================
   Top Chef — Le Jeu : site vitrine
   Charte reprise de l'app : Bebas Neue (titres) + Albert Sans (texte),
   accent orange F6A81C (BrandingConfig.primaryColor), bruns de la cuisine.
   Maquette de référence : canvas Claude Design « Top Chef site vitrine »
   (hero produit d'abord, bandeau chiffres, cartes à icônes SVG, aperçu
   sombre en quinconce, CTA sombre, pages légales sur en-tête cuisine).
   Zéro style inline : la CSP du hosting n'autorise que cette feuille.
   ========================================================================== */

/* Polices auto-hébergées (RGPD + CSP stricte : aucun appel à Google Fonts). */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue.woff2') format('woff2');
}

@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/albert-sans.woff2') format('woff2');
}

@font-face {
  font-family: 'Albert Sans';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/albert-sans-italic.woff2') format('woff2');
}

:root {
  /* Accent (BrandTokens) */
  --orange: #f6a81c;
  --orange-light: #ffbf4d;
  --orange-dark: #ec710d;
  --orange-ink: #b85a0a;   /* accent lisible sur fond clair (4.5:1) */
  --orange-tint: #fff1d9;

  /* Bruns cuisine */
  --brown: #5b391c;
  --brown-deep: #372718;
  --kitchen: #1c1512;

  /* Neutres */
  --surface: #f4f0ec;
  --ink: #211e1b;
  --ink-soft: #5e5651;
  --muted: #9a8d82;
  --card: #ffffff;

  --radius: 22px;
  --shadow-card: 0 10px 24px rgba(59, 35, 12, 0.08);
  --shadow-phone: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  --maxw: 1200px;

  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-body: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.015em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.accent { color: var(--orange-ink); }

/* --------------------------------------------------------------------------
   En-tête cuisine (accueil et pages légales)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--kitchen);
  color: #fff;
  padding: 24px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.42;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(28, 21, 18, 0.96) 0%, rgba(28, 21, 18, 0.78) 48%, rgba(28, 21, 18, 0.35) 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
}

.brand:hover { text-decoration: none; }

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.nav-links a { color: rgba(255, 255, 255, 0.88); }
.nav-links a:hover { color: var(--orange-light); text-decoration: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}

.nav-cta:hover { text-decoration: none; filter: brightness(1.06); }

/* Grille du hero : copie à gauche, téléphone + Stéphane à droite */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-logo {
  width: 300px;
  max-width: 70%;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 0.92;
  text-wrap: balance;
}

.hero h1 .accent { color: var(--orange); }

.hero-sub {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 600px;
}

.phone-hero {
  position: relative;
  width: 290px;
  margin-right: 150px;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(180deg, #3b3b44, #141418);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-4deg);
}

.phone-hero img { border-radius: 34px; }

.hero-host {
  position: absolute;
  right: -20px;
  bottom: -72px;
  width: 300px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
  animation: host-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes host-in {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-host { animation: none; }
}

/* --------------------------------------------------------------------------
   Boutons stores
   -------------------------------------------------------------------------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.btn-store:hover { text-decoration: none; filter: brightness(1.06); }

.btn-store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }

.btn-store span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.btn-store small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.btn-store strong { font-size: 18px; font-weight: 800; }

.btn-accent { background: var(--orange); }

.stores-note {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------------------
   Bandeau chiffres clés
   -------------------------------------------------------------------------- */

.stats {
  padding: 0;
  background: var(--orange);
  color: var(--ink);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 28px;
  padding-bottom: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  text-align: center;
  border-left: 1px solid rgba(33, 30, 27, 0.18);
}

.stat:first-child { border-left: 0; }

.stat b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 60px;
  line-height: 0.9;
}

.stat span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(33, 30, 27, 0.78);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section { padding: 96px 0; }

.flush-top { padding-top: 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 24px;
  align-items: end;
  max-width: none;
  margin-bottom: 48px;
}

.section-head.split > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

h2 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 0.95;
}

.section-head p {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Cartes features */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}

.card:hover { transform: translateY(-3px); }

.card .ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--orange-tint);
  color: var(--orange-ink);
}

.card .ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { font-size: 28px; letter-spacing: 0.03em; }

.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Les cinq épreuves */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 16px;
}

.game {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: var(--brown-deep);
  color: #fff;
}

.game::before {
  content: attr(data-n);
  position: absolute;
  right: 14px;
  top: 2px;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: rgba(246, 168, 28, 0.16);
}

.game .glyph {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--orange);
}

.game h3 { margin-top: 6px; font-size: 28px; letter-spacing: 0.04em; }

.game p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.8); }

/* Bande « univers de la semaine » */
.week {
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.week img { width: 72px; }

.week > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week h3 { font-size: 28px; letter-spacing: 0.03em; }

.week p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--brown);
  font-weight: 700;
  font-size: 14px;
}

/* Aperçu : captures en quinconce sur fond cuisine */
.dark {
  background: var(--kitchen);
  color: #fff;
  overflow: hidden;
}

.dark .eyebrow, .dark .accent { color: var(--orange); }
.dark .section-head p { color: rgba(255, 255, 255, 0.78); }

.shots {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}

.phone {
  flex: 0 1 200px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone.raised { margin-top: 56px; }

.phone > div {
  width: 100%;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(180deg, #3b3b44, #141418);
  box-shadow: var(--shadow-phone);
}

.phone img { border-radius: 27px; }

.phone figcaption {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

/* Stéphane */
.host {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: end;
  padding: 0 48px;
  border-radius: 32px;
  background: var(--brown);
  color: #fff;
  overflow: hidden;
}

.host img {
  width: 100%;
  max-width: 340px;
  margin: 24px auto 0;
}

.host .copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 56px 0;
}

.host .eyebrow, .host .accent { color: var(--orange); }

.host p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, 0.86); }

.host blockquote {
  margin: 8px 0 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  font-style: italic;
  font-size: 16px;
}

/* CTA final */
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 64px 32px;
  border-radius: 32px;
  background: var(--kitchen);
  color: #fff;
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.22;
}

.cta > :not(.cta-bg) { position: relative; }

.cta-hat {
  width: 96px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

.cta .accent { color: var(--orange); }

.cta p {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.cta .stores { justify-content: center; margin-top: 10px; }

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */

.legal-hero { padding-bottom: 120px; }

.legal-hero .hero-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 56px;
}

.legal-hero h1 { font-size: clamp(40px, 5.6vw, 72px); }

.legal-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: -60px auto 96px;
  padding: 46px 42px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-weight: 450;
  color: #3a332e;
}

.legal .updated {
  margin: 0 0 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.legal h2 {
  font-size: 30px;
  margin: 40px 0 10px;
  color: var(--orange-ink);
}

.legal h2:first-of-type { margin-top: 0; }

.legal h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  margin: 22px 0 6px;
}

.legal p, .legal li { font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

.legal address {
  font-style: normal;
  font-weight: 600;
  line-height: 1.7;
}

.legal .box {
  background: var(--orange-tint);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 15px;
}

/* Valeur à confirmer avant publication */
.todo {
  background: #fff3c4;
  border-bottom: 2px dotted #d0a000;
  padding: 0 4px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

footer {
  background: var(--kitchen);
  color: #c9bdb3;
  padding: 56px 0 32px;
  font-size: 14.5px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.foot-grid > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer h4 {
  margin-bottom: 4px;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

footer a { color: #c9bdb3; }
footer a:hover { color: var(--orange-light); }

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #fff;
}

.foot-brand img { width: 38px; height: 38px; border-radius: 10px; }

.foot-tagline { margin: 0; }

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-legal {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .phone-hero { margin-right: 120px; width: 250px; }
  .hero-host { width: 250px; bottom: -60px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-sub { text-wrap: balance; }
  .stores { justify-content: center; }
  .hero-visual { justify-content: center; min-height: 0; }
  .phone-hero { margin-right: 0; width: 240px; }
  .hero-host { display: none; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .stat:nth-child(odd) { border-left: 0; }
  .shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .phone { flex: none; }
  .phone.raised { margin-top: 0; }
  .phone:last-child { grid-column: 1 / -1; max-width: 200px; justify-self: center; }
  .host { grid-template-columns: 1fr; padding: 0 24px; text-align: center; }
  .host img { max-width: 260px; }
  .host blockquote { text-align: left; }
  .week { grid-template-columns: 1fr; text-align: center; }
  .week img { margin: 0 auto; }
  .chips { justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .stat b { font-size: 48px; }
  .stores .btn-store { width: 100%; max-width: 300px; }
  .cta { padding: 48px 20px; border-radius: 24px; }
  .legal { padding: 30px 22px; border-radius: 18px; margin-inline: 14px; }
  .foot-legal { flex-direction: column; }
}
