@font-face { font-family: "Patrick Hand"; src: url("fonts/patrickhand.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #1f1b18; --orange: #fbb347; --peach: #fde9d3; --cream: #fdf3ee; --mint: #e0f0e8; --bg: #fffdfc;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --gutter: clamp(1rem, 3.5vw, 6rem);
}
/* La taille du texte, et donc toute la mise en page en rem, suit la largeur de l'écran. */
html { font-size: clamp(100%, 0.45vw + 0.65rem, 150%); }
* { box-sizing: border-box; }
main { flex: 1 0 auto; width: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--bg); color: var(--ink); font: 400 1.05rem/1.55 "Nunito", system-ui, sans-serif; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; font-family: var(--hand); font-weight: 400; line-height: 1.1; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: 1.8rem; }
:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
a.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 5; }
.icon { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.paw { width: 1.4em; height: 1.4em; fill: currentColor; flex: none; }

.banner { display: flex; justify-content: center; align-items: center; gap: .7rem; margin: .75rem var(--gutter) 0; background: var(--peach); border-radius: 18px; padding: .65rem 1rem; font-size: 1.2rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1rem var(--gutter); }
.logo { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; font: 2.6rem/1 var(--hand); }
.wordmark b { font-weight: 400; color: var(--ink); } /* Call et Paw */
.wordmark b:nth-child(2) { color: var(--orange); } /* My */
.top nav { display: flex; gap: 2.4rem; }
.top nav a { text-decoration: none; padding: .35rem .2rem; border-bottom: 3px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-color: var(--orange); }
.tools { display: flex; align-items: center; gap: 1.5rem; }
.top .langs { position: relative; border: 0; padding: 0; }
.langs summary { cursor: pointer; list-style: none; font-weight: 700; padding: .4rem .2rem; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; display: inline-block; margin-left: .35rem; border: .3em solid transparent; border-top-color: currentColor; vertical-align: -.1em; }
.langs ul { position: absolute; right: 0; top: 100%; z-index: 10; margin: 0; padding: .4rem 0; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px #0002; min-width: 10rem; }
.tools .langs a { display: block; padding: .45rem 1.1rem; text-decoration: none; }
.tools .langs a:hover, .tools .langs a[aria-current] { background: var(--peach); }
.tools a { position: relative; display: inline-flex; padding: .2rem; }
.tools .icon { width: 2.2rem; height: 2.2rem; }
.count { position: absolute; top: -.3rem; right: -.5rem; background: var(--orange); border-radius: 99px; min-width: 1.35rem; text-align: center; font-size: .8rem; font-weight: 700; }

.hero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; background: var(--cream); overflow: hidden; }
.hero-text { padding: 2rem 0 2rem var(--gutter); position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 4.4rem); transform: rotate(-2deg); }
.hero p { font-size: 1.3rem; }
/* Photo en hauteur : toute la photo est visible ; ses bords se fondent dans le fond. */
.hero figure { position: relative; justify-self: center; max-width: 100%; }
.hero img { width: auto; max-width: 100%; height: min(80vh, 48rem); aspect-ratio: 840 / 1125; object-fit: cover; display: block; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }

/* Bandeau d'accueil : la photo du chien et du chat, ses bords fondus dans le fond. */
.duo { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; background: var(--cream); padding-left: var(--gutter); }
.duo h2 { font-size: clamp(2.1rem, 3.8vw, 3.9rem); line-height: 1.05; transform: rotate(-2deg); margin-block: .6rem; }
.duo p { font-size: 1.25rem; }
.duo figure { position: relative; margin: 0; justify-self: center; }
.duo img { display: block; width: auto; max-width: 100%; height: min(58vh, 33rem); aspect-ratio: 546 / 538; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.duo figcaption { position: absolute; right: 10%; bottom: .3rem; font-size: .72rem; background: #fffc; border-radius: 99px; padding: .1rem .6rem; }

.country { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-block: 1rem; }
.country label { font-weight: 700; }
.country select { max-width: 100%; border: 1.5px solid #cbb9ac; border-radius: 99px; padding: .55rem 1rem; font: inherit; background: #fff; color: inherit; }
.country .button { padding: .5rem 1.2rem; font-size: 1rem; }

.consent { position: fixed; z-index: 30; left: 1rem; right: 1rem; bottom: 1rem; max-width: 46rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.2rem; background: #fff; border: 1.5px solid #eaded5; border-radius: 18px; box-shadow: 0 10px 30px #0002; padding: .9rem 1.2rem; }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 18rem; margin: 0; font-size: .95rem; }
.consent div { display: flex; gap: .6rem; }
.consent .button { padding: .55rem 1.3rem; font-size: 1rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; background: var(--orange); color: var(--ink); border: 2px solid var(--orange); border-radius: 99px; padding: .85rem 2.2rem; font: 700 1.1rem "Nunito", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.05); }
.button.secondary { background: transparent; }
.button[hidden] { display: none; }
.link { background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; color: inherit; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.8rem; padding: 2rem var(--gutter); }
.page .cards { padding-inline: 0; }
.page .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
h2[id] { scroll-margin-top: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }
.chips a { border: 2px solid #eaded5; border-radius: 99px; padding: .45rem 1.1rem; text-decoration: none; font-weight: 700; }
.chips a:hover { border-color: var(--orange); background: var(--peach); }
.chips a[aria-current] { border-color: var(--ink); background: var(--peach); }
.namer label { display: block; font-weight: 700; margin-bottom: .4rem; }
.namer div { display: flex; flex-wrap: wrap; gap: .7rem; }
.namer input { flex: 1 1 12rem; max-width: 22rem; border: 1.5px solid #cbb9ac; border-radius: 99px; padding: .75rem 1.2rem; font: inherit; background: #fff; color: inherit; }
.hero-text .namer { margin-block: 1.4rem; }
.card { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #f3f3f3; text-decoration: none; aspect-ratio: 306 / 328; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 82%; object-fit: contain; display: block; }
.pill { position: absolute; left: 6%; right: 6%; bottom: 5%; display: flex; justify-content: center; align-items: center; gap: .6rem; background: var(--cream); border-radius: 99px; padding: .8rem .5rem; font-weight: 700; font-size: 1.15rem; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; background: var(--mint); border-radius: 22px; padding: 1.6rem 0; margin: 0 var(--gutter) 2rem; }
.promises li { display: flex; align-items: center; gap: .9rem; padding: 0 1.5rem; line-height: 1.35; }
.promises li + li { border-left: 1px solid #8fb9a6; }
.promises .icon { width: 3.2rem; height: 3.2rem; stroke-width: 1.5; }
.promises strong { display: block; }
.promises span { font-size: .95rem; }

.page { padding: 1.5rem var(--gutter) 2rem; width: 100%; }
/* Pages de texte : toute la largeur utile, avec des lignes qui restent lisibles. */
.page.text { padding-inline: max(var(--gutter), (100% - 75rem) / 2); }
.page.text.wide { padding-inline: var(--gutter); }
.page.text p, .page.text li, .page.text .form, .page.text .search { max-width: 90ch; }
.notice, .success, .error { border-radius: 14px; padding: .8rem 1.1rem; background: var(--peach); }
.success { background: var(--mint); }
.error { background: #fde0de; }
.error p { margin: 0; }

.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: start; }
.visuals { display: grid; gap: 1rem; }
.visuals img { width: 100%; height: auto; border-radius: 18px; }
.design #apercu.square { width: min(100%, 24rem); }
.card .overlay { position: absolute; left: 6%; right: 6%; bottom: 24%; width: 88%; height: auto; border-radius: 10px; box-shadow: 0 4px 14px #0003; }
.card .overlay.square { left: auto; right: 6%; width: 34%; }
figure { margin: 0; }
figcaption { text-align: center; font-size: .95rem; }
.suggest { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: .75rem var(--gutter) 0; padding: .5rem 1rem; border: 2px solid var(--orange); border-radius: 14px; }
.suggest a { font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 15rem), 1fr)); gap: 1rem; }
.gallery img { width: 100%; height: auto; border-radius: 14px; display: block; }
.badge { position: absolute; top: .8rem; left: .8rem; z-index: 1; background: var(--ink); color: #fff; border-radius: 99px; padding: .25rem .8rem; font-size: .85rem; font-weight: 700; }
.tile { position: relative; display: grid; gap: .2rem; width: calc(50% - .35rem); max-width: 11rem; border: 2px solid #eaded5; border-radius: 14px; padding: .35rem; background: #fff; cursor: pointer; font: inherit; color: inherit; text-align: center; }
.form label.tile { font-weight: 400; font-size: .9rem; }
.tile input { position: absolute; opacity: 0; }
.tile img { width: 100%; height: auto; border-radius: 8px; display: block; }
.tile:hover { border-color: var(--orange); }
.tile:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tile:has(input:focus-visible) { outline: 3px solid #1d5fbf; }
.preset { font-size: .9rem; font-weight: 700; }
.preset[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
/* Sans JavaScript, les styles prêts n'ont pas d'effet : ils n'apparaissent qu'avec les onglets. */
.configurator:not(.tabbed) .presets { display: none; }
.configurator { min-width: 0; }
.tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid #eaded5; margin-bottom: .6rem; }
.tabs button { flex: none; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: .7rem .8rem; font: 700 1rem "Nunito", system-ui, sans-serif; color: #6d5f55; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.panel { display: grid; gap: .5rem; min-width: 0; }
.panel[hidden] { display: none; }
.panel fieldset { min-width: 0; margin: 0; }
.tabbed .panel > fieldset:first-child > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.next { justify-self: end; background: none; border: 0; padding: .5rem 0; font: 700 .95rem "Nunito", system-ui, sans-serif; text-decoration: underline; cursor: pointer; color: inherit; }
.next::after { content: " \2192"; }
.printed, .measure { padding: .5rem 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.share[hidden] { display: none; }
.assurances { list-style: none; padding: 0; display: grid; gap: .3rem; font-size: .95rem; }
.assurances li::before { content: "\2713"; margin-right: .5rem; color: #1f7a4d; font-weight: 700; }
.finder[hidden] { display: none; }
@media (max-width: 760px) {
  /* Une seule rangée à faire glisser : l'article reste visible au-dessus pendant le choix. */
  .tabbed .panel fieldset:has(.tile) { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .5rem; }
  .tabbed .panel .tile { flex: 0 0 9.5rem; width: 9.5rem; scroll-snap-align: start; }
}
/* L'aperçu du dessin reste visible pendant qu'on choisit les options. */
.form figure.design { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: .5rem 0; }
.form figure.design img { width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 0 3px 12px #0002; }
.form figure.design img.square { width: min(100%, 16rem); margin-inline: auto; }
.scene img, .scene canvas { display: block; width: min(100%, 52rem, 82vh); height: auto; aspect-ratio: 1; margin-inline: auto; border-radius: 18px; background: #f3f3f3; }
.scene.loading canvas, .scene.loading img { opacity: .75; }
.scene img, .scene canvas { transition: opacity .15s, transform .2s; transform-origin: var(--x, 50%) var(--y, 50%); }
.scene { overflow: hidden; border-radius: 18px; cursor: zoom-in; width: min(100%, 52rem, 82vh); margin-inline: auto; }
.scene img, .scene canvas { width: 100% !important; }
.scene.zoomed { cursor: zoom-out; touch-action: none; }
.scene.zoomed img, .scene.zoomed canvas { transform: scale(1.7); }
.zoom-hint { text-align: center; margin: .3rem 0 0; font-size: .82rem; color: #6d5f55; }
.card .personalised { position: absolute; inset: 0 0 auto 0; width: 100%; height: 82%; object-fit: contain; background: #f3f3f3; }
/* Sur téléphone, l'article reste visible en haut pendant les réglages. */
@media (max-width: 760px) {
  /* L'article reste collé en haut pendant que l'on défile dans les réglages. */
  .visuals:has(.scene) { display: contents; }
  .scene { position: sticky; top: 0; z-index: 8; width: min(100%, 40vh); background: var(--bg); box-shadow: 0 8px 14px -8px #0003; }
  /* La taille figure déjà sur les boutons, juste au-dessus de « Ajouter ». */
  .zoom-hint, .size-shown { display: none; }
  .product:has(.scene) .form figure.design { position: static; }
}
.credit { display: block; font-size: .82rem; color: #6d5f55; }
#apercu { display: block; width: min(100%, 52rem, 82vh); height: auto; margin-inline: auto; }
@media (max-width: 760px) { #apercu { width: 100%; max-width: 40rem; } }
.form { display: grid; gap: .6rem; }
.form label { font-weight: 700; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea, .search input { width: 100%; border: 1.5px solid #cbb9ac; border-radius: 12px; padding: .75rem 1rem; font: inherit; background: #fff; color: inherit; }
.form > .button { justify-self: start; margin-top: .5rem; }
fieldset { border: 0; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .6rem; }
legend { font-weight: 700; margin-bottom: .5rem; }
.form label.swatch { display: flex; align-items: center; gap: .45rem; font-weight: 400; border: 2px solid #eaded5; border-radius: 99px; padding: .4rem .9rem .4rem .6rem; cursor: pointer; }
.swatch:has(input:checked) { border-color: var(--ink) !important; }
.swatch input[type="radio"] { position: absolute; opacity: 0; }
.swatch:has(input:focus-visible) { outline: 3px solid #1d5fbf; }
.swatch svg { width: 1.3rem; height: 1.3rem; }
.form label.swatch.dot { padding: .3rem; }
.swatch.dot svg { width: 2rem; height: 2rem; filter: drop-shadow(0 0 1px #0007); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form label.swatch.custom input[type="color"] { position: static; opacity: 1; width: 2.6rem; height: 2.2rem; border: 0; padding: 0; background: none; cursor: pointer; }
.form label.choice { flex-direction: column; gap: 0; justify-content: center; min-width: 5.2rem; padding: .35rem .9rem; line-height: 1.25; border-radius: 14px; }
.choice small { font-size: .78rem; color: #6d5f55; }
.choice em { font-size: .72rem; font-style: normal; font-weight: 700; color: #a33; }
.form label.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; border-style: dashed; }
.out { color: #a33; font-style: normal; font-weight: 700; }
.size-shown { text-align: center; margin: .4rem 0 0; font-size: .95rem; }
.finder { display: grid; gap: .4rem; }
.finder input { width: 8rem; border: 1.5px solid #cbb9ac; border-radius: 12px; padding: .6rem 1rem; font: inherit; }
.finder output { font-weight: 700; min-height: 1.5em; }
#apercu { transition: opacity .15s; }
#apercu.loading { opacity: .55; }
.buybar { position: fixed; inset: auto 0 0 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px #0002; font-weight: 700; }
.buybar[hidden], .finder[hidden] { display: none; }
.buybar .button { padding: .7rem 1.2rem; font-size: 1rem; }
@media (min-width: 761px) { .buybar { display: none; } }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }
.infos { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; border-top: 1px solid #eaded5; padding-top: 1rem; }
.infos dt { font-weight: 700; }
.infos dd { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; background: var(--mint); border-radius: 18px; padding: 1.2rem; text-align: center; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin: 0 auto .5rem; border-radius: 50%; background: var(--orange); font-weight: 700; }

.form select { border: 1.5px solid #cbb9ac; border-radius: 12px; padding: .65rem 1rem; font: inherit; background: #fff; color: inherit; justify-self: start; min-width: 8rem; }
.form label.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .35rem; }
.total { font-size: 1.25rem; text-align: right; }
.selection { list-style: none; padding: 0; }
.selection li { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid #eaded5; padding: .8rem 0; }
.selection img { border-radius: 10px; object-fit: cover; background: #f3f3f3; width: clamp(5rem, 12vw, 7.5rem); height: auto; }
.selection .qty { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; }
.selection .qty button { width: 44px; height: 44px; border: 1px solid #eaded5; border-radius: 50%; background: #fff; color: inherit; font: inherit; font-size: 1.3rem; cursor: pointer; }
.selection .qty button:disabled { opacity: .35; cursor: default; }
.selection .qty span { min-width: 2ch; text-align: center; font-weight: 700; }
.selection li > div { min-width: 0; }
@media (max-width: 560px) { .selection li { flex-wrap: wrap; } .selection li > div { flex: 1 1 60%; } }
.search { display: flex; gap: .8rem; }
.trap { position: absolute; left: -9999px; }
details { border-bottom: 1px solid #eaded5; padding: .8rem 0; }
summary { cursor: pointer; font-weight: 700; }

.bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--cream); padding: 2.5rem var(--gutter) 3.5rem; position: relative; }
.bottom nav { display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; max-width: 34rem; }
.bottom nav a { text-decoration: none; }
.bottom nav a:hover { text-decoration: underline; }
.slogan { margin: .4rem 0 0 1.2rem; }
.wave { position: absolute; left: 0; right: 5.5rem; bottom: 1rem; width: calc(100% - 6rem); height: 2.2rem; fill: none; stroke: var(--orange); stroke-width: 1.5; }
.wave path { vector-effect: non-scaling-stroke; }
.small { font-size: .9rem; margin: 0; }
.corner { position: absolute; right: 2rem; bottom: 1.2rem; width: 3rem; height: 3rem; color: var(--orange); transform: rotate(18deg); }

@media (max-width: 760px) {
  .banner { font-size: 1rem; }
  .top { padding: 1rem; }
  .logo { font-size: 1.85rem; }
  .tools { gap: .7rem; }
  .tools .icon { width: 1.8rem; height: 1.8rem; }
  .top nav { order: 3; width: 100%; justify-content: space-between; gap: .5rem; overflow-x: auto; }
  .top nav a { white-space: nowrap; font-size: .98rem; padding-block: .6rem; }
  .hero, .product, .steps, .promises { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; gap: 0; padding: 0 0 .3rem; text-align: center; }
  .duo figure { grid-row: 1; }
  .duo img { height: min(24vh, 12rem); }
  .duo h2 { font-size: 1.35rem; margin: .4rem 1rem 0; }
  .duo p { display: none; }
  .hero figure { grid-row: 1; width: 100%; }
  .hero img { width: 100%; height: 46vh; aspect-ratio: auto; object-position: center 22%; mask-image: linear-gradient(to top, transparent, #000 10%); }
  .hero-text { padding: 1rem 1.5rem 2rem; }
  .promises { gap: 1.2rem; }
  .promises li + li { border-left: 0; }
  .search { flex-direction: column; }
  .bottom { padding: 2rem 1.5rem 5rem; }
  .bottom nav { margin-right: 0; gap: 1.2rem; }
}
@media (max-width: 380px) {
  .top { gap: .6rem; padding-inline: .8rem; }
  .logo { font-size: 1.6rem; }
  .tools { gap: .35rem; }
  .tools .icon { width: 1.6rem; height: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .card, #apercu, .scene img, .scene canvas { transition: none !important; } .card:hover { transform: none; } }

.crumbs { padding: .8rem var(--gutter) 0; font-size: .92rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #8a7a6e; }
.lead { font-size: 1.15rem; }
.specs { padding-left: 1.2rem; }
details h2, details h3 { display: inline; font: 700 1.05rem "Nunito", system-ui, sans-serif; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #eaded5; padding: .6rem .8rem; text-align: left; }
th { background: var(--cream); }
@media (min-width: 761px) { .visuals { position: sticky; top: 1rem; } }
.page h2 { margin-top: 1.4em; }
.page h1 + h2, .page > h2:first-child { margin-top: 0; }

/* Accueil : la vitrine en direct occupe le premier écran. */
body > .vitrine, main > .vitrine { max-width: none; }
.vitrine { --look: #f6b3c8; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1rem, 4vw, 5rem); align-items: center; padding: clamp(1rem, 3vw, 3rem) var(--gutter); background: radial-gradient(120% 90% at 85% 40%, color-mix(in srgb, var(--look) 38%, var(--cream)), var(--cream) 62%); transition: background .5s; }
.vitrine h1 { font-size: clamp(2.8rem, 6vw, 6rem); line-height: .98; margin-bottom: .35em; transform: rotate(-1.5deg); }
.vitrine h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--orange) 62% 90%, transparent 90%); }
.vitrine-text .namer label { font-size: 1.05rem; }
.vitrine-text .namer input { font-size: 1.3rem; border-width: 2px; border-color: var(--ink); }
.looks { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0; }
.looks button { padding: 0; width: 3.3rem; height: 3.3rem; border-radius: 50%; border: 3px solid #fff; overflow: hidden; cursor: pointer; background: #fff; box-shadow: 0 3px 10px #0002; transition: transform .2s; }
.looks button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.looks button:hover { transform: translateY(-3px) scale(1.06); }
.looks button[aria-pressed="true"] { border-color: var(--ink); transform: scale(1.14); }
.go .button { font-size: 1.25rem; padding: 1rem 2.6rem; box-shadow: 0 10px 24px #fbb34766; }
.vitrine-stage { display: grid; justify-items: center; gap: .9rem; min-width: 0; }
.vitrine-stage .scene { margin: 0; width: min(100%, max(22rem, calc(100svh - 19rem)), 54rem); cursor: default; border-radius: 34px; box-shadow: 0 30px 70px #7a4a2a2e; background: #f3f3f3; }
.vitrine-stage .scene img, .vitrine-stage .scene canvas { border-radius: 34px; }
.vitrine-stage .scene.pop canvas { animation: pop .45s ease-out; }
@keyframes pop { 0% { transform: scale(.965); } 60% { transform: scale(1.012); } 100% { transform: scale(1); } }
.articles { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.articles button { font: 700 clamp(.82rem, .95vw, .95rem) "Nunito", system-ui, sans-serif; color: inherit; background: #fff; border: 2px solid transparent; border-radius: 99px; padding: .5rem clamp(.6rem, .9vw, 1.1rem); cursor: pointer; box-shadow: 0 2px 8px #0001; }
.articles button[aria-pressed="true"] { background: var(--ink); color: #fff; }
/* Sans JavaScript, les commandes de la vitrine n'auraient pas d'effet. */
.vitrine:not(.ready) .looks, .vitrine:not(.ready) .articles { visibility: hidden; }
/* En direct, le résultat est déjà là : le bouton du formulaire devient inutile. */
.vitrine.ready .namer button, .vitrine:not(.ready) .go { display: none; }
.vitrine.ready .namer input { max-width: 28rem; }
.figures { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem clamp(1.5rem, 6vw, 6rem); list-style: none; margin: 0; padding: 1.6rem var(--gutter); background: var(--ink); color: #fff; width: 100%; }
body main > .figures { max-width: none; }
.figures strong { font: 400 2.6rem var(--hand); color: var(--orange); margin-right: .3rem; }
.inspirations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 17rem), 1fr)); gap: 1.1rem; }
.inspirations a { position: relative; display: block; border-radius: 22px; overflow: hidden; background: #f3f3f3; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.inspirations a:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 34px #0002; }
.inspirations img { display: block; width: 100%; height: auto; transition: transform .35s; }
.inspirations a:hover img { transform: scale(1.07); }
.inspirations span { position: absolute; left: .7rem; bottom: .7rem; background: #fff; border-radius: 99px; padding: .3rem .85rem; font-size: .9rem; box-shadow: 0 2px 10px #0002; }
.inspirations strong { font: 400 1.25rem var(--hand); margin-right: .25rem; }
.reveal.waiting { opacity: 0; transform: translateY(28px); }
.reveal { transition: opacity .6s, transform .6s; }
.reveal.waiting.seen { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .vitrine { grid-template-columns: 1fr; padding-top: .8rem; }
  /* Le prénom et l'article restent visibles ensemble sur le premier écran. */
  .vitrine-text { display: contents; }
  .vitrine h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); order: 0; margin: 0; }
  .vitrine .lead { display: none; }
  .vitrine .namer { order: 1; margin: 0; }
  .vitrine-stage { order: 2; }
  .vitrine-stage .scene { width: min(100%, 34svh); border-radius: 24px; }
  .articles { flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; max-width: 100%; padding-block: .2rem; }
  .articles button { flex: none; padding: .45rem .85rem; }
  .vitrine-stage .scene img, .vitrine-stage .scene canvas { border-radius: 24px; }
  .vitrine .looks { order: 3; margin: 0; flex-wrap: nowrap; overflow-x: auto; padding: .5rem .2rem; }
  .vitrine .looks button { flex: none; }
  .vitrine .go { order: 4; margin: 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .reveal, .looks button, .inspirations a, .inspirations img, .vitrine { transition: none !important; } .vitrine-stage .scene.pop canvas { animation: none; } }
.on-them { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; }
.on-them a { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 7 / 10; }
.on-them img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.on-them a:hover img { transform: scale(1.08); }
.on-them span { position: absolute; left: .6rem; bottom: .6rem; background: #fff; border-radius: 99px; padding: .25rem .8rem; font-size: .85rem; font-weight: 700; box-shadow: 0 2px 10px #0003; }
@media (max-width: 1100px) { .on-them { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .on-them { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .on-them img { transition: none; } }
.situation { display: block; width: min(100%, 40rem); height: auto; border-radius: 22px; box-shadow: 0 14px 34px #0002; }
.scale { display: block; width: min(100%, 40rem); height: auto; font-family: inherit; }
.scale .blanket rect { transition: fill-opacity .2s; }
.scale .blanket.chosen rect { fill-opacity: .85; stroke-width: 1.4; }
.scale .blanket.chosen text { font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 1.6px; }

/* Zones tactiles : au moins 44 px pour un doigt. */
.tools > a, .tools summary { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.tools summary { display: inline-flex; }
.bottom nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.suggest a, .suggest button { display: inline-flex; align-items: center; min-height: 44px; }
.share-image a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) { .bottom nav { gap: 0 1.4rem; } .suggest { padding-block: .1rem; } .tools { gap: .4rem; } }
summary { min-height: 44px; display: list-item; align-content: center; }
.selection .edit, .selection .link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
@media (max-width: 760px) { .scene.released { position: relative; } }
/* Petits écrans : le menu entier tient sur la largeur, quitte à passer à la ligne. */
@media (max-width: 480px) { .top nav { flex-wrap: wrap; justify-content: space-between; column-gap: .3rem; row-gap: 0; width: 100%; } .top nav a { font-size: clamp(.8rem, 3.7vw, .98rem); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 40px; padding-inline: 0; padding-block: 0; } }
/* Boutique : quatre articles par rangée sur grand écran, deux sur téléphone. */
.page .cards.shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .page .cards.shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .page .cards.shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } .cards.shop .pill { left: 4%; right: 4%; padding: .55rem .5rem; font-size: .95rem; gap: .3rem; } }
/* L'étiquette de la carte ne recouvre jamais l'article. */
.card img, .card .personalised { height: 77%; }
@media (max-width: 700px) { .cards.shop .card img, .cards.shop .card .personalised { height: 73%; } }
.names { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; counter-reset: rank; }
.names li { counter-increment: rank; }
.names a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .2rem 1rem; border: 2px solid #eaded5; border-radius: 99px; text-decoration: none; font-weight: 700; background: #fff; }
.names a::before { content: counter(rank); font: 400 1.1rem var(--hand); color: #8a6d4f; }
.names a:hover { border-color: var(--orange); }
