/* =====================================================
   Pâtes d'Ours — DA « trattoria nappe vichy » (v2)
   Fond farine clair, rouge tomate + vert basilic,
   motif vichy (nappe à carreaux) en bandes signature.
   Typo : Young Serif (display) · Nunito Sans (texte)
   ===================================================== */

:root {
  --farine: #faf5ec;
  --farine-carte: #ffffff;
  --encre: #2b241a;
  --encre-dim: rgba(43, 36, 26, .74);
  --tomate: #c23a28;
  --tomate-fonce: #9e2d1e;
  --basilic: #3f6b39;
  --paille: #e9c96a;
  --ligne: rgba(43, 36, 26, .14);
  --font-display: 'Young Serif', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Focus clavier visible partout */
:focus-visible {
  outline: 2px solid var(--tomate);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  font-family: var(--font-body);
  color: var(--encre);
  background: var(--farine);
  line-height: 1.65;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tomate);
  color: #fff;
  padding: .6em 1.2em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Motif vichy : signature nappe à carreaux ===== */
.vichy {
  height: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(194, 58, 40, .55) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(0deg, rgba(194, 58, 40, .55) 0 16px, transparent 16px 32px),
    var(--farine);
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.6rem;
  padding: .7rem clamp(1rem, 4vw, 2.6rem);
  background: rgba(250, 245, 236, .94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--tomate);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--encre);
  text-decoration: none;
}
.b-ours { color: var(--tomate); }
.topnav { display: flex; gap: 1.3rem; margin-left: auto; }
.topnav a {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--encre-dim);
  text-decoration: none;
  transition: color .2s ease;
}
.topnav a:hover, .topnav a:focus-visible { color: var(--tomate); }

/* ===== CTA ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .75em 1.6em;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cta-tomate {
  background: var(--tomate);
  color: #fff;
  box-shadow: 0 6px 18px rgba(194, 58, 40, .28);
}
.cta-tomate:hover, .cta-tomate:focus-visible {
  background: var(--tomate-fonce);
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(194, 58, 40, .38);
}
.cta-ligne {
  color: var(--encre);
  border: 2px solid var(--ligne);
}
.cta-ligne:hover, .cta-ligne:focus-visible {
  border-color: var(--basilic);
  color: var(--basilic);
}
.topbar-cta { padding: .5em 1.2em; font-size: .84rem; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  position: relative;
  background: var(--farine) url("../assets/salle.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 245, 236, .86), rgba(250, 245, 236, .74) 55%, rgba(250, 245, 236, .9));
}
.hero > * { position: relative; z-index: 1; }
.hero-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.4rem clamp(3rem, 7vw, 5rem);
}
.hero-tag {
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--basilic);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  line-height: 1.05;
  margin: .3em 0;
}
.hero-title em {
  font-style: italic;
  color: var(--tomate);
}
.hero-sub {
  max-width: 33em;
  margin: 0 auto;
  color: var(--encre-dim);
  font-size: 1.08rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 2rem;
}

/* Ligne de pâtes : séparateur signature */
.pasta-line {
  font-family: var(--font-display);
  font-size: .92rem;
  letter-spacing: .14em;
  color: var(--basilic);
  text-align: center;
  margin-top: 2.8rem;
}

/* ===== Sections communes ===== */
.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.4rem;
  padding: 0 1.4rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.15;
}
.section-sub {
  margin-top: .6em;
  color: var(--encre-dim);
}

/* ===== La maison : 3 métiers ===== */
.maison { padding: clamp(2.5rem, 6vw, 4.5rem) 1.4rem; }
.metiers-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  max-width: 62rem;
  margin: 0 auto;
}
.metier {
  background: var(--farine-carte);
  border: 1px solid var(--ligne);
  border-top: 4px solid var(--tomate);
  border-radius: 12px;
  padding: 1.7rem 1.5rem;
  box-shadow: 0 4px 14px rgba(43, 36, 26, .05);
}
.metier:nth-child(2) { border-top-color: var(--basilic); }
.metier:nth-child(3) { border-top-color: var(--paille); }
.metier-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tomate);
  margin-bottom: .8em;
}
.metier:nth-child(2) .metier-tag { color: var(--basilic); }
.metier:nth-child(3) .metier-tag { color: #a8802a; }
.metier h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: .45em;
}
.metier p:last-child { color: var(--encre-dim); font-size: .98rem; }

/* ===== Photos placeholders ===== */
.photos { padding: clamp(2rem, 5vw, 3.5rem) 1.4rem; }
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 62rem;
  margin: 0 auto;
}
.photo {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(43, 36, 26, .1);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo:hover img { transform: scale(1.04); }
.photo-ph {
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(43, 36, 26, .3);
  border-radius: 12px;
  background: var(--farine-carte);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--encre-dim);
  font-size: .95rem;
  line-height: 1.4;
}
.photo-ph span {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--tomate);
}

/* ===== Traiteur ===== */
.traiteur { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.traiteur-inner {
  text-align: center;
  background: var(--basilic);
  color: #f4f1e6;
  padding: clamp(2.2rem, 5vw, 3.4rem) 1.6rem;
}
.traiteur-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: .5em;
}
.traiteur-inner p {
  color: rgba(244, 241, 230, .92);
  max-width: 32em;
  margin: 0 auto 1.6em;
}

/* ===== Infos ===== */
.infos { padding: clamp(2rem, 5vw, 3.5rem) 1.4rem clamp(3rem, 7vw, 5rem); }
.infos .pasta-line { margin: 0 0 2.6rem; }
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--tomate);
  margin-bottom: .5em;
}
.info strong { color: var(--basilic); }
.adresse-lien, .tel-lien {
  color: var(--encre);
  font-weight: 700;
  text-decoration-color: var(--tomate);
  text-underline-offset: 3px;
}
.adresse-lien:hover, .tel-lien:hover { color: var(--tomate); }

/* ===== Footer ===== */
.footer {
  text-align: center;
  background: var(--encre);
  color: #f4f1e6;
}
.footer .vichy { background-color: var(--encre); }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--paille);
  margin-top: 1.8rem;
}
.footer-infos { margin-top: .5em; color: rgba(244, 241, 230, .8); font-size: .95rem; }
.footer-infos a { color: #f4f1e6; }
.footer-legal {
  margin-top: .8em;
  padding-bottom: 2.2rem;
  color: rgba(244, 241, 230, .72);
  font-size: .8rem;
}
.footer-legal a {
  color: rgba(244, 241, 230, .9);
  text-underline-offset: 2px;
}
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--paille); }

/* ===== Page mentions légales ===== */
.legal-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.4rem clamp(3rem, 7vw, 5rem);
}
.legal-back a {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--basilic);
  text-decoration: none;
}
.legal-back a:hover, .legal-back a:focus-visible { color: var(--tomate); }
.legal-back-bas { margin-top: 2.6rem; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: .6em 0 .3em;
}
.legal-intro { color: var(--encre-dim); font-size: .95rem; margin-bottom: 1rem; }
.legal section {
  padding-top: 1.6rem;
  margin-top: 1.6rem;
  border-top: 1px solid var(--ligne);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--tomate);
  margin-bottom: .5em;
}
.legal p { margin-bottom: .6em; }
.legal a { color: var(--encre); text-underline-offset: 3px; text-decoration-color: var(--tomate); }
.legal-todo {
  background: var(--farine-carte);
  border: 1px dashed rgba(43, 36, 26, .3);
  border-left: 4px solid var(--paille);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  font-size: .9rem;
  color: var(--encre-dim);
}

/* ===== Badge démo ===== */
.demo-badge {
  position: fixed;
  bottom: 14px;
  right: -34px;
  z-index: 90;
  transform: rotate(-45deg);
  background: var(--tomate);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .2em;
  padding: .35em 3em;
  pointer-events: none;
}

/* ===== Animations ===== */
.js .load-reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(14px);
  transition: opacity .7s ease, filter .7s ease, transform .7s ease;
}
.js .load-reveal.visible { opacity: 1; filter: blur(0); transform: none; }
.d1 { transition-delay: .05s; }
.d2 { transition-delay: .15s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .45s; }
.d5 { transition-delay: .6s; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
.js .stagger.visible > * { animation: rise .6s ease both; }
.js .stagger.visible > :nth-child(2) { animation-delay: .12s; }
.js .stagger.visible > :nth-child(3) { animation-delay: .24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .load-reveal, .js .reveal {
    opacity: 1; filter: none; transform: none; transition: none;
  }
  .js .stagger.visible > * { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .topbar { padding: .5rem 1rem; gap: .4rem 1rem; }
  .topnav { order: 3; width: 100%; justify-content: center; gap: 1.1rem; padding-top: .2rem; }
  .topnav a { font-size: .78rem; }
  .hero-ctas .cta { width: 100%; justify-content: center; }
}
