/*
 * IDELA HERBO — feuille de style du site public.
 *
 * Direction retenue, d'après ce que font les marques de tisanes et de
 * phytothérapie qui fonctionnent : verts profonds et tons terreux tirés du
 * sceau, beaucoup de blanc, un serif pour les titres qui évoque l'apothicaire
 * sans faire vieillot, et des motifs botaniques discrets — jamais au premier
 * plan, où c'est le produit qui doit être.
 *
 * Écrit pour le mobile d'abord. Le marché est mobile, souvent sur un réseau
 * lent, et une page qui n'est belle qu'en 1400 px de large n'est belle pour
 * presque personne ici.
 */

:root {
  --green-900: #063a1e;
  --green-700: #0f7038;
  --green-500: #2d9459;
  --green-100: #e6f2ea;
  --green-050: #f3f9f5;

  --earth-700: #6b4f2a;
  --earth-300: #c9a227;

  --ink: #16241c;
  --ink-soft: #4a5c51;
  --line: #dfe8e2;
  --paper: #fcfdfc;
  --cream: #f7f4ec;

  --shadow-sm: 0 1px 2px rgb(6 58 30 / 6%), 0 4px 12px rgb(6 58 30 / 5%);
  --shadow-md: 0 2px 6px rgb(6 58 30 / 8%), 0 12px 32px rgb(6 58 30 / 8%);

  --radius: 14px;
  --radius-lg: 22px;
  --measure: 64ch;

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
}

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

a {
  color: var(--green-700);
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  max-width: var(--measure);
}

/* Rendre le focus visible : une partie des visiteurs navigue au clavier, et
   sur mobile le contour aide aussi à se repérer. */
:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: white;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ============================ en-tête ============================ */

.topbar {
  background: var(--green-900);
  color: #dff0e5;
  font-size: 0.82rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: center;
  padding: 0.5rem 0;
}

.topbar a {
  color: inherit;
}

.topbar__spacer {
  flex: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(252 253 252 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand svg {
  width: 52px;
  height: 52px;
  color: var(--green-700);
  flex: none;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: 0.09em;
  color: var(--green-900);
  line-height: 1.1;
}

.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--green-700);
}

.market {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
}

.market select {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: inherit;
}

.market--uncertain select {
  border-color: var(--earth-300);
  background: #fdfaf0;
}

@media (max-width: 860px) {
  .nav {
    gap: 0.9rem;
  }
  .nav__links {
    display: none;
  }
}

/* ============================ héros ============================ */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--green-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--green-050), var(--paper));
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
  grid-template-columns: 1.05fr 0.95fr;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 3rem;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  color: var(--green-900);
}

.hero__lead {
  margin: 1.1rem 0 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero__art {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--green-700), var(--green-900));
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 88%);
  overflow: hidden;
}

.hero__art svg {
  width: 62%;
  height: auto;
  opacity: 0.9;
}

/* Emplacement d'une photo : tant qu'il n'y en a pas, le bloc reste élégant
   plutôt que vide. */
.hero__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 30% 20%, rgb(255 255 255 / 12%), transparent 70%);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ============================ boutons ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.98rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--green-700);
  color: white;
}

.btn--primary:hover {
  background: var(--green-900);
}

.btn--ghost {
  background: transparent;
  border-color: var(--green-700);
  color: var(--green-700);
}

.btn--ghost:hover {
  background: var(--green-100);
}

/* ============================ sections ============================ */

.section {
  padding: 4rem 0;
}

.section--tint {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-500);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--green-900);
}

.section__lead {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

/* ============================ produits ============================ */

.products {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

.product {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--green-100);
}

/* Vignette : dégradé + motif botanique en attendant les photographies. */
.product__art {
  aspect-ratio: 5 / 3.2;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--green-050), var(--green-100));
  color: var(--green-500);
  border-bottom: 1px solid var(--line);
}

.product__art svg {
  width: 44%;
  height: auto;
  opacity: 0.75;
}

.product__body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product__name {
  font-size: 1.1rem;
  color: var(--green-900);
}

.product__claim {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__foot {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.price {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--green-900);
}

.price__note {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.quantity {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ============================ fiche produit ============================ */

.detail {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  padding: 3rem 0;
}

@media (max-width: 900px) {
  .detail {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }
}

.detail__art {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--green-050), var(--green-100));
  display: grid;
  place-items: center;
  color: var(--green-500);
  border: 1px solid var(--line);
}

.detail__art svg {
  width: 55%;
}

.detail h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--green-900);
}

.detail__price {
  margin: 1.2rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.detail__price .price {
  font-size: 1.9rem;
}

.taxes {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 22rem;
}

.taxes li {
  display: flex;
  justify-content: space-between;
  padding: 0.12rem 0;
}

.panel {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--green-050);
  border: 1px solid var(--line);
}

.panel h2 {
  font-size: 1rem;
  font-family: var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.5rem;
}

.panel p {
  margin: 0;
  font-size: 0.95rem;
}

.panel--warn {
  background: #fdfaf0;
  border-color: #eadfc0;
}

.panel--warn h2 {
  color: var(--earth-700);
}

/* ============================ histoire ============================ */

.story {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
  }
}

.story__art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--earth-700), var(--green-900));
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 82%);
  box-shadow: var(--shadow-sm);
}

.story__art svg {
  width: 50%;
}

.facts {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 2rem;
}

.fact__number {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--green-700);
  line-height: 1;
}

.fact__label {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

/* ============================ vérification ============================ */

.verify {
  background: var(--green-900);
  color: #e8f5ec;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.verify h2 {
  color: white;
  font-size: 1.5rem;
}

.verify p {
  color: rgb(232 245 236 / 78%);
  max-width: 52ch;
}

.verify__form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.verify input {
  font: inherit;
  flex: 1 1 15rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 10%);
  color: white;
}

.verify input::placeholder {
  color: rgb(232 245 236 / 45%);
}

.verify .btn--primary {
  background: white;
  color: var(--green-900);
}

.verify__result {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.verify__result--ok {
  color: #b7f0c9;
}

.verify__result--ko {
  color: #ffc9c0;
}

/* ============================ pied ============================ */

.footer {
  background: var(--green-900);
  color: rgb(223 240 229 / 78%);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.footer a {
  color: rgb(223 240 229 / 92%);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(160px, 1fr));
}

.footer h3 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 62%);
  margin-bottom: 0.7rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.8rem;
  color: rgb(223 240 229 / 55%);
}

/* ============================ divers ============================ */

.notice {
  margin: 1.2rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--earth-300);
  background: #fdfaf0;
  color: var(--earth-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
}

.empty {
  padding: 3rem 0;
  color: var(--ink-soft);
}

.breadcrumb {
  padding: 1.2rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  text-decoration: none;
}

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