/* Les brodeuses — site vitrine, direction « Kit » : couleurs franches, gros titres, vraie broderie en image. */

:root {
  --blue: #2338c8;
  --blue-deep: #1a2a9e;
  --tomato: #ff5a36;
  --tomato-deep: #e5431f;
  --butter: #ffd84a;
  --pink: #ffb3c7;
  --lilac: #b9c6ff;
  --cream: #f5f6fb;
  --ink: #10142e;
  --ink-soft: #3d4263;
  --line: rgba(16, 20, 46, 0.14);
  --radius: 26px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; color: var(--ink); font: 18px/1.55 var(--font); overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--tomato-deep); }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 0.95; margin: 0 0 0.45em; letter-spacing: -0.04em; overflow-wrap: break-word; }
h1, .h1-size { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.05; }
strong { font-weight: 700; }

.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 780px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: var(--cream); padding: 8px 14px; }

/* Boutons en pastille */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 0; min-height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--tomato); color: var(--cream); font: 800 1.02rem/1.15 var(--font); text-decoration: none; border: 0; cursor: pointer; text-align: center;
  transition: transform 0.12s ease, background 0.12s ease; }
.btn:hover { background: var(--tomato-deep); color: var(--cream); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; color: var(--butter); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.small { font-size: 0.9rem; color: var(--ink-soft); }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.alt { background: var(--cream); }
.kicker { display: inline-block; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
  background: var(--butter); color: var(--ink); padding: 4px 10px; border-radius: 8px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 42ch; }

/* Listes à pastilles (pas de coches génériques) */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%; background: var(--tomato); box-shadow: inset 0 0 0 3px var(--cream), 0 0 0 2px var(--tomato); }

/* ---------- En-tête bleu ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--blue); color: var(--cream); }
.top-in { position: relative; display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 4px; flex: none; text-decoration: none; font: 800 1.45rem/1 var(--font); letter-spacing: -0.04em; white-space: nowrap; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand b { background: var(--butter); color: var(--ink); padding: 2px 7px 4px; border-radius: 8px; margin-right: 3px; }
.nav { display: flex; align-items: center; gap: clamp(6px, 1.1vw, 22px); flex: 1; justify-content: flex-end; margin-right: 8px; }
.nav > a { padding: 8px 10px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
.nav > a:hover { background: rgba(255, 248, 236, 0.14); color: var(--cream); }
.nav > a[aria-current] { color: var(--butter); }
.nav-ctas { display: none; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 248, 236, 0.4); background: transparent; color: var(--cream); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--butter); color: var(--butter); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.btn-small { min-height: 46px; padding: 0 18px; font-size: 0.95rem; }
.top .btn-dark { background: var(--cream); color: var(--ink); }
.top .btn-dark:hover { background: var(--butter); color: var(--ink); }
.menu-btn { display: none; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1150px) {
  .menu-btn { display: inline-grid; }
  .top-actions { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: -16px; right: -16px; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px; background: var(--blue); border-top: 2px solid rgba(255, 248, 236, 0.18); box-shadow: 0 30px 40px -20px rgba(16, 20, 46, 0.5); }
  .nav.open { display: flex; }
  .nav > a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid rgba(255, 248, 236, 0.18); font-size: 1.2rem; font-weight: 800; }
  .nav > a:hover { background: none; color: var(--butter); }
}
@media (max-width: 720px) {
  .top-in { gap: 10px; height: 64px; }
  .top-try, .top-buy { display: none; }
  .nav-ctas { display: grid; gap: 10px; margin-top: 18px; }
  .nav-ctas .btn { width: 100%; }
  .nav-ctas .btn-dark { background: var(--cream); color: var(--ink); }
  .nav-login-text { text-align: center; padding: 8px; font-weight: 700; color: var(--cream); }
  .brand { font-size: 1.3rem; }
}

/* ---------- Accueil ---------- */
.hero { background: var(--blue); color: var(--cream); padding: clamp(32px, 5vw, 56px) 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
.hero h1 { font-size: clamp(2.9rem, 5.9vw, 5.8rem); line-height: 0.88; letter-spacing: -0.055em; margin: 6px 0 26px; }
.hero h1 em { font-style: normal; color: var(--butter); }
.hero .lead { color: var(--cream); opacity: 0.92; font-size: 1.25rem; }
.hero .btns { padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: 0; }
.hero .btn-dark { background: var(--cream); color: var(--ink); }
.hero .btn-dark:hover { background: var(--butter); }
.hero-card { position: relative; background: var(--cream); border-radius: 30px 30px 0 0; padding: 24px 24px 0; }
.hero-card img { width: 100%; aspect-ratio: 1.1; object-fit: cover; mix-blend-mode: multiply; }
.sticker { position: absolute; top: -28px; right: 16px; width: 124px; height: 124px; border-radius: 50%; background: var(--tomato); color: var(--cream);
  display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 0.92rem; line-height: 1.05; transform: rotate(12deg); }
.sticker b { display: block; font-size: 2.1rem; letter-spacing: -0.04em; }

.ticker { background: var(--butter); border-block: 3px solid var(--ink); overflow: hidden; white-space: nowrap; }
.ticker-run { display: inline-flex; padding: 14px 0; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; animation: run 32s linear infinite; }
.ticker-run a { margin: 0 20px; text-decoration: none; }
.ticker-run i { font-style: normal; color: var(--tomato-deep); }
@keyframes run { to { transform: translateX(-50%); } }

/* Choix de la marque : chaque marque mène à sa page */
.picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.picker a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 20px 22px; border-radius: 20px; border: 3px solid var(--ink);
  background: var(--cream); text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; transition: background 0.12s, color 0.12s, transform 0.12s; }
.picker a small { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.picker a:hover { background: var(--ink); color: var(--butter); transform: translateY(-2px); }
.picker a:hover small { color: var(--cream); }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { border-radius: var(--radius); padding: 26px; counter-increment: step; background: var(--lilac); }
.steps li:nth-child(2) { background: var(--pink); }
.steps li:nth-child(3) { background: var(--butter); }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -0.05em; margin-bottom: 10px; }
.steps p { margin: 0; }

/* Idées, avec de vrais rendus brodés */
.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.idea { border-radius: var(--radius); padding: 20px; background: var(--pink); }
.idea:nth-child(2) { background: var(--butter); }
.idea:nth-child(3) { background: var(--lilac); }
.idea img { width: 100%; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; border-radius: 16px; }
.idea h3 { margin: 16px 0 6px; font-size: 1.6rem; }
.idea p { margin: 0; }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--ink-soft); }
.motifs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; }
.motifs > div { aspect-ratio: 1; background: #fff; border-radius: 18px; padding: 12%; }
.motifs svg { width: 100%; height: 100%; }

/* Deux colonnes */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); }
.split .pic { background: var(--cream); border-radius: var(--radius); padding: 18px; }
.split .pic img { mix-blend-mode: multiply; }
.pic-wide { margin-top: 24px; background: var(--cream); border-radius: var(--radius); padding: 18px; }
.pic-wide img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.shot { border-radius: 20px; border: 3px solid var(--ink); background: #fff; }
.shot-wide { margin: 36px auto 0; max-width: 1000px; }
.shot-wide figcaption { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin-top: 12px; }

/* Bloc communauté (fond encre) */
.panel { border-radius: 36px; padding: clamp(28px, 5vw, 56px); }
.panel-ink { background: var(--ink); color: var(--cream); }
.panel-ink h2 { color: var(--butter); }
.panel-ink .lead { color: var(--cream); opacity: 0.9; }
.panel-ink .ticks li::before { box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 2px var(--tomato); }

/* Prix */
.price-band { background: var(--tomato); color: var(--cream); border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.price-band h2 { color: var(--cream); }
.price-band .ticks li::before { background: var(--butter); box-shadow: inset 0 0 0 3px var(--tomato), 0 0 0 2px var(--butter); }
.price-band .btn { background: var(--ink); }
.price-band .btn:hover { background: #000; color: var(--butter); }
.price-band .btn-cream { background: var(--cream); color: var(--ink); }
.big-price { font-weight: 800; font-size: clamp(5rem, 13vw, 11rem); line-height: 0.8; letter-spacing: -0.06em; }
.price-section { text-align: center; }
.price-section .lead { margin: 0 auto 28px; }
.price-box { background: #fff; border: 3px solid var(--ink); border-radius: 30px; padding: clamp(24px, 5vw, 44px); max-width: 560px; margin: 0 auto; text-align: left; box-shadow: 10px 10px 0 var(--tomato); }
.price-box .amount { font-weight: 800; font-size: 4.4rem; line-height: 1; letter-spacing: -0.05em; margin: 8px 0 4px; }
.price-box .btns { display: grid; gap: 10px; }
.price-box .btns .btn { width: 100%; }

/* Questions */
.faq details { border-bottom: 2px solid var(--ink); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; list-style: none; padding-right: 44px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; background: var(--tomato); color: var(--cream); }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }
.faq h2 { margin-top: 1.2em; }

/* Pages guide et marques */
.guide h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.guide h2 { margin-top: 1.4em; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.guide ol, .guide ul { padding-left: 1.3em; }
.guide li { margin-bottom: 0.5em; }
.guide li::marker { font-weight: 800; color: var(--tomato-deep); }
.tuto h2 { scroll-margin-top: 90px; }
.tuto figure { margin: 1.4em 0; }
.tuto figure img { width: 100%; height: auto; display: block; border-radius: 16px; border: 3px solid var(--ink); background: #fff; }
.tuto .tuto-small img { max-width: 420px; }
.tuto .tuto-phone img { max-width: 300px; margin-inline: auto; }
.tuto-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 28px 0 8px; padding: 22px 24px; border-radius: var(--radius); background: var(--lilac); font-weight: 700; }
.tuto-toc a { text-decoration: none; color: var(--ink); }
.tuto-toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .tuto-toc { grid-template-columns: minmax(0, 1fr); } }
.note { background: var(--butter); padding: 18px 22px; border-radius: 20px; margin: 1.2em 0; }

/* Appel final */
.cta { text-align: center; background: var(--blue); color: var(--cream); }
.cta h2 { color: var(--cream); }
.cta .lead { margin-inline: auto; color: var(--cream); opacity: 0.9; }
.cta .btns { justify-content: center; }
.cta .btn-dark { background: var(--cream); color: var(--ink); }

/* Pied de page */
.foot { position: relative; background: var(--ink); color: #e9ebf7; padding: 72px 0 0; font-size: 0.95rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--butter); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.foot-brand { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; color: #fff; }
.foot-brand b { background: var(--butter); color: var(--ink); padding: 1px 6px 3px; border-radius: 7px; margin-right: 3px; }
.foot .legal { font-size: 0.8rem; opacity: 0.6; margin: 0; flex: 1 1 380px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px;
  width: max-content; max-width: calc(100% - 32px); transition: transform 0.25s; z-index: 30; }
.toast.show { transform: translate(-50%, 0); }

/* Grille des marques */
.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.brands a { display: grid; gap: 2px; padding: 16px; border: 3px solid var(--ink); border-radius: 20px; background: var(--cream); text-decoration: none; }
.brands a:hover { background: var(--ink); color: var(--butter); }
.brands strong { font-weight: 800; font-size: 1.15rem; }

/* Fenêtre d'achat */
.buy-box { border: 3px solid var(--ink); border-radius: 28px; padding: 28px; width: min(100% - 32px, 480px); background: var(--cream); color: var(--ink); }
.buy-box::backdrop { background: rgba(16, 20, 46, 0.6); }
.dl-next form { display: grid; gap: 12px; text-align: center; }
.dl-next p { margin: 0; }
.dl-next-ok { width: 48px; height: 48px; margin: 0 auto !important; border-radius: 50%; background: var(--butter, #f7d862); display: grid; place-items: center; font: 800 26px/1 inherit; }
.dl-next-title { font-weight: 800; font-size: 22px; line-height: 1.15; }
.dl-next .btns { display: grid; gap: 8px; margin-top: 6px; }
.dl-next .btns .btn { justify-content: center; width: 100%; white-space: normal; text-align: center; }
.buy-price { font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.05em; margin: 4px 0 14px; }
.buy-price small { font-weight: 500; font-size: 1rem; letter-spacing: 0; color: var(--ink-soft); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; margin: 18px 0 4px; }
.consent small { display: block; color: var(--ink-soft); font-size: 0.85rem; margin-top: 2px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--tomato); }
.promo { margin: 14px 0 0; }
.promo summary { cursor: pointer; font-weight: 700; color: var(--tomato-deep); }
.promo input { margin-top: 10px; width: 100%; font: 600 1rem var(--font); padding: 12px 14px; border: 3px solid var(--ink); border-radius: 14px; text-transform: uppercase; letter-spacing: 0.06em; background: #fff; }

[id] { scroll-margin-top: 88px; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 900px) {
  .hero-in, .split, .price-band { grid-template-columns: minmax(0, 1fr); }
  .hero .btns { padding-bottom: 8px; }
  .hero-card { margin-top: 26px; }
  .picker, .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ideas .idea:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .motifs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .btns .btn { width: 100%; white-space: normal; }
  .cards, .ideas { grid-template-columns: minmax(0, 1fr); }
  .picker a { font-size: 1.1rem; padding: 14px 16px; flex-direction: column; gap: 0; }
  .sticker { width: 100px; height: 100px; font-size: 0.8rem; top: -22px; }
  .sticker b { font-size: 1.7rem; }
  .ticker-run { font-size: 1.2rem; padding: 12px 0; }
  .panel, .price-band { border-radius: 26px; }
}
@media (max-width: 480px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast, .btn, .picker a { transition: none; } .ticker-run { animation: none; } }

/* Logo : la pastille « Les » et le nom souligné d'un point avant qui finit en aiguille. */
.brand-word { position: relative; display: inline-block; padding-bottom: 7px; }
.brand-stitch { position: absolute; left: 0; bottom: -4px; width: calc(100% + 26px); height: auto; overflow: visible; }
.brand-stitch path { fill: none; stroke-linecap: round; }
.brand-stitch .st { stroke: var(--butter); stroke-width: 3; stroke-dasharray: 7 6; }
.brand-stitch .th { stroke: var(--butter); stroke-width: 1.4; }
.brand-stitch .nd { stroke: var(--cream); stroke-width: 2.8; }
.brand { padding-right: 26px; }
/* Déjà un compte : pas de bouton d'achat. */
.is-member [data-buy], .is-member .sticker { display: none !important; }
/* Code de réduction dans la fenêtre d'achat */
.promo-field { display: grid; gap: 6px; margin: 14px 0 4px; font-weight: 700; font-size: 0.95rem; }
.promo-field input { width: 100%; font: 600 16px var(--font); padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; text-transform: uppercase; letter-spacing: 0.06em; background: #fff; }

/* ---------- Carte cadeau (offrir.html, cadeau.html, accueil) ---------- */
.nav > a.nav-gift { color: var(--butter); }
.share-btn { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent; color: #fff; font: 700 0.95rem var(--font); cursor: pointer; }
.share-btn:hover { border-color: var(--butter); color: var(--butter); }
.share-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.gift-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  background: var(--cream); border-radius: 34px; padding: clamp(24px, 5vw, 56px); }
.gift-band h2 { margin-bottom: 0.3em; }
.gift-band-cards { position: relative; height: clamp(220px, 28vw, 320px); }
.gift-band-cards span { position: absolute; width: 62%; aspect-ratio: 1.414; border-radius: 16px; background: var(--bg); display: grid; place-items: center;
  box-shadow: 0 14px 30px rgba(16, 20, 46, 0.18); }
.gift-band-cards span::before { content: ""; position: absolute; width: 52%; aspect-ratio: 1; border-radius: 50%; background: #fff8ec; left: 8%; }
.gift-band-cards img { position: relative; width: 42%; left: -16%; }
.gift-band-cards span:nth-child(1) { left: 0; top: 4%; transform: rotate(-8deg); }
.gift-band-cards span:nth-child(2) { left: 22%; top: 22%; transform: rotate(4deg); }
.gift-band-cards span:nth-child(3) { left: 36%; top: 48%; transform: rotate(-3deg); }

.gift-page { padding-top: clamp(36px, 6vw, 72px); }
.gift-intro h1 em, .gift-page h1 em, .gift-page .h1-size em { font-style: normal; color: var(--tomato); }
.gift-intro .lead { max-width: 56ch; }
.gift-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 28px; align-items: start; }
.gift-step { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.gift-step legend { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; margin-bottom: 14px; padding: 0; display: flex; align-items: center; gap: 10px; }
.gift-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--butter); font-size: 1rem; flex: none; }
.gift-designs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gift-design { cursor: pointer; text-align: center; font-weight: 700; font-size: 0.86rem; }
.gift-design input { position: absolute; opacity: 0; pointer-events: none; }
.gift-swatch { display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; background: var(--bg); border: 3px solid transparent; transition: transform 0.12s ease; }
.gift-swatch img { width: 70%; filter: drop-shadow(0 3px 4px rgba(16, 20, 46, 0.25)); }
.gift-design:hover .gift-swatch { transform: translateY(-2px); }
.gift-design input:checked + .gift-swatch { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.gift-design input:focus-visible + .gift-swatch { outline: 3px solid var(--butter); outline-offset: 3px; }
.gift-design-name { display: block; margin-top: 6px; }
.gift-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gift-field { display: grid; gap: 6px; margin: 0 0 14px; font-weight: 700; font-size: 0.95rem; }
.gift-field span { display: flex; justify-content: space-between; gap: 8px; }
.gift-field small { font-weight: 500; color: var(--ink-soft); }
.gift-field { min-width: 0; }
.gift-field span { flex-wrap: wrap; justify-content: flex-start; }
.gift-field span small { flex: 1 1 100%; }
/* iPhone : Safari donne au champ date sa propre largeur (il débordait de l'écran et élargissait toute la page). */
.gift-field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 52px; text-align: left; }
.gift-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.gift-field input, .gift-field textarea { width: 100%; font: 500 16px/1.4 var(--font); padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); }
.gift-field textarea { resize: vertical; min-height: 110px; }
.gift-field input:focus, .gift-field textarea:focus { outline: 3px solid var(--butter); outline-offset: 1px; }
.gift-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 0.9rem var(--font); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.gift-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.gift-way { position: relative; cursor: pointer; }
.gift-way input { position: absolute; opacity: 0; }
.gift-way > span { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 18px; background: #fff; }
.gift-way small { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.3; }
.gift-way input:checked + span { border-color: var(--ink); background: var(--butter); box-shadow: 4px 4px 0 var(--ink); }
.gift-way input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.gift-when { font-size: 0.95rem; color: var(--ink-soft); background: var(--cream); padding: 10px 14px; border-radius: 12px; }
.gift-pay { width: 100%; margin: 6px 0 10px; }
.gift-error { background: #ffe9e3; color: #8a1f05; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.gift-error[data-kind="info"] { background: var(--cream); color: var(--ink); }
.gift-sticky { position: sticky; top: 96px; }
.gift-card { display: block; width: 100%; height: auto; aspect-ratio: 1.414; border-radius: 18px; box-shadow: 0 18px 40px rgba(16, 20, 46, 0.2); background: var(--cream); }
.gift-letter { margin: 16px 0 0; background: #fff8ec; border-radius: 18px; padding: 18px 22px; border: 2px dashed rgba(16, 20, 46, 0.25); }
.gift-letter p { margin: 0; white-space: pre-line; font-size: 1.08rem; overflow-wrap: anywhere; }
.gift-letter .is-empty { color: var(--ink-soft); font-style: italic; }
.gift-letter-from { font-weight: 800; margin-top: 6px !important; }
.gift-letter-from:empty { display: none; }
.gift-perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 0.95rem; color: var(--ink-soft); }
.gift-perks li::before { content: "✦ "; color: var(--tomato); }
.gift-thanks { max-width: 760px; }
.gift-thanks .gift-card { margin: 24px 0; }
.gift-code { font-size: 1.1rem; }
.gift-code b, #reveal-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em; background: var(--butter); padding: 2px 8px; border-radius: 8px; }
.gift-test { display: inline-block; background: var(--ink); color: var(--butter); padding: 6px 12px; border-radius: 10px; font-weight: 700; }
.gift-open { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 24px 0 12px; }
.gift-open .gift-field { margin: 0; }
.gift-open input { text-transform: uppercase; letter-spacing: 0.08em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.gift-reveal h1, .gift-reveal .h1-size { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 28px; }
.gift-envelope { perspective: 1200px; }
.gift-reveal .gift-card { transform: rotateX(70deg) translateY(40px) scale(0.9); opacity: 0; transition: transform 0.9s cubic-bezier(.2, .9, .2, 1.1), opacity 0.5s ease; transform-origin: 50% 100%; }
.gift-reveal.is-open .gift-card { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gift-reveal .gift-card { transition: none; } }
@media (max-width: 880px) {
  .gift-layout { grid-template-columns: minmax(0, 1fr); }
  .gift-aside { order: -1; }
  .gift-sticky { position: static; }
  .gift-perks { display: none; }
  .gift-band { grid-template-columns: minmax(0, 1fr); }
  .gift-band-cards { height: 200px; max-width: 420px; }
}
@media (max-width: 520px) {
  .gift-designs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gift-row, .gift-ways, .gift-open { grid-template-columns: minmax(0, 1fr); }
  .gift-aside .gift-letter { display: none; }
}
/* Le lien « Offrir » allonge le menu : un peu plus serré sur les écrans moyens. */
@media (min-width: 1151px) and (max-width: 1700px) { .top-in { gap: 14px; } .nav > a { padding: 8px 8px; font-size: 0.95rem; } .top-actions .btn-small { padding: 0 14px; } }
/* Carte cadeau ouverte ou non (config.js → gifts) */
html:not(.gifts-on) [data-gift] { display: none !important; }
html.gifts-on [data-gift-off] { display: none !important; }

/* Langues : choix dans le menu (téléphone) et le pied de page, bandeau qui propose la langue du navigateur. */
.lang-nav, .lang-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.92rem; }
.lang-nav { margin-top: 10px; }
.lang-nav a, .lang-foot a { opacity: 0.75; text-decoration: none; }
.lang-nav a[aria-current], .lang-foot a[aria-current] { opacity: 1; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.lang-foot { margin: 14px 0; }
@media (min-width: 1151px) { .nav .lang-nav { display: none; } }
.lang-offer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--butter); font-weight: 700; font-size: 0.95rem; }
.lang-offer a { color: var(--ink); }
.lang-offer button { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }

/* Pied de page : un fil cousu en haut, des colonnes titrées, une bande basse (langues, mentions). */
.foot-thread { position: absolute; top: 18px; left: 0; width: 100%; height: 24px; }
.foot-thread path { fill: none; stroke: var(--butter); stroke-width: 2.5; stroke-dasharray: 14 9; stroke-linecap: round; }
.foot-tagline { font-weight: 800; font-size: 1.2rem; line-height: 1.25; color: #fff; margin: 14px 0 8px; letter-spacing: -0.02em; }
.foot-desc { opacity: 0.75; margin: 0 0 18px; }
.foot-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot-social .share-btn { margin: 0; }
.foot-rounds { display: inline-flex; gap: 10px; }
.foot-round { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 248, 236, 0.35); }
.foot-round:hover { border-color: var(--butter); }
.foot-round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-col .foot-h { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--butter); margin: 6px 0 16px; font-weight: 800; }
/* Marques : des pastilles, pas une liste de texte. */
.foot-brands { display: flex !important; flex-wrap: wrap; gap: 8px; }
.foot-brands a { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid rgba(255, 248, 236, 0.25); font-weight: 700; font-size: 0.88rem; }
.foot-brands a:hover { border-color: var(--butter); }
.foot-brands small { opacity: 0.55; font-weight: 600; }
.foot-col ul { gap: 12px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; }
.foot-legal a { opacity: 0.8; }
.foot-legal a:hover { opacity: 1; }
.foot .legal { flex-basis: 100%; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 48px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 248, 236, 0.15); }
.foot-bottom .lang-foot { margin: 0; gap: 6px; flex-wrap: wrap; }
.foot-bottom .lang-foot a { opacity: 1; padding: 5px 12px; border-radius: 999px; border: 1.5px solid rgba(255, 248, 236, 0.25); font-size: 0.85rem; font-weight: 700; }
.foot-bottom .lang-foot a:hover { border-color: var(--butter); }
.foot-bottom .lang-foot a[aria-current] { background: var(--butter); border-color: var(--butter); color: var(--ink); text-decoration: none; }
@media (max-width: 1100px) { .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; max-width: 620px; } }
@media (max-width: 760px) { .foot-col-brands { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; } .foot { padding-top: 56px; font-size: 0.9rem; } .foot-bottom { margin-top: 28px; }
  /* Téléphone : le pied de page reste court (la présentation répète l'accroche et la page). */
  .foot-desc { display: none; } .foot-tagline { font-size: 1.05rem; margin-bottom: 16px; } .foot-col ul { gap: 9px; } .foot-col .foot-h { margin-bottom: 12px; }
}
@media (max-width: 340px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }

/* Choix de langue dans l'en-tête : un petit globe et deux lettres, la liste s'ouvre dessous. */
.lang-pick { position: relative; flex: none; }
.lang-pick summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; height: 46px; padding: 0 12px; border-radius: 999px; border: 2px solid rgba(255, 248, 236, 0.4); color: var(--cream); font-weight: 800; font-size: 0.85rem; cursor: pointer; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary:hover, .lang-pick[open] summary { border-color: var(--butter); color: var(--butter); }
.lang-pick summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 160px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(16, 20, 46, 0.22); }
.lang-menu a { padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.lang-menu a:hover { background: var(--cream); }
.lang-menu a[aria-current] { background: var(--butter); }
@media (max-width: 1150px) { .lang-pick { display: none; } }
/* En-tête : le choix de langue prend la place d'un bouton ; on resserre jusqu'aux très grands écrans. */
.lang-pick summary { height: 42px; padding: 0 10px; }
@media (max-width: 1760px) { .top-in { gap: 10px; } .lang-pick summary span { display: none; } .lang-pick summary { width: 42px; padding: 0; justify-content: center; } }
@media (min-width: 1151px) and (max-width: 1400px) { .nav > a { padding: 8px 6px; font-size: 0.92rem; } .nav { gap: 10px; } .top-in { gap: 10px; } }
/* L'attribut hidden l'emporte toujours dans les pages cadeau (sinon display: grid ou inline-block le contredit). */
.gift-page [hidden] { display: none !important; }

/* Fenêtre « Une idée cadeau ? » (site.js) : petite carte dans un coin, une seule fois. */
.gift-pop { position: fixed; left: 20px; bottom: 20px; z-index: 30; width: min(380px, calc(100vw - 32px)); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px;
  align-items: start; padding: 18px 20px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--tomato);
  opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.35s ease; }
.gift-pop.show { opacity: 1; transform: none; }
.gift-pop p { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.4; }
.gift-pop .gift-pop-title { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.gift-pop-card { display: grid; place-items: center; width: 72px; aspect-ratio: 1; border-radius: 16px; background: var(--butter); }
.gift-pop-card img { width: 78%; }
.gift-pop-close { position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer; }
.gift-pop-close:hover { background: var(--cream); }
@media (max-width: 560px) { .gift-pop { left: 16px; right: 16px; bottom: 16px; width: auto; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px 16px; box-shadow: 5px 5px 0 var(--tomato); }
  .gift-pop-card { width: 48px; border-radius: 12px; } .gift-pop p { font-size: 0.88rem; margin-bottom: 8px; } .gift-pop .gift-pop-title { font-size: 1.02rem; } }
@media (prefers-reduced-motion: reduce) { .gift-pop { transition: none; } }

/* Bibliothèque de motifs : grilles, cadenas, fiche d'un motif */
.lib { padding-top: clamp(28px, 4vw, 48px); }
.lib h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
.lib .lead { max-width: 60ch; }
.lib-h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 1.6em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 26px; }
.mtile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 12px; border-radius: 18px;
  background: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.92rem; line-height: 1.2; text-align: center; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.mtile:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--ink); color: var(--ink); }
.mtile img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.mtile span { overflow-wrap: anywhere; }
.mbadge { position: absolute; top: 8px; left: 8px; background: var(--butter); color: var(--ink); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.mlock { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(16, 20, 46, 0.18); }
.mlock svg, .mbox h2 svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.mtile.is-gray img { filter: grayscale(1); opacity: 0.55; }
.mtile.is-gray span { color: var(--ink-soft); }
.mcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; }
.mcat { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 22px; border: 3px solid var(--ink); text-decoration: none; background: #fff; }
.mcat:hover { background: var(--cream); color: var(--ink); }
.mcat-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 6px; }
.mcat-pics img { aspect-ratio: 1; object-fit: contain; }
.mcat strong { font-size: 1.1rem; line-height: 1.15; }
.mcat small { color: var(--ink-soft); }
.mhero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.mpic { position: relative; margin: 0; background: var(--cream); border-radius: var(--radius); padding: 18px; }
.mpic img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.mpic .mbadge { top: 16px; left: 16px; font-size: 0.85rem; padding: 5px 12px; }
.minfo h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.mbox { margin-top: 22px; padding: 22px; border-radius: 22px; border: 3px solid var(--ink); }
.mbox.is-free { background: #fffbe6; }
.mbox h2 { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; margin-bottom: 8px; }
.mbox p { margin-bottom: 0.6em; }
.mbox.is-locked .btns { margin: 6px 0 10px; }
.mbox.is-locked .btns .btn { width: 100%; }
.mfree-p { font-size: 0.98rem; }
.mfree { margin-top: 16px; padding: 14px; border-radius: 18px; background: #fffbe6; }
.mfree-h { font-weight: 700; }
.mbox .mfree-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 6px; }
.mfree-grid .mtile { padding: 6px 6px 8px; font-size: 0.85rem; background: #fff; }
.mfree .dl-note { margin-bottom: 0; }
.mfull { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mfull p { margin: 0; flex: 1 1 14em; font-size: 0.95rem; }
.mdl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.mdl-btn { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--ink); color: var(--cream); text-decoration: none; line-height: 1.15; }
.mdl-btn:hover { background: var(--tomato-deep); color: var(--cream); }
.mdl-btn svg { grid-row: span 2; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mdl-btn small { font-size: 0.78rem; opacity: 0.85; }
.dl-note { font-size: 0.88rem; color: var(--ink-soft); }
.mcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin-top: 40px; }
.mcols h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.mspec { margin: 0; display: grid; gap: 0; }
.mspec div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mspec dt { font-weight: 700; }
.mspec dd { margin: 0; }
.mspec small { display: block; color: var(--ink-soft); font-size: 0.85rem; }
.mthreads { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: fil; }
.mthreads li { counter-increment: fil; display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mthreads li::before { content: counter(fil); font-weight: 800; color: var(--ink-soft); width: 1.4em; }
.mthreads i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(16, 20, 46, 0.25); }
.mcredit { font-size: 0.85rem; color: var(--ink-soft); margin-top: 20px; }
.lib-cta { background: var(--cream); }
@media (max-width: 760px) {
  .mhero, .mcols { grid-template-columns: minmax(0, 1fr); }
  .mgrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .mspec div { grid-template-columns: 8.5em 1fr; }
}

/* Pages « convertir » : l'image et son résultat brodé, tableau des formats */
.conv-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 8px; }
.conv-demo figure { position: relative; margin: 0; background: var(--cream); border-radius: var(--radius); padding: 12px; }
.conv-demo img { border-radius: 14px; }
.conv-demo figcaption { position: absolute; top: 22px; left: 22px; background: #fff; font-weight: 800; font-size: 0.85rem; padding: 5px 11px; border-radius: 999px; }
.conv-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; }
.conv-table th, .conv-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.conv-table th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.guide h3 { margin-top: 1.2em; font-size: 1.2rem; }

/* Accueil : motifs gratuits, juste sous les marques */
.home-free .mgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 18px 0 22px; }
@media (max-width: 900px) { .home-free .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-free .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-free .mtile:nth-child(n+7) { display: none; } }

/* ---------- Accueil 2026-10 : « Comment ça marche » illustré, Ma tribu, apparitions au défilement ---------- */
/* Apparitions douces : seulement si le JavaScript tourne et que la visiteuse n'a pas demandé moins d'animations. */
.rv-on .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv-on .rv.in { opacity: 1; transform: none; }

/* Les trois étapes, chacune avec son illustration : l'écran de l'atelier → la clé USB → la brodeuse qui brode le même motif. */
.how li { display: flex; flex-direction: column; }
.how li::before { display: none; }
.how h3 { display: flex; align-items: baseline; gap: 10px; }
.how h3 b { font-size: 2.2rem; letter-spacing: -0.05em; line-height: 1; }
.how-ill { position: relative; aspect-ratio: 13 / 10; margin: 0 0 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px -18px rgba(16, 20, 46, 0.55); overflow: hidden; }
.how-ill svg { display: block; }
.how-more { margin: 22px 0 0; font-weight: 700; }

/* 1. L'écran de l'atelier */
.hs-bar { height: 13%; background: var(--blue); display: flex; align-items: center; gap: 4%; padding: 0 5%; }
.hs-bar i { width: 16%; height: 30%; border-radius: 99px; background: rgba(255, 255, 255, 0.35); }
.hs-bar i:last-child { margin-left: auto; width: 20%; background: var(--tomato); }
.hs-body { position: absolute; inset: 13% 0 0; display: grid; grid-template-columns: 22% 1fr 18%; gap: 4%; padding: 5%; }
.hs-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.hs-side b { aspect-ratio: 1; border-radius: 6px; background: var(--cream); }
.hs-side b:first-child { box-shadow: inset 0 0 0 2px var(--tomato); }
.hs-hoop { position: relative; border-radius: 12px; background: #fdfaf2; box-shadow: inset 0 0 0 5px #e6c68f; display: grid; place-items: center; }
.hs-hoop [data-motif] { width: 72%; }
.hs-threads { display: grid; gap: 7px; align-content: start; }
.hs-threads i { height: 14px; border-radius: 99px; background: var(--c); }
.hs-dl { position: absolute; right: 5%; top: 2.6%; height: 8%; min-width: 20%; border-radius: 99px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: clamp(0.62rem, 1vw, 0.8rem); }
.hs-cursor { position: absolute; width: 9%; left: 52%; top: 62%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }

/* 2. Le fichier part sur la clé USB */
.hu { display: grid; place-items: center; background: #fff; }
.hu-file { position: absolute; left: 14%; top: 26%; width: 26%; aspect-ratio: 4 / 5; border-radius: 8px; background: var(--cream); box-shadow: inset 0 0 0 3px var(--ink); display: grid; place-items: center; font-weight: 800; font-size: clamp(0.8rem, 1.6vw, 1.15rem); color: var(--blue); }
.hu-file::after { content: ""; position: absolute; top: 0; right: 0; width: 26%; aspect-ratio: 1; background: linear-gradient(225deg, #fff 50%, var(--ink) 50% 56%, var(--cream) 56%); border-top-right-radius: 8px; }
.hu-key { position: absolute; right: 12%; top: 34%; width: 40%; }
.hu-glow { transform-origin: center; }

/* 3. La brodeuse qui brode le motif */
.hm { background: #fff; }
.hm svg { width: 100%; height: 100%; }
.hm-motif { position: absolute; left: 11.9%; top: 46.5%; width: 33.1%; aspect-ratio: 1; display: grid; place-items: center; }
.hm-motif [data-motif] { width: 78%; }
.hm-needle { transform-box: fill-box; }

/* Le film : 9 s en boucle, seulement quand les étapes sont à l'écran. */
.how.is-playing .hs-hoop [data-motif] { animation: how-pop 9s ease infinite; }
.how.is-playing .hs-cursor { animation: how-cursor 9s ease-in-out infinite; }
.how.is-playing .hs-dl { animation: how-dl 9s ease infinite; }
.how.is-playing .hu-file { animation: how-file 9s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
.how.is-playing .hu-glow { animation: how-glow 9s ease infinite; }
.how.is-playing .hm-motif [data-motif] { animation: how-stitch 9s linear infinite; }
.how.is-playing .hm-needle { animation: how-needle 0.22s linear infinite; }
.hm-motif [data-motif] { clip-path: inset(0 0 0 0); }
.hs-dl { background: var(--tomato); }
@keyframes how-pop { 0%, 4% { opacity: 0; transform: scale(0.4) rotate(-12deg); } 12%, 100% { opacity: 1; transform: none; } }
@keyframes how-cursor { 0%, 8% { left: 18%; top: 78%; } 18% { left: 26%; top: 34%; } 21% { left: 26%; top: 34%; transform: scale(0.85); } 24% { transform: none; } 32% { left: 84%; top: 6%; } 35% { left: 84%; top: 6%; transform: scale(0.8); } 38%, 100% { left: 84%; top: 6%; transform: none; } }
@keyframes how-dl { 0%, 34% { background: var(--tomato); transform: none; } 36% { background: var(--blue); transform: scale(1.12); } 40%, 100% { background: var(--tomato); transform: none; } }
@keyframes how-file { 0%, 38% { transform: none; opacity: 1; } 52% { transform: translateX(150%) scale(0.35); opacity: 0.9; } 56%, 100% { transform: translateX(150%) scale(0.2); opacity: 0; } }
@keyframes how-glow { 0%, 52% { opacity: 0; } 56%, 100% { opacity: 1; } }
@keyframes how-stitch { 0%, 56% { clip-path: inset(0 0 100% 0); } 92%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes how-needle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7%); } }
@media (prefers-reduced-motion: reduce) { .how .hs-cursor { display: none; } .how [data-motif], .how .hu-file, .how .hu-glow, .how .hm-needle { animation: none !important; } .how .hu-file { opacity: 0.35; } }

/* Ma tribu sur l'accueil */
.tribu-home { background: #fff; overflow: hidden; }
.tribu-art { position: relative; margin-bottom: 18%; }
.tribu-art .t-main { display: block; width: 100%; height: auto; border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); box-shadow: 0 30px 60px -36px rgba(16, 20, 46, 0.55); }
.tribu-art .t-busts { position: absolute; width: 30%; right: -3%; bottom: -30%; border-radius: 50%; box-shadow: 0 18px 40px -20px rgba(16, 20, 46, 0.6); border: 6px solid #fff; transform: rotate(6deg); }
.tribu-art .t-badge { position: absolute; left: -2%; top: 6%; background: var(--tomato); color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 999px; transform: rotate(-6deg); box-shadow: 0 10px 20px -12px rgba(16, 20, 46, 0.6); }
.tribu-home .ticks { margin-bottom: 26px; }
.rv-on .tribu-art.rv .t-busts { transition: transform 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); transform: rotate(-10deg) translateY(30px); }
.rv-on .tribu-art.rv.in .t-busts { transform: rotate(6deg); }
@media (max-width: 860px) { .tribu-home .split { grid-template-columns: minmax(0, 1fr); } .tribu-art { order: -1; margin: 0 6% 26%; } }

/* Page Ma tribu */
.tribu-page .styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.tribu-page .styles figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 14px; }
.tribu-page .styles img { display: block; width: 100%; height: auto; border-radius: 18px; }
.tribu-page .styles figcaption { font-weight: 800; margin: 12px 4px 2px; }
.tribu-page .styles figcaption small { display: block; font-weight: 500; color: var(--ink-soft); }
.tribu-page .gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 26px; }
.tribu-page .gifts div { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px; }
.tribu-page .gifts h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tribu-page .gifts p { margin: 0; color: var(--ink-soft); }
.shot-studio { margin: 34px 0 0; }
.shot-studio img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 50px -30px rgba(16, 20, 46, 0.6); }
@media (max-width: 760px) { .tribu-page .styles { grid-template-columns: minmax(0, 1fr); } }
.hero-more { align-self: center; font-weight: 800; color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; padding: 10px 4px; }
.hero-more:hover { color: var(--butter); }
@media (max-width: 900px) { .steps.how { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* ---------- Barre utilitaire (ordinateur) : l'argument prix à gauche, langue, cadeau et connexion à droite.
   Elle part au défilement ; seule la barre bleue reste collée en haut. ---------- */
.util { background: var(--ink); color: #e9ebf7; font-size: 0.86rem; }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.util-pitch { margin: 0; font-weight: 700; letter-spacing: 0.01em; }
.util-links { display: flex; align-items: center; gap: 22px; }
.util-links > a { color: #e9ebf7; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.util-links > a:hover { color: var(--butter); }
.util-login svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.util .lang-pick summary { height: 30px; width: auto; padding: 0 10px; border-width: 1.5px; border-color: rgba(255, 248, 236, 0.3); font-size: 0.8rem; justify-content: flex-start; }
.util .lang-pick summary span { display: inline; }
.util .lang-pick summary::after { content: "▾"; font-size: 0.7rem; margin-left: 2px; }
.util .lang-pick summary svg { width: 15px; height: 15px; }
.util .lang-menu { z-index: 40; }
.util-account { display: none !important; }
.is-member .util-login { display: none !important; }
.is-member .util-account { display: inline-flex !important; }
.util-account svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
@media (min-width: 1151px) { .top-login { display: none; } }
@media (max-width: 1150px) { .util { display: none; } }
/* Liens pour apprendre (16/11/2026) : dans la petite barre, séparés par « | » ; dans le menu replié, un groupe « Bien démarrer ». */
.util-learn { display: flex; align-items: center; flex-wrap: wrap; font-weight: 700; }
.util-learn a { color: #e9ebf7; text-decoration: none; white-space: nowrap; }
.util-learn a + a::before { content: "|"; color: rgba(233, 235, 247, 0.35); padding: 0 12px; font-weight: 400; }
.util-learn a:hover { color: var(--butter); }
.util-learn a[aria-current] { color: var(--butter); }
.nav-learn { display: none; }
@media (max-width: 1150px) {
  .nav-learn { display: grid; padding-top: 6px; }
  .nav-learn-h { margin: 14px 0 2px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--butter); }
  .nav-learn a { padding: 12px 4px 12px 14px; border-bottom: 1px solid rgba(255, 248, 236, 0.18); font-size: 1.08rem; font-weight: 700; text-decoration: none; color: var(--cream); }
  .nav-learn a:hover { color: var(--butter); }
}
/* « Créer ma tribu » : l'achat pour toutes ; le studio directement pour une personne déjà connectée (les boutons d'achat lui sont masqués). */
.tribu-member { display: none !important; }
.is-member .tribu-member { display: inline-flex !important; }

/* Recherche des motifs (assets/recherche.js) : barre de la bibliothèque et de l'accueil, résultats dessous. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.msearch { position: relative; display: flex; gap: 8px; align-items: stretch; max-width: 720px; margin: 22px 0 6px; }
.msearch-box { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 46px 0 16px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; }
.msearch-box:focus-within { box-shadow: 0 0 0 4px var(--butter); }
.msearch-box svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.msearch input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--ink); -webkit-appearance: none; appearance: none; }
.msearch input::placeholder { color: var(--ink-soft); opacity: 0.75; }
.msearch input::-webkit-search-cancel-button { display: none; }
.msearch-clear { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--cream); color: var(--ink); font: 700 1.4rem/1 var(--font); cursor: pointer; }
.msearch-go { flex: none; }
.msearch-res:empty { display: none; }
.msearch-res { margin-bottom: 8px; scroll-margin-top: 96px; } /* sous l'en-tête collant */
.msearch-count { margin: 14px 0 0; color: var(--ink-soft); font-weight: 600; }
.msearch-res .mgrid { margin-top: 12px; }
.lib.motif .msearch { margin-top: 0; }
.home-free .msearch { margin: 4px 0 0; }
@media (max-width: 600px) {
  .msearch-go { display: none; }
  .msearch input { height: 50px; font-size: 16px; } /* 16 px : l'iPhone ne zoome pas sur le champ */
  .msearch-box { padding-left: 14px; }
}

/* Paiement rassurant (05/11/2026) : sous les boutons d'achat, Stripe nommé, carte jamais vue par le site. */
.secure-pay { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: #eef7ef; color: #1f3d27; font-size: 0.95rem; line-height: 1.45; text-align: left; }
.secure-pay svg { width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: #2f7a3a; stroke-width: 2.2; stroke-linecap: round; }
.secure-pay strong { display: block; color: #1f5a2a; }

/* Accueil, section « Votre machine » : les derniers conseils et les pages de conversion (10/11/2026). */
.home-guides { margin-top: 28px; }
.home-guides h3 { margin: 0 0 10px; font-size: 1.15rem; }
.home-guides ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px 20px; }
.home-guides li a { display: block; padding: 10px 0; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); text-underline-offset: 3px; }
.home-guides li a:hover { text-decoration-color: currentColor; }
.home-guides p { margin: 10px 0 0; }

/* ---------- Promotion (Black Friday…) : bandeau et prix barré, posés par site.js ---------- */
.promo-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; padding: 9px 16px; background: var(--ink); color: var(--cream);
  text-decoration: none; text-align: center; font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.promo-bar:hover { color: var(--cream); background: #1c2148; }
.promo-bar b { background: var(--butter); color: var(--ink); padding: 2px 10px 3px; border-radius: 999px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.8rem; margin-right: 6px; }
.promo-bar s { opacity: 0.65; }
.promo-bar strong { color: var(--butter); font-weight: 800; }
.promo-bar u { text-decoration: none; color: var(--butter); font-weight: 800; white-space: nowrap; }
.promo-price .was { font-size: 0.7em; opacity: 0.6; text-decoration-thickness: 0.1em; text-decoration-color: var(--tomato); }
.big-price.promo-price { display: flex; align-items: baseline; gap: 0.14em; }
.big-price.promo-price .was { font-size: 0.36em; letter-spacing: -0.03em; }
.big-price.promo-price .now { color: var(--cream); }
.big-price.promo-price .was { color: var(--ink); opacity: 0.45; text-decoration-color: var(--ink); }
.sticker .promo-price { display: block; line-height: 0.95; }
.sticker .promo-price .was { display: block; font-size: 0.5em; opacity: 0.85; text-decoration-color: var(--ink); }
.buy-price .promo-price .now { color: var(--tomato-deep); }
.is-member .promo-bar { display: none !important; }
@media (max-width: 560px) { .promo-bar { font-size: 0.86rem; padding: 8px 12px; } }

/* Carte Black Friday (site.js) : même place que l'idée cadeau, pastille encre et jaune. */
.promo-pop { box-shadow: 8px 8px 0 var(--butter); }
.promo-pop-card { background: var(--ink); }
.promo-pop-card b { color: var(--butter); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; white-space: nowrap; }
.promo-pop .promo-pop-tag { display: inline-block; margin: 0 0 6px; background: var(--ink); color: var(--butter); border-radius: 999px; padding: 2px 10px 3px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.promo-pop s { opacity: 0.6; text-decoration-color: var(--tomato); }
.promo-pop p b { color: var(--tomato-deep); font-weight: 800; }
@media (max-width: 560px) { .promo-pop { box-shadow: 5px 5px 0 var(--butter); } .promo-pop-card b { font-size: 0.95rem; } }
