/* Style calqué sur Casafrik (Plus Jakarta Sans, cartes blanches arrondies, ombres douces),
   avec les couleurs du logo Odile et Vous. */
:root {
  --brand: #56301d;        /* brun du logo */
  --brand-dark: #3d2216;
  --brand-light: #f6ece6;
  --rose: #cf7574;         /* rose du logo */
  --rose-dark: #a9504f;
  --rose-light: #fbeceb;
  --sage: #7b8169;         /* vert sauge du logo */
  --sage-light: #eef0e8;
  --red: #c8372d;
  --red-light: #fdecea;
  --ink: #2a1a12;
  --text: #4b3c35;
  --muted: #7d6d65;
  --line: #ece3dc;
  --bg: #faf6f2;
  --white: #fff;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(61, 34, 22, .06), 0 6px 20px rgba(61, 34, 22, .07);
  --shadow-strong: 0 12px 40px rgba(61, 34, 22, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* un élément masqué le reste, même si sa classe fixe un display */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: #f4d4d3; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--text); max-width: 52ch; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rose-dark); margin-bottom: .6em; }
.center { margin-inline: auto; }
.center-block { display: block; margin: .8rem auto 0; }
.no-scroll, .no-scroll body { overflow: hidden; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------- Boutons et formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1px solid transparent; border-radius: 10px; padding: .7em 1.2em; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; background: var(--brand); color: #fff; text-decoration: none !important; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-light); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-light); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #178a45; }
.btn-danger { background: #fff; color: var(--red); border-color: #f1c8c4; }
.btn-danger:hover { background: var(--red-light); }
.btn-block { width: 100%; }
.btn.added { background: var(--rose); }
.btn.loading { opacity: .65; pointer-events: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .15s, color .15s, transform .1s; display: grid; place-items: center; position: relative; z-index: 1; }
.btn-icon:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-icon:active:not(:disabled) { transform: scale(.93); }
.btn-icon.added { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn-icon:disabled { opacity: .35; cursor: not-allowed; }

label { display: grid; gap: .35em; font-weight: 600; font-size: .9rem; color: var(--ink); }
label small { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1px solid #ddd0c7; border-radius: 10px; padding: .65em .8em; transition: border-color .15s, box-shadow .15s; }
input:not([type=checkbox]):not([type=file]), select { height: 46px; }
select { -webkit-appearance: none; appearance: none; padding-right: 2.4em; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d6d65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8em center; background-size: 16px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(207, 117, 116, .18); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- En-tête ---------- */
.announce { background: var(--brand); color: #f6e7df; text-align: center; font-size: .85rem; font-weight: 500; padding: .5em 20px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 96px; transition: height .3s var(--ease); }
.site-logo { display: block; flex: none; }
.site-logo:hover { text-decoration: none; }
.site-logo img { width: auto; height: 82px; transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 68px; }
.site-header.scrolled .site-logo img { height: 50px; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { color: var(--text); font-weight: 600; padding: .5em .8em; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a.active { background: var(--rose-light); color: var(--brand); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); }
.cart-link:hover { background: var(--bg); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rose); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; }
.burger span { height: 2px; border-radius: 1px; background: var(--ink); }

/* ---------- Accueil ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-strong); }
.reassure { padding: 0 0 1rem; }
.reassure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.reassure-grid div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: .15rem; box-shadow: var(--shadow); }
.reassure-grid strong { color: var(--ink); font-weight: 700; }
.reassure-grid span { font-size: .88rem; color: var(--muted); }
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-tight { padding-top: 1rem; }
.section-tint { background: #fff; border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.section-head .link { font-weight: 600; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; aspect-ratio: 4 / 3; box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s; }
.cat:hover { box-shadow: var(--shadow-strong); transform: translateY(-3px); text-decoration: none; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover img { transform: scale(1.04); }
.cat-label { position: absolute; inset: auto 0 0; padding: 1.2rem 1.3rem; background: linear-gradient(transparent, rgba(40, 20, 12, .8)); }
.cat-label h3 { color: #fff; font-size: 1.3rem; margin: 0 0 .15em; }
.cat-label p { font-size: .88rem; margin: 0; opacity: .92; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.steps-list li span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--rose-light); color: var(--rose-dark); font-weight: 800; margin-bottom: .9rem; }
.steps-list p { color: var(--muted); margin: 0; font-size: .95rem; }
.banner { position: relative; color: #fff; min-height: 340px; display: grid; align-items: center; overflow: hidden; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 20, 12, .82), rgba(40, 20, 12, .25)); }
.banner-inner { position: relative; z-index: 1; padding-block: 3rem; }
.banner-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.banner-inner p { max-width: 44ch; color: #f1e4dc; font-size: 1.05rem; margin-bottom: 1.4rem; }

/* ---------- Cartes produits ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; position: relative; }
.card:hover { box-shadow: var(--shadow-strong); transform: translateY(-3px); }
.card-img { position: relative; display: block; aspect-ratio: 4 / 4.4; background: var(--brand-light); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
/* Photos de produit sur fond blanc (packshots) : montrées en entier plutôt que recadrées */
.card-img img[src^="/img/produits/"], .card-img img[src^="/uploads/"] { object-fit: contain; background: #fff; padding: 6%; }
.product-media img[src^="/img/produits/"], .product-media img[src^="/uploads/"] { object-fit: contain; background: #fff; padding: 4%; }
.line img[src^="/img/produits/"], .line img[src^="/uploads/"] { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.badge { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--rose-dark); font-size: .75rem; font-weight: 700; padding: .3em .65em; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.badge-dark { background: var(--ink); color: #fff; }
.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-body .eyebrow { font-size: .72rem; margin: 0; }
.card-body h3 { font-size: .98rem; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a::after { content: ''; position: absolute; inset: 0; }
.card-body h3 a:hover { text-decoration: none; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.price { font-size: 1.15rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }

/* ---------- Boutique ---------- */
.page-head { padding: clamp(1.8rem, 4vw, 2.8rem) 0 .5rem; }
.page-head h1 { margin-bottom: .3em; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.chips { display: inline-flex; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.chip { padding: .5em 1.05em; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.chip:hover { color: var(--brand); text-decoration: none; }
.chip.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.filters-right { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters-right input { width: 240px; }
.filters-right select { width: auto; }
.count { font-size: .9rem; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.empty { text-align: center; padding: 3rem 0; }

/* ---------- Fiche produit ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.product-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.product-info { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.product-info h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .2em; }
.product-price { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin: .3em 0 .7em; }
.benefits { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.benefits li { background: var(--sage-light); color: #4f5541; font-size: .85rem; font-weight: 600; padding: .35em .75em; border-radius: 8px; }
.buy { display: flex; gap: .7rem; margin-bottom: .8rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid #ddd0c7; border-radius: 10px; background: #fff; overflow: hidden; }
.qty button { width: 40px; height: 44px; background: none; border: 0; font-size: 1.15rem; color: var(--ink); cursor: pointer; }
.qty button:hover:not(:disabled) { background: var(--bg); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty input { width: 44px; height: 44px; text-align: center; border: 0; border-radius: 0; padding: 0; box-shadow: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.stock-low { color: var(--rose-dark); font-size: .9rem; font-weight: 600; }
.stock-out { color: var(--red); font-weight: 700; }
details { border-top: 1px solid var(--line); padding: .9rem 0; }
details:last-child { padding-bottom: 0; }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details p { margin: .7em 0 0; }

/* ---------- Panier ---------- */
.cart-layout > * { min-width: 0; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; }
.cart-lines { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.2rem; box-shadow: var(--shadow); }
.line { display: grid; grid-template-columns: 76px 1fr auto 90px 30px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); transition: opacity .22s, transform .22s; }
.line:last-child { border-bottom: 0; }
.line.removing { opacity: 0; transform: translateX(16px); }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.line-info { display: grid; gap: .05rem; font-size: .88rem; }
.line-info a { font-weight: 600; font-size: .95rem; color: var(--ink); }
.line-total { text-align: right; font-weight: 800; color: var(--ink); }
.line .qty button { height: 36px; width: 34px; }
.line-remove { width: 30px; height: 30px; border-radius: 8px; background: none; border: 0; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
.line-remove:hover { background: var(--red-light); color: var(--red); }
.cart-summary { background: #fff; border: 1px solid var(--line); padding: 1.4rem; border-radius: var(--radius); position: sticky; top: 92px; box-shadow: var(--shadow); }
.cart-summary h2 { font-size: 1.25rem; }
.sum-row { display: flex; justify-content: space-between; padding: .35rem 0; }
.sum-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .8rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.checkout { margin-top: 1.4rem; display: grid; gap: .9rem; }
.checkout h3 { margin: 0; }
.progress-msg { font-size: .86rem; margin: 0 0 .45rem; }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: .6rem; }
.progress span { display: block; height: 100%; width: 0; background: var(--rose); border-radius: 3px; transition: width .5s var(--ease); }
.sent { background: #e8f6ee; border: 1px solid #bfe2cc; color: #17592f; border-radius: 12px; padding: .9rem 1rem; font-size: .92rem; }
.sent p { margin: .3rem 0 .5rem; }
.spinner { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--rose); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tiroir panier ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(40, 20, 12, 0); transition: background .3s; }
.drawer.open { background: rgba(40, 20, 12, .42); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s var(--ease); box-shadow: var(--shadow-strong); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.2rem; margin: 0; }
.drawer-close { width: 40px; height: 40px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 10px; color: var(--ink); }
.drawer-close:hover { background: var(--bg); }
.drawer-progress { padding: .9rem 1.2rem 0; }
.drawer-lines { flex: 1; overflow-y: auto; padding: 0 1.2rem; overscroll-behavior: contain; }
.drawer-lines .line { grid-template-columns: 64px 1fr auto; grid-template-areas: 'img info rm' 'img qty total'; row-gap: .5rem; }
.drawer-lines .line-img { grid-area: img; }
.drawer-lines .line img { width: 64px; height: 64px; }
.drawer-lines .line-info { grid-area: info; }
.drawer-lines .qty { grid-area: qty; justify-self: start; }
.drawer-lines .line-total { grid-area: total; }
.drawer-lines .line-remove { grid-area: rm; }
.drawer-empty { text-align: center; padding: 3rem 0; }
.drawer-foot { padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--line); background: var(--bg); }
.drawer-foot .sum-total { border: 0; margin: 0 0 .8rem; padding: 0; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-portrait { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; animation: rise-in .9s var(--ease) both; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: 230px 230px var(--radius) var(--radius); box-shadow: var(--shadow-strong); }
.about-portrait::before { content: ''; position: absolute; inset: -14px -14px auto auto; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, var(--rose-light), transparent 70%); z-index: -1; }
.about-portrait figcaption { position: absolute; left: -12px; bottom: 28px; width: max-content; max-width: 90%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--shadow); display: grid; gap: .1rem; animation: float-y 6s ease-in-out infinite; }
.about-portrait figcaption strong { color: var(--ink); font-size: 1.05rem; }
.about-portrait figcaption span { color: var(--rose-dark); font-size: .82rem; font-weight: 600; }
@media (max-width: 860px) { .about-portrait { max-width: 340px; } .about-portrait figcaption { left: 8px; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brand-dark); color: #dcc9bf; padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer a { display: block; color: #f3e6de; margin-bottom: .45em; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8em; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { width: 260px; max-width: 100%; height: auto; border-radius: 12px; background: #fefdf9; padding: 8px 12px; margin-bottom: .9rem; }
.muted-light { color: #c9b4a9; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #c9b4a9; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer .footer-bottom a.powered { display: inline; margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #c9b4a9; }
.site-footer .footer-bottom a.powered b { color: #fff; font-weight: 800; letter-spacing: .14em; }
.site-footer .footer-bottom a.powered:hover { color: #fff; text-decoration: none; }

/* ---------- Barre d'achat collée (mobile) ---------- */
.buy-bar { display: none; }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
img.lazy { opacity: 0; transition: opacity .4s; }
img.lazy.loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* ---------- Administration ---------- */
.admin { background: var(--bg); }
.admin-bar { background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.admin-bar .logo { font-weight: 800; font-size: 1.15rem; color: var(--brand); letter-spacing: -.02em; }
.admin-bar .logo small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rose-dark); margin-left: .3em; }
.admin-bar nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.admin-bar nav a, .admin-bar nav .link { color: var(--text); font-weight: 600; padding: .5em .8em; border-radius: 8px; font-size: .92rem; }
.admin-bar nav a:hover, .admin-bar nav a.active { background: var(--rose-light); color: var(--brand); text-decoration: none; }
.admin-bar form { margin: 0; }
.admin-main { padding: 2rem 20px 4rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 1.7rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.panel.narrow { max-width: 420px; margin: 3rem auto; display: grid; gap: 1rem; }
.panel.narrow h1 { font-size: 1.6rem; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid h2 { font-size: 1.1rem; margin: .6rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); }
.form-grid h2:first-child { border: 0; padding: 0; margin: 0; }
.span2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; }
.image-field { display: flex; gap: 1.2rem; align-items: center; }
.image-field label { flex: 1; }
.danger-zone { margin-top: 1.2rem; text-align: right; }
.flash { border-radius: 12px; padding: .9em 1.1em; margin-bottom: 1.2rem; font-weight: 500; border: 1px solid #bfe2cc; background: #e8f6ee; color: #17592f; transition: opacity .5s, transform .5s; }
.flash.fade { opacity: 0; transform: translateY(-6px); }
.error { border-radius: 12px; padding: .9em 1.1em; font-weight: 500; border: 1px solid #f1c8c4; background: var(--red-light); color: #8f231b; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: #fdfaf8; }
.table td { padding: .6rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fdf8f5; }
.table td a { font-weight: 600; }
.table .r { text-align: right; }
.table .neg { color: var(--red); font-weight: 700; }
.table .warn { color: var(--rose-dark); font-weight: 700; }
.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.thumb-lg { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.tag { font-size: .75rem; font-weight: 700; color: var(--rose-dark); background: var(--rose-light); padding: .15em .5em; border-radius: 6px; white-space: nowrap; }
.order { display: flex; gap: .3rem; }
.order form { margin: 0; }
.order button { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.order button:hover:not(:disabled) { background: var(--bg); }
.order button:disabled { opacity: .3; cursor: default; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: .15rem; background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 20px 1rem; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .header-actions { margin-left: auto; }
  .header-inner { height: 76px; }
  .site-logo img { height: 58px; }
  .site-header.scrolled .header-inner { height: 60px; }
  .site-header.scrolled .site-logo img { height: 44px; }
  .hero-grid, .product, .about { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .product-info { position: static; }
  .cats, .steps-list, .reassure-grid { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 16 / 9; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .form-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .filters { flex-direction: column; align-items: stretch; }
  .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .filters-right input { flex: 1; width: auto; }
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 1rem; align-items: center; justify-content: space-between; padding: .7rem 20px calc(.7rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(61, 34, 22, .08); transform: translateY(110%); transition: transform .3s var(--ease); }
  .buy-bar.show { transform: none; }
  .buy-bar div { display: grid; min-width: 0; font-size: .9rem; }
  .buy-bar strong { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:has(.buy-bar) .site-footer { padding-bottom: 6rem; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .line { grid-template-columns: 64px 1fr auto; grid-template-areas: 'img info rm' 'img qty total'; row-gap: .5rem; }
  .line > a { grid-area: img; }
  .line img { width: 64px; height: 64px; }
  .line-info { grid-area: info; }
  .line .qty { grid-area: qty; justify-self: start; }
  .line-total { grid-area: total; }
  .line-remove { grid-area: rm; }
  .card-body { padding: .8rem .85rem .9rem; }
  .card-body h3 { font-size: .92rem; }
  .price { font-size: 1.02rem; }
  .btn-icon { width: 34px; height: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters-right select { flex: 1; }
}

/* ---------- Diagnostic de peau ---------- */
.diag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.diag-list { list-style: none; padding: 0; margin: 0 0 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.diag-q { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); transition: background .2s; }
.diag-q:last-child { border-bottom: 0; }
.diag-q p { margin: 0; color: var(--ink); font-weight: 500; }
.diag-q.missing { background: var(--red-light); }
.diag-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--rose-light); color: var(--rose-dark); font-weight: 800; font-size: .88rem; }
.yesno { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.yesno { position: relative; }
.yesno input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.yesno label { display: block; margin: 0; padding: .45em 1.1em; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.yesno input:checked + label { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.yesno input[value=oui]:checked + label { background: var(--brand); color: #fff; }
.yesno input:focus-visible + label { outline: 2px solid var(--rose); }
.diag-end { display: grid; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.diag-form .sent { margin-top: 1rem; }
.diag-aside { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.diag-progress { margin-bottom: 1.2rem; }
.diag-progress strong { display: block; color: var(--ink); margin-bottom: .5rem; }
.diag-tips { padding-left: 1.1rem; margin: 0; color: var(--text); font-size: .92rem; display: grid; gap: .4rem; }
@media (max-width: 860px) {
  .diag-layout { grid-template-columns: minmax(0, 1fr); }
  .diag-aside { position: sticky; top: 60px; order: -1; z-index: 5; padding: .8rem 1rem; }
  .diag-aside h3, .diag-tips { display: none; }
  .diag-progress { margin: 0; }
  .diag-q { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .diag-num { display: none; }
  .yesno { justify-self: start; }
}

/* ---------- Accueil de saison ---------- */
:root { --season: #c0581b; } /* remplacée par la couleur choisie dans l'admin (/css/saison.css) */
.season-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--season) 30%, #fff) 0%, color-mix(in srgb, var(--season) 11%, #fff) 55%, #fff 100%); }
.season-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.season-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: color-mix(in srgb, var(--season) 47%, #000); }
.season-tag { display: inline-block; background: var(--season); color: #fff; font-weight: 700; font-size: .8rem; padding: .35em .9em; border-radius: 999px; margin-bottom: 1rem; }
.season-medallion { display: block; }
.season-medallion img, img.season-medallion { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 50%; padding: 8%; box-shadow: 0 20px 60px color-mix(in srgb, var(--season) 25%, transparent); transition: transform .4s var(--ease); }
.season-medallion:hover img { transform: scale(1.03); }
img.season-photo { object-fit: cover; padding: 0; }
.season-btn { background: var(--season); }
.season-btn:hover { background: color-mix(in srgb, var(--season) 80%, #000); }
.season-band { background: color-mix(in srgb, var(--season) 47%, #000); color: color-mix(in srgb, var(--season) 12%, #fff); text-align: center; padding: 3rem 0; }
.season-band h2 { color: #fff; }
.season-band p { margin-bottom: 1.3rem; }
@media (max-width: 860px) {
  .season-hero-in { grid-template-columns: minmax(0, 1fr); }
  .season-medallion { max-width: 260px; margin: 0 auto; order: -1; width: 100%; }
}

/* ---------- Admin : sélection de saison ---------- */
.selection-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 1rem; align-items: center; padding: .8rem 1rem; margin-bottom: 1rem; }
.selection-bar input { flex: 1; }
.selection-bar strong { white-space: nowrap; color: var(--ink); }
.selection-cat { font-size: 1.1rem; margin: 1.4rem 0 .7rem; }
.selection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.selection-item { position: relative; display: flex; align-items: center; gap: .7rem; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .5rem .7rem; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.selection-item:hover { border-color: var(--rose); }
.selection-item.on { border-color: var(--brand); background: var(--brand-light); }
.selection-item.off { opacity: .55; }
.selection-item input { flex: none; }
.selection-item img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.selection-item span { display: grid; min-width: 0; }
.selection-item b { font-weight: 600; font-size: .86rem; line-height: 1.25; color: var(--ink); }
.selection-item small { color: var(--muted); font-size: .78rem; }
.selection-rang { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-weight: 800; font-size: .75rem; display: grid; place-items: center; }
@media (max-width: 560px) { .selection-bar { flex-wrap: wrap; } .selection-bar input { flex-basis: 100%; } }

/* ---------- Panier : commande envoyée ---------- */
.sent-done { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem 1.5rem; }
.sent-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e8f6ee; color: #17592f; font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.sent-actions { justify-content: center; }


/* ---------- Pages légales ---------- */
.footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer .footer-legal a { display: inline; margin: 0; color: #c9b4a9; font-size: .82rem; }
.site-footer .footer-legal a:hover { color: #fff; }
.cgv-check { font-size: .88rem; align-items: flex-start; }
.cgv-check input { margin-top: .15rem; }
.legal { max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.legal h1 { margin-bottom: .2em; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: .6rem 0 1rem; }
.legal th, .legal td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg); font-weight: 700; color: var(--ink); }
.legal .maj { color: var(--muted); font-size: .88rem; }
.legal .formulaire { background: var(--bg); border: 1px dashed #d8c7bb; border-radius: 12px; padding: 1rem 1.2rem; }
.a-completer { background: #fff1c2; color: #7a5200; padding: .05em .4em; border-radius: 6px; font-weight: 700; font-size: .92em; }
@media (max-width: 700px) { .legal table { display: block; overflow-x: auto; } .legal th, .legal td { min-width: 120px; } }

/* ---------- Sélection événement (accueil) : un thème = des couleurs ---------- */
.event { --ev-1: #fbe3e3; --ev-2: #e3efe4; --ev-bg: #fffaf7; --ev-line: #f1dcd6; --ev-accent: #a8232a; --ev-title: #8f1d22; }
.event-saint-valentin { --ev-1: #ffd9e2; --ev-2: #ffe9ef; --ev-bg: #fff7f9; --ev-line: #f6d3dc; --ev-accent: #d6336c; --ev-title: #a61e4d; }
.event-fete-des-meres { --ev-1: #f6dcef; --ev-2: #e8e3fa; --ev-bg: #fdf9fd; --ev-line: #ecd9e8; --ev-accent: #b04f8f; --ev-title: #86306c; }
.event-fete-des-peres { --ev-1: #dce7f5; --ev-2: #e6efe9; --ev-bg: #f8fafc; --ev-line: #d9e2ec; --ev-accent: #2f5d8a; --ev-title: #1f3f63; }
.event-autre { --ev-1: var(--rose-light); --ev-2: var(--sage-light); --ev-bg: #fffaf7; --ev-line: var(--line); --ev-accent: var(--brand); --ev-title: var(--ink); }
.event { background: radial-gradient(circle at 10% 0%, var(--ev-1) 0, transparent 40%), radial-gradient(circle at 95% 100%, var(--ev-2) 0, transparent 40%), var(--ev-bg); border-block: 1px solid var(--ev-line); }
.event h2 { color: var(--ev-title); }
.event-tag { display: inline-block; background: var(--ev-accent); color: #fff; font-weight: 700; font-size: .8rem; padding: .35em .9em; border-radius: 999px; margin-bottom: .8rem; }
.event-head p { margin: .3rem 0 0; }
.event .card { border-color: var(--ev-line); }
.tag-event { color: #a8232a; background: #fbe3e3; }

/* ---------- Promotions ---------- */
.badge-promo { background: #c8372d; color: #fff; }
.price-promo { color: #c8372d; }
.price-promo s { color: var(--muted); font-weight: 500; font-size: .82em; margin-right: .15em; }
.badge-promo-inline { display: inline-block; vertical-align: middle; background: #c8372d; color: #fff; font-size: .8rem; font-weight: 800; padding: .25em .6em; border-radius: 8px; }
.promo-fin { color: #c8372d; font-size: .88rem; font-weight: 600; margin-top: -.4rem; }
.promos { background: #fff6f4; border-block: 1px solid #f6d7d2; }
.promo-tag { display: inline-block; background: #c8372d; color: #fff; font-weight: 800; font-size: .8rem; padding: .35em .9em; border-radius: 999px; margin-bottom: .8rem; }
.chip-promo { color: #c8372d; }
.chip-promo.on { color: #c8372d; }
.tag-promo { color: #c8372d; background: #fdecea; }

/* ---------- Motion design ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes pulse-soft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }

/* Haut de page : apparition en cascade */
.season-hero-in > div > * { animation: rise-in .9s var(--ease) both; }
.season-hero-in > div > :nth-child(2) { animation-delay: .1s; }
.season-hero-in > div > :nth-child(3) { animation-delay: .2s; }
.season-hero-in > div > :nth-child(4) { animation-delay: .32s; }
/* Médaillon : flottement + anneau en pointillés qui tourne lentement */
.season-medallion { position: relative; animation: rise-in 1s .15s var(--ease) both; }
.season-medallion > img, img.season-medallion { animation: float-y 6s ease-in-out infinite; }
a.season-medallion::before { content: ''; position: absolute; inset: -4%; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--season) 35%, transparent); animation: spin-slow 40s linear infinite; pointer-events: none; }

/* Grilles : les cartes apparaissent l'une après l'autre */
.grid.reveal { opacity: 1; transform: none; }
.grid.reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .18s; }
.grid.reveal.in > * { opacity: 1; transform: none; }
.grid.reveal.in > :hover { transform: translateY(-3px); }
.grid.reveal > :nth-child(2) { transition-delay: .07s, .07s, 0s; }
.grid.reveal > :nth-child(3) { transition-delay: .14s, .14s, 0s; }
.grid.reveal > :nth-child(4) { transition-delay: .21s, .21s, 0s; }
.grid.reveal > :nth-child(5) { transition-delay: .28s, .28s, 0s; }
.grid.reveal > :nth-child(6) { transition-delay: .35s, .35s, 0s; }
.grid.reveal > :nth-child(7) { transition-delay: .42s, .42s, 0s; }
.grid.reveal > :nth-child(n+8) { transition-delay: .49s, .49s, 0s; }

/* Titres de section : un trait se dessine à l'apparition */
.section-head.reveal h2::after { content: ''; display: block; width: 0; height: 3px; margin-top: .45rem; border-radius: 2px; background: var(--rose); transition: width .8s .25s var(--ease); }
.section-head.reveal.in h2::after { width: 44px; }

/* Détails */
.badge-promo, .badge-promo-inline, .promo-tag { animation: pulse-soft 2.4s ease-in-out infinite; }
.season-btn, .btn-wa { position: relative; overflow: hidden; }
.season-btn::after, .btn-wa::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.season-btn:hover::after, .btn-wa:hover::after { animation: shine .8s ease; }
.cart-link svg { transition: transform .3s var(--ease); }
.cart-link:hover svg { transform: rotate(-8deg) scale(1.08); }

/* Envol vers le panier */
.envol { position: fixed; z-index: 90; object-fit: contain; background: #fff; pointer-events: none; box-shadow: var(--shadow-strong); }
.grid.reveal.done > * { transition-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-iteration-count: 1 !important; } }

/* ---------- Admin : sélecteur de couleur de saison ---------- */
.color-field { display: grid; gap: .6rem; }
.color-field input[type=color] { width: 72px; height: 46px; padding: 4px; cursor: pointer; }
.color-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.color-preset { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem .3rem .35rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.color-preset:hover { border-color: var(--ink); }
.swatch { width: 20px; height: 20px; border-radius: 50%; display: inline-block; }
.swatch-c0581b { background: #c0581b; } .swatch-2f5d8a { background: #2f5d8a; } .swatch-5f8a3a { background: #5f8a3a; }
.swatch-d6536b { background: #d6536b; } .swatch-7a4fa0 { background: #7a4fa0; } .swatch-56301d { background: #56301d; }
