/* Atelier Pivoine, fleuriste. Style "Herbier".
   Des planches de spécimens montées sur papier : chaque bouquet est dessiné
   au trait et pousse sous vos yeux, étiquette et nom latin à l'appui. */

@font-face {
  font-family: 'Cormorant Garamond Variable';
  src: url('../fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond Variable';
  src: url('../fonts/cormorant-garamond-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk Variable';
  src: url('../fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --papier: #F4F1EA;
  --papier-ombre: #E8E3D7;
  --seve: #2F4A3A;
  --sepia: #5A4632;
  --sepia-doux: #7A6A57;      /* 4.52:1 sur le papier */
  --pivoine: #C85A7C;         /* aplats, traits, filets */
  --pivoine-texte: #A83A5E;   /* petit texte, 4.52:1 sur le papier */
  --filet: rgba(90, 70, 50, .25);
  --pousse: cubic-bezier(.33, .1, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding: 0 clamp(1.25rem, 5vw, 4rem) 8rem;
  background: var(--papier);
  color: var(--sepia);
  font-family: 'Hanken Grotesk Variable', system-ui, sans-serif;
  font-size: clamp(.95rem, .92rem + .2vw, 1.05rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pivoine); color: var(--papier); }

/* Grain de papier à dessin, très léger. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

.feuille { max-width: 74rem; margin-inline: auto; }

/* ── Entête ───────────────────────────────────────────────────────────── */

.entete { padding-block: clamp(3rem, 9vh, 6rem) clamp(2rem, 6vh, 4rem); }
.cote {
  margin: 0 0 1.6rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sepia-doux);
}
.titre-maison {
  margin: 0;
  max-width: 16ch;
  font-family: 'Cormorant Garamond Variable', Garamond, serif;
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--seve);
}
.titre-maison b { display: block; font-style: normal; font-weight: 400; }
.sous-titre {
  max-width: 44ch;
  margin: 1.8rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--sepia-doux);
}

/* ── Planches de spécimens ────────────────────────────────────────────── */

.planches {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Douze colonnes, et des planches de tailles inégales : un herbier n'est
   pas une grille de cartes identiques. */
@media (min-width: 56rem) {
  .planches { grid-template-columns: repeat(12, 1fr); }
  .planches > li:nth-child(1) { grid-column: span 7; }
  .planches > li:nth-child(2) { grid-column: span 5; margin-top: 3.5rem; }
  .planches > li:nth-child(3) { grid-column: span 5; }
  .planches > li:nth-child(4) { grid-column: span 7; margin-top: -2rem; }
}

.planche {
  display: grid;
  gap: 1.25rem;
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--filet);
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 70%);
}
@media (min-width: 30rem) { .planche { grid-template-columns: minmax(0, 1fr) 13rem; align-items: end; } }

.dessin { width: 100%; max-width: 15rem; height: auto; justify-self: center; overflow: visible; }
.dessin path, .dessin ellipse, .dessin circle, .dessin line {
  fill: none;
  stroke: var(--seve);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.dessin .fleur { stroke: var(--pivoine); }
/* Le trait pousse, il n'apparaît pas. Chaque élément part un peu après le précédent. */
.js .vu .dessin path,
.js .vu .dessin ellipse,
.js .vu .dessin circle,
.js .vu .dessin line { animation: pousser 1.5s var(--pousse) forwards; }
.js .vu .dessin > *:nth-child(2) { animation-delay: .35s; }
.js .vu .dessin > *:nth-child(3) { animation-delay: .5s; }
.js .vu .dessin > *:nth-child(4) { animation-delay: .7s; }
.js .vu .dessin > *:nth-child(n+5) { animation-delay: .9s; }
@keyframes pousser { to { stroke-dashoffset: 0; } }
html:not(.js) .dessin *, .sans-pousse .dessin * { stroke-dashoffset: 0; }

/* L'étiquette, écrite à la main et collée en bas de planche. */
.etiquette {
  padding: 1rem 1.1rem;
  border: 1px solid var(--filet);
  background: var(--papier-ombre);
}
.etiquette-num {
  margin: 0 0 .5rem;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pivoine-texte);
}
.etiquette-nom {
  margin: 0;
  font-family: 'Cormorant Garamond Variable', Garamond, serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--seve);
}
.etiquette-latin {
  margin: .15rem 0 .8rem;
  font-family: 'Cormorant Garamond Variable', Garamond, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sepia-doux);
}
.etiquette dl { margin: 0; padding-top: .7rem; border-top: 1px solid var(--filet); }
.etiquette dl div { display: flex; gap: .6rem; font-size: .76rem; line-height: 1.5; padding: .15rem 0; }
.etiquette dt { color: var(--sepia-doux); }
.etiquette dd { margin: 0 0 0 auto; font-weight: 600; }

/* ── Sections de texte ────────────────────────────────────────────────── */

section { padding-top: clamp(3rem, 8vh, 5.5rem); }
.section-h {
  margin: 0 0 1.5rem;
  font-family: 'Cormorant Garamond Variable', Garamond, serif;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--seve);
}
.section-h em { font-style: italic; color: var(--pivoine-texte); }

.mot-grille { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 52rem) { .mot-grille { grid-template-columns: 1.1fr .9fr; } }
.mot-grille p { margin: 0 0 1rem; max-width: 48ch; }
.citation {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--pivoine);
  font-family: 'Cormorant Garamond Variable', Garamond, serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.4;
  color: var(--seve);
}

/* ── Formules, montées comme des étiquettes ───────────────────────────── */

.formules { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 46rem) { .formules { grid-template-columns: repeat(3, 1fr); } }
.formule {
  display: grid;
  gap: .5rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--filet);
  border-top: 3px solid var(--seve);
}
.formule:nth-child(2) { border-top-color: var(--pivoine); }
.formule h3 {
  margin: 0;
  font-family: 'Cormorant Garamond Variable', Garamond, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--seve);
}
.formule-prix { margin: 0; font-size: 1.1rem; font-weight: 700; }
.formule p { margin: 0; font-size: .9rem; color: var(--sepia-doux); }

/* ── Venir ────────────────────────────────────────────────────────────── */

.venir-grille { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 46rem) { .venir-grille { grid-template-columns: 1fr 1fr; } }
.horaires { margin: 0; }
.horaire { display: flex; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--filet); }
.horaire dt { width: 10ch; }
.horaire dd { margin: 0 0 0 auto; color: var(--sepia-doux); }
.horaire.ferme dd { color: var(--pivoine-texte); }
.venir-grille p { margin: 0 0 .9rem; max-width: 44ch; }
.venir-grille a { color: var(--pivoine-texte); text-underline-offset: .25em; }
.venir-grille a:hover, .venir-grille a:focus-visible { color: var(--seve); }

.venir-grille .commander {
  display: inline-block;
  margin-top: .8rem;
  padding: .85rem 1.9rem;
  border: 1px solid var(--seve);
  background: var(--seve);
  color: var(--papier);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background-color .4s var(--pousse), color .4s var(--pousse);
}
.venir-grille .commander:hover,
.venir-grille .commander:focus-visible { background: transparent; color: var(--seve); }
.commander:focus-visible { outline: 2px solid var(--pivoine); outline-offset: 3px; }

.pied {
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
  font-size: .8rem;
  color: var(--sepia-doux);
}

/* ── Révélation : lente, en courbe, jamais sèche ──────────────────────── */

.js .rv { opacity: 0; transform: translateY(18px); animation: secours 1s var(--pousse) 2.8s forwards; }
.js .rv.vu {
  opacity: 1;
  transform: none;
  animation: none;
  transition: opacity 1.1s var(--pousse) var(--retard, 0ms), transform 1.1s var(--pousse) var(--retard, 0ms);
}
@keyframes secours { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv.vu { opacity: 1; transform: none; transition: none; animation: none; }
  .js .vu .dessin * { animation: none; stroke-dashoffset: 0; }
}

/* ── Bandeau Webot ────────────────────────────────────────────────────────
   Identique sur toutes les démos, volontairement neutre pour rester lisible
   quel que soit le style derrière. Police système : elle ne compte pas dans
   les deux familles de la démo. */

.webot-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: calc(100vw - 2rem);
  padding: .6rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(16, 16, 18, .92);
  color: #fff;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .8125rem;
  line-height: 1.3;
  letter-spacing: .01em;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
@supports (backdrop-filter: blur(8px)) {
  .webot-bar { background: rgba(16, 16, 18, .78); backdrop-filter: blur(10px); }
}
.webot-bar p { margin: 0; color: rgba(255, 255, 255, .78); }
.webot-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  padding-bottom: 1px;
  white-space: nowrap;
}
.webot-bar a:hover { border-bottom-color: #fff; }
.webot-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
@media (max-width: 34rem) {
  .webot-bar { top: .75rem; bottom: auto; gap: .75rem; padding: .5rem .9rem; font-size: .75rem; }
}
