/* ==========================================================================
   Boutures & Fleurs — feuille de styles
   Palette : vert forêt / ivoire / terracotta  ·  Typo : Fraunces + Karla
   ========================================================================== */

:root {
  --ink:        #1a1d19;
  --ink-soft:   #4e554b;
  --paper:      #f7f4ec;
  --paper-2:    #efeade;
  --forest:     #17281c;
  --forest-2:   #1f3626;
  --leaf:       #3d6b47;
  --leaf-light: #6d9a72;
  --accent:     #b4552d;
  --accent-soft:#d98b62;
  --line:       #ddd6c6;

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Karla", "Segoe UI", system-ui, sans-serif;

  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-variation-settings: "SOFT" 0, "WONK" 0; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.24rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }
.center { text-align: center; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.lede { font-size: clamp(1.06rem, 1.9vw, 1.28rem); color: var(--ink-soft); }

/* ---------- barre de navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 68px;
}
.brand {
  font-family: var(--serif); font-size: 1.14rem; font-weight: 600;
  text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.brand em { color: var(--accent); font-style: normal; }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  text-decoration: none; font-size: .94rem; color: var(--ink-soft);
  padding: .35rem 0; border-bottom: 1.5px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.burger {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .5rem .7rem; cursor: pointer; font: inherit; color: var(--ink); min-height: 44px;
}
@media (max-width: 800px) {
  .nav {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.2rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; width: 100%; font-size: 1.02rem; }
  .burger { display: block; }
}

/* ---------- héros ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16,27,18,.95) 0%, rgba(16,27,18,.72) 38%, rgba(16,27,18,.34) 72%, rgba(16,27,18,.18) 100%),
    linear-gradient(102deg, rgba(16,27,18,.82) 0%, rgba(16,27,18,.42) 52%, rgba(16,27,18,.04) 100%);
}
.hero__body { position: relative; z-index: 2; color: #fdfbf6; padding-block: clamp(3rem, 8vw, 6rem); width: 100%; }
.hero__body h1 { max-width: 15ch; margin-bottom: .5em; }
.hero__body .lede { color: #e4e0d3; max-width: 54ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2rem;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #e2ddcc;
}
.hero__meta span { display: flex; align-items: center; gap: .55rem; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #e9ae86; }
.hero .eyebrow { color: #e9ae86; }

/* ---------- héros secondaire (pages intérieures) ---------- */
.pagehead { background: var(--forest); color: #f2efe4; padding-block: clamp(3rem, 7vw, 5rem); }
.pagehead h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; }
.pagehead .lede { color: #c6c3b4; max-width: 62ch; }
.pagehead .eyebrow { color: var(--accent-soft); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.4rem, 8vw, 6.2rem); }
.section--paper2 { background: var(--paper-2); }
.section--forest { background: var(--forest); color: #eee9dc; }
.section--forest h2, .section--forest h3 { color: #fdfbf6; }
.section--forest .eyebrow { color: var(--accent-soft); }
.section--forest .lede { color: #bfbcae; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr .95fr; } }
.split--flip > :first-child { order: 2; }
@media (max-width: 879px) { .split--flip > :first-child { order: 0; } }

.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure figcaption { font-size: .84rem; color: var(--ink-soft); margin-top: .65rem; }
.section--forest .figure figcaption { color: #a9a698; }

/* ---------- grille de variétés ---------- */
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20,40,25,.5); border-color: #cdc4ae; }
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.card__body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card__latin { font-family: var(--serif); font-style: italic; font-size: .88rem; color: var(--ink-soft); margin: 0; }
.card h3 { margin: 0; }
.card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .9rem; }
.tag {
  font-size: .71rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600;
  padding: .26rem .55rem; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft);
}
.tag--easy { color: #2f5d3a; border-color: #b6cdb8; }
.tag--med  { color: #8a5a12; border-color: #dcc79a; }

/* ---------- liste éditoriale numérotée ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.05rem; color: var(--accent);
  border-top: 1.5px solid var(--accent); padding-top: .35rem; min-width: 2.1rem;
}
.steps h3 { margin: .1rem 0 .3rem; }

/* ---------- bandeau calendrier ---------- */
.seasons { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.season { background: var(--paper); padding: 1.5rem 1.35rem; }
.season h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .17em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.season ul { margin: 0; padding-left: 1.05rem; font-size: .93rem; color: var(--ink-soft); }
.season li { margin-bottom: .35rem; }

/* ---------- bandeau d'appel ---------- */
.callout { background: var(--forest-2); color: #f2efe4; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.4rem); }
.callout h2 { color: #fdfbf6; }
.callout p { color: #c2bfb0; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 46px;
  padding: .78rem 1.5rem; border-radius: var(--radius); text-decoration: none;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em; border: 1.5px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: #9c4726; }
.btn--ghost { border-color: rgba(253,251,246,.75); color: #fdfbf6; background: rgba(253,251,246,.14); backdrop-filter: blur(3px); }
.btn--ghost:hover { background: rgba(253,251,246,.26); border-color: #fdfbf6; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
@media (max-width: 520px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { justify-content: center; }
}

/* ---------- galerie ---------- */
.gallery { columns: 3 260px; column-gap: clamp(1rem, 2.4vw, 1.6rem); }
.gallery figure { margin: 0 0 clamp(1rem, 2.4vw, 1.6rem); break-inside: avoid; }
.gallery img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: .83rem; color: var(--ink-soft); margin-top: .55rem; }
.gallery figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- formulaire ---------- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.form-field .req { color: var(--accent); }
.form-field input, .form-field textarea {
  width: 100%; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: #fff; color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(61,107,71,.16); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #9a9789; }
.form-hint { font-size: .82rem; color: var(--ink-soft); margin-top: .9rem; line-height: 1.5; }

/* ---------- fiche contact ---------- */
.fields { display: grid; gap: 1.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.field h3 { font-size: 1.02rem; font-family: var(--sans); letter-spacing: .02em; margin-bottom: .3rem; }
.field p, .field a { font-size: .96rem; color: var(--ink-soft); text-decoration: none; }
.field a:hover { color: var(--accent); }
.note {
  border-left: 3px solid var(--accent-soft); background: rgba(180,85,45,.06);
  padding: 1rem 1.2rem; font-size: .92rem; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- tableau (crédits) ---------- */
.table-wrap { overflow-x: auto; }
.credits { width: 100%; border-collapse: collapse; font-size: .9rem; }
.credits th, .credits td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.credits th { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.credits img { width: 84px; height: 60px; object-fit: cover; border-radius: var(--radius); display: block; }
.credits a { color: var(--accent); text-decoration: none; }
.credits a:hover { text-decoration: underline; }

/* ---------- pied de page ---------- */
.footer { background: var(--forest); color: #a9a698; padding-block: 3.2rem 2.2rem; font-size: .92rem; }
.footer a { color: #d8d4c4; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 2.4rem; }
.footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .17em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45rem; }
.footer__base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .84rem; }

/* ---------- accessibilité ---------- */
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: .7rem 1rem; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover { transform: none; }
}

/* petit utilitaire */
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
