/* =========================================================
   Saveurs du Brusc — styles.css
   Palette méditerranéenne : blanc, bleu mer, jaune soleil, terracotta
   ========================================================= */

:root {
  --color-bg: #FDFBF6;
  --color-bg-alt: #F5EFE0;
  --color-sea: #1B6E8C;
  --color-sea-dark: #12506A;
  --color-sun: #F2B705;
  --color-sun-dark: #C99304;
  --color-terracotta: #C1502E;
  --color-text: #2B2B28;
  --color-text-light: #5A5A54;
  --color-border: #E5DFCF;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --max-width: 1120px;
  --shadow: 0 4px 16px rgba(27, 110, 140, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

a {
  color: var(--color-sea);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--color-text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-sea-dark);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--color-sea);
}

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-sea);
  color: #fff !important;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-sea-dark);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: none;
    gap: 1rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--color-sun);
  color: #2B2B28 !important;
}

.btn-primary:hover {
  background: var(--color-sun-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-sea);
  color: var(--color-sea) !important;
}

.btn-secondary:hover {
  background: var(--color-sea);
  color: #fff !important;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, rgba(27,110,140,0.08), rgba(253,251,246,0));
  padding: 3.5rem 0 3rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-terracotta);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 42ch;
}

.hero-text,
.hero-image {
  min-width: 0;
}

.hero-image img {
  width: 100%;
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }
}

/* ---------- Qui sommes-nous ---------- */
.team-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.team-image,
.team-text {
  min-width: 0;
}

.team-image img {
  width: 100%;
  box-shadow: var(--shadow);
}

.team-text h2 {
  margin-top: 0;
}

@media (max-width: 820px) {
  .team-section {
    grid-template-columns: 1fr;
  }

  .team-image {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 60ch;
  margin: 0 auto 2.2rem;
}

/* ---------- Specialties grid ---------- */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  border-radius: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.1rem 1.2rem 1.4rem;
}

.card-body h3 {
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Hours table ---------- */
.hours-table {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ---------- Journal grid ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.article-card h3 {
  font-size: 1.1rem;
}

.article-card a.read-more {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--color-sea);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  text-align: center;
}

.newsletter h2 {
  color: #fff;
}

.newsletter p {
  color: rgba(255,255,255,0.9);
  max-width: 56ch;
  margin: 0 auto 1.2rem;
}

.newsletter-form-container {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.rgpd-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1E2A2E;
  color: #E9E5D8;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #E9E5D8;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer-note {
  text-align: center;
  color: rgba(233,229,216,0.75);
  font-size: 0.8rem;
  max-width: 56ch;
  margin: 0 auto 1rem;
}

.footer-note a {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.2rem;
  text-align: center;
  color: rgba(233,229,216,0.7);
  font-size: 0.8rem;
}

/* ---------- Article pages ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.article-hero {
  min-width: 0;
}

.article-hero img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Photo portrait : recadrage pour garder la cocotte visible plutôt que le riz */
img[src*="daube-poulpes"] {
  object-position: center 15%;
}

.direct-answer {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-sun);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0 2rem;
  font-size: 1.05rem;
}

.article-body {
  max-width: 72ch;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-item h3 {
  margin-bottom: 0.4rem;
}

.article-cta {
  text-align: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-top: 2.5rem;
}
