/* =====================================================================
   Saveurs du 44 — Traiteur événementiel
   Feuille de style unique, partagée par toutes les pages.
   Mobile-first · breakpoints 768px (tablette) et 1280px (desktop).
   Charte (prompt 1) : crème / brun nuit / terracotta / sauge / encre.
   ===================================================================== */

:root {
  --cream:          #F6F1E7;
  --cream-2:        #EFE7D7;
  --offwhite:       #FBF8F1;
  --night:          #221C18;
  --night-2:        #2E2620;
  --terracotta:     #BC5B38;
  --terracotta-dk:  #9C4A2C;
  --sage:           #7E8A6A;
  --ink:            #34302B;
  --ink-soft:       #6B635B;
  --line:           rgba(52, 48, 43, .14);
  --line-light:     rgba(246, 241, 231, .16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -28px rgba(34, 28, 24, .55);

  --nav-h: 66px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
::selection { background: var(--terracotta); color: var(--cream); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--terracotta);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Layout helpers ----- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: 56px; }
.section--dark { background: var(--night); color: var(--cream); }
.section--cream-2 { background: var(--cream-2); }
.section--offwhite { background: var(--offwhite); }
[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.section--dark .eyebrow { color: #E7A98B; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.section--dark .lede { color: rgba(246, 241, 231, .82); }
.center { text-align: center; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }

.h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); letter-spacing: -.01em; }
.h2 em { font-style: italic; color: var(--terracotta); }
.section--dark .h2 em { color: #E7A98B; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: var(--cream); }
.btn--primary:hover { background: var(--terracotta-dk); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost { color: var(--cream); border-color: var(--line-light); }
.section--dark .btn--ghost:hover { border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----- Navigation ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--night);
  border-bottom: 1px solid var(--line-light);
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 22px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--cream);
}
.nav__logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
}
.nav__name { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; }
.nav__menu { display: none; }
.nav__menu a {
  text-decoration: none;
  color: rgba(246, 241, 231, .82);
  font-size: .96rem;
  font-weight: 500;
}
.nav__menu a:hover { color: var(--cream); }
.nav__menu a[aria-current="page"] { color: var(--cream); }
.nav__cta {
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--terracotta);
  color: var(--cream) !important;
}
.nav__cta:hover { background: var(--terracotta-dk); }

.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 10px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero (accueil) ----- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--cream);
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(34, 28, 24, .86), rgba(34, 28, 24, .58) 55%, rgba(34, 28, 24, .82));
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 64px 22px 54px;
}
.hero__kicker {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #E7A98B;
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.3rem, 8vw, 4rem);
  font-weight: 500;
  letter-spacing: -.015em;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: #E7A98B; }
.hero__sub { margin-top: 20px; font-size: 1.12rem; color: rgba(246, 241, 231, .85); max-width: 52ch; }
.hero .btn-row { margin-top: 30px; }
.hero__proof {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: .9rem;
  color: rgba(246, 241, 231, .78);
}
.hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }

/* ----- Page header (pages intérieures) ----- */
.page-hero {
  background: var(--night);
  color: var(--cream);
  padding: 56px 0 46px;
}
.crumb { font-size: .85rem; color: rgba(246, 241, 231, .6); margin-bottom: 18px; }
.crumb a { color: rgba(246, 241, 231, .8); text-decoration: none; }
.crumb a:hover { color: var(--cream); }
.page-hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: #E7A98B; }
.page-hero .lede { margin-top: 18px; color: rgba(246, 241, 231, .82); }

/* ----- Generic grids ----- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head .h2 { margin-top: 10px; }
.section-head .lede { margin-top: 14px; }

/* ----- Cards (publics / generic) ----- */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section--cream-2 .card,
.section--dark .card { background: var(--offwhite); }
.section--dark .card { color: var(--ink); border-color: transparent; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-soft); }
.card__link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
}
.card__link:hover { text-decoration: underline; }
.card__tag {
  align-self: flex-start;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 11px;
}

/* ----- Placeholders image (remplacés au prompt 3) ----- */
.ph {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #ECE2D0, #DFD2B9);
}
.ph::after {
  content: "Photo — prompt 3";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: .04em;
  color: rgba(52, 48, 43, .38);
}
.ph--wide { aspect-ratio: 16 / 10; }
.ph--card { aspect-ratio: 4 / 3; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--sage { background: linear-gradient(135deg, #8C9778, #6C7858); }
.ph--sage::after { color: rgba(246, 241, 231, .55); }
.ph--terra { background: linear-gradient(135deg, #C16B49, #A1502E); }
.ph--terra::after { color: rgba(246, 241, 231, .6); }

/* Images réelles (remplacent les placeholders) */
img.ph { object-fit: cover; }
.media-card { display: flex; flex-direction: column; gap: 10px; }
.media-card figcaption { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-soft); }

/* ----- Processus (étapes) ----- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  counter-increment: step;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 1.25rem;
}
.step__num::before { content: counter(step); }
.section--dark .step__num { border-color: #E7A98B; color: #E7A98B; }
.step h3 { font-size: 1.22rem; margin-bottom: 4px; }
.step p { color: var(--ink-soft); }
.section--dark .step p { color: rgba(246, 241, 231, .8); }

/* ----- Réalisations ----- */
.real { display: grid; gap: 22px; }
.real-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.section--cream-2 .real-card { background: var(--offwhite); }
.real-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.real-card__meta {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
}
.real-card h3 { font-size: 1.28rem; }
.real-card p { color: var(--ink-soft); }
.real-card__stat { margin-top: 4px; font-weight: 600; color: var(--terracotta); }

.real--detail .real-card { gap: 0; }
.real-detail {
  display: grid;
  gap: 26px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.real-detail:last-child { border-bottom: 0; }
.real-detail h3 { font-size: 1.5rem; margin-bottom: 6px; }
.real-detail .real-card__meta { margin-bottom: 12px; }
.real-detail p { color: var(--ink-soft); }
.real-detail ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); }
.real-detail li { margin-bottom: 6px; }

/* ----- Témoignages ----- */
.quote {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section--dark .quote { background: var(--night-2); border-color: var(--line-light); color: var(--cream); }
.quote p { font-family: var(--serif); font-size: 1.22rem; font-style: italic; line-height: 1.4; }
.quote footer { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--ink-soft); font-style: normal; }
.section--dark .quote footer { color: rgba(246, 241, 231, .7); }
.quote__mark { font-family: var(--serif); font-size: 2.4rem; line-height: .5; color: var(--terracotta); }

/* ----- FAQ ----- */
.faq { display: grid; gap: 0; max-width: 760px; }
.faq__item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.faq__a { color: var(--ink-soft); }

/* ----- Bandeau CTA ----- */
.cta-band { background: var(--night); color: var(--cream); }
.cta-band .h2 { max-width: 20ch; }
.cta-band .lede { margin: 16px 0 28px; color: rgba(246, 241, 231, .82); }

/* ----- Prose (mentions légales / blocs texte) ----- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 30px 0 10px; }
.prose h3 { font-size: 1.2rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--terracotta); }

/* ----- Zone d'intervention : liste villes ----- */
.zones-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.zone-block { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--offwhite); }
.zone-block h3 { font-size: 1.3rem; margin-bottom: 8px; }
.zone-block p { color: var(--ink-soft); }
.info-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; }
.info-list strong { display: block; }
.info-list span { color: var(--ink-soft); }

/* ----- Contact / formulaire ----- */
.contact-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.form-note {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 24px;
}
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(188, 91, 56, .15); }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { width: auto; margin-top: 4px; }
.field--check label { font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.form__feedback {
  background: #E9EDE2;
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--ink);
  font-weight: 500;
}
.contact-aside { display: grid; gap: 22px; align-content: start; }
.contact-aside .card { background: var(--offwhite); }

/* ----- Footer ----- */
.footer { background: var(--night); color: rgba(246, 241, 231, .82); }
.footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 50px 22px 30px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
.footer__brand { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); margin-bottom: 10px; }
.footer__title { font-weight: 600; color: var(--cream); margin-bottom: 12px; font-size: .92rem; letter-spacing: .04em; }
.footer__col a { display: block; color: rgba(246, 241, 231, .78); text-decoration: none; padding: 3px 0; }
.footer__col a:hover { color: var(--cream); }
.footer__col p { margin-bottom: 6px; }
.footer__demo { font-size: .85rem; color: rgba(246, 241, 231, .55); margin-top: 12px; }
.footer__credit {
  border-top: 1px solid var(--line-light);
  padding: 18px 22px;
  text-align: center;
  font-size: .85rem;
  color: rgba(246, 241, 231, .6);
}
.footer__credit a { color: rgba(246, 241, 231, .85); }

/* =====================================================================
   Tablette — 768px
   ===================================================================== */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .section { padding-block: 76px; }
  .hero__inner { padding: 92px 22px 72px; }
  .page-hero { padding: 70px 0 60px; }

  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .real { grid-template-columns: 1fr 1fr; }
  .zones-grid { grid-template-columns: 1fr 1fr; }

  .steps { grid-template-columns: 1fr 1fr; gap: 28px 36px; }
  .real-detail { grid-template-columns: 0.9fr 1.1fr; padding: 40px 0; }
  .real-detail--flip .ph { order: 2; }

  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 44px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* =====================================================================
   Desktop — 1280px
   ===================================================================== */
@media (min-width: 1280px) {
  .nav__menu {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav__burger { display: none; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .real { grid-template-columns: repeat(2, 1fr); }

  .section { padding-block: 92px; }
  .hero__inner { padding: 120px 22px 84px; }
}

/* =====================================================================
   Menu mobile (ouvert via JS, < 1280px)
   ===================================================================== */
@media (max-width: 1279px) {
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--night);
    border-bottom: 1px solid var(--line-light);
    padding: 14px 22px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__menu a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line-light); }
  .nav__menu a:last-child { border-bottom: 0; }
  .nav__cta { margin-top: 10px; text-align: center; padding: 13px 18px; }
  body.menu-open { overflow: hidden; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
