@import url('fonts.css');

/* ==========================================================================
   Le Jardin des Saveurs — feuille de style
   Couleurs : turquoise #007180 (identite) / or #ba8a08 (accents)
   ========================================================================== */

:root {
  --teal: #007180;
  --teal-dark: #00565f;
  --teal-light: #e6f1f2;
  --gold: #ba8a08;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --cream: #f7f5f1;
  --header-h: 88px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------- Titres -- */

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; margin: 0; line-height: 1.3; }

.section-title {
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color: var(--teal);
  letter-spacing: .02em;
  margin: 0 0 12px;
}
/* Tirets decoratifs manuscrits, repris du site d'origine */
.section-title::before,
.section-title::after {
  font-family: 'Rock Salt', cursive;
  font-size: .72em;
  content: ' - ';
  color: inherit;
  white-space: pre;
}
.section-title.on-dark { color: #fff; }

.section-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 42px;
}
.section-subtitle.on-dark { color: rgba(255,255,255,.9); }

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

section { padding: 72px 0; }
.sec-cream { background: var(--cream); }
.sec-white { background: #fff; }

/* Filigrane : photo d'ambiance en fond tres attenue, comme sur le site WP */
.sec-watermark {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}
.sec-watermark > * { position: relative; z-index: 1; }
.sec-watermark::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.93);
}

/* ---------------------------------------------------------------- Header -- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 10px rgba(0,0,0,.05);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.logo img { width: 66px; height: 66px; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 11px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink);
}
.nav a:hover, .nav a.is-active { color: var(--teal); opacity: 1; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  padding: 11px 18px; border-radius: 3px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.header-cta:hover { background: var(--teal-dark); opacity: 1; }

.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 3px;
  cursor: pointer; color: var(--teal);
}
.burger span, .burger span::before, .burger span::after {
  display: block; position: relative;
  width: 20px; height: 2px; margin: 0 auto;
  background: currentColor; transition: transform .25s, opacity .2s;
}
.burger span::before, .burger span::after { content: ''; position: absolute; }
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero -- */

.hero {
  padding: 0;
  min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  background: #333 url('../img/blanquette-veau-hero.jpg') center / cover no-repeat;
  text-align: center;
}
.hero-box {
  background: rgba(0,113,128,.9);
  padding: 28px 34px;
  margin: 90px 24px;
  max-width: 760px;
}
.hero h1 {
  color: #fff; font-weight: 700;
  font-size: clamp(24px, 4.2vw, 40px);
  line-height: 1.15;
  margin: 0;
}

/* ----------------------------------------------------------------- Texte -- */

.lead p { text-align: justify; margin: 0 0 18px; }
.lead p:last-child { margin-bottom: 0; }

/* Listes a puce turquoise, reprise de la puce du site d'origine */
.list-check { list-style: none; margin: 0 0 18px; padding: 0; }
.list-check li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
}
.list-check li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal);
}

.split {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 44px; align-items: start;
}
.split.reverse { grid-template-columns: 300px 1fr; }
.split img { border-radius: 3px; width: 100%; }

.signature {
  text-align: center; font-style: italic; color: var(--teal);
  font-size: 19px; margin: 26px 0 0;
}

/* ------------------------------------------------------- Cartes prestations */

.prestations {
  padding: 78px 0;
  background: var(--teal) url('../img/nos-prestations-traiteur.jpg') repeat;
  background-blend-mode: multiply;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.card {
  display: flex; flex-direction: column;
  color: #fff;
}
.card h3 {
  font-size: 22px; font-weight: 600; text-transform: uppercase;
  margin: 0 0 12px; padding-left: 26px; position: relative;
}
.card h3::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 13px; height: 13px;
  background: url('../img/picto-particuliers.png') no-repeat center / contain;
  filter: brightness(0) invert(1);
}
.card p { margin: 0 0 16px; text-align: justify; flex: 1; }
.card .more {
  color: #fff; font-weight: 700; font-size: 17px;
  align-self: flex-start;
  border-bottom: 2px solid rgba(255,255,255,.5);
}
.card .more:hover { border-color: #fff; opacity: 1; }

/* --------------------------------------------------------------- Galeries -- */

.gallery { display: grid; gap: 20px; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 3px;
}

/* ------------------------------------------------------------ Partenaires -- */

.partner-group + .partner-group { margin-top: 48px; }
.partner-group > h3 {
  font-size: 19px; font-weight: 600; text-transform: uppercase;
  text-align: center; color: var(--teal);
  margin: 0 0 24px;
}
/* Flex plutot que grid : les rangees incompletes restent centrees,
   quel que soit le nombre de partenaires saisis dans partenaires.json */
.partner-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 26px; list-style: none; margin: 0; padding: 0;
}
.partner {
  flex: 0 1 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 22px 20px; text-align: center;
}
.partner .name {
  display: block; font-size: 17px; font-weight: 600;
  text-transform: uppercase; color: var(--teal); line-height: 1.35;
}
.partner .desc { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.partner .coup-de-coeur {
  display: inline-block; margin-bottom: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 100px;
  padding: 2px 11px;
}

/* ------------------------------------------------------------------ Avis -- */

.reviews-viewport { overflow: hidden; }
.reviews {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  /* « start » plutot que « center » : une carte partielle reste visible a droite,
     ce qui signale que la liste se fait defiler */
  scroll-snap-align: start;
  flex: 0 0 min(430px, 82vw);
  background: #fff; border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  display: flex; flex-direction: column;
}
.review .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 10px; }
.review blockquote {
  margin: 0 0 16px; font-style: italic; text-align: center;
  color: #444; flex: 1;
}
.review .author {
  text-align: center; font-weight: 700; text-transform: uppercase;
  font-size: 14px; color: var(--teal); letter-spacing: .04em;
}
.reviews-nav { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }
.reviews-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--teal); background: #fff; color: var(--teal);
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.reviews-nav button:hover { background: var(--teal); color: #fff; }

/* ------------------------------------------------------------- Instagram -- */

.insta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 34px;
}
.insta-grid img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; }

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

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 3px;
  background: var(--teal); color: #fff;
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
}
.btn:hover { background: var(--teal-dark); opacity: 1; }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: rgba(255,255,255,.88); color: var(--teal); }
.center { text-align: center; }

/* --------------------------------------------------------------- Contact -- */

.contact { background: var(--teal); color: #fff; }
.contact .section-title { color: #fff; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.contact-info p { margin: 0 0 6px; text-align: left; }
.contact-name { font-size: 21px; font-weight: 700; margin-bottom: 14px !important; }
.contact-line {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 18px; margin-bottom: 10px !important;
}
.contact-line a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  opacity: .8; min-width: 72px;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
/* width: 100% avant max-width, sinon l'image deborde sur petit ecran */
.contact-photo img { border-radius: 4px; width: 100%; max-width: 420px; margin: 0 auto; }

/* ---------------------------------------------------------------- Footer -- */

.site-footer { background: #fff; padding: 52px 0 0; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  color: var(--teal); margin: 0 0 14px; letter-spacing: .04em;
}
.footer-grid p { margin: 0 0 4px; text-align: left; font-size: 15px; }
.footer-grid a { color: var(--ink); }
.social { display: flex; gap: 14px; margin-top: 12px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: #fff;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
/* Le logo Mariages.net est fourni en blanc : il lui faut un fond coloré */
.footer-badge a {
  display: inline-block;
  background: var(--gold);
  border-radius: 3px;
  padding: 12px 18px;
  margin-top: 4px;
}
.footer-badge img { width: 130px; height: auto; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0; font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: center; align-items: center;
}
.footer-bottom a { color: var(--muted); }

/* -------------------------------------------------------- Pages annexes -- */

.page-head { background: var(--teal); color: #fff; padding: 46px 0; text-align: center; }
.page-head h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 400; text-transform: uppercase; }
.legal h2 {
  font-size: 18px; font-weight: 600; text-transform: uppercase; color: var(--teal);
  margin: 38px 0 12px;
}
.legal h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { text-align: left; }
.legal ul { padding-left: 22px; }

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

@media (max-width: 980px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split img { max-width: 340px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-grid p { text-align: center; }
  .social { justify-content: center; }
  .footer-badge img { margin: 4px auto 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 74px; }
  .logo img { width: 54px; height: 54px; }
  .burger { display: block; }
  .header-cta { display: none; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav a { padding: 14px 24px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
  .nav li:last-child a { border-bottom: none; }
  .nav .nav-cta a { color: var(--teal); font-weight: 700; }

  section { padding: 54px 0; }
  .gallery-3, .gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 52vh; }
  .hero-box { margin: 60px 18px; padding: 22px; }
  .lead p, .card p { text-align: left; }
}

@media (max-width: 520px) {
  .contact-line { flex-direction: column; gap: 0; }
}

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