@font-face {
    font-family: 'Metropolis';
    src: url('../assets/fonts/metropolis/Metropolis-Black.otf') format('opentype');
    font-weight: 900;
    font-display: swap;
}
@font-face {
    font-family: 'Metropolis';
    src: url('../assets/fonts/metropolis/Metropolis-Bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

:root {
    --primary:       #1e3a6e;
    --primary-dark:  #152b52;
    --primary-light: #e8edf7;
    --accent:        #52b043;
    /* Couleurs du logo : fanions, étoiles, cartable */
    --orange:        #f5a623;
    --orange-dark:   #d98a00;
    --red:           #e2483d;
    --sky:           #3b8fd9;
    --green:         #52b043;
    --warm-bg:       #fbf8f1;
    --text:          #1a2640;
    --text-muted:    #5a6b8a;
    --border:        #dfe4ef;
    --shadow:        0 3px 16px rgba(30,58,110,.10);
    --radius:        16px;
    --font-titre:    'Metropolis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--warm-bg);
    /* Confettis, étoiles et ballons aux couleurs du logo */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Ccircle cx='30' cy='30' r='5' fill='%233b8fd9' opacity='.5'/%3E%3Crect x='120' y='14' width='10' height='10' rx='2.5' transform='rotate(20 125 19)' fill='%2352b043' opacity='.5'/%3E%3Cpath transform='translate(219,33)' d='M7 0l2.1 4.6 5 .6-3.7 3.4.9 5L7 11.2 2.7 13.6l.9-5L0 5.2l5-.6z' fill='%23f5a623' opacity='0.6'/%3E%3Cg opacity='0.55'%3E%3Cellipse cx='70' cy='96' rx='9' ry='11.5' fill='%23e2483d'/%3E%3Cellipse cx='67' cy='92' rx='2.5' ry='3.5' fill='white' opacity='.45'/%3E%3Cpath d='M67.5 107.5l2.5 3 2.5-3z' fill='%23e2483d'/%3E%3Cpath d='M70 110.5q3 6-2 10t1 9' stroke='%23555' stroke-width='.8' fill='none' opacity='.6'/%3E%3C/g%3E%3Ccircle cx='160' cy='104' r='5' fill='%23f5a623' opacity='.55'/%3E%3Crect x='250' y='120' width='9' height='9' rx='2' transform='rotate(-15 254 124)' fill='%233b8fd9' opacity='.45'/%3E%3Cpath transform='translate(23,171)' d='M7 0l2.1 4.6 5 .6-3.7 3.4.9 5L7 11.2 2.7 13.6l.9-5L0 5.2l5-.6z' fill='%233b8fd9' opacity='0.5'/%3E%3Cg opacity='0.55'%3E%3Cellipse cx='212' cy='196' rx='9' ry='11.5' fill='%2352b043'/%3E%3Cellipse cx='209' cy='192' rx='2.5' ry='3.5' fill='white' opacity='.45'/%3E%3Cpath d='M209.5 207.5l2.5 3 2.5-3z' fill='%2352b043'/%3E%3Cpath d='M212 210.5q3 6-2 10t1 9' stroke='%23555' stroke-width='.8' fill='none' opacity='.6'/%3E%3C/g%3E%3Ccircle cx='120' cy='206' r='5.5' fill='%23e2483d' opacity='.45'/%3E%3Cpath transform='translate(143,255)' d='M7 0l2.1 4.6 5 .6-3.7 3.4.9 5L7 11.2 2.7 13.6l.9-5L0 5.2l5-.6z' fill='%23f5a623' opacity='0.55'/%3E%3Cg opacity='0.55'%3E%3Cellipse cx='44' cy='262' rx='9' ry='11.5' fill='%23f5a623'/%3E%3Cellipse cx='41' cy='258' rx='2.5' ry='3.5' fill='white' opacity='.45'/%3E%3Cpath d='M41.5 273.5l2.5 3 2.5-3z' fill='%23f5a623'/%3E%3Cpath d='M44 276.5q3 6-2 10t1 9' stroke='%23555' stroke-width='.8' fill='none' opacity='.6'/%3E%3C/g%3E%3Crect x='262' y='258' width='10' height='10' rx='2.5' transform='rotate(30 267 263)' fill='%2352b043' opacity='.5'/%3E%3Ccircle cx='276' cy='26' r='4' fill='%23e2483d' opacity='.45'/%3E%3C/svg%3E");
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

/* ── Header ─────────────────────────────── */
.site-header {
    background: var(--primary);
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-nav { display: flex; gap: .25rem; }
.site-nav a {
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    padding: .45rem .8rem;
    border-radius: 6px;
    opacity: .85;
    transition: background .15s, opacity .15s;
}
.site-nav a:hover { background: rgba(255,255,255,.12); opacity: 1; text-decoration: none; }
.site-nav a.active { background: rgba(255,255,255,.18); opacity: 1; }
@media (max-width: 520px) {
    .site-header { padding: .6rem 1rem; }
    .site-header .brand { font-size: 1.1rem; }
    .brand-logo { height: 32px; }
    .site-nav a { padding: .4rem .6rem; font-size: .85rem; }
}
.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-titre);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: .02em;
    color: #fff;
    text-decoration: none;
    transition: opacity .15s;
}
.site-header .brand:hover { opacity: .85; text-decoration: none; }
.brand-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

/* ── Fanions (guirlande du logo) ─────────── */
.fanions {
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22' viewBox='0 0 96 22'%3E%3Cpath d='M0 0h24L12 20z' fill='%23e2483d'/%3E%3Cpath d='M24 0h24L36 20z' fill='%2352b043'/%3E%3Cpath d='M48 0h24L60 20z' fill='%23f5a623'/%3E%3Cpath d='M72 0h24L84 20z' fill='%233b8fd9'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center top;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.12));
}

/* ── Main ────────────────────────────────── */
.site-main {
    flex: 1;
    max-width: 740px;
    width: 100%;
    margin: 1.5rem auto 2rem;
    padding: 1.5rem 1.25rem 2rem;
    /* « Feuille » posée sur les confettis : le texte reste lisible, le fond reste visible autour */
    background: rgba(255,255,255,.82);
    border-radius: 22px;
    box-shadow: 0 6px 30px rgba(30,58,110,.08);
}
@media (max-width: 780px) {
    .site-main { margin: .75rem .75rem 1.5rem; width: auto; border-radius: 16px; }
}

/* ── Footer ──────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 1.25rem;
    font-size: .8rem;
    color: var(--text-muted);
    background: rgba(255,255,255,.75);
    border-top: 1px solid var(--border);
}

/* ── Cards ───────────────────────────────── */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.card-header {
    padding: .85rem 1.25rem;
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--primary-light);
    color: var(--primary-dark);
}
.card-header a {
    font-weight: 400;
    font-size: .85rem;
    color: var(--primary);
    margin-left: 1rem;
    text-decoration: none;
}
.card-header a:hover { text-decoration: underline; }
.card-body { padding: 1.25rem; }

/* ── Typography ──────────────────────────── */
h1 {
    font-family: var(--font-titre);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: .01em;
    color: var(--primary-dark);
    margin-bottom: .4rem;
}
h2 { font-family: var(--font-titre); font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
p { margin-bottom: .75rem; }
a { color: var(--primary); }
.text-muted { color: var(--text-muted); font-size: .9rem; }
.text-small { font-size: .85rem; }

/* ── Utilitaires de mise en page ─────────── */
.text-center { text-align: center; }
.narrow-360 { max-width: 360px; }
.narrow-420 { max-width: 420px; }
.narrow-480 { max-width: 480px; }
.narrow-520 { max-width: 520px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: .5rem; }   .mt-2 { margin-top: 1rem; }   .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* ── Page de choix : brouillon à terminer vs commande à consulter ── */
.choix-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: .8rem 1rem;
    margin-bottom: .75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .1s, box-shadow .15s;
}
.choix-item:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.choix-item__titre { font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.choix-item__sous { font-size: .83rem; margin-top: .15rem; opacity: .85; }
.choix-item--brouillon { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.choix-item--valide { background: #fff; color: var(--text); border: 1px solid var(--border); }
.choix-item--valide .choix-item__titre { color: var(--primary-dark); }
.choix-item--valide .choix-item__sous { color: var(--text-muted); }
.choix-item__badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 999px; }
.choix-item--brouillon .choix-item__badge { background: #f5a623; color: #3b2500; }
.choix-item--valide .choix-item__badge { background: #dcfce7; color: #15803d; }

/* ── Forms ───────────────────────────────── */
.form-group { margin-bottom: 1rem; }
label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: .35rem;
}
label.sub { font-size: .8rem; color: var(--text-muted); font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: .55rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: .95rem;
    background: #fff;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,110,.12);
}
input:disabled,
textarea:disabled,
select:disabled {
    background: #edf0f8;
    color: #8a9ab8;
    cursor: not-allowed;
}
.field-error { color: #c0392b; font-size: .8rem; margin-top: .3rem; }

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-block;
    padding: .65rem 1.5rem;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background .15s, transform .15s, box-shadow .15s;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--primary); color: #fff; box-shadow: 0 3px 0 var(--primary-dark); }
.btn-primary:hover  { background: var(--primary-dark); color: #fff; }
/* Action principale « fun » : orange du logo, texte foncé pour le contraste */
.btn-cta {
    background: var(--orange);
    color: #2b1a00;
    box-shadow: 0 3px 0 var(--orange-dark);
}
.btn-cta:hover { background: #ffb63a; color: #2b1a00; }
.btn-secondary { background: #dde4f2; color: var(--primary-dark); }
.btn-secondary:hover { background: #cdd6ec; }
.btn-outline-primary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary-light); }
.btn-outline-secondary { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--border); }
.btn-outline-secondary:hover { background: #f1f5f9; }
.btn-full { width: 100%; text-align: center; display: block; padding: .8rem; font-size: 1.02rem; }

/* ── Alerts ──────────────────────────────── */
.alert {
    padding: .85rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: .9rem;
    border-width: 1px;
    border-style: solid;
}
.alert-error   { background: #fdf0ee; border-color: #f5c6c0; color: #8b2018; }
.alert-success { background: #eef7f0; border-color: #b8e0c2; color: #1a5c2e; }
.alert-warning { background: #fef9ec; border-color: #f5e09a; color: #7a5800; }
.alert-info    { background: #eef4fc; border-color: #b8d4f0; color: #1a3d6b; }

/* ── Category header ─────────────────────── */
.product-category-header {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    padding: .55rem 1.25rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-bottom: 1px solid var(--border);
}
.grille-paliers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .5rem 1.25rem;
    background: #fff8ee;
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
}
.grille-paliers-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-right: .2rem;
}
.grille-palier-badge {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    padding: .2rem .55rem;
    border-radius: 20px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    font-size: .8rem;
    white-space: nowrap;
}
.grille-subtotal {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: .4rem 1.25rem;
    font-size: .82rem;
    background: var(--primary-light);
    border-top: 1px solid var(--border);
    color: var(--primary-dark);
}
.grille-subtotal-label { font-weight: 500; }
.grille-subtotal-amount { font-weight: 700; }
.grille-hint {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .5rem 1rem .75rem;
    padding: .7rem 1rem;
    font-size: .95rem;
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-left: 6px solid #16a34a;
    border-radius: 8px;
    animation: grille-hint-pop .35s ease-out;
}
.grille-hint__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.grille-hint__titre { font-weight: 800; color: #15803d; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; display: block; }
.grille-hint strong { color: #14532d; }
@keyframes grille-hint-pop {
    from { transform: scale(.97); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ── Product list ────────────────────────── */
.product-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}
.product-row:last-child { border-bottom: none; }
.product-row.has-qty { background: #f0faee; }
.product-row.product-highlight {
    background: #fffbf0;
    border-left: 3px solid #e0a020;
}
.product-row.product-highlight.has-qty { background: #fef5e0; }
.product-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    background: #e0a020;
    color: #fff;
    padding: .1rem .45rem;
    border-radius: 4px;
    margin-left: .4rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.product-badge-new {
    background: var(--accent);
}
.product-info  { flex: 1; min-width: 0; }
.product-name  { font-size: .9rem; font-weight: 500; }
.product-meta  { font-size: .78rem; color: var(--text-muted); }
.product-price {
    font-size: .875rem;
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 58px;
    text-align: right;
    white-space: nowrap;
}

/* stepper +/- */
.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.stepper .btn-plus { background: var(--green); color: #fff; }
.stepper .btn-plus:hover { background: #46993a; }
.stepper .btn-plus:active { transform: scale(.9); }
.product-row.has-qty .stepper { border-color: var(--green); }
.stepper button {
    width: 36px;
    height: 36px;
    transition: background .15s, transform .1s;
    background: var(--primary-light);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    line-height: 1;
    transition: background .1s;
    flex-shrink: 0;
}
.stepper button:hover { background: #d0d9ef; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper input {
    width: 44px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 0;
    text-align: center;
    padding: .3rem .2rem;
    font-size: .9rem;
    font-weight: 600;
    height: 34px;
}
.stepper input:focus { box-shadow: none; border-color: var(--border); outline: none; }

/* total bar */
.total-bar {
    position: sticky;
    bottom: 0;
    background: var(--primary);
    color: #fff;
    padding: .9rem 1.25rem;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 -4px 16px rgba(30,58,110,.18);
    margin-top: 1.5rem;
}
.total-bar .total-amount {
    font-size: 1.3rem;
    font-weight: 700;
}

/* ── Grid ────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Radio paiement ──────────────────────── */
.radio-option {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    margin-bottom: .5rem;
    cursor: pointer;
    font-size: .9rem;
    transition: border-color .15s, background .15s;
}
.radio-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}
input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }

/* ── IBAN box ────────────────────────────── */
.iban-box {
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .75rem 1rem;
    font-size: .875rem;
    color: var(--text-muted);
    margin-top: .75rem;
}
.iban-box code { color: var(--primary-dark); font-size: .85rem; letter-spacing: .04em; }

/* ── Actions bar ─────────────────────────── */
.form-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: .5rem;
}

/* ── Catalogue grid (home) ───────────────── */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (max-width: 520px) {
    .catalogue-grid { grid-template-columns: 1fr; }
}

.catalogue-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.catalogue-card--open {
    border-color: var(--orange);
    border-width: 2px;
}
.catalogue-card--open:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(30,58,110,.16);
}
.catalogue-card__body {
    padding: 1.25rem 1.25rem .75rem;
    flex: 1;
}
.catalogue-card__status {
    margin-bottom: .6rem;
}
.catalogue-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    padding: .25rem .75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.catalogue-badge--open {
    background: var(--green);
    color: #fff;
    transform: rotate(-3deg);
    box-shadow: 0 2px 6px rgba(82,176,67,.4);
}
.catalogue-badge--closed {
    background: #f3f4f6;
    color: #6b7280;
}
.catalogue-card__title {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: .4rem;
}
.catalogue-card--closed .catalogue-card__title {
    color: #9ca3af;
}
.catalogue-card__dates {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.catalogue-card__link {
    font-size: .82rem;
    color: var(--primary);
    text-decoration: none;
}
.catalogue-card__link:hover { text-decoration: underline; }
.catalogue-card__footer {
    padding: .9rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--warm-bg);
}
.catalogue-card--closed .catalogue-card__footer {
    background: #f9fafb;
}
.catalogue-card__closed-msg {
    display: block;
    text-align: center;
    font-size: .85rem;
    color: #9ca3af;
    padding: .25rem 0;
}

/* ── Centered block (email_sent, merci) ───── */
.center-block {
    max-width: 560px;
    margin: 2rem auto 0;
    text-align: center;
}
.big-icon { font-size: 3rem; margin-bottom: 1rem; line-height: 1; }
.center-block h1 { font-size: 1.5rem; margin-bottom: .75rem; }
.center-block p  { color: var(--text-muted); }
.center-block p strong { color: var(--text); }

/* ── Info box (virement recap) ───────────── */
.info-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: .9rem;
    margin-top: 1.25rem;
}
.info-box .info-label { font-size: .8rem; color: var(--text-muted); margin-bottom: .2rem; }
.info-box .info-value { font-weight: 600; color: var(--primary-dark); }

/* ── Validation du bon de commande : mise en évidence ── */
.alert-brouillon {
    background: #fff4e5;
    border: 1px solid #f0b458;
    border-left: 6px solid #e07b00;
    color: #6b3d00;
    border-radius: 6px;
    padding: .9rem 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    line-height: 1.45;
}
.alert-brouillon .alert-brouillon__icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.alert-brouillon strong { color: #a04d00; }

.form-actions--valider {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    padding-top: .75rem;
}
.btn-valider {
    font-size: 1.1rem;
    padding: .9rem 1.5rem;
    width: 100%;
    box-shadow: 0 3px 10px rgba(30, 58, 110, .25);
}
.btn-link-discret {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: .88rem;
    text-decoration: underline;
    cursor: pointer;
    padding: .4rem;
    align-self: center;
}
.btn-link-discret:hover { color: var(--primary-dark); }

/* ── Page « lien envoyé » ── */
.email-envoye {
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: #eef1f8;
    border-radius: 6px;
    padding: .6rem 1rem;
    margin: .5rem auto 1rem;
    display: inline-block;
    word-break: break-all;
}

/* ── Barre collante total + Valider (mobile) ── */
.sticky-total {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    padding: 0 1rem;
    transform: translateY(110%);
    transition: transform .2s ease;
}
.sticky-total--visible { transform: translateY(0); }
.sticky-total__inner {
    max-width: 740px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dde4f2;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 14px rgba(0,0,0,.08);
    overflow: hidden;
}
.sticky-total__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
}
.sticky-total__hint {
    display: block;
    margin: 0;
    padding: .45rem 1rem;
    font-size: .85rem;
    color: #14532d;
    background: #dcfce7;
    border-bottom: 1px solid #86efac;
    text-decoration: none;
    text-align: center;
}
.sticky-total__amount strong { font-size: 1.2rem; color: var(--primary-dark); margin-left: .35rem; }
html { scroll-behavior: smooth; }
.grille-hint, #validation { scroll-margin-top: 1rem; }

/* ── Onglets des commandes : état ── */
.onglet-badge {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .12rem .45rem;
    border-radius: 999px;
    line-height: 1.3;
}
.onglet-badge--brouillon { background: #f5a623; color: #3b2500; }
.onglet-badge--valide    { background: #dcfce7; color: #15803d; }

/* ── Page merci : étapes + remerciement ── */
.etapes {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    text-align: left;
}
.etapes__titre { font-weight: 700; color: var(--primary-dark); margin-bottom: .5rem; }
.etapes__liste { margin: 0; padding-left: 1.4rem; line-height: 1.6; font-size: .93rem; }
.etapes__liste li { margin-bottom: .4rem; }
.etapes__liste li::marker { color: var(--primary); font-weight: 700; }
.merci-message {
    margin-top: 1.5rem;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--text) !important;
}

/* ── Agenda ── */
.agenda-mois { margin-bottom: 1.5rem; }
.agenda-mois__titre {
    font-size: 1.05rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: .25rem;
    margin-bottom: .5rem;
}
.agenda-entree {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: .55rem 0;
    border-bottom: 1px solid var(--border);
}
.agenda-entree:last-child { border-bottom: none; }
.agenda-entree--passe { opacity: .5; }
.agenda-entree__date {
    flex-shrink: 0;
    width: 46px;
    text-align: center;
    background: var(--primary-light);
    border-radius: 6px;
    padding: .25rem 0;
    line-height: 1.15;
}
.agenda-entree__jour { display: block; font-family: var(--font-titre); font-size: 1.3rem; font-weight: 900; color: var(--primary-dark); }
.agenda-entree__semaine { display: block; font-size: .62rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: .05em; font-weight: 700; }
.agenda-entree__date { width: 50px; border-radius: 10px; }
.agenda-entree--evenement .agenda-entree__date { background: #e3f0fb; }
.agenda-entree--evenement .agenda-entree__jour { color: var(--sky); }
.agenda-entree--ouverture .agenda-entree__date { background: #fff4e5; }
.agenda-entree--ouverture .agenda-entree__jour { color: var(--orange-dark); }
.agenda-entree__corps { min-width: 0; }
.agenda-entree__titre { font-weight: 600; }
.agenda-entree__titre a { color: var(--primary); }
.agenda-entree__lieu, .agenda-entree__com { font-size: .85rem; color: var(--text-muted); margin-top: .1rem; }
.agenda-entree--retrait .agenda-entree__date { background: #dcfce7; }
.agenda-entree--retrait .agenda-entree__jour { color: #15803d; }
.agenda-entree--fermeture .agenda-entree__date { background: #fdecea; }
.agenda-entree--fermeture .agenda-entree__jour { color: var(--red); }

/* ── Accueil : bandeau vente en cours ── */
.vente-bandeau {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 2px solid var(--orange);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    margin-bottom: .75rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 4px 18px rgba(245,166,35,.22);
    transition: transform .1s, box-shadow .15s;
}
.vente-bandeau:hover { transform: translateY(-1px); text-decoration: none; }
.vente-bandeau__texte { display: flex; flex-direction: column; min-width: 0; }
.vente-bandeau__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #15803d; font-weight: 700; }
.vente-bandeau__nom { font-family: var(--font-titre); font-size: 1.25rem; font-weight: 900; color: var(--primary-dark); }
.vente-bandeau__fin { font-size: .82rem; color: var(--text-muted); }
.vente-bandeau__btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 520px) {
    .vente-bandeau { flex-direction: column; align-items: stretch; text-align: center; }
    .vente-bandeau__btn { width: 100%; text-align: center; }
}

/* ── Rubrique Ventes ── */
.ventes-section {
    font-size: 1.05rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: .25rem;
    margin: 1.5rem 0 .75rem;
}
.catalogue-grid--single { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
.catalogue-badge--upcoming { background: #fff4e5; color: #a04d00; }

/* ── Page merci : boomerang + confettis ── */
.boomerang {
    font-size: 3.4rem;
    line-height: 1;
    margin-bottom: .75rem;
    display: inline-block;
    animation: boomerang-vol 2.2s cubic-bezier(.45,.05,.55,.95) 1;
    transform-origin: center;
}
@keyframes boomerang-vol {
    0%   { transform: translate(-260px, 40px) rotate(0turn) scale(.6); opacity: 0; }
    15%  { opacity: 1; }
    50%  { transform: translate(120px, -60px) rotate(3turn) scale(1.1); }
    100% { transform: translate(0, 0) rotate(5turn) scale(1); }
}
.confettis { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confettis i {
    position: absolute;
    top: -20px;
    left: calc(var(--i) * 5.6% + 2%);
    width: 10px; height: 14px;
    border-radius: 2px;
    opacity: 0;
    animation: confetti-chute 3.2s ease-in forwards;
    animation-delay: calc(var(--i) * .09s);
}
.confettis i:nth-child(4n+1) { background: var(--red); }
.confettis i:nth-child(4n+2) { background: var(--green); }
.confettis i:nth-child(4n+3) { background: var(--orange); }
.confettis i:nth-child(4n+4) { background: var(--sky); }
.confettis i:nth-child(odd)  { width: 7px; height: 7px; border-radius: 50%; }
@keyframes confetti-chute {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .boomerang, .confettis i, .grille-hint { animation: none; }
    .confettis { display: none; }
    .btn:hover { transform: none; }
}

/* ── Pied de page ── */
.site-footer__contact { line-height: 1.6; }
.site-footer__liens { display: flex; gap: .35rem 1.25rem; justify-content: center; flex-wrap: wrap; margin: .6rem 0 .4rem; }
.site-footer__liens a { color: var(--primary); font-weight: 600; text-decoration: none; }
.site-footer__liens a:hover { text-decoration: underline; }
.site-footer__credit { font-size: .72rem; opacity: .6; }

/* ── Mentions légales ── */
.mentions p { line-height: 1.6; }
.mentions p + p { margin-top: .75rem; }

/* ── Bandeau démo ── */
.demo-bandeau { background: var(--orange); color: #2b1a00; text-align: center; font-weight: 700; font-size: .85rem; padding: .4rem 1rem; }

/* ── Commande validée : présentation « reçu » ── */
.recu { width: 100%; border-collapse: collapse; font-size: .93rem; }
.recu th { text-align: left; padding: .6rem 1.25rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: #fafbfd; }
.recu td { padding: .6rem 1.25rem; border-bottom: 1px solid var(--border); }
.recu .num { text-align: right; white-space: nowrap; }
.recu__lot td { background: var(--primary-light); }
.recu__detail td { padding-top: .25rem; padding-bottom: .25rem; font-size: .85rem; color: var(--text-muted); border-bottom: none; }
.recu__detail td:first-child { padding-left: 2rem; }
.recu tfoot td { border-bottom: none; background: var(--primary); color: #fff; font-size: 1.05rem; padding: .8rem 1.25rem; }
.recu__infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem 1.5rem; }
.recu__infos .info-label { display: block; font-size: .78rem; color: var(--text-muted); margin-bottom: .1rem; }
.recu__infos .info-value { font-weight: 600; color: var(--primary-dark); }

/* ── Onglets des commandes du parent ── */
.onglets-titre { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin-bottom: .4rem; min-height: 1em; }
.onglets {
    display: flex;
    gap: .5rem;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
@media (max-width: 600px) {
    /* Mobile : une seule ligne qui défile, bord à bord */
    .onglets { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1.25rem 1rem; padding: .25rem 1.25rem .5rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
}
.onglet {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--primary-dark);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    transition: border-color .15s, transform .15s;
}
.onglet:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-1px); }
.onglet--actif { background: var(--primary); border-color: var(--primary); color: #fff; }
.onglet__date { font-weight: 400; opacity: .65; font-size: .8rem; }
.onglet--nouveau { border-style: dashed; color: var(--primary); background: transparent; }
.onglet--nouveau:hover { background: var(--primary-light); }
.onglet--actif .onglet-badge--valide { background: #fff; color: #15803d; }

/* ── Lien Facebook ── */
.lien-facebook { display: inline-flex; align-items: center; gap: .4rem; color: #1877f2; font-weight: 600; text-decoration: none; font-size: .9rem; }
.lien-facebook:hover { text-decoration: underline; }

/* ── Agenda : barre des mois ── */
.agenda-nav { display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap; margin: 0 0 1.5rem; }
.agenda-nav__mois { padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--primary); background: var(--primary-light); }
.agenda-nav__mois:hover { background: var(--primary); color: #fff; text-decoration: none; }
.agenda-nav__mois--courant { background: var(--orange); color: #2b1a00; }
.agenda-nav__mois--vide { color: var(--text-muted); background: transparent; opacity: .55; }
.agenda-mois { scroll-margin-top: 1rem; }
@media (max-width: 600px) {
    .agenda-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -1.25rem 1.5rem; padding: 0 1.25rem .4rem; scrollbar-width: thin; }
    .agenda-nav__mois { flex: 0 0 auto; }
}

/* ── Mobile : reçu et onglets ── */
@media (max-width: 520px) {
    .recu { font-size: .88rem; }
    .recu th, .recu td { padding: .5rem .6rem; }
    .recu th:first-child, .recu td:first-child { padding-left: .9rem; }
    .recu th:last-child, .recu td:last-child { padding-right: .9rem; }
    .recu .col-prix { display: none; }
    .recu tfoot td { font-size: 1rem; }
    .recu__detail td:first-child { padding-left: 1.4rem; }
}
.onglets::-webkit-scrollbar, .agenda-nav::-webkit-scrollbar { display: none; }
.onglets, .agenda-nav { scrollbar-width: none; }

/* ── Mobile : article sur deux lignes (nom en pleine largeur, prix + compteur dessous) ── */
@media (max-width: 520px) {
    .product-row { flex-wrap: wrap; gap: .4rem .75rem; padding: .7rem 1rem; }
    .product-info { flex: 1 1 100%; }
    .product-price { margin-left: auto; }
    .stepper { flex: 0 0 auto; }
    .product-info + .stepper { margin-left: auto; }   /* pas de prix affiché (grille) : compteur à droite quand même */
}

/* ── Rester connecté ── */
.rester-connecte {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
    background: #eef4fc; border: 1px solid #b8d4f0; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem;
}
.rester-connecte__texte { flex: 1 1 280px; font-size: .9rem; line-height: 1.4; }
.rester-connecte__texte strong { display: block; color: var(--primary-dark); margin-bottom: .1rem; }
.rester-connecte__texte span { color: var(--text-muted); }
.rester-connecte__boutons { display: flex; gap: .75rem; align-items: center; }
.mes-commandes__ligne {
    display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--text);
}
.mes-commandes__ligne:last-child { border-bottom: none; }
.mes-commandes__ligne:hover { text-decoration: none; }
.mes-commandes__ligne:hover .mes-commandes__nom { text-decoration: underline; }
.mes-commandes__nom { font-weight: 600; color: var(--primary-dark); flex: 1; min-width: 0; }
.mes-commandes__meta { font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
.autre-adresse { opacity: .75; }
.autre-adresse .alert-info strong::before { content: "Autre adresse ? "; }

/* ── Déconnexion parent (en-tête) ── */
.site-nav__deconnexion { margin: 0; display: flex; align-items: center; }
.site-nav__deconnexion button {
    background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; opacity: .85;
    font: inherit; font-size: .82rem; font-weight: 600; padding: .35rem .7rem; border-radius: 6px; cursor: pointer;
}
.site-nav__deconnexion button:hover { background: rgba(255,255,255,.12); opacity: 1; }

/* ── Barre d'onglets mobile ── */
.tabbar { display: none; }
@media (max-width: 600px) {
    .site-nav { display: none; }                       /* l'en-tête ne garde que le logo */
    .site-header { justify-content: center; }
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
        background: #fff; border-top: 1px solid var(--border);
        box-shadow: 0 -2px 12px rgba(30,58,110,.10);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .tabbar a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem;
        padding: .5rem .25rem .45rem; font-size: .68rem; font-weight: 700; color: var(--text-muted);
        text-decoration: none; letter-spacing: .01em;
    }
    .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
    .tabbar a.active { color: var(--primary); }
    .tabbar a.active svg { stroke-width: 2.4; }
    .tabbar a:active { transform: scale(.94); }
    body { padding-bottom: 64px; }                     /* le contenu ne passe pas sous la barre */
    .site-footer { padding-bottom: 1.25rem; }
    .sticky-total { bottom: 60px; }                    /* la barre Total/Valider se pose au-dessus */
    .sticky-total__inner { border-bottom: 1px solid #dde4f2; border-radius: 10px 10px 0 0; }
    .sticky-total__row { padding-bottom: .6rem; }
}

/* ── Inscription à un atelier ────────────── */
.mb-0 { margin-bottom: 0; }
.inscription-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
@media (max-width: 420px) { .inscription-grille { grid-template-columns: 1fr; } }
.participant { border: 1.5px solid var(--border); border-radius: 8px; padding: .75rem .9rem; margin-bottom: .75rem; background: #fff; }
.participant__entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.participant__num { font-weight: 700; color: var(--primary-dark); }
.participant__choix { display: flex; gap: .5rem; }
.participant__choix .radio-option { flex: 1; margin-bottom: 0; }
.agenda-entree__inscrire { display: inline-block; margin-top: .35rem; padding: .3rem .8rem; font-size: .85rem; }
.agenda-entree__clos { display: inline-block; margin-top: .3rem; font-size: .8rem; color: var(--text-muted); font-style: italic; }
.agenda-entree__inscrit { display: inline-block; margin-top: .35rem; padding: .3rem .7rem; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .85rem; font-weight: 600; }
.agenda-entree__inscrit a { color: #15803d; }
.mon-espace__titre { font-size: 1.15rem; margin: 1.5rem 0 .6rem; color: var(--primary-dark); }
.mes-commandes__enfants { display: block; font-weight: 400; font-size: .82rem; color: var(--text-muted); }
.mes-commandes__ligne--passe { opacity: .6; }
