/* ==========================================================================
   L'atelier de Magali — feuille de style
   Palette reprise du logo et des bannières : rose bonbon, saumon, framboise, prune.
   ========================================================================== */
:root {
  --rose: #c8326b;        /* framboise (titre des bannières) : actions, liens */
  --rose-deep: #9e2a5a;   /* survol, titres accentués */
  --rose-soft: #f09696;   /* saumon du logo : pointillés, détails */
  --bonbon: #feaec7;      /* rose des bannières */
  --petal: #ffe3ec;       /* surfaces */
  --blush: #fff7fa;       /* fond de page */
  --prune: #3b1830;       /* texte */
  --prune-soft: #6e4a5f;  /* texte secondaire */
  --line: #f0cddb;
  --white: #fff;
  --ok: #2f7a5b;
  --warn: #9a5b00;
  --danger: #b4233c;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --script: "Parisienne", "Segoe Script", cursive;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-s: 12px;
  --wrap: 1180px;
  --stitch: 2px dashed var(--rose-soft);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--prune);
  background: var(--blush);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--prune-soft); }
.lead { font-size: 1.2rem; color: var(--prune-soft); max-width: 62ch; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 1rem; left: 1rem; z-index: 100; background: var(--white); padding: .6rem 1rem; }
.hp { position: absolute; left: -9999px; }

/* --- En-tête ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 249, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--rose-deep); }
.logo img { width: 52px; height: 52px; border-radius: 50%; }
.logo-text { font-family: var(--script); font-size: 1.75rem; line-height: 1; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--prune); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--rose); }
.main-nav a[aria-current="page"] { border-bottom: var(--stitch); color: var(--rose-deep); }
.nav-tools { display: flex; gap: .6rem; }
.nav-tools a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; background: var(--petal); border: 0; }
.nav-tools a:hover { background: #f8d3e0; }
.nav-tools svg, .secure svg, .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { background: var(--rose); color: var(--white); border-radius: 999px; font-size: .75rem; font-weight: 700; padding: .05rem .5rem; }
.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--prune); margin: 5px 0; transition: transform .2s; }

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--sans);
  padding: .95rem 1.6rem; border-radius: 999px;
  border: 2px solid var(--rose); background: var(--white); color: var(--rose);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--petal); color: var(--rose-deep); }
.btn-primary { background: var(--rose); color: var(--white); }
.btn-primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }
.btn-ghost { background: transparent; }
.btn-light { background: var(--white); color: var(--rose-deep); border-color: var(--white); }
.btn-small { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-wide { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--rose); text-decoration: underline; cursor: pointer; }
.link.danger { color: var(--danger); }
.icon-btn { background: none; border: 0; color: var(--prune-soft); cursor: pointer; padding: .4rem; border-radius: 50%; }
.icon-btn:hover { background: var(--petal); color: var(--danger); }

/* --- Messages ----------------------------------------------------------- */
.flash { padding: .9rem 1.2rem; border-radius: var(--radius-s); margin: 1.2rem 0; background: var(--white); border-left: 4px solid var(--rose); }
.flash p { margin: 0; }
.flash-success { border-color: var(--ok); }
.flash-error { border-color: var(--danger); background: #fff0f2; }
.flash-info .btn { margin-left: .8rem; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-title { margin-bottom: 1.2rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.page-head h1 { margin-bottom: .3em; }
.prose { max-width: 68ch; }
.prose p { line-height: 1.7; }

/* --- Accueil : bannières + intro ------------------------------------------- */
.hero { padding: 0 0 clamp(2rem, 4vw, 3rem); }
.slider { position: relative; background: var(--bonbon); aspect-ratio: 3.125; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots { position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; cursor: pointer; padding: 0; }
.slider-dots button[aria-pressed="true"] { background: var(--white); }
.hero-intro { padding-top: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.hero-intro h1 { max-width: 20ch; margin-inline: auto; }
.hero-intro .lead { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-intro .hero-actions, .hero-actions.center { justify-content: center; }

.story-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; border-top: var(--stitch); padding-top: 3rem; }
.story-logo { width: 100%; max-width: 320px; border-radius: 50%; box-shadow: 0 18px 40px rgba(240, 150, 150, .35); }
.story h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--rose-deep); }
.story h2:not(:first-child) { margin-top: 1.6rem; }

.steps-section { background: var(--petal); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--rose-deep); font: 700 1.1rem var(--serif);
  outline: 2px dashed var(--rose-soft); outline-offset: 3px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 3.4rem; right: -1rem; border-top: var(--stitch); }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--prune-soft); font-size: .98rem; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: var(--rose); color: var(--white); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem); margin-top: 2rem;
  outline: 2px dashed rgba(255, 255, 255, .55); outline-offset: -12px;
}
.cta-band h2 { color: var(--white); margin-bottom: .3rem; max-width: 26ch; }
.cta-band p { margin: 0; opacity: .92; }

/* --- Produits ----------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.6rem; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.product-card:hover { border-color: var(--rose-soft); }
.product-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.product-media { aspect-ratio: 1; background: var(--petal); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1.1rem 1.2rem 1.3rem; }
.product-cat { font-size: .85rem; color: var(--rose-deep); margin-bottom: .2rem; }
.product-body h3 { margin-bottom: .3rem; }
.product-desc { color: var(--prune-soft); font-size: .95rem; }
.product-price { margin: 0; font-size: .95rem; }
.product-price strong { font-size: 1.15rem; color: var(--prune); }

.ph { width: 100%; height: 100%; aspect-ratio: 1; display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--petal) 0 10px, #f9dbe6 10px 20px); }
.ph span {
  width: 42%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--rose); font: 600 clamp(1.6rem, 4vw, 2.6rem) var(--serif);
  outline: 2px dashed var(--rose-soft); outline-offset: 5px;
}

.shop-grid { display: grid; grid-template-columns: 230px 1fr; gap: 2.5rem; align-items: start; }
.shop-side { position: sticky; top: 100px; }
.shop-side h2 { font-size: 1.15rem; }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: .55rem .8rem; border-radius: 10px; color: var(--prune); text-decoration: none; }
.cat-list a span { color: var(--prune-soft); font-size: .9rem; }
.cat-list a:hover { background: var(--petal); }
.cat-list a[aria-current] { background: var(--rose); color: var(--white); }
.cat-list a[aria-current] span { color: var(--white); }
.shop-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.2rem; }
.field-inline { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.field-inline input { min-width: 220px; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--white); border-radius: var(--radius); border: var(--stitch); }

/* Fiche produit */
.crumbs { display: flex; gap: .5rem; font-size: .95rem; margin-bottom: 1.5rem; color: var(--prune-soft); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.gallery { position: sticky; top: 100px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--petal); }
.gallery-main img, .gallery-main .ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: .7rem; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--rose); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.customizer { margin-top: 1.8rem; }
.custom-box { border: var(--stitch); border-radius: var(--radius); padding: 1.4rem 1.4rem .4rem; margin: 0 0 1.4rem; background: var(--white); }
.custom-box > legend { font: 600 1.2rem var(--serif); padding: 0 .6rem; color: var(--rose-deep); }
.choice-group { border: 0; padding: 0; margin: 0; }
.choice-group legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--blush); cursor: pointer; }
.chip small { color: var(--prune-soft); }
.chip input:checked + span { border-color: var(--rose); background: var(--rose); color: var(--white); }
.chip input:checked + span small { color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 2px; }
.extra { color: var(--rose-deep); font-weight: 600; margin-left: .3rem; }
.req { color: var(--rose); }
.buy-bar { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; padding: 1.2rem; border-radius: var(--radius); background: var(--petal); }
.buy-bar .btn-wide { grid-column: 1 / -1; }
.price-block .muted { font-size: .9rem; }
.price-live { font: 700 2rem/1.1 var(--serif); color: var(--rose-deep); margin: .2rem 0 0; }
.price-live small { font: 400 .95rem var(--sans); color: var(--prune-soft); }
.price-live.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.06); } }
.qty { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.qty input { width: 5.5rem; text-align: center; }

/* --- Formulaires -------------------------------------------------------- */
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.field > label { font-weight: 600; font-size: .97rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.field-row.four { grid-template-columns: repeat(4, 1fr); }
input, select, textarea {
  font: inherit; color: var(--prune);
  padding: .75rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--white); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(200, 50, 107, .15); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--rose); }
input[type="file"] { padding: .55rem; background: var(--blush); }
input:disabled { background: var(--blush); color: var(--prune-soft); }
.hint { font-size: .87rem; color: var(--prune-soft); margin: .2rem 0 .4rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin: .6rem 0 1.2rem; font-size: .97rem; cursor: pointer; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.form-card h2 { font-size: 1.4rem; }

/* --- Panier / commande ------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 1.2rem; align-items: center; background: var(--white); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--line); margin-bottom: .9rem; }
.cart-thumb { width: 90px; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; }
.cart-thumb img, .cart-thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph span { font-size: 1.2rem; }
.cart-desc h2 { font-size: 1.15rem; margin-bottom: .2rem; }
.cart-desc h2 a { color: var(--prune); text-decoration: none; }
.cart-desc .muted { margin: 0; font-size: .9rem; }
.custom-lines { list-style: none; padding: 0; margin: 0 0 .3rem; font-size: .92rem; color: var(--prune-soft); }
.custom-lines li::before { content: "✓ "; color: var(--rose); }
.cart-row .qty input { width: 4.5rem; }
.cart-line-total { font-weight: 700; margin: 0; min-width: 5.5rem; text-align: right; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.summary { background: var(--white); border-radius: var(--radius); padding: 1.6rem; border: var(--stitch); position: sticky; top: 100px; }
.summary h2 { font-size: 1.35rem; }
.summary dl, .totals { margin: 0 0 1.2rem; }
.summary dl > div, .totals > div { display: flex; justify-content: space-between; padding: .45rem 0; }
.summary dt, .totals dt { color: var(--prune-soft); }
.summary dd, .totals dd { margin: 0; font-weight: 600; }
.total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .8rem !important; }
.total dt, .total dd { font: 700 1.25rem var(--serif); color: var(--prune); }
.secure { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .88rem; color: var(--prune-soft); margin: .9rem 0 0; }
.mini-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.mini-items li > div { display: flex; flex-direction: column; }
.mini-items .muted { font-size: .88rem; }
.custom-print { background: var(--petal); padding: .5rem .7rem; border-radius: 8px; margin-top: .4rem; font-size: .95rem; }
address { font-style: normal; margin-bottom: 1rem; }

.thanks { padding: 2rem 0; }
.thanks-logo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.2rem; }
.thanks .lead { margin-inline: auto; }

/* --- Réalisations ------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.filter { font: 500 .95rem var(--sans); padding: .5rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--prune); cursor: pointer; text-decoration: none; }
.filter:hover { border-color: var(--rose-soft); }
.filter.is-on { background: var(--prune); border-color: var(--prune); color: var(--white); }
.works-grid { columns: 3 280px; column-gap: 1.4rem; }
.work { break-inside: avoid; margin: 0 0 1.4rem; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.work[hidden] { display: none; }
.work-open { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.work-img { width: 100%; }
.work figcaption { padding: .9rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.work figcaption span { color: var(--prune-soft); font-size: .93rem; }
.works-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.work-mini { margin: 0; }
.work-mini .work-img, .work-mini .ph { width: 100%; border-radius: var(--radius-s); aspect-ratio: 4/5; object-fit: cover; }
.work-mini figcaption { font-size: .93rem; margin-top: .5rem; }
.lightbox { border: 0; padding: 0; border-radius: var(--radius); max-width: min(92vw, 900px); background: var(--white); }
.lightbox::backdrop { background: rgba(59, 24, 48, .7); }
.lightbox img { width: 100%; max-height: 70vh; object-fit: contain; background: var(--petal); }
.lightbox-text { padding: 1.2rem 1.5rem; }
.lightbox-close { position: absolute; top: .6rem; right: .6rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: var(--white); font-size: 1.6rem; cursor: pointer; color: var(--prune); }

/* --- Devis -------------------------------------------------------------- */
.quote-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.quote-side { padding: 1.6rem; border-radius: var(--radius); background: var(--petal); }
.quote-side h2 { font-size: 1.25rem; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.tick-list li { padding: .4rem 0 .4rem 1.6rem; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 1rem; border-top: var(--stitch); border-color: var(--rose); }

/* --- Compte ------------------------------------------------------------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; max-width: 920px; }
.auth.single { grid-template-columns: 1fr; max-width: 560px; }
.auth h1 { font-size: 2rem; }
.auth-side { padding: 2rem; }
.auth-links { text-align: center; margin: 1rem 0 0; font-size: .95rem; }
.account-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.account-head-actions { display: flex; gap: .6rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; overflow-x: auto; }
.tabs a { padding: .8rem 1.1rem; text-decoration: none; color: var(--prune-soft); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--rose-deep); border-bottom: 3px solid var(--rose); }
.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }

.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 2rem; }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th, .table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .88rem; color: var(--prune-soft); font-weight: 600; background: var(--blush); }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--petal); color: var(--rose-deep); white-space: nowrap; }
.status-wait { background: #fff1d6; color: var(--warn); }
.status-paid { background: #e2f3ea; color: var(--ok); }
.status-prep { background: var(--petal); color: var(--rose-deep); }
.status-ship { background: #e6ecfb; color: #2f4b9a; }
.status-done { background: var(--prune); color: var(--white); }
.status-cancel { background: #f1e8ec; color: var(--prune-soft); }

.tracker { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 2rem; }
.tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; color: var(--prune-soft); font-weight: 500; }
.tracker li::before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; border-top: 2px dashed var(--line); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); position: relative; z-index: 1; }
.tracker li.done { color: var(--prune); }
.tracker li.done::before { border-top-color: var(--rose); }
.tracker li.done .dot { background: var(--rose); border-color: var(--rose); }
.tracker li.current .dot { outline: 2px dashed var(--rose-soft); outline-offset: 4px; }
.tracking { background: var(--white); padding: 1rem 1.2rem; border-radius: var(--radius-s); border: var(--stitch); }
.quote-list { display: grid; gap: 1rem; }
.quote-item { background: var(--white); border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--line); }
.quote-item header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.quote-item h2 { font-size: 1.2rem; margin: 0; }
.reply { background: var(--petal); border-radius: var(--radius-s); padding: 1rem 1.2rem; border-left: 4px solid var(--rose); }
.reply p { margin: .4rem 0 0; }

/* --- Pages légales ------------------------------------------------------ */
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.note { background: #fff1d6; color: var(--warn); padding: .8rem 1rem; border-radius: var(--radius-s); font-size: .95rem; }

/* --- Pied de page ------------------------------------------------------- */
.site-footer { background: var(--prune); color: #f6dfe8; margin-top: 3rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer-brand img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: .8rem; }
.site-footer { border-top: 6px solid var(--bonbon); }
.site-footer h2 { font: 600 1rem var(--sans); color: var(--white); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #f6dfe8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem 0 1.6rem; font-size: .88rem; opacity: .8; }
.footer-bottom p { margin: 0; }

/* --- Administration ----------------------------------------------------- */
.admin { background: var(--blush); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-nav { background: var(--prune); color: var(--white); padding: 1.6rem 1.2rem; display: flex; flex-direction: column; gap: 1.6rem; }
.admin-nav .logo { color: var(--white); }
.admin-nav .logo-word { font-size: 1.15rem; }
.admin-nav ul { list-style: none; padding: 0; margin: 0; }
.admin-nav nav a { display: block; padding: .6rem .8rem; border-radius: 10px; color: #f6dfe8; text-decoration: none; }
.admin-nav nav a:hover { background: rgba(255, 255, 255, .08); }
.admin-nav nav a[aria-current] { background: var(--rose); color: var(--white); }
.admin-nav-foot { margin-top: auto; font-size: .9rem; }
.admin-nav-foot a { color: #f6dfe8; }
.admin-main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; max-width: 1200px; }
.admin-main h1 { font-size: 2rem; }
.admin-main > h2, .admin-main section > h2 { margin-top: 2rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stat { background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.4rem; border: 1px solid var(--line); }
.stat-val { font: 700 1.9rem var(--serif); color: var(--rose-deep); margin: 0; }
.stat-label { margin: 0; color: var(--prune-soft); }
.admin-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; }
.admin-list { list-style: none; padding: 0; }
.admin-list li { background: var(--white); padding: .8rem 1rem; border-radius: var(--radius-s); margin-bottom: .5rem; border: 1px solid var(--line); }
.thumb-cell .ph, .thumb-cell img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; aspect-ratio: 1; }
.thumb-cell .ph span { font-size: 1rem; outline: 0; }
.thumb-cell.big .ph, .thumb-cell.big img { width: 140px; height: 140px; }
.actions { display: flex; gap: 1rem; align-items: center; }
.actions form { margin: 0; }
.inline-actions { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.option-card { border: var(--stitch); }
.values { list-style: none; padding: 0; margin: 0 0 1rem; }
.values li { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.values form { margin: 0; }
.add-value { display: flex; gap: .5rem; flex-wrap: wrap; }
.add-value input { width: auto; flex: 1 1 160px; }
.details > div { display: grid; grid-template-columns: 130px 1fr; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--prune-soft); }
.details dd { margin: 0; }
.work-admin { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1020px) {
  .burger { display: block; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--blush); padding: 1.2rem 1.25rem 1.8rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: .2rem; }
  .main-nav ul a { display: block; padding: .7rem 0; font-size: 1.1rem; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
  .cart-layout, .quote-layout, .admin-cols, .profile-grid { grid-template-columns: 1fr; }
  .summary, .gallery, .shop-side { position: static; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .product-layout, .shop-grid, .auth { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .story-logo { max-width: 200px; }
  .slider { aspect-ratio: 2; }
  .slide img { object-position: left center; }
  .logo-text { font-size: 1.4rem; }
  .field-row, .field-row.three, .field-row.four { grid-template-columns: 1fr; }
  .works-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-row { grid-template-columns: 70px 1fr auto; grid-template-areas: "img desc del" "img qty total"; }
  .cart-thumb { width: 70px; grid-area: img; }
  .cart-desc { grid-area: desc; }
  .cart-row .qty { grid-area: qty; }
  .cart-line-total { grid-area: total; }
  .cart-row .icon-btn { grid-area: del; }
  .tracker { grid-template-columns: 1fr 1fr; row-gap: 1.4rem; }
  .tracker li:nth-child(3)::before { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { padding: 1rem; }
  .admin-nav ul { display: flex; flex-wrap: wrap; gap: .3rem; }
  .work-admin { grid-template-columns: 1fr; }
  .shop-side .cat-list { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; }
  .shop-side .cat-list a { white-space: nowrap; border: 1px solid var(--line); background: var(--white); gap: .5rem; }
  .shop-side h2 { display: none; }
}
@media (max-width: 520px) {
  .steps, .footer-grid { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .field-inline input { min-width: 0; }
  .shop-tools { flex-direction: column; align-items: stretch; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --- Ajouts V2 : commande, contact, administration ------------------------ */
.checkout .form-card h2 { font-size: 1.3rem; }
.address-new { border-left: 3px solid var(--petal); padding-left: 1rem; margin-top: .4rem; }
.address-new[hidden], [data-show-mode][hidden], [data-show-objet][hidden] { display: none; }
.mode-choice { margin-bottom: .8rem; }
.pay-list { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.pay-option { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--rose); background: var(--blush); }
.pay-option input { margin-top: .35rem; accent-color: var(--rose); }
.pay-option span { display: flex; flex-direction: column; }
.pay-option small { color: var(--prune-soft); }
.pay-box { background: var(--white); border: var(--stitch); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.pay-box h2 { font-size: 1.4rem; }
.pay-detail { background: var(--petal); border-radius: var(--radius-s); padding: .8rem 1rem; font-weight: 600; }
.address-list { list-style: none; padding: 0; margin: 0; }
.address-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.address-list form { margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.contact-list li { padding: .35rem 0; }
.quote-side h2:not(:first-child) { margin-top: 1rem; }
.photo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.photo-slot { display: flex; flex-direction: column; gap: .35rem; }
.photo-slot input[type="file"] { font-size: .8rem; padding: .3rem; }
.photo-slot .thumb-cell.big .ph, .photo-slot .thumb-cell.big img { width: 100%; height: auto; aspect-ratio: 1; }
.check.small { margin: 0; font-size: .88rem; }
.admin-nav .logo { color: var(--white); }
.admin-nav .logo img { width: 44px; height: 44px; }
.admin-nav .logo-text { font-size: 1.4rem; }
.admin-nav .badge { background: var(--bonbon); color: var(--prune); }
.table tr.is-new td { background: #fffaf2; }
@media (max-width: 780px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-items li > span { white-space: nowrap; }
