/* Pingu's Printer : feuille de style unique, thème noir.
   Les couleurs se règlent ici, dans les variables ci-dessous. */

:root {
  color-scheme: dark;
  --orange: #ffa600;
  --orange-hover: #ffb733;
  --orange-dim: rgba(255, 166, 0, 0.12);
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #181818;
  --line: #242424;
  --line-strong: #3a3a3a;
  --text: #f3f1ed;
  --text-soft: #b9b4ab;
  --muted: #7f7a71;
  --ok: #6fcf97;
  --ok-dim: rgba(111, 207, 151, 0.12);
  --err: #ff7b72;
  --err-dim: rgba(255, 123, 114, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1180px;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

::selection {
  background: var(--orange);
  color: #000;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
}

h3,
.h3 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.h4 {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0;
}

.h1-small {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

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

code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

strong {
  color: var(--text);
}

[hidden] {
  display: none !important;
}

.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--orange);
  color: #000;
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
}

/* --- Mise en page --- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.narrow {
  max-width: 780px;
}

.tight {
  max-width: 460px;
}

.center {
  text-align: center;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-flush {
  padding-top: 0;
}

.section-tint {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 48px;
  max-width: 680px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  max-width: none;
  margin-bottom: 28px;
}

.section-head-row h1,
.section-head-row h2 {
  margin-bottom: 0;
}

.section-more {
  margin: 36px 0 0;
}

.page-head {
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(48px, 6vw, 72px);
}

.page-head .wrap > * {
  max-width: 760px;
}

.page-head + .section-flush {
  padding-top: 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 20px;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  max-width: 60ch;
  line-height: 1.6;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.empty {
  color: var(--muted);
  padding: 20px 0;
}

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.crumbs a {
  text-decoration: none;
}

/* --- Boutons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary,
.btn-dark {
  background: var(--orange);
  color: #000;
}

.btn-primary:hover,
.btn-dark:hover {
  background: var(--orange-hover);
  color: #000;
}

.btn-outline,
.btn-light {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover,
.btn-light:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-sm {
  font-size: 0.88rem;
  padding: 0.7em 1.15em;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 12px;
}

.btn-text {
  font: inherit;
  font-size: 0.9rem;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

.btn-danger {
  color: var(--err);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.actions-center {
  justify-content: center;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.link-arrow::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}

a:hover .link-arrow,
.link-arrow:hover {
  color: var(--orange);
}

a:hover .link-arrow::after,
.link-arrow:hover::after {
  transform: translateX(4px) rotate(45deg);
}

.icon {
  flex: none;
}

/* --- En-tête --- */

.site-header {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'brand tabs utility';
  align-items: center;
  gap: 12px 28px;
  min-height: 76px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 40px;
  height: auto;
}

/* Les deux parties du site, toujours visibles */
.tabs {
  grid-area: tabs;
  justify-self: center;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-soft);
  padding: 10px 22px;
  border-radius: 7px;
  white-space: nowrap;
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
}

.tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.tab[aria-current] {
  background: var(--text);
  color: #000;
}

.tabs-admin .tab {
  font-size: 0.88rem;
  padding: 8px 14px;
}

.utility {
  grid-area: utility;
  display: flex;
  align-items: center;
  gap: 4px;
}

.utility a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.utility a:hover,
.utility a[aria-current] {
  color: var(--text);
}

.utility form {
  margin: 0 0 0 8px;
}

.cart-link {
  border: 1px solid var(--line-strong);
  margin-left: 4px;
}

.count {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.45em;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--orange);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

/* Barre de la partie en cours */
.subnav {
  border-top: 1px solid var(--line);
}

.subnav-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
  margin-right: 14px;
}

.subnav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.subnav a:hover {
  color: var(--text);
}

.subnav a[aria-current] {
  background: var(--orange);
  color: #000;
  font-weight: 600;
}

/* --- Messages --- */

.flash,
.notice {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--surface);
  color: var(--text-soft);
}

.flash a,
.notice a {
  color: var(--text);
}

.flash-ok {
  border-left-color: var(--ok);
  background: var(--ok-dim);
}

.flash-error {
  border-left-color: var(--err);
  background: var(--err-dim);
}

.notice {
  border-left-color: var(--orange);
  background: var(--orange-dim);
}

/* --- Accueil --- */

.home {
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px);
}

.home-intro {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.home-intro img {
  width: 84px;
  flex: none;
}

.home-intro h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin: 0 0 6px;
}

.home-intro .lead {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.split-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.split-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
}

.split-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.split-card > p:not(.eyebrow) {
  color: var(--text-soft);
}

.split-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1;
}

.split-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
}

.split-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 12px;
  height: 2px;
  background: var(--orange);
}

.split-card .actions {
  margin-top: 32px;
}

.split-products {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: start;
  flex: 1;
}

.split-products a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.35;
}

.split-products .product-photo {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  background: var(--bg);
  transition: border-color 0.15s;
}

.split-products a:hover .product-photo {
  border-color: var(--orange);
}

.split-products .price {
  font-size: 0.9rem;
}

.home-more {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0;
}

.home-more-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.home-more h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.home-more p {
  color: var(--text-soft);
  max-width: 44ch;
}

/* --- Cartes --- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.section-tint .card {
  background: var(--surface);
}

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.card-body h3,
.card-body h2 {
  margin-bottom: 10px;
}

.card-body p {
  color: var(--text-soft);
  margin: 0;
}

.contact-cards .card-body p {
  flex: 1;
  margin-bottom: 24px;
}

.contact-cards .btn {
  word-break: break-all;
}

/* --- Étapes --- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.steps li {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

.steps p {
  color: var(--text-soft);
  margin: 0;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 14px;
}

.step-num::before {
  content: '0';
}

/* --- Prestations --- */

.services {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

.service:nth-child(even) .service-photo {
  order: 2;
}

.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-text {
  grid-template-columns: 1fr;
}

.service-text .service-body {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px clamp(28px, 6vw, 80px);
  align-items: start;
}

.service-text .service-body h2 {
  grid-row: span 2;
}

.service-text .service-body p,
.service-text .service-body .ticks {
  grid-column: 2;
}

.service-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.service-body p {
  color: var(--text-soft);
}

.ticks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticks li {
  font-size: 0.85rem;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3em 0.95em;
}

/* --- Galerie --- */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.gallery figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 10px 2px 0;
}

.gallery-admin {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 24px;
}

/* --- Bandeau d'appel --- */

.cta {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 120% at 100% 50%, rgba(255, 166, 0, 0.1) 0%, transparent 60%), var(--bg);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 56px;
  flex-wrap: wrap;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-soft);
}

/* --- Shop --- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filters a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.filters a:hover {
  border-color: var(--text);
  color: var(--text);
}

.filters a[aria-current='true'] {
  background: var(--text);
  border-color: var(--text);
  color: #000;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.product-card:hover {
  color: var(--text);
}

.product-card .product-photo {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.product-card:hover .product-photo {
  border-color: var(--orange);
}

.product-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-photo-empty {
  display: grid;
  place-items: center;
  background: var(--surface);
}

.product-photo-empty img {
  opacity: 0.35;
  filter: grayscale(1);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 2px 0;
  flex: 1;
}

.product-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-name {
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--orange);
}

.price-large {
  font-size: 2rem;
  margin: 0 0 4px;
}

.product-page {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.product-page-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.product-page-photo img {
  width: 100%;
}

.product-page-photo .product-photo-empty img {
  width: 140px;
}

.buy {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 32px 0 12px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.buy .field {
  margin: 0;
}

.field-qty input {
  width: 92px;
}

.prose {
  color: var(--text-soft);
}

.prose h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 2.4em;
  letter-spacing: -0.01em;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.pre {
  white-space: pre-line;
  margin-top: 24px;
}

.boxed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.todo {
  background: var(--orange-dim);
  color: var(--orange);
  border-radius: 3px;
  padding: 0 0.35em;
  font-style: italic;
}

/* --- Badges --- */

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  white-space: nowrap;
}

.badge-nouveau,
.badge-payee {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

.badge-accepte,
.badge-expediee {
  border-color: rgba(111, 207, 151, 0.5);
  color: var(--ok);
  background: var(--ok-dim);
}

.badge-refuse,
.badge-annulee {
  border-color: rgba(255, 123, 114, 0.5);
  color: var(--err);
  background: var(--err-dim);
}

/* --- Panier et commande --- */

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.cart-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cart-thumb .product-photo-empty img {
  width: 36px;
  aspect-ratio: auto;
}

.cart-main {
  display: flex;
  flex-direction: column;
}

.cart-name {
  font-weight: 600;
  text-decoration: none;
}

.cart-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.cart-qty input {
  width: 76px;
}

.cart-total {
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

.cart-line form {
  margin: 0;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 12px;
}

.summary h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.summary-lines {
  list-style: none;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}

.totals {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}

.totals dd {
  margin: 0;
}

.totals-main {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 14px !important;
}

.totals-right {
  max-width: 320px;
  margin-left: auto;
  margin-top: 16px;
}

.recap {
  margin: 24px 0;
}

.recap div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.recap div:last-child {
  border-bottom: 0;
}

.recap dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.recap dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.choices {
  display: grid;
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.choice {
  background: var(--bg);
  padding: 28px;
}

.choice h2 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.choice p {
  color: var(--text-soft);
}

.choice form {
  margin: 0;
}

/* --- Formulaires --- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.form-narrow {
  max-width: 640px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 40px;
  min-width: 0;
}

legend {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 0;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-row-city {
  grid-template-columns: 160px 1fr;
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.93rem;
  margin-bottom: 8px;
  color: var(--text);
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.field-hint {
  color: var(--muted);
  font-size: 0.87rem;
  margin: -4px 0 10px;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='password'],
input[type='number'],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8em 0.95em;
  transition: border-color 0.15s, background-color 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #555;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input[type='file'] {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 100%;
}

input[type='file']::file-selector-button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.6em 1em;
  margin-right: 12px;
  cursor: pointer;
}

input[type='file']::file-selector-button:hover {
  border-color: var(--text);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--orange);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--orange);
  width: 1.1em;
  height: 1.1em;
  flex: none;
  margin: 0.25em 0 0;
}

.field-check label,
.check-inline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--text-soft);
}

.field-check label a {
  white-space: nowrap;
  color: var(--text);
}

.has-error input,
.has-error textarea,
.has-error select {
  border-color: var(--err);
}

.field-error {
  color: var(--err);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 8px 0 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.radios {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.radio {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s;
}

.radio:hover {
  border-color: #555;
}

.radio:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-dim);
}

.radio span span {
  display: block;
}

.form-alt {
  margin-top: 20px;
  color: var(--text-soft);
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.form-inline .field {
  margin: 0;
  flex: 1 1 220px;
}

.form-preview {
  width: 140px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.form-delete {
  margin-top: 36px;
}

.aside {
  border-left: 1px solid var(--line);
  padding: 4px 0 4px clamp(24px, 4vw, 40px);
}

.aside h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.aside-steps {
  padding-left: 1.2em;
  margin: 0 0 36px;
  color: var(--text-soft);
}

.aside-steps li {
  margin-bottom: 10px;
}

.aside-steps li::marker {
  color: var(--orange);
}

.aside p {
  margin: 0;
}

.danger {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.danger summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.92rem;
}

.danger summary:hover {
  color: var(--text);
}

.danger[open] summary {
  margin-bottom: 16px;
}

.danger p {
  color: var(--text-soft);
}

/* --- À propos --- */

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.about-text {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  position: sticky;
  top: 108px;
}

.about .prose {
  font-size: 1.12rem;
  margin-top: 12px;
}

.about .prose p:first-child {
  color: var(--text);
  font-size: 1.25rem;
}

/* --- Tableaux --- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 36px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface);
}

.table tbody tr:hover {
  background: var(--surface);
}

.table tr:last-child td {
  border-bottom: 0;
}

.cell-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cell-product img,
.thumb-empty {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  flex: none;
}

/* --- Pied de page --- */

.site-footer {
  background: #050505;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  padding: 72px 0 28px;
  font-size: 0.94rem;
}

.site-footer a {
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-text {
  margin-top: 18px;
  max-width: 34ch;
  color: var(--muted);
}

.footer-title {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #5c5851;
}

.footer-legal a {
  color: #5c5851;
}

.footer-legal a:hover {
  color: var(--text-soft);
}

/* --- Administration --- */

.admin-main {
  padding: 40px 0 80px;
}

.tight-box {
  max-width: 440px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.stats {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats a {
  display: block;
  height: 100%;
  background: var(--bg);
  padding: 24px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.stats a:hover {
  background: var(--surface);
  color: var(--text);
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 36px;
  align-items: start;
}

.admin-cols-wide {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.admin-cols > * {
  min-width: 0;
}

.files {
  padding-left: 1.2em;
}

.files li {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.slots {
  list-style: none;
  margin: 28px 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.slot {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.slot-preview {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.slot-body h2 {
  margin-bottom: 4px;
}

.slot-body p {
  margin-bottom: 12px;
}

/* --- Écrans étroits --- */

/* En dessous de 980 px : logo et panier sur une ligne, les deux parties du site en dessous. */
@media (max-width: 980px) {
  .header-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'brand utility' 'tabs tabs';
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 0;
  }

  .tabs {
    justify-self: stretch;
  }

  .tab {
    flex: 1;
  }
}

@media (max-width: 1060px) {
  .cards-4,
  .steps,
  .products,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-admin {
    grid-template-columns: repeat(3, 1fr);
  }

  .checkout-layout,
  .form-layout,
  .admin-cols,
  .admin-cols-wide,
  .slots {
    grid-template-columns: 1fr;
  }

  .aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 32px 0 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }

  .wrap {
    padding: 0 16px;
  }

  .hide-sm {
    display: none;
  }

  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 34px;
  }

  .tab {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  .utility a {
    padding: 8px;
  }

  .home-intro img {
    width: 60px;
  }

  .split-card .actions .btn {
    width: 100%;
  }

  .split,
  .home-more-grid,
  .service,
  .product-page,
  .about,
  .footer-grid,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .service-text .service-body {
    grid-template-columns: 1fr;
  }

  .service-text .service-body h2 {
    grid-row: auto;
  }

  .service-text .service-body p,
  .service-text .service-body .ticks {
    grid-column: 1;
  }

  .service:nth-child(even) .service-photo {
    order: 0;
  }

  .about-photo {
    position: static;
    max-width: 420px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-row,
  .field-row-city {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .cart-qty {
    grid-column: 2;
  }

  .cart-total {
    grid-column: 3;
    grid-row: 1;
  }

  .recap div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .slot {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .cards-4,
  .steps {
    grid-template-columns: 1fr;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .buy {
    flex-wrap: wrap;
  }

  .actions .btn {
    width: 100%;
  }
}

/* --- Téléphone : barre de navigation fixe en bas de l'écran --- */

.mobile-bar,
.mobile-action {
  display: none;
}

@media (max-width: 760px) {
  body {
    -webkit-tap-highlight-color: transparent;
  }

  body:not(.admin) {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-strong);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-bar a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 66px;
    padding: 8px 2px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-bar a[aria-current] {
    color: var(--orange);
  }

  .mobile-bar a[aria-current]::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 28px;
    height: 2px;
    margin-left: -14px;
    background: var(--orange);
  }

  .mobile-bar .count {
    position: absolute;
    top: 6px;
    left: 50%;
    margin-left: 4px;
    font-size: 0.65rem;
  }

  /* Bouton d'action toujours à portée de pouce (fiche produit, panier) */
  .mobile-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(66px + env(safe-area-inset-bottom));
    z-index: 29;
    padding: 12px 16px;
    background: var(--surface);
    border-top: 1px solid var(--line-strong);
  }

  .mobile-action-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.3;
  }

  .mobile-action-info strong {
    font-size: 1.1rem;
    color: var(--orange);
  }

  .mobile-action .btn {
    flex: none;
    padding: 0.85em 1.3em;
  }

  body:has(.mobile-action) {
    padding-bottom: calc(66px + 72px + env(safe-area-inset-bottom));
  }

  .mobile-action-info {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .home-intro img {
    display: none;
  }

  .cart-qty .btn-text {
    white-space: nowrap;
  }

  .cart-qty input {
    width: 64px;
    padding: 0.6em 0.7em;
  }

  /* En-tête réduit : la navigation passe en bas */
  .site-header {
    position: static;
  }

  .header-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'brand utility';
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body:not(.admin) .tabs {
    display: none;
  }

  .u-desktop {
    display: none !important;
  }

  .utility a.u-contact {
    border: 1px solid var(--line-strong);
    padding: 8px 14px;
  }

  .tabs-admin {
    grid-template-columns: none;
  }

  .tabs-admin .tab {
    flex: none;
  }

  .header-row:has(.tabs-admin) {
    grid-template-areas: 'brand utility' 'tabs tabs';
  }

  .subnav-row {
    min-height: 50px;
    gap: 4px;
  }

  .subnav-title {
    display: none;
  }

  .subnav-row {
    margin: 0 auto;
  }

  .subnav a {
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  /* Espacements plus serrés */
  .section {
    padding: 44px 0;
  }

  .section-flush {
    padding-top: 0;
  }

  .page-head {
    padding: 36px 0 28px;
    margin-bottom: 32px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .h1-small {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .actions {
    margin-top: 24px;
  }

  .cta {
    padding: 48px 0;
  }

  .cta-row .btn,
  .choice .btn,
  .contact-cards .btn {
    width: 100%;
  }

  .home {
    padding: 28px 0 44px;
  }

  .home-intro {
    gap: 16px;
    margin-bottom: 24px;
  }

  .home-intro h1 {
    font-size: 1.9rem;
  }

  .split {
    gap: 14px;
  }

  .split-card {
    padding: 26px 20px;
  }

  .split-card .actions {
    margin-top: 24px;
  }

  .home-more {
    padding: 40px 0;
  }

  .home-more-grid {
    gap: 28px;
  }

  .service {
    padding: 32px 0;
    gap: 20px;
  }

  .steps {
    gap: 24px;
  }

  .card-body {
    padding: 24px 20px;
  }

  /* Fiche produit et achat */
  .product-page {
    gap: 24px;
  }

  .price-large {
    font-size: 1.7rem;
  }

  .buy {
    margin-top: 24px;
    padding-top: 24px;
  }

  .buy .btn {
    flex: 1;
  }

  /* Panier */
  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      'thumb main total'
      'thumb qty remove';
    gap: 8px 14px;
    align-items: start;
  }

  .cart-thumb {
    grid-area: thumb;
  }

  .cart-main {
    grid-area: main;
  }

  .cart-qty {
    grid-area: qty;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .cart-total {
    grid-area: total;
    min-width: 0;
  }

  .cart-line > form:last-child {
    grid-area: remove;
    justify-self: end;
    align-self: center;
  }

  .summary {
    padding: 22px 20px;
  }

  .radio {
    padding: 14px;
  }

  .aside {
    padding-top: 28px;
  }

  .boxed,
  .tight-box {
    padding: 22px 18px;
  }

  .tight-box {
    margin: 16px auto;
  }

  .admin-main {
    padding: 24px 0 56px;
  }

  .stats a {
    padding: 18px 16px;
  }

  .stats strong {
    font-size: 1.9rem;
  }

  /* Tableaux transformés en fiches */
  .table-stack thead {
    display: none;
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .table-stack tr:last-child {
    border-bottom: 0;
  }

  .table-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }

  .table-stack td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.85rem;
    text-align: left;
    flex: none;
  }

  .table-stack td:first-child {
    justify-content: flex-start;
    text-align: left;
    font-weight: 600;
    padding-bottom: 8px;
  }

  .table-stack td:first-child::before {
    display: none;
  }

  .table-stack tbody tr:hover {
    background: transparent;
  }

  .footer-grid {
    gap: 32px;
  }

  .site-footer {
    padding: 48px 0 24px;
  }

  .footer-legal {
    margin-top: 36px;
  }
}


/* --- Mouvement : un seul jeu de courbes et de durées pour tout le site --- */

:root {
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);      /* ce qui apparaît */
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);       /* ce qui s'en va */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* ce qui bouge ou change de taille sur place */
  --t-press: 150ms;
  --t-enter: 280ms;
  --t-move: 250ms;
}

/* Appui : la réponse arrive sur la même image que le clic ou le toucher */
.btn {
  transition: background-color var(--t-press) ease, border-color var(--t-press) ease, color var(--t-press) ease,
    transform var(--t-press) var(--ease-out), filter var(--t-press) ease;
}

.btn:active {
  transform: scale(0.96);
}

/* Les grands boutons (pleine largeur) s'assombrissent au lieu de rétrécir */
.btn-block:active,
.buy .btn:active {
  transform: none;
  filter: brightness(0.88);
}

.tab,
.subnav a,
.filters a,
.utility a {
  transition: background-color var(--t-press) ease, color var(--t-press) ease, border-color var(--t-press) ease,
    transform var(--t-press) var(--ease-out);
}

.tab:active,
.subnav a:active,
.filters a:active,
.utility a:active {
  transform: scale(0.96);
}

.mobile-bar svg {
  transition: transform var(--t-press) var(--ease-out);
}

.mobile-bar a:active svg {
  transform: scale(0.86);
}

.btn-text {
  position: relative;
  transition: color var(--t-press) ease, text-decoration-color var(--t-press) ease, opacity var(--t-press) ease;
}

.btn-text:active {
  opacity: 0.6;
}

/* Petits liens-boutons : zone de toucher plus grande que le texte */
.btn-text::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  top: 50%;
  height: max(100%, 44px);
  translate: 0 -50%;
}

.radio {
  transition: border-color var(--t-press) ease, background-color var(--t-press) ease;
}

/* Cartes produit : sur ordinateur, la photo s'approche doucement au survol (le cadre, lui, ne bouge pas) */
.product-card .photo-frame {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.product-card .photo-frame .product-photo {
  border: 0;
  border-radius: 0;
  transition: transform 400ms var(--ease-out), opacity 300ms var(--ease-out);
}

.product-card:hover .photo-frame {
  border-color: var(--orange);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .photo-frame .product-photo {
    transform: scale(1.04);
  }
}

.product-card:active .photo-frame {
  border-color: var(--orange);
}

/* Photos : elles apparaissent en fondu quand elles ont fini de charger (jamais un trou qui se remplit d'un coup) */
.product-photo,
.card-photo,
.gallery img,
.service-photo img,
.about-photo img,
.product-page-photo img,
.cart-thumb img {
  transition: opacity 300ms var(--ease-out);
}

img.pp-wait {
  opacity: 0;
}

/* Message de confirmation (ajout au panier, demande envoyée…) : il descend de 8 px en fondu */
.flash {
  animation: pp-flash var(--t-enter) var(--ease-out) both;
}

@keyframes pp-flash {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Pastille du panier : petit rebond quand un article vient d'y entrer */
.count.pp-bump {
  animation: pp-bump 450ms var(--ease-out);
}

@keyframes pp-bump {
  0% {
    transform: scale(0.5);
  }
  55% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

/* Envoi d'un formulaire : le bouton garde sa taille et affiche une roue après 300 ms (jamais de double envoi) */
.btn[aria-busy='true'],
.btn-text[aria-busy='true'] {
  pointer-events: none;
}

.btn.pp-pending {
  position: relative;
  color: transparent !important;
}

.btn.pp-pending > * {
  visibility: hidden;
}

.btn.pp-pending::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  border: 2px solid var(--pp-spin, #000);
  border-right-color: transparent;
  animation: pp-spin 0.7s linear infinite;
}

.btn-outline,
.btn-light {
  --pp-spin: var(--text);
}

.btn-text.pp-pending {
  opacity: 0.5;
}

@keyframes pp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Erreur dans un formulaire : le champ concerné tremble une fois et reçoit le curseur */
.pp-shake {
  animation: pp-shake 360ms var(--ease-out);
}

@keyframes pp-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-10px);
  }
  32% {
    transform: translateX(10px);
  }
  50% {
    transform: translateX(-6px);
  }
  66% {
    transform: translateX(6px);
  }
  83% {
    transform: translateX(-3px);
  }
}

.field-error {
  animation: pp-flash var(--t-enter) var(--ease-out) both;
}

/* Commande : les champs d'adresse s'ouvrent et se referment en douceur (livraison / remise en main propre) */
.pp-expander {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows var(--t-move) var(--ease-in-out), opacity var(--t-move) var(--ease-in-out);
}

.pp-expander.is-closed {
  grid-template-rows: 0fr;
  opacity: 0;
  transition-duration: 190ms;
}

.pp-expander:not(.pp-ready) {
  transition: none;
}

/* Le contenu est rogné pendant l'animation ; 4 px de marge pour ne pas couper le halo des champs */
.pp-expander > .pp-expander-inner {
  min-height: 0;
  overflow: hidden;
  padding: 4px;
  margin: -4px;
}

/* Mouvement réduit (réglage de l'appareil) : plus rien ne bouge, sauf la roue d'envoi (sinon on croirait à un blocage) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .btn.pp-pending::after {
    animation-duration: 0.7s !important;
    animation-iteration-count: infinite !important;
  }
}
