/* ===========================================================
   Mamá à Table — feuille de styles
   Palette de marque : olivo / terracota / crema / carbón / bronce
   =========================================================== */

:root {
  --olive:        #6E7250;
  --olive-dark:   #545737;
  --terracotta:   #C75D38;
  --terracotta-d: #a8492a;
  --cream:        #F7F0E1;
  --paper:        #FCF8EF;
  --sage:         #E8E6D3;
  --charcoal:     #34342C;
  --brown:        #8A5E38;
  --muted:        #6f6c5d;

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 36px -18px rgba(52,52,44,.35);
  --shadow-sm: 0 6px 18px -10px rgba(52,52,44,.4);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--terracotta-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); color: var(--olive-dark); line-height: 1.12; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: .6rem;
}

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 620px; margin: 0 auto clamp(2rem,5vw,3rem); text-align: center; }
.section-lead { color: var(--muted); margin-top: .8rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--olive); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- boutons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: .95rem; padding: .85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--olive-dark); border-color: var(--olive); }
.btn-ghost:hover { background: var(--olive); color: #fff; }
.btn-whatsapp { background: #2aa64f; color: #fff; }
.btn-whatsapp:hover { background: #21893f; color: #fff; }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,240,225,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(110,114,80,.15);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(52,52,44,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--olive-dark); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--olive-dark); }

.nav-list { list-style: none; display: flex; align-items: center; gap: 1.4rem; }
.nav-list a { color: var(--charcoal); font-weight: 600; font-size: .95rem; }
.nav-list a:hover { color: var(--terracotta); text-decoration: none; }
.nav-cta { background: var(--olive); color: #fff !important; padding: .5rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--olive-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--olive-dark); border-radius: 3px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem,4vw,3rem); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.hero-logo { width: min(360px, 80%); margin-bottom: .2rem; }
.hero-script { width: 190px; margin: -.4rem 0 1rem 4px; }
.hero-tagline { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-family: var(--font-display); color: var(--charcoal); max-width: 30ch; }
.hero-tagline strong { color: var(--terracotta); }
.hero-sub { color: var(--muted); margin: .9rem 0 1.6rem; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-illu img { width: 100%; max-width: 460px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(52,52,44,.18)); }

/* ---------- séparateur feuilles ---------- */
.divider { width: min(320px, 60%); margin: clamp(1rem,4vw,2.5rem) auto; opacity: .9; }

/* ---------- à propos ---------- */
.about { background: var(--sage); }
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.about-illu img { width: 100%; max-width: 340px; margin-inline: auto; filter: drop-shadow(0 16px 28px rgba(52,52,44,.18)); }
.about-text p { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1rem; }
.about-points { list-style: none; margin-top: 1.2rem; display: grid; gap: .6rem; }
.about-points li { position: relative; padding-left: 1.8rem; }
.about-points li::before { content: "♥"; position: absolute; left: 0; color: var(--terracotta); }

/* ---------- services ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,3vw,2rem); }
.step {
  background: var(--paper); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.7rem;
  text-align: center; position: relative; box-shadow: var(--shadow); border: 1px solid rgba(110,114,80,.12);
}
.step-illu { height: 170px; display: flex; align-items: center; justify-content: center; margin-bottom: .6rem; }
.step-illu img { max-height: 170px; width: auto; }
.step-num { font-family: var(--font-display); font-weight: 700; color: var(--terracotta); font-size: .9rem; letter-spacing: .1em; }
.step h3 { margin: .25rem 0 .5rem; }
.step p { color: var(--muted); font-size: .95rem; }

.audience { margin-top: clamp(2.5rem,6vw,4rem); }
.audience-title { text-align: center; color: var(--olive-dark); margin-bottom: 1.4rem; }
.audience-list { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.audience-list li { display: flex; gap: .9rem; align-items: flex-start; background: var(--paper); border-radius: var(--radius-sm); padding: 1.1rem; border: 1px solid rgba(110,114,80,.12); }
.audience-list img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.audience-list strong { color: var(--olive-dark); }
.audience-list span { font-size: .92rem; color: var(--muted); }

/* ---------- galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item img.crop-haut { object-position: 50% 18%; }
.gallery-item.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--sage), var(--sage) 14px, #e0deca 14px, #e0deca 28px);
  border: 1px dashed rgba(110,114,80,.4); color: var(--olive-dark); font-weight: 600;
}

/* ---------- page merci ---------- */
.merci-page { min-height: 55vh; display: grid; align-items: center; }
.merci-page .section-head { margin-bottom: 0; }

/* ---------- témoignages ---------- */
.testimonials { background: var(--sage); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.testi {
  background: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(110,114,80,.12); position: relative;
}
.testi::before { content: "“"; font-family: var(--font-display); font-size: 3.2rem; color: var(--terracotta); opacity: .4; line-height: 0; position: absolute; top: 1.6rem; left: 1.1rem; }
.testi p { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; padding-top: .8rem; }
.testi footer { margin-top: .9rem; font-weight: 700; color: var(--olive-dark); font-size: .9rem; }

/* ---------- tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; align-items: stretch; }
.plan {
  background: var(--paper); border-radius: var(--radius); padding: 2rem 1.6rem;
  border: 1px solid rgba(110,114,80,.15); display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); position: relative;
}
.plan.featured { border: 2px solid var(--terracotta); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--terracotta); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .35rem .9rem; border-radius: 999px; white-space: nowrap; }
.plan h3 { color: var(--olive-dark); }
.plan-price { font-family: var(--font-display); margin: .5rem 0; color: var(--muted); }
.plan-price strong { font-size: 1.7rem; color: var(--terracotta); }
.plan-desc { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.plan ul { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.5rem; }
.plan li { padding-left: 1.5rem; position: relative; font-size: .94rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--olive); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* ---------- contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.contact-info { list-style: none; margin: 1.2rem 0; display: grid; gap: .5rem; }
.contact-form { background: var(--paper); padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(110,114,80,.12); display: grid; gap: .9rem; }
.contact-form label { font-weight: 600; font-size: .9rem; color: var(--olive-dark); display: grid; gap: .35rem; }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .7rem .85rem; border-radius: 10px;
  border: 1.5px solid rgba(110,114,80,.3); background: #fff; color: var(--charcoal); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(110,114,80,.18);
}
.form-note { font-size: .8rem; color: var(--muted); }
.hidden-field { display: none; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--olive-dark); color: #f3efe2; padding: 2.5rem 0; text-align: center; }
.footer-logo { width: 90px; margin: 0 auto 1rem; }
.footer-tag { font-family: var(--font-display); font-size: 1.05rem; }
.footer-copy { font-size: .85rem; opacity: .8; margin-top: .5rem; }

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

/* ---------- animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(110,114,80,.2);
    padding: .5rem 22px 1rem; box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
  }
  .nav-list.open { max-height: 460px; padding-top: .5rem; }
  .nav-list li { border-bottom: 1px solid rgba(110,114,80,.12); }
  .nav-list a { display: block; padding: .85rem .2rem; }
  .nav-cta { display: inline-block; margin: .6rem 0; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-illu { order: 1; }
  .hero-logo, .hero-tagline, .hero-sub { margin-inline: auto; }
  .hero-script { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-illu img { max-width: 300px; }

  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-illu { order: -1; }
  .about-points { text-align: left; max-width: 380px; margin-inline: auto; }

  .steps, .audience-list, .gallery-grid, .testi-grid, .plans { grid-template-columns: 1fr; }
  .audience-list li { text-align: left; }
  .contact-inner { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
}

@media (min-width: 881px) and (max-width: 1040px) {
  .audience-list { grid-template-columns: 1fr; }
}
