/* Le Jardin des Saveurs de Canet — guide gastronomique indépendant */

:root {
  --bg: #efeeec;
  --text: #3a3a3a;
  --heading: #2b2b2b;
  --gold: #a8862f;
  --accent: #e8913f;
  --accent-hover: #d27a28;
  --accent-text: #ffffff;
  --quote-corner: #2f8fe0;
  --bar-grey: #9b9b9b;
  --footer-bg: #ffffff;
  --footer-link: #555555;
  --line: #dddddd;
  --crumb: #777777;
  --container: 1140px;

  --font-script: "Dancing Script", cursive;
  --font-serif: "Crimson Text", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.012) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3.script {
  font-family: var(--font-script);
  color: var(--heading);
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(32px, 5vw, 40px); line-height: 1.2; }
main h1 { text-align: center; }

h2.section-title {
  font-size: 24px;
  color: var(--gold);
  margin-top: 0;
}

p { margin: 0 0 1.1em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--footer-bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  font-family: var(--font-script);
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span { color: var(--accent); }

.main-nav { display: flex; min-width: 0; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 13px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
}

.main-nav a {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--accent); }

.burger {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--heading);
  cursor: pointer;
}

/* ---------- Banner / slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(260px, 42vw, 480px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}

.hero-caption {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-script);
  font-size: clamp(22px, 3.4vw, 30px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}

.hero-dots button.is-active { background: #fff; }

/* narrow banner for inner pages */
.page-banner {
  position: relative;
  height: clamp(140px, 18vw, 220px);
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.38);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--crumb);
  margin: 22px 0 10px;
}

.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 6px; color: var(--crumb); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

/* ---------- Zigzag content blocks ---------- */
.zigzag { margin: 56px 0; }

.zigzag-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 56px 0;
}

.zigzag-row.reverse { flex-direction: row-reverse; }

.zigzag-row.centered {
  justify-content: center;
  text-align: center;
}

.zigzag-row.centered .col-text {
  flex: 1 1 100%;
  max-width: 640px;
  margin: 0 auto;
}

.zigzag-row .col-text, .zigzag-row .col-img { flex: 1 1 50%; min-width: 0; }

.zigzag-row img {
  border-radius: 6px;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.35);
}

.zigzag-row h2 { margin-top: 0; }

/* quote with blue corners */
.quote {
  position: relative;
  padding: 18px 26px;
  margin: 24px 0;
  font-style: italic;
  color: var(--heading);
}

.quote::before, .quote::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--quote-corner);
}

.quote::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.quote::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* chessboard duo photos */
.duo-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.duo-photos .duo-b { transform: translateY(26px); }

/* ---------- Info cards row ---------- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0;
}

.info-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 22px;
  text-align: center;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.25);
}

.info-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card .icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; }

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0 0 8px;
}

.info-card p { font-size: 15px; color: var(--text); margin: 0; }

/* ---------- Dernières actualités ---------- */
.actus {
  margin: 56px auto;
  max-width: 720px;
}

.actus-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.actus-item:first-child { border-top: 1px solid var(--line); }

.actus-date {
  font-size: 13px;
  color: var(--crumb);
  display: block;
  margin-bottom: 4px;
}

.actus-item a {
  font-size: 17px;
  font-weight: 600;
}

.actus-item a:hover { color: var(--accent); }

.actus-item .excerpt {
  font-size: 15px;
  color: var(--text);
  margin: 4px 0 0;
}

/* ---------- Article body ---------- */
.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-meta {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.article-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  margin: 18px 0 30px;
}

/* Safari < 15 fallback: no aspect-ratio support, but width/height attrs on the <img>
   already reserve the right proportions via the browser's intrinsic sizing. */
@supports not (aspect-ratio: 16/9) {
  .article-photo { height: auto; }
}

.article-body h2 {
  font-size: 24px;
  color: var(--gold);
  margin-top: 1.6em;
}

.lire-aussi {
  margin: 48px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.lire-aussi h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heading);
}

.lire-aussi ul { list-style: none; padding: 0; margin: 0; }
.lire-aussi li { margin: 10px 0; }
.lire-aussi a { font-size: 16px; }
.lire-aussi a:hover { color: var(--accent); }

.autres-rubriques {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.autres-rubriques a {
  display: inline-block;
  margin: 0 14px 10px 0;
}

.autres-rubriques a:hover { color: var(--accent); }

/* ---------- Contact / simple page ---------- */
.simple-page { max-width: 720px; margin: 0 auto; }

.contact-form { display: grid; gap: 14px; max-width: 480px; }
.contact-form label { font-size: 14px; display: block; margin-bottom: 4px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 15px;
  background: #fff;
}
.contact-form .consent { font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Bottom grey band with form ---------- */
.cta-band {
  background: var(--bar-grey);
  padding: 48px 0;
  margin-top: 60px;
}

.cta-band .inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.cta-band .text {
  flex: 1 1 50%;
  color: #fff;
}

.cta-band .text h2 {
  font-family: var(--font-script);
  color: #fff;
  font-size: 30px;
}

.cta-band .card {
  flex: 1 1 42%;
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.4);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  padding: 30px 0;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links a { color: var(--footer-link); }
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

/* ---------- 404 / 410 ---------- */
.error-page .simple-page { text-align: center; padding: 60px 0; }
.error-page h1 { font-size: 36px; }
.error-links { margin-top: 24px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .zigzag-row { flex-direction: column; gap: 24px; }
  .zigzag-row.reverse { flex-direction: column; }
  .info-cards { grid-template-columns: 1fr; }
  .cta-band .inner { flex-direction: column; }
  .cta-band .card { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}

@media (max-width: 760px) {
  .logo {
    flex-shrink: 1;
    min-width: 0;
    font-size: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open ul { flex-direction: column; gap: 0; padding: 10px 16px 18px; justify-content: flex-start; }
  .main-nav.is-open li { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .duo-photos { grid-template-columns: 1fr; }
  .duo-photos .duo-b { transform: none; }
}
