/* =========================================================
   Couture & Fil — feuille de style unique
   Palette reprise de l'identité de l'atelier : orange du logo,
   rose des bijoux au crochet, fond crème toile de jute.
   ========================================================= */

:root {
  /* Le site reste clair, quel que soit le réglage de l'appareil. */
  color-scheme: light;

  --cream: #fffdfa;
  --cream-deep: #fff2e8;
  --surface: #ffffff;
  --surface-alt: #fff0f6;
  --ink: #3a2733;
  --ink-soft: #6f5a67;
  --line: #ffe1ec;

  --coral: #ff6b35;
  --coral-dark: #d64a12;
  --pink: #ff3d8b;
  --berry: #c4186b;
  --berry-deep: #ad0f5c;
  --sky: #1499bd;
  --mint: #12b394;
  --gold: #ffb703;
  /* Versions assombries : les teintes vives ci-dessus ne passent pas le
     contraste AA en petit texte sur fond clair. */
  --sky-text: #0a6f8c;
  --mint-text: #067a64;

  --grad-warm: linear-gradient(135deg, #ff8a3d 0%, #ff3d8b 100%);
  /* Le dégradé vif ne donne que 2,35:1 avec du texte blanc. Cette version
     assombrie (5,18:1 à 7,65:1) sert partout où du texte repose dessus. */
  --grad-warm-texte: linear-gradient(135deg, #c2410c 0%, #a1105c 100%);
  --grad-cool: linear-gradient(135deg, #35c8e8 0%, #7b6cf6 100%);
  /* Fond des sections teintées : pêche → rose → bleu très clairs. */
  --grad-soft: linear-gradient(135deg, #fff0e0 0%, #ffe8f3 48%, #eaf6ff 100%);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 2px 10px rgba(90, 45, 25, 0.07);
  --shadow: 0 14px 34px rgba(90, 45, 25, 0.12);
  --shadow-lg: 0 26px 60px rgba(90, 45, 25, 0.18);

  --shell: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --header-h: 74px;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

/* Taille du texte choisie depuis la page « Modifier » (réglage
   « Taille du texte ») : tout le site étant dimensionné en rem, changer
   la taille de la racine agrandit uniformément textes et espacements. */
html[data-taille="grand"] {
  font-size: 112.5%;
}

html[data-taille="tres-grand"] {
  font-size: 125%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

/* Les conteneurs du panier et de la modale sont affichés en flex/grid :
   sans cette règle, l'attribut `hidden` ne les masquerait pas. */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.14;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem);
}

p {
  margin: 0 0 1rem;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 0.6rem;
}

.lead,
.section-lead {
  color: var(--ink-soft);
  font-size: 1.08em;
  max-width: 58ch;
}

/* ---------- boutons ---------- */

.btn {
  --btn-bg: var(--grad-warm-texte);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn--primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 10px 24px rgba(224, 42, 123, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(224, 42, 123, 0.38);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}

.btn--ghost:hover {
  background: var(--surface-alt);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

.icon-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink-soft);
}

.icon-button:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

/* ---------- bandeau d’annonce + header ---------- */

.demo-banner {
  background: var(--grad-warm-texte);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 550;
  padding: 0.5rem var(--gutter);
}

/* ---------- bannière de consentement (mesure d’audience) ---------- */

.cookies-banniere {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--surface);
  color: var(--ink);
  padding: 1rem var(--gutter);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--line);
}

.cookies-banniere p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cookies-banniere-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ink-soft);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-nav a:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-button {
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.18s ease;
}

.cart-button:hover {
  transform: translateY(-2px);
}

.cart-button svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--grad-warm-texte);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-count.is-visible {
  transform: scale(1);
}

.cart-button.is-bumped {
  animation: bump 0.4s ease;
}

@keyframes bump {
  40% {
    transform: scale(1.16);
  }
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  place-items: center;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.burger::before,
.burger::after {
  content: "";
  position: relative;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 4px;
}

.menu-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .burger::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-blob--1 {
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 150, 60, 0.7), transparent 68%);
}

.hero-blob--2 {
  width: 40vw;
  height: 40vw;
  max-width: 460px;
  max-height: 460px;
  bottom: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 61, 139, 0.55), transparent 68%);
}

/* Troisième tache, plus froide, pour élargir la gamme de couleurs. */
.hero::after {
  content: "";
  position: absolute;
  width: 34vw;
  height: 34vw;
  max-width: 400px;
  max-height: 400px;
  right: 18%;
  bottom: -22%;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  background: radial-gradient(circle, rgba(53, 200, 232, 0.6), transparent 68%);
}

/* Fondu en bas de l'accueil : sans lui, les taches de couleur floutées
   s'arrêtent net à la bordure de la section, comme découpées au
   couteau. Un vrai élément (plutôt qu'un ::before/::after, déjà pris)
   pour être sûr de peindre par-dessus les taches — mais la 3ᵉ tache
   (.hero::after) est elle-même un pseudo-élément, toujours peint en
   dernier quel que soit l'ordre dans le HTML : d'où le z-index, pour
   que le fondu passe bien par-dessus elle aussi. */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(70px, 14vh, 160px);
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 0.55em;
}

.hero-copy h1 em {
  font-style: normal;
  background: var(--grad-warm-texte);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 2rem;
}

.highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.highlights strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--coral-dark);
}

.highlights span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-media {
  position: relative;
  aspect-ratio: 1 / 1;
}

.hero-photo {
  margin: 0;
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
  background: var(--surface);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo--main {
  inset: 0 14% 16% 0;
  animation: float 9s ease-in-out infinite;
}

.hero-photo--small {
  width: 46%;
  aspect-ratio: 1;
  right: 0;
  bottom: 6%;
  animation: float 7.5s ease-in-out infinite 0.6s;
}

.hero-photo--tiny {
  width: 30%;
  aspect-ratio: 1;
  left: 2%;
  bottom: 0;
  border-radius: 50%;
  animation: float 8.5s ease-in-out infinite 1.2s;
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- sections ---------- */

.section {
  padding: var(--section-y) 0;
}

.section--tinted {
  position: relative;
  background: var(--grad-soft);
}

/* Fondu en haut et en bas : évite la coupure nette entre le fond
   teinté de la section et le fond crème des sections voisines. */
.section--tinted::before,
.section--tinted::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(50px, 10vh, 120px);
  pointer-events: none;
}

.section--tinted::before {
  top: 0;
  background: linear-gradient(to bottom, var(--cream), transparent);
}

.section--tinted::after {
  bottom: 0;
  background: linear-gradient(to top, var(--cream), transparent);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  margin-bottom: 0.4em;
}

/* ---------- univers ---------- */

.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.universe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 0;
  padding: 0;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.universe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.universe-card .media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
}

.universe-card img {
  --zoom: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--zoom));
  transition: transform 0.5s ease;
}

.universe-card:hover img {
  transform: scale(calc(var(--zoom) * 1.06));
}

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

.universe-card h3 {
  margin-bottom: 0.3em;
}

.universe-card p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.universe-card .more {
  font-weight: 650;
  color: var(--berry);
  font-size: 0.92rem;
}

.universe-card:nth-child(2) .more {
  color: var(--sky-text);
}

.universe-card:nth-child(3) .more {
  color: var(--mint-text);
}

/* ---------- filtres ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.filter {
  border: 0;
  cursor: pointer;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.filter:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.filter[aria-pressed="true"] {
  background: var(--grad-warm-texte);
  color: #fff;
  box-shadow: 0 8px 18px rgba(224, 42, 123, 0.3);
}

/* ---------- produits ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-alt);
}

.product-media img {
  --zoom: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom));
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(calc(var(--zoom) * 1.05));
}

.product-media .placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1rem;
  background: var(--grad-soft);
  color: var(--berry);
  font-size: 0.8rem;
  line-height: 1.4;
}

.product-media .placeholder span:first-child {
  font-size: 2.2rem;
}

.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--berry);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.product-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-body h3 {
  font-size: 1.02rem;
  font-family: var(--font-body);
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
}

.product-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.variants-note {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sky-text);
}

.product-foot {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.add-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  background: var(--berry-deep);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  transition: background 0.18s ease, transform 0.18s ease;
}

.add-button:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.grid-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem 0;
}

/* ---------- services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--grad-warm);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Chaque prestation prend un liseré de couleur différent. */
.service-card:nth-child(2) {
  background-image: linear-gradient(var(--surface), var(--surface)), var(--grad-cool);
}

.service-card:nth-child(3) {
  background-image: linear-gradient(var(--surface), var(--surface)),
    linear-gradient(135deg, #12b394 0%, #ffb703 100%);
}

.service-card:nth-child(2) .service-price {
  color: var(--sky-text);
}

.service-card:nth-child(3) .service-price {
  color: var(--mint-text);
}

.service-card:nth-child(2) li::before {
  color: var(--sky);
}

.service-card:nth-child(3) li::before {
  color: var(--mint);
}

.service-card h3 {
  margin-bottom: 0.25em;
}

.service-price {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--berry);
  background: var(--surface-alt);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.service-card li {
  padding-left: 1.5rem;
  position: relative;
}

.service-card li::before {
  content: "✿";
  position: absolute;
  left: 0;
  color: var(--coral);
}

/* ---------- marchés ---------- */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.market-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.market-day {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--berry);
  background: var(--surface-alt);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.market-map {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: var(--surface-alt);
}

.market-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.market-place {
  font-weight: 700;
}

.market-hours {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.market-link {
  display: inline-block;
  font-weight: 700;
  color: var(--coral-dark);
  text-decoration: none;
}

.market-link:hover,
.market-link:focus-visible {
  text-decoration: underline;
}

/* ---------- atelier ---------- */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.about-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid var(--surface);
  background: var(--surface);
}

.about-media img {
  --zoom: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(var(--zoom));
}

.skills {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.skills li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 550;
}

.skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-warm);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-infos {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-infos li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-infos .ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  font-size: 1.05rem;
}

.contact-infos strong {
  display: block;
  font-size: 0.92rem;
}

.contact-infos span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.contact-form {
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 650;
}

.field input,
.field textarea {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.18s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--pink);
  outline: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--coral-dark);
}

.field .error {
  font-size: 0.8rem;
  color: var(--coral-dark);
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--berry);
  min-height: 1.3em;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--grad-soft);
  color: var(--ink);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  border-top: 4px solid transparent;
  border-image: var(--grad-warm) 1;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.site-footer img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  margin: 0 auto 0.75rem;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  max-width: 46ch;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: center;
}

.footer-inner nav a,
.footer-legal a {
  color: var(--berry);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Réseaux sociaux : ronds cliquables assez grands pour le doigt (44 px,
   le minimum confortable sur téléphone), reconnaissables à leur logo. */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--berry);
  border: 1px solid var(--line);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  color: var(--ink);
  border-color: currentColor;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .social-btn {
    transition: none;
  }

  .social-btn:hover,
  .social-btn:focus-visible {
    transform: none;
  }
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  width: 100%;
  font-size: 0.85rem !important;
}

/* Seule porte d'entrée vers la page « Modifier » sur la page commune :
   discrète, pour ne pas ressembler à une invitation à modifier le site,
   mais toujours visible (sinon Françoise n'aurait aucun moyen d'y
   accéder). Le bouton d'installation et le reste des options de
   Françoise vivent désormais sur cette page-là, pas ici. */
.footer-access {
  margin: 0.5rem 0 0 !important;
  font-size: 0.78rem !important;
}

.footer-access a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-access a:hover,
.footer-access a:focus-visible {
  text-decoration: underline;
}

/* ---------- panier ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(58, 25, 48, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.overlay.is-open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(420px, 100%);
  height: 100dvh;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 1rem;
}

.cart-empty span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-line .thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-alt);
}

.cart-line .thumb-placeholder {
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--grad-soft);
}

.cart-line h3 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 650;
  margin: 0 0 0.3rem;
  line-height: 1.35;
}

.cart-line .line-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.15rem;
  box-shadow: var(--shadow-sm);
}

.qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink-soft);
}

.qty button:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.qty output {
  min-width: 1.6rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 650;
}

.line-price {
  font-weight: 650;
  font-size: 0.95rem;
}

.remove-line {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: underline;
  padding: 0;
}

.remove-line:hover {
  color: var(--coral-dark);
}

.cart-foot {
  border-top: 1px solid var(--line);
  padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom));
  display: grid;
  gap: 0.75rem;
  background: var(--surface);
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.cart-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- modale ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(58, 25, 48, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.is-open {
  opacity: 1;
}

.modal-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal.is-open .modal-card {
  transform: none;
}

.modal-card p {
  color: var(--ink-soft);
}

.recap {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

.recap li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.recap-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.2rem;
}

/* Coordonnées demandées avant un paiement direct par carte, une fois
   « Payer par carte » cliqué : la modale est centrée, mais un
   formulaire se lit mieux aligné à gauche. */
#checkout-livraison {
  text-align: left;
  display: grid;
  gap: 0.7rem;
}

.checkout-livraison-titre {
  color: var(--ink-soft);
  margin: -0.4rem 0 0;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  transform: translate(-50%, 150%);
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
  pointer-events: none;
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

/* ---------- révélation au scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero-inner,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }

  .about-media {
    max-width: 480px;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }

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

  .site-nav a {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
  }

  .brand small {
    display: none;
  }
}

/* Sur mobile, une grille à deux colonnes garde la boutique lisible sans
   transformer la page en interminable colonne. */
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .product-body {
    padding: 0.85rem 0.9rem 1rem;
    gap: 0.35rem;
  }

  .product-body h3 {
    font-size: 0.92rem;
  }

  .product-body p:not(.variants-note) {
    display: none;
  }

  .product-foot {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .price {
    font-size: 1.12rem;
  }

  .add-button {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  .badge {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.66rem;
    padding: 0.2rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
