/* ==========================================================================
   Doudoute — feuille de style du site public
   Ambiance « chaleureux artisanal » : papier crème, rouge garance, typo douce.
   Les 6 couleurs principales viennent des « Réglages du site » (admin) et sont
   injectées dans :root par front/layout.html.twig. Le reste en est dérivé.
   ========================================================================== */

/* ── Polices (hébergées localement, aucun appel à Google) ── */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-soft-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-soft-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ── Variables ── */
:root {
  /* valeurs par défaut — écrasées par les réglages du site */
  --bg: #f8f1e7;
  --surface: #fffbf5;
  --text: #3b2621;
  --muted: #86685c;
  --accent: #b3261e;
  --accent-dark: #841b15;

  /* dérivées */
  --border: color-mix(in srgb, var(--text) 13%, transparent);
  --border-strong: color-mix(in srgb, var(--text) 24%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --accent-tint: color-mix(in srgb, var(--accent) 18%, var(--bg));
  --sand: color-mix(in srgb, var(--muted) 14%, var(--bg));
  --ink: color-mix(in srgb, var(--text) 88%, black);

  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgba(60, 25, 15, .06), 0 10px 28px -14px rgba(60, 25, 15, .28);
  --shadow-lift: 0 2px 4px rgba(60, 25, 15, .06), 0 22px 40px -18px rgba(60, 25, 15, .38);
  --max: 1180px;

  /* trait « dessiné à la main » réutilisé sous les titres et les liens */
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 C 15 2, 25 11, 40 6 S 65 2, 80 7 S 105 10, 118 4' fill='none' stroke='%23b3261e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.65;
  background-color: var(--bg) !important;
  /* grain de papier très léger */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-content { flex: 1 0 auto; }

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--accent); color: #fff; }

.inner { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.hand { font-family: var(--font-hand); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff !important;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 90%, transparent);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--border-strong);
  box-shadow: none;
}
.btn-outline:hover { background: var(--surface); border-color: var(--ink); box-shadow: none; }

.btn-light {
  background: var(--surface);
  color: var(--accent) !important;
  border-color: var(--surface);
}
.btn-light:hover { background: #fff; color: var(--accent-dark) !important; border-color: #fff; }

.btn-block { width: 100%; justify-content: center; }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow { font-weight: 750; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── En-tête ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
  font-family: var(--font-title);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand { align-items: center; gap: .65rem; }
.brand__logo {
  display: block;
  width: 92px; height: 92px;
  margin: .3rem 0;
  object-fit: contain;
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.04); }
.brand__name { display: inline-flex; align-items: baseline; gap: .1rem; }
@media (max-width: 720px) {
  .brand__logo { width: 64px; height: 64px; margin: .2rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand:hover .brand__logo { transform: none; }
}
.brand__dot {
  width: .42em; height: .42em;
  border-radius: 50% 45% 55% 50%;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-.05em) rotate(-12deg);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: .45rem .8rem;
  color: var(--text);
  font-weight: 650;
  border-radius: 999px;
  background-repeat: no-repeat;
  background-position: center calc(100% - 2px);
  background-size: 0 7px;
  transition: background-size .25s, color .2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  background-image: var(--squiggle);
  background-size: calc(100% - 1.4rem) 7px;
}

.nav-cart {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  border: 2px solid var(--border-strong);
  background-image: none !important;
}
.nav-cart:hover { border-color: var(--accent); }
.nav-cart svg { width: 1.15rem; height: 1.15rem; }
.nav-cart__count {
  min-width: 1.4rem; height: 1.4rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-cart__count.is-empty { background: var(--sand); color: var(--muted); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ── Messages flash ── */
.flash-zone { padding-top: 1.25rem; }
.flash {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: .75rem;
  font-weight: 650;
  border: 1px solid transparent;
}
.flash::before { font-size: 1.1rem; line-height: 1.4; }
.flash-success { background: #eef3e6; color: #3c5a24; border-color: #d6e3c3; }
.flash-success::before { content: "✓"; }
.flash-error, .flash-danger { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-tint); }
.flash-error::before, .flash-danger::before { content: "!"; }
.flash-info, .flash-warning { background: #fbf1dc; color: #7a5410; border-color: #f0dfb5; }

/* ── Structure des pages ── */
.page { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }

.page-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 46rem; }
.page-head--center { text-align: center; margin-inline: auto; }
.page-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.page-title { margin: 0 0 .4em; }

.kicker {
  display: inline-block;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: .35rem;
  transform: rotate(-2deg);
}

.title-squiggle { position: relative; display: block; width: fit-content; }
.page-head--center .title-squiggle, .home-intro .title-squiggle { margin-inline: auto; }
.title-squiggle::after {
  content: "";
  display: block;
  height: 10px;
  width: 70%;
  margin-top: .25rem;
  background: var(--squiggle) no-repeat left center / 100% 100%;
}
.page-head--center .title-squiggle::after { margin-inline: auto; }

section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section--sand { background: var(--sand); }

.panel {
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--top { align-items: start; }
.split--form { grid-template-columns: .9fr 1.1fr; align-items: start; }

/* ── Cartes ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

.feature-card { position: relative; padding: 2rem 1.75rem 1.75rem; }
.feature-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.feature-card__icon {
  width: 64px; height: 64px;
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.feature-card__icon svg { width: 32px; height: 32px; }
.feature-card p { color: var(--muted); }

/* ── Produits ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem 1.5rem; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  padding: .75rem .75rem 1.15rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow-lift); }
.product-card:nth-child(even):hover { transform: translateY(-5px) rotate(.6deg); }

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: var(--sand);
}
.product-card__media img,
.product-card img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; transition: transform .5s; }
.product-card:hover .product-card__media img { transform: scale(1.04); }

.product-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 3.5rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 55%, var(--bg));
  background:
    radial-gradient(circle at 25% 30%, var(--accent-tint) 0 18%, transparent 19%),
    radial-gradient(circle at 78% 72%, color-mix(in srgb, var(--muted) 20%, transparent) 0 14%, transparent 15%),
    var(--sand);
}

.product-card__body { padding: 1rem .5rem 0; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card__body h3 { font-size: 1.15rem; margin: 0; }
.product-card__body h3 a { color: var(--ink); }
.product-card__body h3 a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.product-card__cat { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.product-card__desc { color: var(--muted); font-size: .95rem; margin: 0; }
.product-card__foot { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: center; }

.price { font-weight: 800; color: var(--ink); }
.price-tag {
  display: inline-block;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: .25rem .8rem;
  border-radius: 999px;
  font-size: 1rem;
}
.price-big { font-family: var(--font-title); font-size: 2rem; font-weight: 650; color: var(--accent); }

.ribbon {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  z-index: 2;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1;
  padding: .35rem .7rem;
  background: var(--surface);
  color: var(--accent);
  border-radius: 8px;
  transform: rotate(-4deg);
  box-shadow: var(--shadow);
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  background: var(--surface);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Fiche produit */
.product-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product-detail__media {
  position: relative;
  background: var(--surface);
  padding: .9rem;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1deg);
}
.product-detail__media img, .product-detail__media .product-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: calc(var(--radius-l) - 10px);
}
.product-detail__info .back-link { display: inline-block; margin-bottom: 1rem; font-weight: 700; }
.product-detail__desc { color: var(--text); margin: 1.25rem 0 1.5rem; }
.meta-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.meta-list li { background: var(--sand); padding: .3rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.meta-list .is-ok { background: #eef3e6; color: #3c5a24; }
.meta-list .is-out { background: var(--accent-soft); color: var(--accent-dark); }

.buy-box { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--border-strong); border-radius: 999px; background: var(--surface); overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: transparent; font-size: 1.3rem; color: var(--ink); cursor: pointer; }
.qty button:hover { background: var(--sand); }
.qty input[type="number"] { width: 3.2rem !important; height: 46px; margin: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: center; font-weight: 800; padding: 0 !important; background: transparent !important; -moz-appearance: textfield; box-shadow: none !important; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Accueil ── */
.home-intro { text-align: center; padding-top: clamp(3rem, 7vw, 5rem); }
.home-intro h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: .2em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.home-intro h1 span { color: var(--accent); }
.home-intro .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; }
.home-intro .btn-group { justify-content: center; }

.artist-block { position: relative; }
.artist-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 48% 52% 46% 54% / 40% 42% 58% 60%;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 35%, var(--bg)) 0 22%, transparent 23%),
    radial-gradient(circle at 70% 65%, color-mix(in srgb, var(--accent) 22%, var(--bg)) 0 28%, transparent 29%),
    var(--accent-tint);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.artist-frame__initial {
  font-family: var(--font-title);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(7rem, 16vw, 11rem);
  font-weight: 700;
  font-style: italic;
  color: var(--surface);
  text-shadow: 0 6px 30px rgba(60, 20, 10, .2);
}
.artist-frame__note {
  position: absolute;
  bottom: 8%; right: -4%;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--ink);
  background: var(--surface);
  padding: .4rem 1rem;
  border-radius: 10px;
  transform: rotate(4deg);
  box-shadow: var(--shadow);
}
.prose { font-size: 1.1rem; }
.prose p { margin-bottom: 1.1em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { position: relative; padding: 1.5rem 1.25rem 1.25rem; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: -1.1rem; left: 1.25rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 1.1rem; margin: .4rem 0 .3rem; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 85%, black);
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cta-band::before { width: 280px; height: 280px; right: -60px; top: -120px; }
.cta-band::after { width: 180px; height: 180px; right: 18%; bottom: -110px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .92; font-size: 1.1rem; max-width: 34rem; }
.cta-band .kicker { color: #fff; opacity: .9; }
.cta-band > * { position: relative; z-index: 1; }

/* ── Formulaires ── */
form label, .form-label { display: block; margin-bottom: .35rem; font-weight: 750; color: var(--ink); font-size: .97rem; }
form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
form textarea,
form select {
  width: 100%;
  padding: .8rem 1rem;
  margin-bottom: 1.15rem;
  border: 2px solid var(--border);
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
form textarea { min-height: 150px; resize: vertical; }
form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386685c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
}
form input:hover, form textarea:hover, form select:hover { border-color: var(--border-strong); }
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
form ::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
form > ul:has(> li):first-child { margin-top: 0; }
/* erreurs de validation Symfony (thème de formulaire par défaut) */
form ul:has(> li) { list-style: none; padding: .5rem .9rem; margin: -.6rem 0 1rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-size: .92rem; font-weight: 700; }
form button[type="submit"].btn { margin-top: .35rem; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.form-aside { margin: -.6rem 0 1rem; text-align: right; font-size: .9rem; font-weight: 700; }
form .help-text { margin: -.75rem 0 1.15rem; font-size: .86rem; color: var(--muted); }
.check-row { display: flex; align-items: flex-start; gap: .65rem; margin: .25rem 0 1rem; }
.check-row input[type="checkbox"] { flex: none; width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--accent); cursor: pointer; }
.check-row label { font-weight: 600; font-size: .93rem; color: var(--text); margin: 0; cursor: pointer; }

/* ── Panier / commande ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.cart-lines { display: grid; gap: 1rem; }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1.25rem .75rem .75rem;
  box-shadow: var(--shadow);
}
.cart-line__media { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--sand); }
.cart-line__media img, .cart-line__media .product-placeholder { width: 100%; height: 100%; object-fit: cover; font-size: 1.8rem; }
.cart-line h3 { font-size: 1.08rem; margin: 0 0 .15rem; }
.cart-line p { margin: 0; color: var(--muted); font-size: .93rem; }
.summary { position: sticky; top: 96px; }
.summary h2 { font-size: 1.35rem; }
.summary__row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--border-strong); }
.summary__row--total { border-bottom: 0; font-size: 1.2rem; font-weight: 800; color: var(--ink); padding-top: .9rem; }
.summary .btn { margin-top: 1.25rem; }

.empty-state { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.empty-state__icon { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.empty-state__icon svg { width: 38px; height: 38px; }

/* ── Compte client ── */
.account-page { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.account-intro { color: var(--muted); margin-bottom: 1.75rem; font-size: 1.1rem; }
.account-form { max-width: 460px; }
.account-page--auth { display: flex; flex-direction: column; align-items: center; text-align: center; }
.account-page--auth .account-form { width: 100%; text-align: left; }
.account-links { margin-top: 1.25rem; font-size: .97rem; text-align: center; }
.account-links.muted { color: var(--muted); font-size: .88rem; margin-top: .5rem; }

.order-list { display: grid; gap: 1rem; }
.order-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .35rem; }
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ── Page de contenu (mentions légales, l'artiste…) ── */
.prose-panel { max-width: 50rem; }

/* ── Pied de page ── */
.site-footer {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--ink);
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  padding: 4.5rem 0 2rem;
}
.site-footer::before {
  /* bord supérieur ondulé */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -22px;
  height: 24px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24 V12 C 20 0, 40 0, 60 12 S 100 24, 120 12 V24 Z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 24px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24 V12 C 20 0, 40 0, 60 12 S 100 24, 120 12 V24 Z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: var(--bg); font-size: 2rem; }
/* le logo est posé sur un médaillon clair pour rester lisible sur le fond sombre */
.footer-logo {
  display: inline-grid;
  place-items: center;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 25%, transparent);
}
.footer-logo img { width: 118px; height: 118px; object-fit: contain; }
.site-footer h3 { color: var(--bg); font-family: var(--font-hand); font-size: 1.5rem; font-weight: 600; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: color-mix(in srgb, var(--bg) 85%, transparent); }
.site-footer a:hover { color: #fff; }
.footer-tagline { margin-top: .75rem; max-width: 22rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--bg) 15%, transparent);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .9rem;
}
.footer-bottom .hand { font-size: 1.3rem; color: var(--bg); }
.footer-bottom .heart { color: color-mix(in srgb, var(--accent) 70%, white); }

/* ==========================================================================
   Carrousel d'accueil (structure conservée, habillage rafraîchi)
   ========================================================================== */
.home-carousel { width: 100%; margin: 0; padding: 0; }

.image-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 21 / 9;
  max-height: 560px;
}

.image-carousel__track { position: relative; width: 100%; height: 100%; }

.image-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
/* seule la diapositive visible reçoit les clics (sinon les diapositives
   transparentes posées au-dessus bloquent ses boutons) */
.image-carousel__slide { pointer-events: none; }
.image-carousel__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }

.image-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.image-carousel__slide.is-active img { transform: scale(1); }

/* Diapositive avec image : voile sombre pour la lisibilité du texte */
.image-carousel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(30, 12, 8, .68) 0%, rgba(30, 12, 8, .3) 45%, transparent 78%);
}
.image-carousel__overlay h2,
.image-carousel__overlay p { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

.image-carousel__slide-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* fonds sans image : dégradés dans les tons rouges du site + formes « peintes » */
.image-carousel__slide-bg--1 { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }
.image-carousel__slide-bg--2 { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 75%, #e0894f) 0%, var(--accent-dark) 100%); }
.image-carousel__slide-bg--3 { background: linear-gradient(135deg, color-mix(in srgb, var(--accent-dark) 80%, #3b1d14) 0%, var(--accent) 100%); }
.image-carousel__slide-bg::before,
.image-carousel__slide-bg::after {
  content: "";
  position: absolute;
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  background: rgba(255, 255, 255, .08);
}
.image-carousel__slide-bg::before { width: 46vw; height: 46vw; right: -10vw; top: -18vw; }
.image-carousel__slide-bg::after { width: 22vw; height: 22vw; right: 22vw; bottom: -10vw; background: rgba(255, 255, 255, .06); }

.image-carousel__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  color: #fff;
  padding: 2rem 3.5rem;
}
.image-carousel__content h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  margin: 0 0 .6rem;
  font-weight: 650;
  color: #fff;
  max-width: 40rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.image-carousel__content p {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  opacity: .95;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.image-carousel__content .btn {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--accent) !important;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}
.image-carousel__content .btn:hover { background: #fff; border-color: #fff; color: var(--accent-dark) !important; }

.image-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--surface) 22%, transparent);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .45);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-carousel__btn:hover { background: var(--surface); color: var(--accent); border-color: var(--surface); }
.image-carousel__btn--prev { left: 1.25rem; }
.image-carousel__btn--next { right: 1.25rem; }

.image-carousel__dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.image-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .25s, width .25s;
  border: none;
  padding: 0;
}
.image-carousel__dot.is-active { background: #fff; width: 28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .split, .split--form, .product-detail, .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .cta-band { grid-template-columns: 1fr; text-align: left; }
  .summary { position: static; }
  .product-detail__media { transform: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 30px -20px rgba(60, 25, 15, .35);
    padding: .75rem 1.25rem 1.25rem;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .main-nav a { display: block; padding: .75rem 1rem; font-size: 1.1rem; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background-image: none; background: var(--accent-soft); }
  .nav-cart { justify-content: flex-start; margin-top: .5rem; }
}

@media (max-width: 768px) {
  .image-carousel { aspect-ratio: 4 / 5; max-height: 78vh; }
  .image-carousel__content { padding: 2rem 1.25rem 4rem; align-self: flex-end; }
  .image-carousel__overlay { align-items: flex-end; background: linear-gradient(0deg, rgba(30, 12, 8, .78) 0%, rgba(30, 12, 8, .35) 55%, transparent 85%); }
  .image-carousel__slide-bg { align-items: flex-end; }
  .image-carousel__btn { width: 2.4rem; height: 2.4rem; font-size: 1rem; top: auto; bottom: 1rem; transform: none; }
  .image-carousel__btn--prev { left: auto; right: 4rem; }
  .image-carousel__btn--next { right: 1rem; }
  .image-carousel__dots { left: 1.25rem; transform: none; bottom: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line__media { width: 64px; height: 64px; }
  .cart-line > .price { grid-column: 2; }
  .artist-frame__note { right: 2%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .image-carousel__slide img { transform: none !important; }
}

/* ── Paiement ── */
.pay-methods { display: grid; gap: .9rem; }
.pay-method button {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pay-method button:hover, .pay-method button:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.pay-method__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.pay-method__icon svg { width: 26px; height: 26px; }
.pay-method--paypal .pay-method__icon { background: #e8f0fb; color: #1f4f9c; }
.pay-method__text strong { display: block; font-size: 1.08rem; color: var(--ink); }
.pay-method__text small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: .15rem; }
.pay-method__go { font-size: 1.3rem; color: var(--accent); font-weight: 800; }
.bank-details { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--sand); border-radius: var(--radius); }
.bank-details dt { font-weight: 800; color: var(--muted); }
.bank-details dd { margin: 0; font-weight: 700; word-break: break-all; }
.bank-details code { font-family: ui-monospace, Consolas, monospace; font-size: .98rem; }
