/* ============================================================
   Le Prince — Pâtisserie · Boulangerie · Traiteur
   Palette gâteau : crème, chocolat, fruits glacés
   ============================================================ */

:root {
    --cream-50:  #FBF7F0;
    --cream-100: #F5ECDD;
    --cream-200: #EADBC2;
    --choco-900: #2A1A12;
    --choco-700: #4A2E20;
    --choco-500: #7A5440;
    --raspberry: #B0203F;
    --cherry:    #8A1E3E;
    --apricot:   #D9913A;
    --pistachio: #93A86A;
    --gold:      #C6A15B;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:  'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --shadow-warm: 0 10px 30px rgba(42,26,18,.10);
    --shadow-lift: 0 16px 40px rgba(42,26,18,.16);
    --radius: 14px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-500i.woff2') format('woff2');
    font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream-50);
    color: var(--choco-900);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--choco-900);
    line-height: 1.15;
    margin: 1.4em 0 .5em;
}
h1 { font-size: 2.6rem; margin-top: .4em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }

a { color: var(--raspberry); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cherry); }

.site-main {
    width: min(1120px, 100% - 32px);
    margin: 0 auto;
    padding: 28px 0 64px;
}
body.has-hero .site-main { width: 100%; padding-top: 0; }
body.has-hero .site-main > .section-inner,
body.has-hero .site-main > section > .section-inner { width: min(1120px, 100% - 32px); margin: 0 auto; }

::selection { background: var(--raspberry); color: #fff; }

:focus-visible {
    outline: 3px solid var(--raspberry);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Ornements ---------- */
.ornament {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 28px;
}
.ornament::before,
.ornament::after {
    content: '';
    height: 1px;
    width: 56px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament::after { transform: scaleX(-1); }
.ornament i {
    width: 9px; height: 9px;
    background: var(--gold);
    transform: rotate(45deg);
    flex: none;
}
.ornament--center { justify-content: center; }

/* Nappage : coulure de glaçage entre sections */
.drip { display: block; width: 100%; height: 70px; margin-bottom: -1px; }

/* ---------- Boutons glossy ---------- */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border: 0;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .02em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(160deg, var(--raspberry) 0%, var(--cherry) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(176,32,63,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(176,32,63,.45), inset 0 1px 0 rgba(255,255,255,.35); }
/* Reflet qui balaie au hover */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 130%; }

.btn-secondary {
    background: transparent;
    color: var(--choco-900);
    box-shadow: inset 0 0 0 1.5px var(--choco-500);
}
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--cherry); color: var(--cherry); background: rgba(255,255,255,.35); }

.btn-ghost-cream {
    background: transparent;
    color: var(--cream-50);
    box-shadow: inset 0 0 0 1.5px rgba(251,247,240,.75);
}
.btn-ghost-cream:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

.btn-danger {
    background: transparent;
    color: var(--raspberry);
    box-shadow: inset 0 0 0 1.5px rgba(176,32,63,.4);
}
.btn-danger:hover { background: rgba(176,32,63,.08); color: var(--cherry); }

.btn-sm { padding: 8px 18px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251,247,240,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(198,161,91,.35);
    transition: background .3s, box-shadow .3s;
}
/* Transparent au-dessus du hero d'accueil (uniquement si JS actif) */
html.js body.has-hero .site-header {
    position: fixed;
    left: 0; right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
html.js body.has-hero .site-header.is-scrolled {
    background: rgba(251,247,240,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(198,161,91,.35), 0 6px 24px rgba(42,26,18,.08);
}
html.js body.has-hero .site-header:not(.is-scrolled) .site-nav a,
html.js body.has-hero .site-header:not(.is-scrolled) .brand-name {
    color: var(--cream-50);
    text-shadow: 0 1px 8px rgba(42,26,18,.5);
}
html.js body.has-hero .site-header:not(.is-scrolled) .nav-toggle { color: var(--cream-50); }

.header-inner {
    width: min(1120px, 100% - 32px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand-logo {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 10px rgba(42,26,18,.25);
}
.brand-name {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--choco-900);
    letter-spacing: .02em;
    transition: color .3s;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-nav a {
    position: relative;
    padding: 8px 14px;
    color: var(--choco-700);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .03em;
    border-radius: 6px;
    transition: color .25s;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--cherry); font-weight: 600; }
body.has-hero .site-header:not(.is-scrolled) .site-nav a.active { color: #fff; }

.nav-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px; height: 22px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 999px;
    background: linear-gradient(160deg, var(--raspberry), var(--cherry));
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    vertical-align: 1px;
    text-shadow: none;
}
.nav-cart-badge.bump { animation: badge-bump .45s var(--ease); }
@keyframes badge-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.7rem;
    color: var(--choco-900);
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
}

/* Panneau mobile plein écran */
.nav-panel-close {
    display: none;
}

/* ---------- Hero accueil ---------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--choco-900);
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
    animation: kenburns 14s ease-out forwards;
}
.hero-slide.is-active { opacity: 1; }
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(42,26,18,.68) 0%, rgba(42,26,18,.30) 55%, rgba(42,26,18,.60) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--cream-50);
    padding: 120px 24px 90px;
    max-width: 780px;
}
.hero-surtitle {
    font-size: .85rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 18px;
    font-weight: 500;
}
.hero-title {
    font-size: clamp(3.4rem, 9vw, 6.4rem);
    color: #fff;
    margin: 0 0 14px;
    text-shadow: 0 4px 30px rgba(42,26,18,.6);
}
.hero-slogan {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    color: var(--cream-100);
    margin: 0 0 38px;
    text-shadow: 0 2px 12px rgba(42,26,18,.6);
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 56px;
    z-index: 2;
    transform: translateX(-50%);
    width: 26px; height: 44px;
    border: 2px solid rgba(251,247,240,.75);
    border-radius: 14px;
}
.scroll-hint::after {
    content: '';
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 9px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--gold);
    animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(16px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--cream { background: var(--cream-100); }
.section--choco {
    background: linear-gradient(160deg, #33201656, transparent), var(--choco-900);
    background-color: var(--choco-900);
    color: var(--cream-100);
}
.section--choco h1, .section--choco h2, .section--choco h3 { color: var(--cream-50); }
.section--choco a { color: var(--gold); }
.section--choco a:hover { color: #fff; }
.card-box.section--choco {
    background: var(--choco-900);
    color: var(--cream-100);
    border: 1px solid rgba(198,161,91,.35);
}
.card-box.section--choco p { color: var(--cream-200); }

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin: 0 0 8px;
}
.section-sub {
    text-align: center;
    color: var(--choco-500);
    max-width: 60ch;
    margin: 0 auto 40px;
}
.section--choco .section-sub { color: var(--cream-200); }

/* ---------- Cartes ---------- */
.card-box {
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 48px);
    margin: 28px auto;
    max-width: 880px;
    box-shadow: var(--shadow-warm);
    position: relative;
    overflow: hidden;
}
.card-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
}

/* ---------- Page hero (pages de contenu) ---------- */
.page-hero {
    background: var(--cream-100);
    border-bottom: 1px solid var(--cream-200);
    padding: 64px 24px 44px;
    text-align: center;
    margin: -28px -16px 40px;
    position: relative;
}
.page-hero h1 { margin: 0 0 6px; font-size: clamp(2.4rem, 6vw, 3.4rem); }
.page-hero .ornament { justify-content: center; margin-bottom: 0; }

/* Contenu éditorial (render_content) */
.content-body { max-width: 72ch; margin-left: auto; margin-right: auto; }
.content-body h2 {
    font-size: 1.9rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cream-200);
    position: relative;
}
.content-body h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 64px; height: 2px;
    background: var(--gold);
}
.content-body h3 { font-size: 1.4rem; color: var(--choco-700); }
.content-body ul { list-style: none; padding-left: 4px; }
.content-body li { padding-left: 26px; position: relative; margin: 8px 0; }
.content-body li::before {
    content: '';
    position: absolute;
    left: 4px; top: .62em;
    width: 7px; height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}
.content-body a { font-weight: 500; }

/* ---------- Grilles ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
}

.service-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-warm);
    position: relative;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-card-img { overflow: hidden; aspect-ratio: 16/10; }
.service-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}
.service-card:hover .service-card-img img { transform: scale(1.07); }
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--ease);
    pointer-events: none;
}
.service-card:hover::after { left: 130%; }
.service-card-body { padding: 22px 26px 26px; }
.service-card-body h3 { margin: 0 0 4px; color: var(--choco-900); }
.service-card-body h3::after {
    content: '';
    display: block;
    width: 40px; height: 2px;
    background: var(--gold);
    margin-top: 10px;
}
.service-card-body p { margin: 10px 0 0; color: var(--choco-500); font-size: .95rem; }

/* ---------- Grille produits ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 22px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-warm);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.product-thumb,
.product-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.product-thumb-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-thumb-placeholder svg {
    width: 62px; height: 62px;
    stroke-width: 1.5;
    position: relative;
    z-index: 1;
}
.product-thumb-placeholder::after {
    content: '';
    position: absolute;
    top: -60%; left: -30%;
    width: 60%; height: 220%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
    transform: rotate(18deg);
}

/* Dégradés "glacé" par catégorie */
.ph-cat-pains     { background: linear-gradient(150deg, #F0DFC0, #D9A75E); }
.ph-cat-pains svg { stroke: var(--choco-700); }
.ph-cat-viennoiserie     { background: linear-gradient(150deg, #FBEFD2, #E8B45F); }
.ph-cat-viennoiserie svg { stroke: var(--choco-700); }
.ph-cat-patisserie     { background: linear-gradient(150deg, #F7D9DE, #C86B83); }
.ph-cat-patisserie svg { stroke: var(--cherry); }
.ph-cat-marocaine     { background: linear-gradient(150deg, #EDE7C6, #B3B97E); }
.ph-cat-marocaine svg { stroke: var(--choco-700); }
.ph-cat-sale     { background: linear-gradient(150deg, #E9EDD9, #A9BC86); }
.ph-cat-sale svg { stroke: var(--choco-700); }
.ph-cat-default     { background: linear-gradient(150deg, var(--cream-100), var(--cream-200)); }
.ph-cat-default svg { stroke: var(--choco-500); }

.product-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.product-name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.18rem;
    color: var(--choco-900);
    letter-spacing: .01em;
}
.product-price {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--choco-700);
}
.product-desc { color: var(--choco-500); font-size: .88rem; margin-top: -2px; }

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
}
.qty-input {
    width: 58px;
    padding: 9px 6px;
    text-align: center;
    border: 1.5px solid var(--cream-200);
    border-radius: 10px;
    background: var(--cream-50);
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--choco-900);
}
.qty-input:focus { border-color: var(--raspberry); outline: none; box-shadow: 0 0 0 3px rgba(176,32,63,.15); }
.product-actions .qty-input {
    width: 58px;
    flex: none;
}
.product-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    font-size: .9rem;
    white-space: nowrap;
}

/* ---------- Filtres ---------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 26px 0 44px;
}
.filter-btn {
    border: 1.5px solid var(--cream-200);
    background: #fff;
    color: var(--choco-700);
    padding: 9px 22px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .3s var(--ease), color .3s, border-color .3s, box-shadow .3s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--cherry); }
.filter-btn.active {
    background: linear-gradient(160deg, var(--raspberry), var(--cherry));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(176,32,63,.3);
}

.category-section { margin-bottom: 56px; }
.category-section.is-hidden { display: none; }
.category-section.is-entering { animation: cat-in .45s var(--ease); }
@keyframes cat-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.category-title {
    text-align: center;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    margin: 8px 0 6px;
}
.category-title + .product-grid { margin-top: 30px; }

/* ---------- Galerie ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-warm);
    transition: transform .4s var(--ease), box-shadow .4s;
}
.gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow-lift); }

/* ---------- Boutiques ---------- */
.store-card {
    background: rgba(251,247,240,.06);
    border: 1px solid rgba(198,161,91,.35);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--cream-100);
    box-shadow: none;
}
.store-card h3 { margin-top: 0; color: var(--cream-50); }
.store-card h3::after {
    content: '';
    display: block;
    width: 40px; height: 2px;
    background: var(--gold);
    margin-top: 10px;
}
.store-card p { margin: 8px 0; }
.store-card a { color: var(--gold); }
.store-card a:hover { color: #fff; }

/* ---------- Tableaux / panier ---------- */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-warm);
}
.responsive-table th {
    background: var(--choco-900);
    color: var(--cream-100);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    padding: 14px 16px;
}
.responsive-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--cream-100);
}
.responsive-table tr:last-child td { border-bottom: 0; }
.total-row td {
    font-weight: 600;
    font-family: var(--serif);
    font-size: 1.15rem;
    background: var(--cream-100);
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid var(--cream-200);
    border-radius: 999px;
    padding: 3px;
}
.btn-qty {
    width: 30px; height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--cream-100);
    color: var(--choco-900);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    transition: background .25s, color .25s;
}
.btn-qty:hover { background: var(--raspberry); color: #fff; }
.qty-value { min-width: 30px; text-align: center; font-weight: 600; }

/* ---------- Formulaires ---------- */
label {
    display: block;
    font-weight: 500;
    color: var(--choco-700);
    margin: 18px 0 6px;
    letter-spacing: .02em;
}
input[type="text"], input[type="tel"], input[type="email"],
input[type="date"], input[type="time"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--cream-200);
    border-radius: 10px;
    background: var(--cream-50);
    color: var(--choco-900);
    font-family: var(--sans);
    font-size: 1rem;
    transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--raspberry);
    outline: none;
    box-shadow: 0 0 0 4px rgba(176,32,63,.12);
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0 6px;
}
.checkbox-line input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px; height: 22px;
    flex: none;
    margin-top: 2px;
    border: 1.5px solid var(--cream-200);
    border-radius: 6px;
    background: var(--cream-50);
    cursor: pointer;
    position: relative;
    transition: background .25s, border-color .25s;
}
.checkbox-line input[type="checkbox"]:checked {
    background: linear-gradient(160deg, var(--raspberry), var(--cherry));
    border-color: var(--cherry);
}
.checkbox-line input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px; top: 3px;
    width: 5px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-line input[type="checkbox"]:focus-visible { outline: 3px solid var(--raspberry); outline-offset: 2px; }
.checkbox-line label { margin: 0; font-weight: 400; }

.form-note { font-size: .88rem; color: var(--choco-500); margin-top: 20px; }

/* ---------- Messages ---------- */
.error-box {
    background: #FBE7EB;
    border: 1px solid rgba(176,32,63,.35);
    border-left: 4px solid var(--raspberry);
    border-radius: 10px;
    padding: 16px 22px;
    margin: 20px auto;
    max-width: 880px;
}
.error { color: var(--cherry); font-weight: 500; padding: 2px 0; }
.success {
    color: var(--choco-700);
    background: #EDF3E2;
    border-left: 4px solid var(--pistachio);
    border-radius: 10px;
    padding: 14px 18px;
}
.empty { text-align: center; color: var(--choco-500); font-style: italic; padding: 30px 0; }

.todo {
    background: #FFF3C4;
    color: var(--choco-900);
    padding: 0 6px;
    border-radius: 4px;
    font-style: italic;
}

/* Coche animée (page succès) */
.check-svg { width: 84px; height: 84px; margin: 8px auto 4px; display: block; }
.check-svg circle {
    fill: none;
    stroke: var(--pistachio);
    stroke-width: 3;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: draw .8s var(--ease) forwards;
}
.check-svg path {
    fill: none;
    stroke: var(--pistachio);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: draw .5s .55s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Toast ---------- */
#toast-zone {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}
.toast {
    background: var(--choco-900);
    color: var(--cream-50);
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid rgba(198,161,91,.5);
    box-shadow: 0 10px 30px rgba(42,26,18,.35);
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-in .4s var(--ease);
}
.toast::before {
    content: '';
    width: 18px; height: 18px;
    flex: none;
    border-radius: 50%;
    background: var(--pistachio);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%232A1A12' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--choco-900);
    color: var(--cream-100);
    margin-top: 0;
    position: relative;
}
.footer-inner {
    width: min(1120px, 100% - 32px);
    margin: 0 auto;
    padding: 64px 0 30px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 44px;
}
.footer-brand .brand-logo { width: 64px; height: 64px; }
.footer-slogan {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem;
    margin: 14px 0 0;
}
.footer-col h4 {
    color: var(--gold);
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.footer-col p { margin: 6px 0; font-size: .95rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    color: var(--cream-100);
    text-decoration: none;
    font-size: .95rem;
    transition: color .25s, padding-left .25s;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-copy {
    border-top: 1px solid rgba(198,161,91,.3);
    text-align: center;
    padding: 22px 16px;
    color: var(--cream-200);
    font-size: .85rem;
    letter-spacing: .04em;
}

/* ---------- Retour en haut ---------- */
.back-top {
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 200;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(198,161,91,.6);
    background: rgba(42,26,18,.85);
    color: var(--gold);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--choco-900); }

/* ---------- Révélation au défilement ---------- */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- noanim (captures / préférence) ---------- */
html.noanim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
html.noanim .hero-slide { transition: none; animation: none; opacity: 1; position: relative; }
html.noanim .hero-slide + .hero-slide { position: absolute; }
html.noanim *, html.noanim *::before, html.noanim *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
}
html.noanim .hero { min-height: 60vh; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-slide { animation: none; transition: opacity .01s; }
    .scroll-hint::after { animation: none; }
    html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }

    .nav-toggle { display: block; }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 150;
        background: var(--cream-50);
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .3s var(--ease), transform .3s var(--ease);
    }
    .site-nav.open { opacity: 1; pointer-events: auto; transform: none; }
    .site-nav a {
        font-family: var(--serif);
        font-size: 2rem;
        color: var(--choco-900) !important;
        text-shadow: none !important;
        padding: 10px 20px;
    }
    .nav-panel-close {
        display: block;
        position: absolute;
        top: 18px; right: 24px;
        background: none;
        border: 0;
        font-size: 2rem;
        color: var(--choco-900);
        cursor: pointer;
    }
    .nav-cart-badge { font-size: 1rem; min-width: 28px; height: 28px; }

    .hero { min-height: 75vh; }
    .hero-content { padding: 110px 20px 80px; }

    .section { padding: 52px 0; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .product-name { font-size: 1.05rem; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }

    .page-hero { padding: 48px 16px 32px; margin: -28px -16px 28px; }

    /* Tableaux -> cartes empilées */
    .responsive-table thead { display: none; }
    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
    .responsive-table tr { border-bottom: 2px solid var(--cream-200); padding: 10px 0; }
    .responsive-table td { border: 0; padding: 6px 16px; }
    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .75rem;
        font-weight: 600;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--choco-500);
    }
    .responsive-table td.no-label::before { content: none; }
    .total-row td { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .btn { padding: 12px 22px; }
}
