/* =========================================================
   Chez Yo — Design system « 70s Groovy Cartoon »
   Palette extraite du logo · contours sticker · ombres dures
   ========================================================= */

:root {
  /* Couleurs de marque (logo) */
  --red:        #c64045;
  --red-dark:   #a62f3e;
  --orange:     #f18932;
  --orange-2:   #da8d38;
  --camel:      #b9763a;
  --yellow:     #f5d718;
  --green:      #59a844;
  --teal:       #3f9e8f;   /* clin d'œil rétro (réfs groovy) */
  --brown:      #392a1d;
  --ink:        #191311;

  /* Neutres chauds / papier rétro */
  --cream:      #f3e3cb;
  --cream-2:    #faf0dd;
  --paper:      #fff8ec;
  --pink:       #f4d9c4;
  --line:       #e3cda8;
  --muted:      #6f5d45;

  /* Typo */
  --font-display: "Bagel Fat One", "Rubik Bubbles", system-ui, sans-serif;
  --font-head:    "Fredoka", system-ui, sans-serif;
  --font-body:    "Nunito Sans", system-ui, -apple-system, sans-serif;

  /* Mesures */
  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 26px;
  --bw: 3px;                          /* épaisseur contour cartoon */
  --hard:    5px 5px 0 var(--ink);
  --hard-lg: 8px 8px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  /* Grain cartoon léger (pas de rendu "IA lisse") */
  background-image:
    radial-gradient(var(--line) 0.5px, transparent 0.5px),
    radial-gradient(var(--line) 0.5px, transparent 0.5px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  line-height: 1.62;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.05; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .005em; }
h3, h4 { font-family: var(--font-head); font-weight: 600; }
h1 { font-size: clamp(2.7rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: clamp(60px, 8vw, 110px) 0; }
.center { text-align: center; }
.tight { max-width: 660px; margin-inline: auto; }

/* Soulignement groovy sur mots clés */
.u-wiggle { position: relative; white-space: nowrap; }
.u-wiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='12' viewBox='0 0 80 12'%3E%3Cpath d='M2 7 Q 12 1 22 7 T 42 7 T 62 7 T 82 7' fill='none' stroke='%23f5d718' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / auto 100%;
}

/* ---------- Eyebrow / pastille ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow);
  border: var(--bw) solid var(--ink); box-shadow: var(--hard-sm);
  padding: .4em 1em; border-radius: 999px; margin-bottom: 1.2rem;
}
.eyebrow.red   { background: var(--red); color: #fff; }
.eyebrow.green { background: var(--green); color: #fff; }
.eyebrow.orange{ background: var(--orange); color: var(--ink); }

.lead { font-size: 1.16rem; color: var(--brown); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: .8em 1.6em; border: var(--bw) solid var(--ink);
  border-radius: 999px; cursor: pointer;
  box-shadow: var(--hard); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover  { transform: translate(2px, 2px); box-shadow: var(--hard-sm); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn--orange { --btn-bg: var(--orange); --btn-fg: var(--ink); }
.btn--green  { --btn-bg: var(--green); }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--dark   { --btn-bg: var(--ink); }
.btn--light  { --btn-bg: var(--paper); --btn-fg: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream-2);
  border-bottom: var(--bw) solid var(--ink);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  padding: .5em .85em; border-radius: 999px;
  border: 2px solid transparent; transition: .14s ease;
}
.nav-links a:hover { background: var(--yellow); border-color: var(--ink); }
.nav-links a.active { background: var(--red); color: #fff; border-color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang { display: flex; gap: 4px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
.lang a { padding: .25em .5em; border-radius: 8px; border: 2px solid transparent; color: var(--muted); }
.lang a.active { background: var(--ink); color: #fff; }

.burger { display: none; width: 46px; height: 46px; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--yellow); cursor: pointer; padding: 0; position: relative; box-shadow: var(--hard-sm); }
.burger span { position: absolute; left: 10px; right: 10px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s ease; }
.burger span:nth-child(1){ top: 15px; }
.burger span:nth-child(2){ top: 21px; }
.burger span:nth-child(3){ top: 27px; }
body.menu-open .burger span:nth-child(1){ top:21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ top:21px; transform: rotate(-45deg); }

/* ---------- Décor rétro (formes flottantes) ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco svg { display: block; width: 100%; height: 100%; }
.spin-slow { animation: spin 24s linear infinite; }
.float { animation: floaty 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
@media (prefers-reduced-motion: reduce){ .spin-slow,.float,.marquee-track,.hero-badge-spin{ animation: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--cream-2);
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .c-red { color: var(--red); }
.hero h1 .c-org { color: var(--orange); }
.hero p.lead { max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 999px; padding: .4em .9em; box-shadow: var(--hard-sm);
}
.hero-badge b { font-size: 1.1em; }

/* Scène hero : badge logo sur arc-en-ciel */
.hero-stage { position: relative; aspect-ratio: 1 / .96; display: grid; place-items: center; }
.hero-disc {
  position: relative; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); border: var(--bw) solid var(--ink);
  box-shadow: var(--hard-lg); display: grid; place-items: center; z-index: 2;
}
.hero-disc img { width: 80%; }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--ink); color: var(--cream-2); overflow: hidden; white-space: nowrap; padding: 13px 0; border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.marquee-track { display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: .03em; animation: slide 30s linear infinite; }
.marquee-track span { padding: 0 26px; }
.marquee-track span::after { content: "✺"; margin-left: 26px; color: var(--yellow); }
@keyframes slide { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- Diviseur en arches (scallop rétro) ---------- */
.scallop { display: block; width: 100%; height: 38px; color: var(--cream-2); }
.scallop.flip { transform: scaleY(-1); }

/* ---------- Cartes (sticker) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--paper);
  border: var(--bw) solid var(--ink); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--hard);
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translate(2px,2px); box-shadow: var(--hard-sm); }
.card .ico {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.8rem; margin-bottom: 16px; border: var(--bw) solid var(--ink); box-shadow: var(--hard-sm);
}
.ico.red { background: var(--red); } .ico.orange { background: var(--orange); }
.ico.green { background: var(--green); } .ico.yellow { background: var(--yellow); }
.ico.teal { background: var(--teal); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Carte plateau (avec prix indicatif) */
.platter { display: flex; flex-direction: column; }
.platter .ribbon {
  align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 6px; padding: .15em .6em; margin-bottom: 14px;
}
.platter .price { margin-top: auto; padding-top: 16px; font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 1.15rem; }
.platter .price small { color: var(--muted); font-weight: 600; }

/* Case cliquable vers une sous-page (traiteur) */
.sub-card { display: flex; }
.sub-card .price { color: var(--orange); }
.sub-card:hover .price { color: var(--red); }

/* Listes des pages service (traiteur à domicile) */
.svc-intro { max-width: 760px; margin-inline: auto; text-align: center; white-space: pre-line; }
.check-list, .dot-list { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .98rem; }
.check-list li, .dot-list li { position: relative; padding-left: 1.7em; margin-bottom: .55em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-family: var(--font-head); font-weight: 700; color: var(--green); }
.dot-list li::before { content: "✺"; position: absolute; left: 0; top: 0; color: var(--orange); font-size: .85em; }

/* Galerie photos service */
.svc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-gallery figure { margin: 0; border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-sm); overflow: hidden; background: var(--paper); }
.svc-gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: center; }
.step .num {
  width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem;
  color: #fff; background: var(--red); border: var(--bw) solid var(--ink); box-shadow: var(--hard-sm);
}
.step:nth-child(2) .num { background: var(--orange); color: var(--ink); }
.step:nth-child(3) .num { background: var(--yellow); color: var(--ink); }
.step:nth-child(4) .num { background: var(--green); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Bandeau coloré ---------- */
.band {
  position: relative; overflow: hidden; background: var(--red); color: #fff;
  border: var(--bw) solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--hard-lg); padding: clamp(40px, 6vw, 72px); text-align: center;
}
.band h2 { color: #fff; } .band p { color: rgba(255,255,255,.92); }
.band .eyebrow { background: var(--yellow); color: var(--ink); }

/* Liste de puces "événements" */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips span {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 999px; padding: .45em 1.05em; box-shadow: var(--hard-sm);
}

/* ---------- À propos / split ---------- */
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: center; }
.about-photo {
  border-radius: var(--radius-lg); aspect-ratio: 4/5; overflow: hidden; display: grid; place-items: center;
  background: var(--orange); border: var(--bw) solid var(--ink); box-shadow: var(--hard-lg);
}
.about-photo img { width: 72%; }
.stat-row { display: flex; gap: 30px; margin-top: 1.6rem; flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; color: var(--red); line-height: 1; }
.stat .l { color: var(--muted); font-size: .92rem; }

/* ---------- Carte (menu sandwicherie) ---------- */
.menu-nav {
  position: sticky; top: var(--header-h); z-index: 50; background: var(--cream-2);
  border-bottom: var(--bw) solid var(--ink); display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px; scrollbar-width: none;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: 0 0 auto; font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  padding: .42em 1em; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); color: var(--ink);
}
.menu-nav a:hover { background: var(--red); color: #fff; }

.menu-cols { columns: 2; column-gap: 48px; }
.menu-group { break-inside: avoid; margin-bottom: 40px; }
.menu-group h3 {
  display: flex; align-items: center; gap: 12px; color: var(--ink);
  font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: var(--bw) dashed var(--line);
}
.menu-group h3 .tag {
  font-family: var(--font-head); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #fff; background: var(--green); padding: .25em .6em; border-radius: 6px; border: 2px solid var(--ink);
}
.menu-item { margin-bottom: 16px; }
.menu-item .row { display: flex; align-items: baseline; gap: 10px; }
.menu-item .name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.menu-item .leader { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.menu-item .price { font-family: var(--font-head); font-weight: 700; color: var(--red); white-space: nowrap; }
.menu-item .price .alt { color: var(--muted); font-weight: 600; font-size: .9em; }
.menu-item .desc { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.menu-note { font-size: .95rem; color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: var(--hard-sm); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink); padding: 20px 54px 20px 22px; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.7rem; color: var(--red); transition: transform .2s ease; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.info-card { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-sm); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.info-card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; font-size: 1.3rem; border: 2px solid var(--ink); background: var(--yellow); }
.info-card h4 { font-family: var(--font-head); margin: 0 0 4px; font-size: 1.05rem; }
.info-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.info-card a { color: var(--red); font-weight: 700; }

.form-card { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--hard); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: .8em 1em; border: var(--bw) solid var(--ink); border-radius: 12px; font-family: inherit; font-size: 1rem; background: var(--cream-2); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; box-shadow: var(--hard-sm); }
.field textarea { min-height: 120px; resize: vertical; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: var(--bw) solid var(--ink); box-shadow: var(--hard-sm); }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cab6; padding: 60px 0 26px; border-top: var(--bw) solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer img.flogo { height: 66px; margin-bottom: 16px; background: var(--paper); border: var(--bw) solid #000; border-radius: 14px; padding: 8px; box-shadow: 4px 4px 0 rgba(255,255,255,.15); }
.site-footer h4 { font-family: var(--font-head); color: var(--yellow); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #d9cab6; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: .96rem; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); border: 2px solid #000; font-family: var(--font-head); font-weight: 700; transition: transform .12s ease; }
.socials a:hover { transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #9c8d79; }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--cream-2); padding: clamp(46px, 7vw, 84px) 0 clamp(40px, 6vw, 60px); text-align: center; border-bottom: var(--bw) solid var(--ink); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero p { max-width: 58ch; margin-inline: auto; color: var(--brown); font-size: 1.12rem; }

/* ---------- Titre simple de sous-page (sans bannière) ---------- */
.page-title { text-align: center; padding: clamp(36px, 5vw, 64px) 24px 0; }
.page-title h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .cards.cards-4 { grid-template-columns: repeat(2, 1fr); }
  .svc-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 380px; margin: 0 auto; order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .menu-cols { columns: 1; }

  .burger { display: grid; place-items: center; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-2); border-bottom: var(--bw) solid var(--ink);
    padding: 12px 24px 22px; box-shadow: var(--hard);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    /* Fermé : sorti entièrement de l'écran (100% de sa hauteur + le header + l'ombre),
       peu importe la taille du panneau ou de l'écran. */
    transform: translateY(calc(-100% - var(--header-h) - 12px));
    visibility: hidden; pointer-events: none;
    transition: transform .28s ease, visibility 0s .28s;
  }
  body.menu-open .nav-links {
    transform: translateY(0);
    visibility: visible; pointer-events: auto;
    transition: transform .28s ease;
  }
  .nav-links a { display: block; padding: .8em .5em; font-size: 1.15rem; border-bottom: 2px dashed var(--line); border-radius: 0; }
}
@media (max-width: 620px) {
  .cards, .cards.cards-2, .cards.cards-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .svc-gallery { grid-template-columns: 1fr; }
  /* Les décos flottantes chevauchent les titres sur petit écran */
  .page-hero .deco { display: none; }
}
